/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --site-max-width: 1400px;
    --site-pad: 16px;
    --site-pad-desktop: 60px;
    --accent: #b8ff00;
    --line: #e1e1e1;
    --text: #111111;
    --muted: #4f4f4f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.agency-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-pad);
}

.section-divider {
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: max(var(--site-pad), calc((100% - var(--site-max-width)) / 2));
    right: max(var(--site-pad), calc((100% - var(--site-max-width)) / 2));
    height: 1px;
    background-color: var(--line);
}

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
    padding: 30px 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
}

.header-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo::before,
.footer-logo::before {
    content: none;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
}

a.logo,
a.footer-logo {
    text-decoration: none;
}

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

.nav a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.nav a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background-color: #000;
    border-radius: 2px;
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 26px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
    }

    .nav.active {
        max-height: 380px;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 18px 40px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ============================================
   HERO
   ============================================ */
.agency-hero {
    padding: 62px 0 38px;
}

.agency-hero-kicker {
    font-size: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #444444;
    font-weight: 700;
    margin-bottom: 12px;
}

.agency-hero-title {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    max-width: 15ch;
    margin-bottom: 14px;
}

.agency-hero-subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 66ch;
}

/* ============================================
   TEXT SECTIONS
   ============================================ */
.agency-section {
    padding: 72px 0;
}

.agency-section-title {
    font-size: 25px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.agency-text-zone {
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background-color: #ffffff;
    padding: 44px;
    width: 100%;
    max-width: none;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agency-text-zone p {
    font-size: 20px;
    line-height: 1.8;
    color: #1d1d1d;
    max-width: 88ch;
}

.agency-text-zone p + p {
    margin-top: 16px;
}

.agency-zone-subtitle {
    font-size: 22px;
    margin-top: 26px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.agency-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.agency-list li {
    position: relative;
    padding-left: 20px;
    font-size: 20px;
    line-height: 1.7;
    color: #232323;
}

.agency-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* ============================================
   CTA
   ============================================ */
.agency-cta {
    padding: 68px 0 84px;
}

.agency-cta-card {
    border: 1px solid #dedede;
    border-radius: 18px;
    background-color: #ffffff;
    padding: 34px;
}

.agency-cta-card h2 {
    font-size: 34px;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 12px;
    max-width: 16ch;
}

.agency-cta-card p {
    font-size: 17px;
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 18px;
}

.agency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.9px;
    font-weight: 700;
}

.agency-btn-primary {
    background-color: var(--accent);
    color: #000;
}

.agency-btn-primary:hover {
    background-color: #a3e600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e6e6e6;
}

.footer-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-pad);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: center;
    text-align: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    height: 22px;
    width: auto;
    display: block;
}

.footer-subscribe {
    padding: 10px 34px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    color: #000;
    text-transform: lowercase;
}

.footer-subscribe:hover {
    background: #a3e600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-nav a {
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-contact a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.6;
}

.footer-copyright {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.4px;
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .section-divider::before {
        left: max(var(--site-pad-desktop), calc((100% - var(--site-max-width)) / 2));
        right: max(var(--site-pad-desktop), calc((100% - var(--site-max-width)) / 2));
    }

    .header {
        padding: 40px 0;
    }

    .header-container {
        padding: 0 var(--site-pad-desktop);
    }

    .logo img {
        height: 34px;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        flex-direction: row;
        gap: 60px;
        max-height: none;
        border: none;
        padding: 0;
    }

    .nav a {
        width: auto;
        padding: 0;
        border: none;
    }

    .agency-container,
    .footer-container {
        padding: 0 var(--site-pad-desktop);
    }

    .agency-hero {
        padding: 84px 0 46px;
    }

    .agency-hero-title {
        font-size: 64px;
        max-width: 14ch;
    }

    .agency-hero-subtitle {
        font-size: 18px;
        max-width: 62ch;
    }

    .agency-section {
        padding: 86px 0;
    }

    .agency-text-zone {
        padding: 56px;
        min-height: 380px;
    }

    .agency-text-zone p,
    .agency-list li {
        font-size: 22px;
    }

    .agency-zone-subtitle {
        font-size: 22px;
    }

    .agency-cta {
        padding: 82px 0 96px;
    }

    .agency-cta-card {
        padding: 38px;
    }

    .agency-cta-card h2 {
        font-size: 44px;
    }

    .agency-cta-card p {
        font-size: 18px;
    }

    .footer {
        padding: 80px 0;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
        gap: 18px 40px;
        text-align: left;
    }

    .footer-left {
        align-items: start;
    }

    .footer-logo {
        justify-self: start;
    }

    .footer-logo img {
        height: 30px;
    }

    .footer-subscribe {
        margin-top: 12px;
    }

    .footer-nav {
        justify-self: center;
        align-items: start;
        gap: 10px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-contact {
        justify-self: end;
        align-items: start;
        gap: 8px;
    }

    .footer-contact a {
        font-size: 14px;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 30px;
        font-size: 12px;
    }
}

/* ============================================
   SMALL MOBILE
   ============================================ */
@media (max-width: 640px) {
    .agency-hero {
        padding: 42px 0 24px;
    }

    .agency-hero-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .agency-hero-subtitle {
        font-size: 14px;
    }

    .agency-section {
        padding: 48px 0;
    }

    .agency-section-title {
        font-size: 20px;
    }

    .agency-text-zone {
        padding: 24px 20px;
        border-radius: 12px;
        min-height: auto;
    }

    .agency-text-zone p,
    .agency-list li {
        font-size: 16px;
    }

    .agency-zone-subtitle {
        font-size: 18px;
        margin-top: 18px;
    }

    .agency-list {
        gap: 8px;
    }

    .agency-list li {
        padding-left: 16px;
    }

    .agency-list li::before {
        width: 7px;
        height: 7px;
        top: 0.65em;
    }

    .agency-cta {
        padding: 56px 0 72px;
    }

    .agency-cta-card {
        padding: 22px 18px;
    }

    .agency-cta-card h2 {
        font-size: 24px;
    }

    .agency-cta-card p {
        font-size: 14px;
    }

    .agency-btn {
        padding: 10px 16px;
    }
}

/* Footer logo size (same as header logo) */
.footer-logo img {
    height: 30px;
}

@media (min-width: 1024px) {
    .footer-logo img {
        height: 34px;
    }
}

/* Remove nav outline */
@media (max-width: 1023px) {
    .nav.active {
        border-top: none;
        border-bottom: none;
    }

    .nav a {
        border-bottom: none;
    }
}

/* Mobile titles/subtitles left aligned */
@media (max-width: 1023px) {
    .agency-hero-title,
    .agency-hero-subtitle,
    .agency-section-title,
    .agency-zone-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }
}


/* Agency SEO text block */
.agency-seo-content {
    background-color: #ffffff;
    padding: 56px 0 72px;
}

.agency-seo-content .agency-text-zone {
    min-height: auto;
}

.agency-seo-content .agency-section-title {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
}

.agency-seo-content .agency-text-zone p {
    font-size: 15px;
    line-height: 1.6;
    color: #404040;
    width: min(100%, 88ch);
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
    .agency-seo-content {
        padding: 78px 0 92px;
    }

    .agency-seo-content .agency-text-zone p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Expandable SEO text */
.seo-expand {
    width: min(100%, 88ch);
    max-width: 100%;
    margin: 8px 0 0;
}

.seo-expand summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background-color: #b8ff00;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.seo-expand summary::-webkit-details-marker {
    display: none;
}

.seo-expand summary::marker {
    content: "";
    font-size: 0;
}

.seo-expand-label {
    line-height: 1;
}

.seo-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    flex: 0 0 auto;
}

.seo-expand-icon::before {
    content: "+";
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    width: 10px;
    text-align: center;
    font-weight: 700;
}

.seo-expand[open] .seo-expand-icon::before {
    content: "-";
}

.seo-expand[open] summary {
    margin-bottom: 14px;
}

.seo-expand .seo-expand-content {
    display: none;
}

.seo-expand[open] .seo-expand-content,
.seo-expand.is-open .seo-expand-content {
    display: block;
}


.seo-expand-content p {
    margin-bottom: 16px;
}

.seo-expand-content p:last-child {
    margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
    .seo-expand summary:hover {
        background-color: #a0e000;
    }
}

/* Scroll reveal (chill) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-on-scroll.reveal-delay-2 {
    transition-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.reveal-delay-1,
    .reveal-on-scroll.reveal-delay-2 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero reveal (chill) */
.hero-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.hero-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-reveal.hero-delay-1 {
    transition-delay: 100ms;
}

.hero-reveal.hero-delay-2 {
    transition-delay: 170ms;
}

@media (prefers-reduced-motion: reduce) {
    .hero-reveal,
    .hero-reveal.hero-delay-1,
    .hero-reveal.hero-delay-2 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
