/* ==========================================================================
   FRONT RANGE FIRE DEFENSE — Styles
   ========================================================================== */

/* --- Variables --- */
:root {
    --navy: #1B365D;
    --navy-dark: #122440;
    --navy-light: #2A4A7A;
    --amber: #D4842A;
    --amber-light: #E6A04D;
    --amber-dark: #B56E1F;
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --warm-white: #FAF8F5;
    --warm-gray: #F0EDE8;
    --mid-gray: #B8B2A8;
    --white: #FFFFFF;

    --font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

    --container-max: 1200px;
    --section-pad: 100px;
    --section-pad-mobile: 60px;

    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(27, 54, 93, 0.08);
    --shadow-md: 0 4px 16px rgba(27, 54, 93, 0.10);
    --shadow-lg: 0 8px 32px rgba(27, 54, 93, 0.12);

    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--amber);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    max-width: 700px;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
}

.btn--primary {
    background: var(--amber);
    color: var(--white);
    border-color: var(--amber);
}

.btn--primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 132, 42, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(27, 54, 93, 0.08);
    padding: 10px 0;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav__logo-img {
    height: 50px;
    width: auto;
    transition: height var(--transition);
}

.nav--scrolled .nav__logo-img {
    height: 42px;
}

.nav__links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav--scrolled .nav__links a {
    color: var(--charcoal);
}

.nav__links a:hover {
    color: var(--amber);
}

.nav__cta {
    background: var(--amber) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    margin-left: 8px;
}

.nav__cta:hover {
    background: var(--amber-dark) !important;
    color: var(--white) !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
}

.nav__toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav--scrolled .nav__toggle span {
    background: var(--charcoal);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
    z-index: 0;
}

/* Subtle grain texture */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

/* Mountain ridge silhouette via CSS */
.hero__ridge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
    overflow: hidden;
}

.hero__ridge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    right: -5%;
    height: 200px;
    background: var(--warm-white);
    clip-path: polygon(
        0% 100%, 0% 85%, 3% 70%, 6% 62%, 10% 55%, 14% 48%, 16% 42%,
        18% 38%, 20% 40%, 22% 45%, 24% 42%, 27% 35%, 30% 30%, 33% 28%,
        35% 32%, 37% 36%, 39% 32%, 41% 25%, 43% 20%, 45% 18%, 47% 22%,
        49% 28%, 51% 25%, 53% 20%, 55% 16%, 57% 14%, 58% 12%, 60% 16%,
        62% 22%, 64% 28%, 66% 32%, 68% 30%, 70% 25%, 72% 22%, 74% 28%,
        76% 35%, 78% 38%, 80% 42%, 82% 48%, 84% 52%, 87% 58%, 90% 62%,
        93% 68%, 96% 75%, 100% 82%, 100% 100%
    );
}

.hero__ridge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    right: -5%;
    height: 160px;
    background: var(--warm-white);
    opacity: 0.4;
    clip-path: polygon(
        0% 100%, 0% 80%, 5% 72%, 10% 65%, 15% 58%, 20% 52%, 25% 48%,
        30% 45%, 35% 50%, 38% 46%, 42% 40%, 45% 35%, 48% 32%, 52% 35%,
        55% 40%, 58% 38%, 62% 32%, 65% 28%, 68% 32%, 72% 38%, 75% 42%,
        78% 48%, 82% 55%, 85% 60%, 88% 65%, 92% 72%, 96% 78%, 100% 85%,
        100% 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 186px 24px 160px;
}

.hero__text {
    max-width: 720px;
}

.hero__headline {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero__sub {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--amber-light);
}

/* --- Problem Section --- */
.problem {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.stat-card {
    background: var(--white);
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card__number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--amber);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stat-card__label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    line-height: 1.5;
}

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

.problem__card {
    background: var(--white);
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.problem__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--amber));
}

.problem__card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.problem__card p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.7;
}

/* --- Services Section --- */
.services {
    padding: var(--section-pad) 0;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,54,93,0.1), transparent);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--warm-white);
    border: 1px solid rgba(27,54,93,0.06);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(212,132,42,0.2);
    transform: translateX(4px);
}

.service-card__number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--amber);
    opacity: 0.3;
    line-height: 1;
    min-width: 60px;
    padding-top: 4px;
}

.service-card:hover .service-card__number {
    opacity: 0.7;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-card__price {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--amber-dark);
    background: rgba(212,132,42,0.08);
    padding: 6px 16px;
    border-radius: 30px;
}

/* --- Process Timeline Section --- */
.process {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,54,93,0.1), transparent);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.process-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    position: relative;
    padding: 0 8px;
}

.process-step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    transition: all var(--transition);
}

.process-step:hover .process-step__icon {
    background: var(--amber);
    transform: scale(1.08);
}

.process-step__icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.process-step__title {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.process-step__desc {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.process-connector {
    width: 40px;
    min-width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--amber));
    opacity: 0.3;
    margin-top: 32px;
    flex-shrink: 1;
}

/* --- Why Us Section --- */
.why-us {
    padding: var(--section-pad) 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.why-us .section-label {
    color: var(--amber-light);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-intro {
    color: rgba(255,255,255,0.7);
}

.differentiators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.diff-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.diff-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(212,132,42,0.3);
    transform: translateY(-3px);
}

.diff-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.diff-card__icon svg {
    width: 36px;
    height: 36px;
    color: var(--amber-light);
}

.diff-card__title {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.diff-card__text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* Last two cards in a 2-col centered row */
.differentiators .diff-card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
    max-width: 100%;
}

.differentiators .diff-card:nth-child(5) {
    grid-column: 2 / 3;
    justify-self: start;
    max-width: 100%;
}

/* --- Service Area --- */
.service-area {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.area-card {
    background: var(--white);
    border: 1px solid rgba(27,54,93,0.08);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}

.area-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.area-card__pin {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    color: var(--amber);
}

.area-card__pin svg {
    width: 100%;
    height: 100%;
}

.area-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.area-card p {
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.area-note {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    text-align: center;
}

.area-note a {
    color: var(--amber);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212,132,42,0.3);
    text-underline-offset: 3px;
}

.area-note a:hover {
    text-decoration-color: var(--amber);
}

/* --- About --- */
.about {
    padding: var(--section-pad) 0;
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,54,93,0.1), transparent);
}

.about__inner {
    max-width: 780px;
    margin: 0 auto;
}

.about__text p {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__text em {
    color: var(--charcoal);
    font-style: italic;
}

.about__credentials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.credential-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    background: rgba(27,54,93,0.06);
    border: 1px solid rgba(27,54,93,0.12);
    padding: 8px 18px;
    border-radius: 30px;
}

/* --- FAQ Section --- */
.faq {
    padding: var(--section-pad) 0;
    background: var(--warm-white);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,54,93,0.1), transparent);
}

.faq-accordion {
    max-width: 780px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(27,54,93,0.08);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    line-height: 1.4;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--amber-dark);
}

.faq-item__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--amber);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-item__answer {
    max-height: 400px;
}

.faq-item__answer p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.8;
}

/* --- Contact --- */
.contact {
    padding: var(--section-pad) 0;
    background: var(--warm-gray);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__info .section-title {
    margin-bottom: 16px;
}

.contact__info > p {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__detail svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--amber);
    margin-top: 2px;
}

.contact__detail strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}

.contact__detail a {
    color: var(--charcoal-light);
}

.contact__detail a:hover {
    color: var(--amber);
}

/* --- Contact Tabs --- */
.contact-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    background: rgba(27,54,93,0.06);
    padding: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.contact-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--charcoal-light);
    border-radius: var(--radius) var(--radius) 0 0;
    transition: all var(--transition);
}

.contact-tab:hover {
    color: var(--navy);
}

.contact-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.contact-tab svg {
    flex-shrink: 0;
}

.contact-tab-content {
    display: none;
}

.contact-tab-content.active {
    display: block;
}

/* --- Contact Form --- */
.contact__form-wrap {
    position: relative;
}

.contact-form {
    background: var(--white);
    border: 1px solid rgba(27,54,93,0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border-top: none;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid rgba(27,54,93,0.15);
    border-radius: var(--radius);
    background: var(--warm-white);
    color: var(--charcoal);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(212,132,42,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--mid-gray);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Enhanced Form Success --- */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 32px;
    background: var(--white);
    border: 1px solid rgba(27,54,93,0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: none;
}

.form-success.active {
    display: block;
}

.form-success__check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: checkPulse 0.6s ease-out;
}

@keyframes checkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.form-success__check svg {
    width: 40px;
    height: 40px;
    color: #4CAF50;
    animation: checkDraw 0.5s ease-out 0.2s both;
}

@keyframes checkDraw {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.form-success h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-success__name {
    font-size: 1.1rem;
    color: var(--amber-dark);
    font-weight: 600;
    margin-bottom: 24px;
}

.form-success__steps {
    text-align: left;
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.form-success__steps-title {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.form-success__steps ol {
    list-style: decimal;
    padding-left: 20px;
}

.form-success__steps li {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 6px;
}

.form-success__steps li:last-child {
    margin-bottom: 0;
}

.form-success__book {
    border-top: 1px solid rgba(27,54,93,0.08);
    padding-top: 24px;
}

.form-success__book p {
    font-size: 0.92rem;
    color: var(--charcoal-light);
    margin-bottom: 16px;
}

.form-success__book .btn {
    width: auto;
    padding: 12px 28px;
}

.contact__alt {
    text-align: center;
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-top: 12px;
}

.contact__alt a {
    color: var(--amber);
    text-decoration: underline;
}

/* --- Book Panel --- */
.book-panel {
    background: var(--white);
    border: 1px solid rgba(27,54,93,0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: none;
}

.book-panel__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(27,54,93,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.book-panel__icon svg {
    width: 36px;
    height: 36px;
    color: var(--navy);
}

.book-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.book-panel > p {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.book-panel .btn {
    margin-bottom: 28px;
}

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

.book-panel__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

.book-panel__feature svg {
    color: #4CAF50;
    flex-shrink: 0;
}

/* --- Resources Section --- */
.resources {
    padding: var(--section-pad) 0;
    background: var(--white);
    position: relative;
}

.resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,54,93,0.1), transparent);
}

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

.resource-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--warm-white);
    border: 1px solid rgba(27,54,93,0.06);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.resource-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(212,132,42,0.2);
    transform: translateY(-2px);
    color: inherit;
}

.resource-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--navy);
}

.resource-card__text {
    flex: 1;
    min-width: 0;
}

.resource-card__text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    line-height: 1.3;
}

.resource-card__text span {
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.resource-card__arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--amber);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.resource-card:hover .resource-card__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer__brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__tagline {
    font-size: 0.85rem !important;
    margin-top: 4px;
    opacity: 0.6;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a,
.footer__contact a {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--amber-light);
}

.footer__contact p {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer__bottom p {
    margin-bottom: 6px;
}

.footer__bottom p:last-child {
    margin-bottom: 0;
}

.footer__bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__bottom a:hover {
    color: var(--amber-light);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .differentiators .diff-card:nth-child(4),
    .differentiators .diff-card:nth-child(5) {
        grid-column: auto;
        justify-self: auto;
    }

    .differentiators .diff-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .process-step {
        flex: 0 0 33.33%;
        max-width: 200px;
        margin-bottom: 32px;
    }

    .process-connector {
        display: none;
    }

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

@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Explicit height so iOS Safari doesn't collapse when body is position:fixed */
        height: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__links a {
        font-size: 1.2rem !important;
        color: var(--white) !important;
        padding: 12px 24px !important;
    }

    .nav__cta {
        margin-left: 0 !important;
        margin-top: 16px;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__content {
        padding: 146px 24px 140px;
    }

    .hero__badges {
        flex-direction: column;
        gap: 12px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

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

    .stat-card {
        padding: 24px 16px;
    }

    .service-card {
        flex-direction: column;
        gap: 12px;
        padding: 28px 24px;
    }

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

    .differentiators .diff-card:last-child {
        max-width: 100%;
    }

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

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Process Timeline mobile */
    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        flex: none;
        max-width: 280px;
        margin-bottom: 24px;
    }

    .process-connector {
        display: block;
        width: 2px;
        height: 24px;
        margin: 0 auto;
    }

    /* Resources mobile */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Contact tabs mobile */
    .contact-tab {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

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

    .form-success {
        padding: 36px 20px;
    }

    .book-panel {
        padding: 36px 20px;
    }
}

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

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

    .hero__headline {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

    .faq-item__question {
        padding: 20px 20px;
        font-size: 0.95rem;
    }

    .faq-item__answer p {
        padding: 0 20px 20px;
    }

    .process-step__desc {
        font-size: 0.82rem;
    }
}

/* Banner removed */

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
    padding: var(--section-pad) 0;
    background: var(--warm-gray);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27,54,93,0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-card--pending {
    opacity: 0.75;
}

.testimonial-card--cta {
    background: var(--navy);
    color: var(--white);
    border-color: transparent;
    align-items: flex-start;
    justify-content: center;
}

.testimonial-card--cta h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
}

.testimonial-card--cta p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    color: var(--amber);
}

.testimonial-card__quote {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--warm-gray);
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--warm-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    flex-shrink: 0;
}

.testimonial-card__cta-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card__cta-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.testimonial-card__btn {
    margin-top: 8px;
    background: var(--amber);
    border-color: var(--amber);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 20px;
}

.testimonial-card__btn:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--white);
}

@media (max-width: 900px) {
    .testimonials__grid { grid-template-columns: 1fr; }
    .testimonial-card--cta { min-height: auto; }
}

/* ==========================================================================
   AVAILABILITY BAR
   ========================================================================== */

.avail-bar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
    position: fixed;
    top: 82px; /* sits flush below the fixed nav */
    left: 0;
    right: 0;
    z-index: 990;
    transition: top 0.4s ease;
}

/* When nav compresses on scroll, bar follows */
.nav--scrolled ~ .avail-bar {
    top: 62px;
}

/* When nav is at top of page (transparent mode), bar needs top offset = nav height ~82px */
.avail-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
    text-align: center;
}

.avail-bar__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--amber-light);
}

.avail-bar__inner strong {
    color: var(--white);
    font-weight: 600;
}

.avail-bar__cta {
    color: var(--amber-light);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(230,160,77,0.4);
    transition: color var(--transition), text-decoration-color var(--transition);
}

.avail-bar__cta:hover {
    color: var(--amber);
    text-decoration-color: var(--amber);
}

@media (max-width: 640px) {
    .avail-bar__inner {
        font-size: 0.82rem;
        gap: 8px;
    }
    .avail-bar__icon { display: none; }
}

/* ==========================================================================
   WAITLIST SECTION
   ========================================================================== */

.waitlist {
    padding: var(--section-pad) 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.waitlist::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
}

.waitlist__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.waitlist .section-label {
    color: var(--amber-light);
}

.waitlist .section-title {
    color: var(--white);
}

.waitlist__text > p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 32px;
}

.waitlist__perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.waitlist__perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.waitlist__perk svg {
    color: var(--amber-light);
    flex-shrink: 0;
}

/* Form wrapper */
.waitlist__form-wrap {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
}

.waitlist-form .form-group label {
    color: rgba(255,255,255,0.8);
}

.waitlist-form .form-group input {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    color: var(--white);
}

.waitlist-form .form-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.waitlist-form .form-group input:focus {
    border-color: var(--amber);
    background: rgba(255,255,255,0.1);
}

.waitlist-form__note {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}

/* Success state */
.waitlist-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.waitlist-success.active {
    display: block;
}

.waitlist-success h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin: 16px 0 8px;
}

.waitlist-success > p {
    font-size: 1.05rem;
    color: var(--amber-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.waitlist-success__note {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400 !important;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .waitlist__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .waitlist__form-wrap {
        padding: 28px 20px;
    }
}
