/* assets/css/style.css - Asresoft Design System */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #090d16;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(59, 130, 246, 0.4);

    --primary-blue: #3b82f6;
    --primary-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --danger-red: #ef4444;

    --text-white: #ffffff;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(59, 130, 246, 0.4);

    --text-white: #0f172a;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .marquee-strip {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] footer {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .field select option {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .admin-bg {
    background: #f1f5f9;
}

[data-theme="light"] .admin-nav {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #60a5fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    position: relative;
}

/* ---------- Hero Animations & Loaders ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim.d1 {
    animation-delay: 0.05s;
}

.hero-anim.d2 {
    animation-delay: 0.15s;
}

.hero-anim.d3 {
    animation-delay: 0.25s;
}

.hero-anim.d4 {
    animation-delay: 0.35s;
}

.hero-anim.d5 {
    animation-delay: 0.45s;
}

/* ---------- Typography & Utility ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 36px;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group .reveal:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-group .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal-group .reveal:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal-group .reveal:nth-child(4) {
    transition-delay: 0.35s;
}

.reveal-group .reveal:nth-child(5) {
    transition-delay: 0.45s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

.btn-outline-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline-sm:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger-sm {
    padding: 8px 14px;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-red);
}

.btn-danger-sm:hover {
    background: var(--danger-red);
    color: #ffffff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15.5px;
    border-radius: 12px;
}

/* ---------- Navbar & Header ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 22px;
    color: var(--text-white);
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
}

.logo .dot {
    color: var(--primary-blue);
}

.logo-tag {
    font-size: 10px;
    font-weight: 800;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 100px 0 80px;
}

.hero-bg-glow {
    position: absolute;
    top: -120px;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(9, 13, 22, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 30px;
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .accent-glow {
    background: linear-gradient(135deg, #34d399, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 16.5px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Hero Card */
.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.agency-brand-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.status-live {
    font-size: 12px;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.agency-pillar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.pillar-item:hover {
    border-color: var(--border-highlight);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
}

.pillar-icon svg {
    width: 22px;
    height: 22px;
}

.pillar-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-white);
}

.pillar-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-founder-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.founder-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.hero-founder-note strong {
    display: block;
    color: var(--text-white);
    font-size: 14px;
}

.hero-founder-note span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Marquee Ticker ---------- */
.marquee-strip {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 35s linear infinite;
}

.marquee-track span {
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 0 28px;
    text-transform: uppercase;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}

.about-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-panel .about-stat {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.about-panel .about-stat .num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
}

.about-panel .about-stat .lbl {
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.about-panel .about-stat.wide {
    grid-column: 1 / -1;
}

.secondary-services {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.secondary-services h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.secondary-services > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.secondary-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.secondary-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.secondary-item .icon-box {
    width: 36px;
    height: 36px;
    margin: 0;
    flex-shrink: 0;
}

.secondary-item .icon-box svg {
    width: 18px;
    height: 18px;
}

.secondary-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-white);
}

.secondary-item span {
    font-size: 12.5px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .secondary-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .secondary-list,
    .about-panel {
        grid-template-columns: 1fr;
    }
}

.about-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.photo-badge,
.photo-badge.light-version {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.photo-badge .num,
.photo-badge.light-version .num {
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.1;
}

.photo-badge .lbl,
.photo-badge.light-version .lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
    line-height: 1.3;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0) 100%);
}

.photo-caption strong {
    display: block;
    color: #ffffff !important;
    font-size: 16px;
}

.photo-caption span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.about-copy h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.about-copy p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15.5px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
}

/* ---------- Services Tabs & Cards ---------- */
.service-category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.svc-tab {
    padding: 11px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.svc-tab.active,
.svc-tab:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.svc-group {
    display: none;
}

.svc-group.active {
    display: grid;
}

.service-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.service-card h4 {
    font-size: 19px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tags span {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-blue);
    border-radius: 6px;
}

/* ---------- Portfolio Grid & Case Studies ---------- */
.portfolio-filter-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.project-thumb {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-primary);
    text-align: center;
    padding: 24px;
}

.thumb-placeholder h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 6px;
}

.media-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}

.video-badge {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

.image-badge {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
}

.project-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body .meta {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.project-body h4 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.project-body p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.link-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
}

.center-btn {
    text-align: center;
    margin-top: 48px;
}

/* ---------- Estimator Calculator ---------- */
.estimator-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.estimator-options h4 {
    color: var(--text-white);
    margin-bottom: 16px;
    font-size: 16px;
}

.est-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.est-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14.5px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.est-option:hover {
    border-color: var(--border-highlight);
}

.est-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.est-timeline-row {
    display: flex;
    gap: 12px;
}

.btn-timeline {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-timeline.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.estimator-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.est-price-display {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.est-scope-lbl {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.summary-perks {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Blog Section ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-thumb {
    height: 190px;
    position: relative;
    background: #1e293b;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 4px;
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-body h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---------- Process Section ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.process-grid h5 {
    font-size: 16.5px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.process-grid p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    margin-top: 32px;
}

.contact-info h4 {
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item .lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-item .val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
}

.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: inherit;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field select option {
    background: var(--bg-surface);
    color: #ffffff;
}

/* ---------- Single Pages & Sidebar ---------- */
.page-header {
    padding: 60px 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-white);
    margin: 8px 0 14px;
}

.page-header > p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    margin-bottom: 4px;
}

.page-header .breadcrumb a {
    color: var(--text-muted);
}

.page-header .breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
}

.project-detail-layout,
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.detail-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.detail-hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.highlight-metric-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.metric-icon {
    font-size: 32px;
}

.metric-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-emerald);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.media-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-caption {
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.sidebar-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.sidebar-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- Admin Panel Styles ---------- */
.admin-bg {
    background: #070a12;
}

.admin-login-card {
    max-width: 420px;
    margin: 90px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.admin-login-logo {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
}

.admin-login-logo .subtitle {
    font-size: 11px;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin-top: 4px;
}

.admin-nav {
    background: #0b1120;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.admin-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.admin-menu a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.admin-menu a.active,
.admin-menu a:hover {
    color: var(--text-white);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13.5px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.admin-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.admin-stat-card .stat-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.admin-stat-card .num {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-white);
}

.admin-stat-card .lbl {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.admin-stat-card .stat-link {
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 28px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-card-header h3 {
    color: var(--text-white);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
}

.admin-table td {
    color: var(--text-primary);
}

.tag-sm {
    font-size: 11.5px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
    border-radius: 4px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.admin-media-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.admin-media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
}

.text-danger {
    color: var(--danger-red);
}

/* ---------- Footer ---------- */
footer {
    background: #050811;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row a {
    width: 38px;
    height: 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 14px;
}

footer h5 {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer ul a,
footer ul li {
    font-size: 14px;
    color: var(--text-muted);
}

footer ul a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .contact-grid,
    .estimator-grid,
    .project-detail-layout,
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-cards,
    .blog-grid,
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .service-cards,
    .portfolio-grid,
    .blog-grid,
    .admin-stats-grid,
    .media-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Team Section Styles */
.team-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.team-photo-container {
    width: 80px;
    height: 80px;
    position: relative;
}

.team-photo,
.team-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 800;
}

.team-info h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------- Marketing & design refocus ---------- */
.service-cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-thumb.no-image {
    height: auto;
    padding: 16px 20px 0;
    background: transparent;
}

.blog-thumb.no-image .blog-cat {
    position: static;
    display: inline-block;
}

@media (max-width: 768px) {
    .service-cards.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Lead forms, popup & FAQ ---------- */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form {
    position: relative;
}

.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 14px;
}

.form-status {
    display: none;
    margin-top: 12px;
}

body.popup-open {
    overflow: hidden;
}

.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lead-popup[hidden] {
    display: none;
}

.lead-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lead-popup-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 24px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: popup-in 0.25s ease-out;
    outline: none;
}

.lead-popup-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin: 0 28px 8px 0;
}

.lead-popup-card > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lead-popup-card .field {
    margin-bottom: 12px;
}

.lead-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.lead-popup-close:hover {
    background: var(--bg-card);
    color: var(--text-white);
}

@keyframes popup-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.faq-list {
    max-width: 820px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 20px;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 700;
    color: var(--text-white);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--primary-blue);
    font-size: 20px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    color: var(--text-muted);
    padding-bottom: 18px;
    margin: 0;
    font-size: 15px;
}

/* ---------- Portfolio, client logos & testimonials ---------- */
.clients-section {
    padding: 48px 0 40px;
}

.clients-heading {
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.clients-strip {
    padding: 28px 0 0;
}

.client-slider {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-track {
    display: flex;
    width: max-content;
    animation: client-scroll 30s linear infinite;
}

.client-slider:hover .client-track,
.client-slider:focus-within .client-track {
    animation-play-state: paused;
}

.client-set {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    min-width: 190px;
    padding: 16px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

a.client-logo:hover {
    border-color: var(--border-highlight);
    color: var(--text-white);
}

.client-logo img {
    max-height: 48px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

a.client-logo:hover img {
    filter: none;
    opacity: 1;
}

.client-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes client-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .client-track { animation: none; }
    .client-slider { overflow-x: auto; }
}

.portfolio-grid .project-card .project-title {
    font-size: 19px;
    line-height: 1.35;
    color: var(--text-white);
    margin-bottom: 10px;
}

.project-title a {
    color: inherit;
}

.project-title a:hover {
    color: var(--primary-blue);
}

.project-thumb {
    display: block;
}

.thumb-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.08)), var(--bg-surface);
}

.project-services {
    margin: -6px 0 20px;
}

.case-study-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.case-block h2,
.case-gallery-title {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.case-gallery-title {
    margin-bottom: 20px;
}

.case-block p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.case-outcome {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent), var(--bg-surface);
}

.media-card {
    margin: 0;
}

.media-card a.lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.project-facts dl {
    margin-top: 12px;
}

.project-facts dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 14px;
}

.project-facts dd {
    color: var(--text-primary);
    font-size: 14.5px;
    margin-top: 4px;
}

.project-facts .service-tags {
    margin-top: 6px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.testimonial-grid.single {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.testimonial-card {
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.testimonial-card blockquote {
    color: var(--text-primary);
    font-size: 15.5px;
    line-height: 1.7;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card figcaption strong {
    display: block;
    color: var(--text-white);
    font-size: 14.5px;
}

.testimonial-card figcaption small {
    color: var(--text-muted);
    font-size: 13px;
}

.testimonial-photo,
.testimonial-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 8, 15, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    color: #e2e8f0;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.admin-thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
}

.admin-thumb-row img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-gallery-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-gallery-item img,
.admin-gallery-video {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-card);
}

.admin-gallery-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    overflow: hidden;
    word-break: break-all;
    text-align: center;
    padding: 6px;
}

.admin-gallery-item input[type="text"],
.admin-gallery-item input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 12.5px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
}

.admin-gallery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.admin-gallery-actions input[type="number"] {
    width: 56px;
}

@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .client-logo {
        min-width: 150px;
        height: 70px;
        padding: 12px 18px;
    }
}

/* Cookie consent banner */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}
.consent-banner[hidden] {
    display: none;
}
.consent-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.consent-reject {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.consent-reject:hover {
    border-color: var(--border-highlight);
}
@media (max-width: 600px) {
    .consent-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .consent-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ---------- Products page ---------- */
.product-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.product-feature h2 {
    font-size: 36px;
    color: var(--text-white);
    margin: 16px 0 6px;
}

.product-tagline {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.product-feature-intro > p:not(.product-tagline) {
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.product-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
}

.product-points li {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.product-points h4 {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 6px;
}

.product-points p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.product-inhouse {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .product-feature {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }
}

@media (max-width: 560px) {
    .product-points,
    .product-inhouse {
        grid-template-columns: 1fr;
    }

    .product-feature h2 {
        font-size: 30px;
    }
}


/* ==========================================================================
   Responsive layer: navigation, tablets and phones
   ========================================================================== */

.theme-toggle {
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-white);
    cursor: pointer;
}

.nav-toggle-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.navbar.menu-open .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.navbar.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.menu-open .nav-toggle-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-menu-footer {
    display: none;
}

/* Small laptops: tighten the desktop menu a little */
@media (max-width: 1240px) and (min-width: 1101px) {
    .nav-links {
        gap: 20px;
    }
}

/* Tablets (incl. iPad landscape) and phones: hamburger menu */
@media (max-width: 1100px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-wrapper {
        gap: 12px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 68px);
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        padding: 8px 24px 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .navbar.menu-open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-links li + li {
        border-top: 1px solid var(--border-color);
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        font-size: 16px;
        color: var(--text-primary);
    }

    .nav-link::after {
        content: "→";
        color: var(--text-dim);
        font-weight: 400;
    }

    .nav-menu-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu-footer .btn {
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Tablets: the menu opens as a dropdown card under the hamburger */
@media (max-width: 1100px) and (min-width: 641px) {
    .nav-menu {
        left: auto;
        right: 24px;
        top: calc(100% + 8px);
        width: 340px;
        padding: 8px 20px 20px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
    }

    .nav-menu-footer {
        grid-template-columns: 1fr;
    }

    body.nav-open {
        overflow: auto;
    }
}

@media (max-width: 900px) {
    /* Tablet portrait: 2-up grids stay 2-up, spacing scales down */
    section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .hero {
        padding: 72px 0 64px;
    }

    .hero-grid {
        gap: 40px;
    }

    .about-grid,
    .contact-grid {
        gap: 36px;
    }

    .contact-form {
        padding: 32px;
    }

    .footer-grid {
        gap: 36px;
    }

    .page-header {
        padding-top: 44px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .project-detail-layout,
    .blog-detail-layout {
        gap: 32px;
    }
}

/* Two-column grids from 640px up (tablet portrait shows 2 cards per row) */
@media (max-width: 768px) and (min-width: 641px) {
    .portfolio-grid,
    .blog-grid,
    .service-cards,
    .service-cards.cols-2,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 52px 0;
    }

    .eyebrow {
        font-size: 11.5px;
        letter-spacing: 1.6px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: -0.3px;
    }

    .section-sub {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .btn-lg {
        padding: 13px 22px;
        font-size: 15px;
    }

    /* Header */
    .logo {
        font-size: 20px;
    }

    .navbar .nav-actions .nav-cta {
        padding: 10px 14px;
        font-size: 13px;
    }

    .theme-toggle,
    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle {
        padding: 0;
    }

    .nav-toggle-bar:nth-child(1) { top: 13px; }
    .nav-toggle-bar:nth-child(2) { top: 19px; }
    .nav-toggle-bar:nth-child(3) { top: 25px; }
    .navbar.menu-open .nav-toggle-bar:nth-child(1),
    .navbar.menu-open .nav-toggle-bar:nth-child(3) { top: 19px; }

    .nav-menu {
        padding: 4px 20px 20px;
    }

    /* Hero */
    .hero {
        padding: 44px 0 48px;
    }

    .hero-bg-glow {
        width: 320px;
        height: 320px;
        top: -60px;
        right: 0;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.6px;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 15.5px;
        margin-bottom: 28px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-actions .btn {
        padding-left: 12px;
        padding-right: 12px;
        white-space: nowrap;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
        padding-top: 24px;
    }

    .stat-num {
        font-size: 24px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-card-header {
        margin-bottom: 16px;
    }

    .agency-pillar-list {
        gap: 10px;
        margin-bottom: 0;
    }

    .pillar-item {
        padding: 12px;
        gap: 12px;
    }

    .marquee-strip {
        padding: 12px 0;
    }

    /* About */
    .about-grid {
        margin-top: 28px;
        gap: 32px;
    }

    .about-panel {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about-panel .about-stat {
        padding: 18px 16px;
    }

    .about-panel .about-stat .num {
        font-size: 18px;
    }

    .about-panel .about-stat .lbl {
        font-size: 13px;
    }

    /* Services */
    .service-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -20px 24px;
        padding: 2px 20px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .service-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .svc-tab {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 13.5px;
    }

    .service-cards,
    .service-cards.cols-2 {
        gap: 16px;
    }

    .service-card {
        padding: 24px 22px;
    }

    .icon-box {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    /* Portfolio */
    .portfolio-grid {
        gap: 20px;
        margin-top: 24px;
    }

    .project-thumb {
        height: 180px;
    }

    .project-body {
        padding: 22px 20px;
    }

    .case-block,
    .testimonial-card,
    .sidebar-box {
        padding: 22px 20px;
    }

    .client-logo {
        min-width: 140px;
        height: 64px;
        padding: 10px 16px;
    }

    .client-set {
        gap: 12px;
        padding-right: 12px;
    }

    .clients-section {
        padding: 36px 0 28px;
    }

    .clients-strip {
        padding-top: 20px;
    }

    .portfolio-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .portfolio-filter-row::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Process */
    .process-grid {
        gap: 20px;
        margin-top: 28px;
    }

    .step-num {
        font-size: 28px;
        margin-bottom: 6px;
    }

    /* Blog & tools */
    .blog-grid,
    .tools-grid {
        gap: 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .blog-body {
        padding: 20px;
    }

    /* FAQ */
    .faq-item {
        padding: 0 16px;
    }

    .faq-item summary {
        padding: 16px 0;
        font-size: 15px;
    }

    /* Contact */
    .contact-grid {
        margin-top: 24px;
        gap: 28px;
    }

    .contact-info p {
        margin-bottom: 24px;
    }

    .contact-item {
        margin-bottom: 18px;
        gap: 14px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .contact-item .val {
        word-break: break-word;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .field {
        margin-bottom: 16px;
    }

    /* 16px inputs stop iPhone Safari zooming in when a field is tapped */
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }

    /* Quick-contact popup sits at the bottom like a sheet */
    .lead-popup {
        align-items: flex-end;
        padding: 0;
    }

    .lead-popup-card {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
        padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    }

    /* Inner pages */
    .page-header {
        padding: 32px 20px 24px;
    }

    .page-header h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .page-header > p,
    .page-header .section-sub {
        font-size: 15px;
    }

    .page-header .badge {
        margin-bottom: 8px;
    }

    .breadcrumb {
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .project-detail-layout,
    .blog-detail-layout {
        gap: 24px;
    }

    .product-feature {
        padding: 24px 20px;
        gap: 28px;
    }

    .product-feature h2 {
        font-size: 28px;
    }

    .product-actions .btn {
        flex: 1 1 auto;
    }

    /* Footer */
    footer {
        padding: 56px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        margin-bottom: 36px;
    }

    .footer-about,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        padding-top: 24px;
    }

    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
}

/* Small phones (iPhone SE / 360px Android) */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .page-header {
        padding: 28px 16px 22px;
    }

    .nav-menu {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .service-category-tabs,
    .portfolio-filter-row {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-menu-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 359px) {
    .navbar .nav-actions .nav-cta {
        display: none;
    }
}

body.nav-open .consent-banner {
    display: none;
}

/* Landing pages */
.text-center {
    text-align: center;
}

.tools-grid {
    display: grid;
}

.landing-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}

.landing-hero .badge {
    margin: 0 auto 16px;
}

.landing-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-white);
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.landing-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px;
}

.landing-body {
    padding: 64px 0;
}

.landing-body .container {
    max-width: 900px;
}

.landing-cta-card {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.landing-cta-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .landing-hero {
        padding: 56px 0 40px;
    }

    .landing-hero h1 {
        font-size: 30px;
    }

    .landing-hero p {
        font-size: 16px;
    }

    .landing-body {
        padding: 40px 0;
    }

    .landing-cta-card {
        margin-top: 40px;
        padding: 28px 20px;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-box h4 {
    margin-bottom: 8px;
}

/* ---------- Open source tools page ---------- */
.tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.tool-card {
    display: flex;
    flex-direction: column;
}

.tool-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tool-badge {
    margin-bottom: 0;
    padding: 4px 10px;
    font-size: 11px;
}

.tool-badge-stars {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
    border-color: rgba(234, 179, 8, 0.3);
}

.tool-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.tool-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.tool-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.tool-actions .btn {
    flex: 1 1 auto;
    white-space: nowrap;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13.5px;
}

.tool-cta {
    margin-top: 56px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.tool-cta h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tool-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-cta {
        padding: 24px 16px;
    }
}


/* ---------- Lead boosters (Nov 2026): promo bar, website offer hero, AsreOne band, WhatsApp button ---------- */
.promo-bar {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.14));
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-primary);
}
.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
    flex-wrap: wrap;
}
.promo-bar a {
    color: var(--accent-emerald);
    font-weight: 700;
    white-space: nowrap;
}
.promo-bar a:hover { text-decoration: underline; }

.offer-points {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: -12px 0 32px;
    padding: 0;
    max-width: 600px;
}
.offer-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--text-primary);
    line-height: 1.45;
}
.offer-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.hero .hero-also {
    font-size: 14px;
    margin: -28px 0 32px;
}
.hero-also a { color: var(--primary-blue); font-weight: 600; }
.hero-also a:hover { text-decoration: underline; }

.quote-card .quote-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}
.quote-card .quote-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.quote-card .field { margin-bottom: 14px; }
.quote-card .field input { padding: 11px 14px; }
.quote-card .quote-alt {
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
}
.quote-card .quote-alt a { color: var(--accent-emerald); font-weight: 700; }
#quote { scroll-margin-top: 96px; }

.asreone-band { padding: 0 0 56px; }
.asreone-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.asreone-band .badge { margin-bottom: 12px; }
.asreone-band h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}
.asreone-band p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 620px;
}
.asreone-band-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}
.wa-float:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.wa-float-label { padding-right: 6px; }
body.popup-open .wa-float { display: none; }

@media (max-width: 900px) {
    .asreone-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .promo-bar { font-size: 12.5px; }
    .promo-bar-inner { gap: 4px 10px; }
    .offer-points { grid-template-columns: 1fr; margin-top: -8px; }
    .hero .hero-also { margin-top: -16px; }
    .asreone-band { padding-bottom: 40px; }
    .asreone-band-inner { padding: 22px 20px; }
    .asreone-band h2 { font-size: 19px; }
    .asreone-band-actions { flex-direction: column; width: 100%; }
    .asreone-band-actions .btn { justify-content: center; }
    .wa-float { right: 14px; bottom: 14px; padding: 13px; }
    .wa-float-label { display: none; }
}

.hero-offer {
    grid-template-areas: "main card" "stats card";
    align-items: start;
    row-gap: 0;
}
.hero-offer .hero-main { grid-area: main; }
.hero-offer .quote-card { grid-area: card; align-self: center; }
.hero-offer .hero-stats { grid-area: stats; }
@media (max-width: 992px) {
    .hero-offer { grid-template-areas: "main" "card" "stats"; row-gap: 32px; }
}
@media (max-width: 640px) {
    /* On phones the bullet list says the same thing, so skip the paragraph and get the buttons higher */
    .hero-offer .hero-main > p:not(.hero-also) { display: none; }
    .hero-offer .offer-points { margin-top: 0; }
}

/* Blog article typography (content is HTML pasted in Admin → Blog) */
.blog-main-content { min-width: 0; }
.blog-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-wrap: break-word;
}
.blog-article-content > * + * { margin-top: 1.1em; }
.blog-article-content h2 {
    font-size: 28px;
    color: var(--text-white);
    margin-top: 2em;
    letter-spacing: -0.01em;
}
.blog-article-content h3 {
    font-size: 21px;
    color: var(--text-white);
    margin-top: 1.6em;
}
.blog-article-content h2 + *,
.blog-article-content h3 + * { margin-top: 0.6em; }
.blog-article-content ul,
.blog-article-content ol { padding-left: 1.4em; }
.blog-article-content li + li { margin-top: 0.45em; }
.blog-article-content li::marker { color: var(--primary-blue); }
.blog-article-content strong { color: var(--text-white); }
.blog-article-content a { text-decoration: underline; text-underline-offset: 3px; }
.blog-article-content blockquote,
.blog-article-content .key-takeaway {
    border-left: 4px solid var(--primary-blue);
    background: rgba(59, 130, 246, 0.08);
    padding: 18px 22px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.blog-article-content .key-takeaway > * + * { margin-top: 0.5em; }
.blog-article-content pre {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 13px;
    line-height: 1.5;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
}
.blog-article-content .table-wrap { overflow-x: auto; }
.blog-article-content .table-wrap table { min-width: 560px; }
.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}
.blog-article-content th,
.blog-article-content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.blog-article-content th {
    color: var(--text-white);
    background: var(--bg-card);
}
.blog-article-content img { border-radius: var(--radius-md); }
@media (max-width: 640px) {
    .blog-article-content { font-size: 16px; }
    .blog-article-content h2 { font-size: 23px; }
    .blog-article-content h3 { font-size: 19px; }
    .blog-article-content > table { display: block; overflow-x: auto; }
}

/* ---------- Newsletter signup (footer, blog, article sidebar) ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.newsletter-form {
    position: relative;
    width: 100%;
}

.newsletter-row {
    display: flex;
    gap: 10px;
}

.newsletter-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: inherit;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-row input:focus {
    border-color: var(--primary-blue);
}

.newsletter-row .btn {
    flex-shrink: 0;
}

.footer-newsletter {
    display: grid;
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    margin-bottom: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
}

.footer-newsletter h5 {
    margin-bottom: 6px;
}

.footer-newsletter p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.newsletter-inline {
    max-width: 560px;
    margin: 24px auto 0;
}

.newsletter-inline p {
    font-size: 14.5px;
    margin-bottom: 10px;
}

.newsletter-box {
    margin-top: 20px;
}

.newsletter-box .newsletter-row {
    flex-direction: column;
}

.newsletter-box .newsletter-row .btn {
    justify-content: center;
}

.newsletter-page {
    padding: 140px 0 80px;
}

.newsletter-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
}

.newsletter-card h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.newsletter-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Admin: subscribers */
.subs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 16px;
}

.subs-tabs a {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
}

.subs-tabs a.active {
    border-color: var(--primary-blue);
    color: var(--text-white);
}

.subs-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 0 24px 16px;
}

.subs-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.subs-inline input {
    padding: 9px 12px;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: inherit;
}

.subs-actions form {
    display: inline-block;
    margin: 2px;
}

@media (max-width: 900px) {
    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 20px;
    }
}

@media (max-width: 480px) {
    .newsletter-row {
        flex-direction: column;
    }

    .newsletter-row .btn {
        justify-content: center;
    }

    .newsletter-page {
        padding: 110px 0 60px;
    }

    .newsletter-card {
        padding: 28px 18px;
    }
}
