/* ==========================================
   SEO PAGE — HERO
========================================== */

.seo-hero{

    position:relative;

    padding:140px 0 130px;

    background:
        linear-gradient(
            rgba(8,21,45,.5),
            rgba(8,21,45,.72)
        ),
        url("../assets/images/hero/seo-desert-building.webp");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    /* Extends the hero background up behind the floating pill header
       instead of leaving flat body background showing around it — see
       --header-h in variables.css. padding-top absorbs the same amount
       back so the actual hero content doesn't shift. */
    margin-top:calc(-1 * var(--header-h));

    padding-top:calc(140px + var(--header-h));

}
.seo-hero__content{

    max-width:760px;

    margin-inline:auto;

    text-align:center;

}
.seo-hero__content h1{

    font-family:"Times New Roman", serif;

    font-size:3.4rem;

    line-height:1.25;

    color:var(--color-white);

    letter-spacing:-1px;

    margin-bottom:28px;

    text-shadow:0 4px 24px rgba(0,0,0,.5);

}
.seo-hero__content p{

    font-size:1.35rem;

    line-height:1.8;

    color:var(--color-text);

    text-shadow:0 2px 12px rgba(0,0,0,.5);

}

/* ==========================================
   BRAND SEARCH vs INTENT SEARCH
========================================== */

.seo-intent{

    background:var(--color-background);

    padding:var(--space-3xl) 0;

}
.seo-intent__heading{

    max-width:920px;

    margin:0 auto var(--space-2xl);

    text-align:center;

}
.seo-intent__line{

    display:inline-block;

}
.seo-intent__heading h2{

    font-family:"Times New Roman", serif;

    font-size:2.6rem;

    line-height:1.3;

    color:var(--color-white);

    letter-spacing:-.5px;

    margin-bottom:24px;

}
.seo-intent__heading p{

    font-size:1.15rem;

    line-height:1.75;

    color:var(--color-text);
}
.seo-intent__grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:36px;

    max-width:1040px;

    margin-inline:auto;

}
.intent-card{

    background:var(--color-card);

    border:1px solid rgba(255,255,255,.08);

    border-radius:var(--radius-lg);

    padding:48px 36px;

    text-align:center;

}
.intent-card--winning{

    border-color:var(--color-gold);

    box-shadow:0 0 0 1px rgba(216,177,75,.15), var(--shadow-card);
}
.intent-card__icon{

    width:76px;

    height:76px;

    margin:0 auto 24px;

    border-radius:var(--radius-md);

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.06);

    color:var(--color-text);
}
.intent-card--winning .intent-card__icon{

    background:var(--color-gold);

    color:var(--color-background);
}
.intent-card__icon svg{

    width:34px;

    height:34px;

}
.intent-card h3{

    font-family:var(--font-heading);

    font-size:1.6rem;

    color:var(--color-white);

    margin-bottom:10px;

}
.intent-card p{

    font-size:1.05rem;

    color:var(--color-text);

    margin-bottom:28px;

}
.intent-card__search{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    padding:18px 20px;

    border-radius:var(--radius-sm);

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    font-size:1rem;

    color:var(--color-text);

    font-style:italic;

}
.intent-card__search--highlight{

    background:rgba(216,177,75,.12);

    border-color:rgba(216,177,75,.4);

    color:var(--color-white);

    font-weight:600;

}
.intent-card__search svg{

    flex-shrink:0;

    width:16px;

    height:16px;

    opacity:.7;

}

/* Light-theme overrides for the intent section */
.section-light .seo-intent__heading h2{

    color:#0B1D3A;

}
.section-light .seo-intent__heading p{

    color:#5B6472;

}
.section-light .intent-card{

    background:#F1F2F4;

    border-color:rgba(11,29,58,.1);

}
.section-light .intent-card--winning{

    border-color:var(--color-gold);

    box-shadow:0 0 0 1px rgba(169,121,31,.15), 0 6px 18px rgba(11,29,58,.08);
}
.section-light .intent-card__icon{

    background:#ffffff;

    color:#5B6472;

    box-shadow:0 2px 8px rgba(11,29,58,.08);
}
.section-light .intent-card--winning .intent-card__icon{

    background:var(--color-gold);

    color:#ffffff;

}
.section-light .intent-card h3{

    color:#0B1D3A;

}
.section-light .intent-card p{

    color:#5B6472;

}
.section-light .intent-card__search{

    background:#ffffff;

    border-color:rgba(11,29,58,.12);

    color:#5B6472;

}
.section-light .intent-card__search--highlight{

    background:rgba(169,121,31,.1);

    border-color:rgba(169,121,31,.4);

    color:#0B1D3A;

}

/* ==========================================
   VISIBILITY GAP
========================================== */

.seo-gap{

    background:var(--color-background-alt);

    padding:var(--space-3xl) 0;

}
.seo-gap__grid{

    display:grid;

    grid-template-columns:.85fr 1.15fr;

    gap:60px;

    align-items:center;

}
.seo-gap__image img{

    width:100%;

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-card);

    display:block;

}
.seo-gap__badge{

    display:inline-block;

    background:rgba(255,255,255,.08);

    color:var(--color-text);

    font-size:.88rem;

    font-weight:700;

    padding:9px 18px;

    border-radius:var(--radius-pill);

    margin-bottom:20px;

}
.seo-gap__content h2{

    font-family:"Times New Roman", serif;

    font-size:2.7rem;

    line-height:1.3;

    color:var(--color-white);

    letter-spacing:-.5px;

    margin-bottom:28px;

}
.seo-gap__quote{

    border-left:3px solid var(--color-gold);

    padding-left:20px;

    margin:0 0 24px;

    font-size:1.25rem;

    line-height:1.75;

    color:var(--color-white);

    font-style:italic;

}
.seo-gap__content p{

    font-size:1.18rem;

    line-height:1.8;

    color:var(--color-text);
}

/* ==========================================
   CUSTOMER JOURNEY GRID
========================================== */

.seo-journey{

    padding:var(--space-3xl) 0;

}
.seo-journey__heading{

    text-align:center;

    margin-bottom:var(--space-2xl);

}
.seo-journey__heading h2{

    font-family:"Times New Roman", serif;

    font-size:2.4rem;

    color:#0B1D3A;

}
.seo-journey__grid{

    position:relative;

    display:flex;

    align-items:center;

    gap:24px;

    max-width:1200px;

    margin-inline:auto;

}
.seo-journey__grid::before{

    content:"";

    position:absolute;

    top:61px;

    left:40px;

    right:40px;

    height:2px;

    background:rgba(11,29,58,.15);

    z-index:0;

}
.seo-journey__grid--8{

    display:grid;

    grid-template-columns:repeat(4, 1fr);

    gap:24px;

}
.seo-journey__grid--8::before{

    content:none;

}
.journey-card{

    position:relative;

    z-index:1;

    flex:1;

    min-height:280px;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    background:#ffffff;

    border:1px solid rgba(11,29,58,.12);

    transition:border-color .3s ease, box-shadow .3s ease;

    border-radius:var(--radius-lg);

    padding:32px 24px;

    text-align:center;
}
.journey-card--highlight{

    border-color:var(--color-gold);

    box-shadow:0 12px 30px rgba(11,29,58,.1);

}
.seo-journey__grid:not(.seo-journey__grid--8) .journey-card--highlight{

    transform:translateY(-16px);

}
.journey-card__icon{

    width:56px;

    height:56px;

    margin:0 auto 20px;

    border-radius:var(--radius-md);

    display:flex;

    align-items:center;

    justify-content:center;

    background:#F1F2F4;

    color:#0B1D3A;

    transition:background .3s ease, color .3s ease;
}
.journey-card--highlight .journey-card__icon{

    background:var(--color-gold);

    color:#ffffff;

}
.journey-card:hover{

    border-color:var(--color-gold);

    box-shadow:0 12px 30px rgba(11,29,58,.1);

}
.journey-card:hover .journey-card__icon{

    background:var(--color-gold);

    color:#ffffff;

}
.journey-card__icon svg{

    width:26px;

    height:26px;

}
.journey-card h3{

    font-family:var(--font-heading);

    font-size:1.25rem;

    color:#0B1D3A;

    margin-bottom:12px;

}
.journey-card p{

    font-size:.95rem;

    line-height:1.65;

    color:#5B6472;
}

/* ==========================================
   ALWAYS BE VISIBLE (closing principle)
========================================== */

.seo-principle{

    background:var(--color-background);

    padding:120px 0;

}
.seo-principle__content{

    max-width:820px;

    margin-inline:auto;

    text-align:center;

}
.seo-principle__content h2{

    font-family:"Times New Roman", serif;

    font-size:2.8rem;

    line-height:1.3;

    color:var(--color-white);

    letter-spacing:-.5px;

    margin-bottom:32px;

}
.seo-principle__intro{

    font-size:1.2rem;

    line-height:1.75;

    color:var(--color-text);

    font-style:italic;

    max-width:680px;

    margin:0 auto 48px;

}
.seo-principle__list{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px 48px;

    max-width:640px;

    margin:0 auto 48px;

    text-align:left;

}
.seo-principle__list li{

    display:flex;

    align-items:flex-start;

    gap:14px;

}
.seo-principle__check{

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    width:26px;

    height:26px;

    border-radius:50%;

    border:2px solid var(--color-gold);

    color:var(--color-gold);

    font-size:.8rem;

    font-weight:700;

    margin-top:1px;

}
.seo-principle__list span:last-child{

    font-size:1.05rem;

    color:var(--color-white);

}
.seo-principle__label{

    display:block;

    color:var(--color-gold);

    font-size:.85rem;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:1.5px;

    margin-bottom:28px;

}
.seo-principle__quote{

    border:1px solid var(--color-gold);

    background:rgba(216,177,75,.08);

    border-radius:var(--radius-lg);

    padding:40px 48px;

    margin:0 0 40px;

    font-family:var(--font-heading);

    font-style:italic;

    font-weight:700;

    font-size:1.7rem;

    line-height:1.5;

    color:var(--color-white);
}
.seo-principle__closing{

    font-size:1.3rem;

    font-weight:700;

    color:var(--color-white);

    margin-bottom:40px;
}
.seo-principle__cta{

    text-transform:uppercase;

    letter-spacing:.5px;

    font-size:.9rem;

}
/* ==========================================
   RESPONSIVE
   This page had no breakpoints at all — every
   grid/row below stayed at full column count and
   the intent-search nowrap line stayed on one
   line, all the way down to phone width, forcing
   horizontal scroll.
========================================== */
@media (max-width:900px){

    /* Fixed desktop padding-top (140px) leaves a big empty band
       above the heading on a narrow phone screen — pull it up. */
    .seo-hero{

        padding:90px 0 80px;

        padding-top:calc(90px + var(--header-h));

    }

    .seo-intent__grid,
    .seo-gap__grid{

        grid-template-columns:1fr;

    }

    .seo-journey__grid{

        flex-direction:column;

    }

    .seo-journey__grid::before{

        display:none;

    }

    .seo-journey__grid--8{

        grid-template-columns:1fr 1fr;

    }

}
@media (max-width:560px){

    /* Six lines of heading plus the paragraph is taller than a lot
       of phone viewports at the 900px padding already — trim it
       further so the heading sits closer to the header. */
    .seo-hero{

        padding:56px 0 60px;

        padding-top:calc(56px + var(--header-h));

    }

    .seo-principle__list{

        grid-template-columns:1fr;

    }

    .seo-journey__grid--8{

        grid-template-columns:1fr;

    }

}

/* ==========================================
   SEO OVERVIEW — pillar list + animated SERP mock
   Left column: intro + the four supporting claims as an
   icon list (fades up on scroll via .is-visible, toggled
   in js/app.js). Right column: a decorative mock search
   results card — 8 example searches (one per industry this
   site serves) share a single 48s/8-slot clock, so the
   search-bar query, the highlighted result's business name/
   url/snippet, and the "This Is You" #1 result all change
   together rather than a static result sitting under a
   shifting query. All pure-CSS keyframe loops (paused under
   prefers-reduced-motion).
========================================== */

.seo-overview{

    background:var(--color-background);

    padding:var(--space-3xl) 0;

    overflow:hidden;

}
.seo-overview__grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:64px;

    align-items:center;

}
.seo-overview__content h2{

    font-family:"Times New Roman", serif;

    font-size:2.6rem;

    line-height:1.3;

    color:var(--color-white);

    letter-spacing:-.5px;

    margin-bottom:20px;

}
.seo-overview__content > p{

    font-size:1.1rem;

    line-height:1.8;

    color:var(--color-text);

    margin-bottom:36px;

}
.seo-overview__list{

    display:flex;

    flex-direction:column;

    gap:26px;

}
.seo-overview__item{

    display:flex;

    gap:18px;

    align-items:flex-start;

    opacity:0;

    transform:translateY(16px);

    transition:opacity .6s ease, transform .6s ease;

}
.seo-overview__item:nth-child(2){ transition-delay:.1s; }
.seo-overview__item:nth-child(3){ transition-delay:.2s; }
.seo-overview__item:nth-child(4){ transition-delay:.3s; }

.seo-overview__item.is-visible{

    opacity:1;

    transform:translateY(0);

}
.seo-overview__item-icon{

    flex-shrink:0;

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:var(--radius-pill);

    background:rgba(216,177,75,.1);

}
.seo-overview__item-icon svg{

    width:20px;

    height:20px;

    color:var(--color-gold);

}
.seo-overview__item-text h3{

    font-family:var(--font-heading);

    font-size:1.15rem;

    color:var(--color-white);

    margin-bottom:6px;

}
.seo-overview__item-text p{

    font-size:.96rem;

    line-height:1.65;

    color:var(--color-text);

}
.seo-overview__closer{

    max-width:760px;

    margin:var(--space-2xl) auto 0;

    padding-top:var(--space-lg);

    border-top:1px solid rgba(255,255,255,.1);

    text-align:center;

    font-family:var(--font-heading);

    font-style:italic;

    font-size:1.3rem;

    line-height:1.6;

    color:var(--color-gold);

}

/* ---- animated SERP mock (visual column) ---- */

.serp-mock{

    background:var(--color-card);

    border:1px solid rgba(255,255,255,.08);

    border-radius:var(--radius-lg);

    padding:28px;

    box-shadow:var(--shadow-card);

    animation:serp-float 6s ease-in-out infinite;

}
.serp-mock__bar{

    position:relative;

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 18px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.1);

    border-radius:var(--radius-pill);

    margin-bottom:24px;

}
.serp-mock__icon{

    flex-shrink:0;

    width:18px;

    height:18px;

    color:var(--color-text);

    opacity:.7;

}
.serp-mock__query-track{

    position:relative;

    flex:1;

    height:1.3em;

    overflow:hidden;

}
.serp-mock__query{

    position:absolute;

    left:0;

    top:0;

    white-space:nowrap;

    color:var(--color-white);

    font-size:1rem;

    opacity:0;

    animation:serp-query-cycle 48s ease-in-out infinite;

}
.serp-mock__cursor{

    flex-shrink:0;

    width:2px;

    height:16px;

    background:var(--color-gold);

    animation:serp-cursor-blink 1s step-end infinite;

}
.serp-mock__results{

    display:flex;

    flex-direction:column;

    gap:16px;

}
.serp-mock__result--you{

    position:relative;

    padding:16px 18px;

    border-radius:var(--radius-md);

    background:rgba(216,177,75,.1);

    border:1px solid rgba(216,177,75,.4);

    animation:serp-you-glow 2.4s ease-in-out infinite;

}
.serp-mock__top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:10px;

}
.serp-mock__rank{

    display:inline-block;

    padding:3px 10px;

    border-radius:var(--radius-pill);

    background:var(--color-gold);

    color:var(--color-background);

    font-size:.75rem;

    font-weight:700;

    letter-spacing:.02em;

    animation:serp-rank-pulse 2.4s ease-in-out infinite;

}
.serp-mock__you-tag{

    display:inline-block;

    padding:3px 10px;

    border-radius:var(--radius-pill);

    border:1px solid rgba(216,177,75,.5);

    color:var(--color-gold);

    font-size:.68rem;

    font-weight:700;

    letter-spacing:.06em;

    text-transform:uppercase;

}
.serp-mock__title-track{

    position:relative;

    height:1.3rem;

    overflow:hidden;

    margin-bottom:2px;

}
.serp-mock__title{

    position:absolute;

    left:0;

    top:0;

    white-space:nowrap;

    font-family:var(--font-heading);

    font-size:1.05rem;

    color:var(--color-white);

    opacity:0;

    animation:serp-query-cycle 48s ease-in-out infinite;

}
.serp-mock__url-track{

    position:relative;

    height:1.1rem;

    overflow:hidden;

    margin-bottom:6px;

}
.serp-mock__url{

    position:absolute;

    left:0;

    top:0;

    white-space:nowrap;

    font-size:.85rem;

    color:var(--color-gold);

    opacity:0;

    animation:serp-query-cycle 48s ease-in-out infinite;

}
.serp-mock__snippet-track{

    position:relative;

    height:2.5em;

    overflow:hidden;

}
.serp-mock__snippet{

    position:absolute;

    left:0;

    top:0;

    font-size:.82rem;

    line-height:1.4;

    color:var(--color-text);

    opacity:0;

    animation:serp-query-cycle 48s ease-in-out infinite;

}

/* The search bar text, the highlighted result's name/url/snippet, and
   the rank chip all share one 48s clock split into 8 x 6s slots — an
   nth-child delay of index * 6s per synced track — so all four move
   together instead of the query text outrunning a static result. */
.serp-mock__query:nth-child(1),
.serp-mock__title:nth-child(1), .serp-mock__url:nth-child(1), .serp-mock__snippet:nth-child(1){ animation-delay:0s; }
.serp-mock__query:nth-child(2),
.serp-mock__title:nth-child(2), .serp-mock__url:nth-child(2), .serp-mock__snippet:nth-child(2){ animation-delay:6s; }
.serp-mock__query:nth-child(3),
.serp-mock__title:nth-child(3), .serp-mock__url:nth-child(3), .serp-mock__snippet:nth-child(3){ animation-delay:12s; }
.serp-mock__query:nth-child(4),
.serp-mock__title:nth-child(4), .serp-mock__url:nth-child(4), .serp-mock__snippet:nth-child(4){ animation-delay:18s; }
.serp-mock__query:nth-child(5),
.serp-mock__title:nth-child(5), .serp-mock__url:nth-child(5), .serp-mock__snippet:nth-child(5){ animation-delay:24s; }
.serp-mock__query:nth-child(6),
.serp-mock__title:nth-child(6), .serp-mock__url:nth-child(6), .serp-mock__snippet:nth-child(6){ animation-delay:30s; }
.serp-mock__query:nth-child(7),
.serp-mock__title:nth-child(7), .serp-mock__url:nth-child(7), .serp-mock__snippet:nth-child(7){ animation-delay:36s; }
.serp-mock__query:nth-child(8),
.serp-mock__title:nth-child(8), .serp-mock__url:nth-child(8), .serp-mock__snippet:nth-child(8){ animation-delay:42s; }

.serp-mock__result--ghost{

    padding:2px 4px;

}
.serp-mock__line{

    display:block;

    border-radius:var(--radius-sm);

    background:rgba(255,255,255,.08);

}
.serp-mock__line--title{

    width:62%;

    height:12px;

    margin-bottom:8px;

}
.serp-mock__line--url{

    width:36%;

    height:9px;

    margin-bottom:8px;

}
.serp-mock__line--snippet{

    width:88%;

    height:8px;

}

@keyframes serp-float{

    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-6px); }

}
/* One item's "on" window is the first 1/8th (12.5%) of the shared
   48s timeline; the per-item animation-delay above shifts that
   window into its own 6s slot. Quick fade in/out, long hold between. */
@keyframes serp-query-cycle{

    0%{ opacity:0; transform:translateY(4px); }
    2%{ opacity:1; transform:translateY(0); }
    10%{ opacity:1; transform:translateY(0); }
    12.5%{ opacity:0; transform:translateY(-4px); }
    100%{ opacity:0; }

}
@keyframes serp-cursor-blink{

    0%, 49%{ opacity:1; }
    50%, 100%{ opacity:0; }

}
@keyframes serp-rank-pulse{

    0%, 100%{ transform:scale(1); }
    50%{ transform:scale(1.08); }

}
@keyframes serp-you-glow{

    0%, 100%{ box-shadow:0 0 0 rgba(216,177,75,0); }
    50%{ box-shadow:0 0 24px rgba(216,177,75,.25); }

}

@media (max-width:900px){

    .seo-overview__grid{

        grid-template-columns:1fr;

        gap:44px;

    }

    .seo-overview__visual{

        max-width:460px;

        margin-inline:auto;

    }

}

@media (prefers-reduced-motion: reduce){

    .seo-overview__item{

        opacity:1;

        transform:none;

        transition:none;

    }
    .serp-mock,
    .serp-mock__result--you,
    .serp-mock__query,
    .serp-mock__title,
    .serp-mock__url,
    .serp-mock__snippet{

        animation:none;

    }
    .serp-mock__query:not(:first-child),
    .serp-mock__title:not(:first-child),
    .serp-mock__url:not(:first-child),
    .serp-mock__snippet:not(:first-child){

        display:none;

    }
    .serp-mock__query:first-child,
    .serp-mock__title:first-child,
    .serp-mock__url:first-child,
    .serp-mock__snippet:first-child{

        opacity:1;

    }
    .serp-mock__cursor,
    .serp-mock__rank{

        animation:none;

    }

}
