/* ========================================
   HATCH CAPITAL — PASS 3
   Editorial / Magazine Style
   Deep Forest + Serif Typography
   ======================================== */

:root {
    /* Deep forest anchor - solid, not gradient */
    --forest-deep: #0D3311;
    --forest: #1A4D2E;
    --forest-light: #2D6A4F;
    
    /* Accent - green used sparingly */
    --accent: #4A7C59;
    --accent-bright: #7CB342;
    
    /* Surfaces - warm, earthy, editorial */
    --bg-cream: #FAF8F5;
    --bg-white: #FFFFFF;
    --bg-warm: #F5F2ED;
    
    /* Text */
    --ink: #1A1A1A;
    --ink-sub: #4A4A4A;
    --ink-muted: #8A8A8A;
    
    /* For dark sections */
    --ink-light: #FAFAFA;
    
    /* Effects */
    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
    
    /* Typography - SERIF for headings, CLEAN SANS for body */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-pad: clamp(5rem, 12vw, 10rem);
    --page-max: 1100px;
    --page-pad: clamp(1.5rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-cream);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Editorial feel - big headlines, small purposeful body */
.display-xl {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.display-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
}

.display-md {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

/* The accent color used sparingly */
.text-accent { color: var(--accent); }
.text-forest { color: var(--forest); }

/* Eyebrow text - editorial small caps */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.section {
    padding: var(--section-pad) 0;
}

/* --- NAVIGATION --- */
/* Solid background that changes on scroll - no glass */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem var(--page-pad);
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-subtle);
    padding: 0.75rem var(--page-pad);
}

.nav-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Clean logo - no gradient */
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Minimal nav links - hidden on desktop, hamburger only */
.nav-links {
    display: none; /* Hidden - hamburger on desktop for cleaner look */
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: var(--forest);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--forest-deep);
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-cream);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner {
    padding: 6rem var(--page-pad) 3rem;
}

.mobile-link {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-link.sub {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
    padding-left: 1rem;
    color: var(--ink-sub);
}

.mobile-link.highlight { color: var(--accent); }

.mobile-cta {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--forest);
    color: white;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .nav-link {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--ink-sub);
        transition: color 0.2s;
    }
    .nav-link:hover { color: var(--ink); }
    .nav-link.active { color: var(--forest); }
    .nav-cta { display: inline-block; }
    .nav-hamburger { display: none; }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    border-radius: 4px;
}

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

.btn-primary:hover {
    background: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: white;
}

.btn-light {
    background: white;
    color: var(--forest);
}

.btn-light:hover {
    background: var(--bg-cream);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem var(--page-pad) 6rem;
    background: var(--bg-cream);
    overflow: hidden;
}

/* Editorial layout - asymmetric, not centered */
.hero-content {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Big serif headline, not gradient */
.hero-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.hero h1 .amp {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink-sub);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Right side - instead of floating card, show real content */
/* Editorial stats grid - clean typography */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
}

.stat-box .number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--forest);
    line-height: 1;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 0.25rem;
}

/* Decorative grid pattern - subtle */
.hero-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 80%;
    opacity: 0.04;
    background-image: 
        linear-gradient(var(--ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero { padding-top: 7rem; }
    .hero-stats { order: -1; }
}

/* --- COMPANIES SECTION --- */
.companies-section {
    background: var(--bg-white);
    padding: var(--section-pad) var(--page-pad);
}

.companies-header {
    max-width: var(--page-max);
    margin: 0 auto 4rem;
}

.companies-header .eyebrow { text-align: center; }
.companies-header h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
}

.companies-header p {
    text-align: center;
    max-width: 560px;
    margin: 1rem auto 0;
    color: var(--ink-sub);
}

/* Grid that subtly transforms on scroll - not dramatic orbit */
.companies-grid {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Subtle grid lines */
.companies-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(0,0,0,0.06);
}

.company-card {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-white);
}

/* Make PricePulse card stand out - accent, not gradient */
.company-card.highlight {
    background: var(--forest-deep);
    color: white;
}

.company-card.highlight .label {
    color: rgba(255,255,255,0.6);
}

.company-card .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company-card.highlight .icon {
    background: rgba(255,255,255,0.15);
}

.company-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.company-card .label {
    font-size: 0.85rem;
    color: var(--ink-sub);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.company-card a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
}

.company-card a:hover { gap: 0.5rem; }

.company-card.highlight a {
    color: white;
}

@media (max-width: 900px) {
    .companies-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .companies-grid::before { display: none; }
}

/* --- PRICEPULSE SECTION --- */
.pricepulse-section {
    background: var(--forest-deep);
    color: white;
    padding: var(--section-pad) var(--page-pad);
}

.pp-content {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.pp-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 1rem;
}

.pp-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.pp-content > p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.pp-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pp-features li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.pp-features .bullet {
    width: 6px;
    height: 6px;
    background: var(--accent-bright);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.pp-features strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.pp-features span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* Simple ticker - not fancy animation */
.pp-ticker {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1.5rem;
}

.ticker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-row:last-child { border: none; }

.ticker-prop {
    font-weight: 500;
}

.ticker-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-old {
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.ticker-new {
    font-weight: 700;
}

.ticker-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

.ticker-change.up {
    background: rgba(124, 179, 66, 0.2);
    color: var(--accent-bright);
}

.ticker-change.down {
    background: rgba(255, 107, 107, 0.2);
    color: #FF8A8A;
}

.pp-confidence {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

@media (max-width: 768px) {
    .pp-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- STATS BAR --- */
.stats-section {
    background: var(--bg-white);
    padding: 4rem var(--page-pad);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stats-grid {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--forest);
    line-height: 1;
}

.stat-item .number .plus {
    color: var(--accent);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 0.25rem;
}

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

/* --- CTA SECTION --- */
.cta-section {
    background: var(--bg-warm);
    padding: var(--section-pad) var(--page-pad);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-inner p {
    font-size: 1.1rem;
    color: var(--ink-sub);
    margin-bottom: 2rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    padding: 4rem var(--page-pad) 2rem;
}

.footer-inner {
    max-width: var(--page-max);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
