nav.site-nav {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(246, 245, 241, 0.92);
    border-bottom: 1px solid var(--border, #d4d0c8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted, #6b7280);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink, #0a0c10);
}

.nav-cta {
    background: var(--ink, #0a0c10) !important;
    color: var(--paper, #f6f5f1) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    color: var(--paper, #f6f5f1) !important;
    text-decoration: none;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: 0;
    color: var(--ink, #0a0c10);
    font-size: 1.5rem;
}

/* ---------- FOOTER (dark) ---------- */
footer {
    background: #0a0c10;
    color: #9b9486;
}

.footer-main {
    padding: 3rem 2.75rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr 1.1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    text-align: left;
}

/* ---- Brand block (left) ---- */
.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-brand {
    display: block;
    text-decoration: none;
    margin: 0 0 1.25rem;
}

.footer-brand img {
    height: 120px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #9b9486;
    margin: 0 0 1.25rem;
    text-align: left;
}

.footer-meta-line {
    font-size: 0.82rem;
    color: #9b9486;
    margin: 0;
    text-align: left;
}

/* ---- Link columns ---- */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-col h4 {
    font-family: var(--sans, 'DM Sans', sans-serif);
    color: #f5f1e8;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1.1rem;
    letter-spacing: -0.005em;
    text-align: left;
}

.footer-col a {
    display: block;
    color: #9b9486;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    text-decoration: none;
    text-align: left;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--accent, #1a6bff);
    text-decoration: underline;
}

/* Stacked single-heading column (Agencies / Pricing / Blog) */
.footer-col-stack h4 {
    margin: 0 0 1.4rem;
}
.footer-col-stack h4:last-child {
    margin-bottom: 0;
}
.footer-col-stack h4 a {
    display: inline-block;
    color: #f5f1e8;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    transition: color 0.15s;
}
.footer-col-stack h4 a:hover {
    color: var(--accent, #1a6bff);
    text-decoration: none;
}

/* ---- CTA block (right) ---- */
.footer-cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    text-align: left;
}

.footer-cta {
    display: inline-block;
    background: var(--accent, #1a6bff);
    color: #ffffff !important;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.footer-cta:hover {
    background: #1557d4;
    color: #ffffff !important;
    text-decoration: none;
}

.footer-email {
    color: #c9c5b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-email:hover {
    color: var(--accent, #1a6bff);
    text-decoration: underline;
}

.footer-cta-link {
    color: #9b9486;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-cta-link:hover {
    color: var(--accent, #1a6bff);
    text-decoration: underline;
}

.floating-buttons-area {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 999;
}

.back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border, #d4d0c8);
    background: var(--paper, #f6f5f1);
    color: var(--ink, #0a0c10);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--ink, #0a0c10);
    color: var(--paper, #f6f5f1);
    border-color: var(--ink, #0a0c10);
}

.floating-cta {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    background: var(--ink, #0a0c10);
    color: var(--paper, #f6f5f1);
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
}

.floating-cta:hover {
    background: #1557d4;
}

/* ---------- MEGA MENU ---------- */
.nav-trigger-wrap {
    position: relative;
}

.nav-trigger {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted, #6b7280);
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    color: var(--ink, #0a0c10);
}

.nav-trigger .chev {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-trigger[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: var(--border, #d4d0c8);
    display: inline-block;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    margin-top: 1.4rem;
    width: 1080px;
    max-width: calc(100vw - 3rem);
    background: var(--paper, #f6f5f1);
    border: 1px solid var(--border, #d4d0c8);
    border-radius: 16px;
    box-shadow: 0 18px 50px -12px rgba(10, 12, 16, 0.18), 0 4px 12px -4px rgba(10, 12, 16, 0.08);
    padding: 36px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.mega-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--paper, #f6f5f1);
    border-top: 1px solid var(--border, #d4d0c8);
    border-left: 1px solid var(--border, #d4d0c8);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mega-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 35px 41px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    min-height: 230px;
    transition: background 0.15s, border-color 0.15s;
}

.mega-card:hover {
    background: var(--cream, #edeae3);
    border-color: var(--border-soft, #e3dfd6);
}

.mega-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft, #e8f0ff);
    color: var(--accent, #1a6bff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.mega-card .title {
    font-family: var(--serif, 'Fraunces', Georgia, serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink, #0a0c10);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.mega-card .title .arrow {
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s, transform 0.15s;
    color: var(--accent, #1a6bff);
}

.mega-card:hover .title .arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega-card .desc {
    font-size: 14px;
    color: var(--muted, #6b7280);
    line-height: 1.6;
    padding-right: 15px;
}

.mega-card .meta {
    font-size: 12px;
    color: var(--accent, #1a6bff);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
    padding-top: 24px;
}

.mega-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft, #e3dfd6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
}

.mega-footer a {
    color: var(--accent, #1a6bff);
    text-decoration: none;
    font-weight: 600;
}

.mega-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .mega-grid { grid-template-columns: 1fr; }
    .mega-panel { width: calc(100vw - 2rem); }
}

@media (max-width: 768px) {
    nav.site-nav {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border, #d4d0c8);
        background: transparent;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
    }

    /* Mega menu → simple text dropdown on mobile */
    .nav-trigger {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    .mega-panel,
    .mega-panel.open {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        border-radius: 0;
        padding: 0 0 0 1rem;
    }
    .mega-panel { display: none; }
    .mega-panel.open { display: block; }
    .mega-panel::before { display: none; }
    .nav-divider-wrap { display: none; }

    /* Strip cards down to plain links */
    .mega-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .mega-card {
        padding: 0.4rem 0;
        min-height: 0;
        border: 0;
        border-radius: 0;
        gap: 0;
        background: transparent;
    }
    .mega-card:hover {
        background: transparent;
        border: 0;
    }
    .mega-card .icon,
    .mega-card .desc,
    .mega-card .meta,
    .mega-card .title .arrow,
    .mega-footer {
        display: none;
    }
    .mega-card .title {
        font-family: inherit;
        font-size: 1rem;
        font-weight: 500;
        color: var(--muted, #6b7280);
    }
    .mega-card:hover .title {
        color: var(--ink, #0a0c10);
    }

    .footer-main {
        padding: 3rem 1.5rem 2.5rem;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    .footer-brand-block,
    .footer-cta-block {
        grid-column: 1 / -1;
    }
    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }
}

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