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

:root {
    --navy: #0B1929;
    --navy-mid: #122038;
    --gold: #C8972A;
    --gold-light: #E5B040;
    --white: #FFFFFF;
    --fog: #f5f7fa;
    --slate: #6B7E8F;
    --slate-light: #A8B8C4;
    --green: #1A7A4A;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: var(--navy);
    color: var(--white);
}

/* ── HEADER ── */
header {
    height: 70px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    background: var(--navy);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200,151,42,0.15);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo span { color: var(--gold); }

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-light);
}

.header-phone a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 0;
    padding-top: 0; /* Changed from 72px to 0 */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 60% 60% at 20% 50%, rgba(200,151,42,0.06) 0%, transparent 70%),
            radial-gradient(ellipse 40% 80% at 80% 30%, rgba(11,25,41,0) 0%, transparent 70%);
    pointer-events: none;
}

/* LEFT — Headline */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 130px 64px 80px 72px; /* Increased top padding from 80px to 130px */
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 24px;
}

h1 em {
    font-style: normal;
    color: var(--gold);
    display: block;
}

.subhead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slate-light);
    max-width: 440px;
    margin-bottom: 48px;
}

/* ── TICKER — Signature element ── */
.ticker-row {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.ticker-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200,151,42,0.2);
    border-radius: 12px;
    padding: 20px 28px;
    min-width: 140px;
    text-align: center;
    transition: border-color 0.3s;
}

.ticker-card:hover { border-color: rgba(200,151,42,0.5); }

.ticker-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.ticker-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-light);
}

/* Proof badges */
.proof-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate-light);
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
}

/* ── FORM PANEL ── */
.form-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 52px;
    position: relative;
    box-shadow: -32px 0 80px rgba(0,0,0,0.4);
}

.form-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
}

.form-label-top {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.form-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 6px;
}

.form-subline {
    font-size: 0.88rem;
    color: var(--slate);
    margin-bottom: 32px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #D6E0E9;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--fog);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
}

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

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

/* ── THE BUTTON ── */
.cta-btn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.15s, box-shadow 0.15s;

    /* Removed the expensive box-shadow animation from here */
    position: relative; /* Keeps the pseudo-element anchored to the button */
    z-index: 1;         /* Ensures the button stays above the pulse */
}

/* ── THE PERFORMANT PULSE ── */
.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0; /* Covers the exact dimensions of the button */
    border-radius: 8px; /* Matches the button's corners */
    background: var(--gold);
    z-index: -1; /* Tucks it behind the actual button */

    /* GPU-accelerated animation */
    animation: smoothPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    will-change: transform, opacity;
}

/* Hover effects (Keep these as they were) */
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,151,42,0.45);
}
.cta-btn:active {
    transform: translateY(0);
}
.cta-btn::after {
    content: ' →';
    font-size: 1.1rem;
}

/* ── THE NEW KEYFRAMES ── */
@keyframes smoothPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.08, 1.25); /* Stretches the background out */
        opacity: 0; /* Fades out to nothing */
    }
}

.form-disclaimer {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--slate);
    text-align: center;
    line-height: 1.6;
}

.form-disclaimer strong {
    color: var(--green);
    font-weight: 600;
}

/* ── TRUST BAR ── */
.trust-bar {
    background: var(--navy-mid);
    border-top: 1px solid rgba(200,151,42,0.12);
    padding: 24px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--slate-light);
    font-weight: 500;
}

.trust-icon {
    font-size: 1.1rem;
}

/* ── TESTIMONIAL STRIP ── */
.testimonial-strip {
    background: var(--fog);
    padding: 64px 72px;
}

.testimonial-strip h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 900;
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 32px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: #3A4F62;
    line-height: 1.7;
    margin-bottom: 18px;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonial-location {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 2px;
}

/* ── HOW IT WORKS ── */
.how-it-works {
    background: var(--navy);
    padding: 80px 72px;
    text-align: center;
}

.how-it-works h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.how-it-works .section-sub {
    color: var(--slate-light);
    font-size: 0.95rem;
    margin-bottom: 56px;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, var(--gold), rgba(200,151,42,0.2), var(--gold));
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.step-desc {
    font-size: 0.85rem;
    color: var(--slate-light);
    line-height: 1.65;
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .form-panel { padding: 52px 32px; box-shadow: none; border-top: 4px solid var(--gold); }
    .form-panel::before { display: none; }
    .hero-left {
        padding: 110px 32px 40px; /* Increased top padding from 64px to 110px */}
    .trust-bar { padding: 24px 32px; gap: 32px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; gap: 32px; }
    .steps-row::before { display: none; }
    .testimonial-strip, .how-it-works { padding: 52px 32px; }
    .ticker-row { gap: 16px; }
    header { padding: 14px 24px; }
}

/* Scroll animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform; /* <--- ADD THIS */
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gold pulse on form panel */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(200,151,42,0.35); }
    50% { box-shadow: 0 4px 32px rgba(200,151,42,0.6); }
}

.cta-btn {
    animation: goldPulse 2.5s ease-in-out infinite;
    will-change: box-shadow; /* <--- ADD THIS to warn the browser */
}
.cta-btn:hover { animation: none; }

/* ── WHY US SECTION ── */
.why-us {
    background: var(--navy);
    padding: 80px 72px;
    text-align: center;
}

.why-us h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.why-us .section-sub {
    color: var(--slate-light);
    font-size: 0.95rem;
    margin-bottom: 56px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns on desktop viewports */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 151, 42, 0.15);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;

    /* Core transitions for smooth pop out effect */
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.25s ease,
    opacity 0.6s ease,
    transform 0.6s ease; /* preserve scroll layout reveal hooks */
}

/* Hover Animation / Pop Out styling */
.why-tile:hover {
    transform: translateY(-6px) scale(1.02); /* Enlarges slightly & rises */
    border-color: var(--gold);
    background: var(--navy-mid);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(200, 151, 42, 0.1);
}

.why-icon {
    font-size: 2rem;
    line-height: 1;
}

.why-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* Subtle accent color switch on tile hover to draw reader attention */
.why-tile:hover .why-title {
    color: var(--gold-light);
}

.why-desc {
    font-size: 0.88rem;
    color: var(--slate-light);
    line-height: 1.6;
}

/* ── RESPONSIVE MEDIA BREAKPOINTS ── */
@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr); /* Shift down to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .why-us {
        padding: 52px 24px;
    }
    .why-us-grid {
        grid-template-columns: 1fr; /* 1 Column on mobile devices */
        gap: 16px;
    }
    .why-tile {
        padding: 24px 20px;
    }
}

/* ── SITUATIONS SECTION ── */
.situations-section {
    /* If var(--fog) is too close to white, swap it for a solid off-white like #f5f7fa */
    background: #f5f7fa;
    padding: 80px 72px;
}

.situations-header {
    text-align: center;
    margin-bottom: 56px;
}

.situations-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.situations-header .section-sub {
    color: var(--slate);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.situation-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;

    /* THE FIXES: Definitive border and deeper shadow */
    border: 1px solid rgba(13, 27, 42, 0.08); /* Clean, subtle boundary line */
    border-top: 4px solid var(--gold);       /* Keeps your top accent link */
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.05); /* Gives the tile physical lift */

    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.situation-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 27, 42, 0.15);
    box-shadow: 0 20px 38px rgba(13, 27, 42, 0.1);
}

.situation-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1;
}

.situation-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.situation-desc {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
}

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

@media (max-width: 900px) {
    .situations-section {
        padding: 52px 32px;
    }
}

@media (max-width: 600px) {
    .situations-section {
        padding: 52px 24px;
    }
    .situations-grid {
        grid-template-columns: 1fr;
    }
    .situation-card {
        padding: 32px 24px;
    }
}

.why-us,
.situations-section {
    content-visibility: auto;
    contain-intrinsic-size: 800px; /* An estimate of the section's height so the scrollbar doesn't jump */
}

.site-logo {
    max-height: 100px; /* Start here; if it's too big, drop it by 5px at a time */
    width: auto;      /* Always keep this to prevent distortion */
    display: block;   /* Ensures it respects the height constraint */
}

/* Optional: Add some padding to keep it from touching the edges */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.site-logo:hover {
    opacity: 1;       /* Subtle interaction when hovering */
}

.site-footer {
    background-color: #050a14; /* Slightly darker than your header for contrast */
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    /* 200px is quite large for a footer, I've adjusted this to 60px
       but feel free to increase it if it's too small! */
    max-height: 170px;
    width: auto;
    opacity: 0.8;
    display: block;
    margin: 0 auto 0 auto; /* The 5px here controls the gap under the logo */
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #d4af37;
    text-transform: uppercase;
    /* Set margin-top to 0 to eliminate any extra space */
    margin: 0 0 10px 0;
}

.copyright {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.5;
}

/* Add these styles to your main.css */
.error-msg {
    color: #d9534f;
    font-size: 0.75rem;
}

.alert-error {
    color: #d9534f;
    background: #fdf7f7;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-success {
    color: #1A7A4A;
    background: #f0fdf4;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hidden {
    display: none;
}