/* ===== Reset & Base ===== */
:root {
    --cream: #FAF8F3;
    --cream-mid: #F3F0E8;
    --navy: #1C2E4A;
    --navy-deep: #141C28;
    --tan: #B8976A;
    --tan-light: #D4C4A0;
    --tan-dark: #8B7355;
    --stone: #9A9488;
    --stone-light: #C5BFB3;
    --text: #2C3040;
    --text-mid: #555A66;
    --text-light: #6B6E78;
    --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.0);
    transition: all 0.35s ease;
    padding: 24px 0;
}

.header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    position: relative;
}

.header-logo img {
    height: 120px;
    width: auto;
    transition: height 0.35s ease, opacity 0.35s ease;
}

.header-logo .logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.header.scrolled .header-logo .logo-white {
    opacity: 0;
}

.header.scrolled .header-logo .logo-dark {
    opacity: 1;
}

.header.scrolled .header-logo img {
    height: 72px;
}

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

.header-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.header-nav a:hover { color: var(--tan-light); }

.header.scrolled .header-nav a { color: var(--navy); }
.header.scrolled .header-nav a:hover { color: var(--tan); }

.header-nav a:last-child {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 10px 24px;
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.25s ease;
}

.header-nav a:last-child:hover { background: var(--tan); border-color: var(--tan); }

.header.scrolled .header-nav a:last-child {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.header.scrolled .header-nav a:last-child:hover { background: var(--tan); border-color: var(--tan); }

/* Mobile toggle */
.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.header-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s ease; }
.header.scrolled .header-toggle span { background: var(--navy); }
.header-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-toggle.active span:nth-child(2) { opacity: 0; }
.header-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video {
        object-position: 60% 50%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(20, 28, 40, 0.75) 0%, rgba(28, 46, 74, 0.35) 30%, rgba(28, 46, 74, 0.3) 60%, rgba(28, 46, 74, 0.6) 100%);
    z-index: 1;
}

.hero-inner {
    max-width: 780px;
    position: relative;
    z-index: 2;
    padding: 140px 48px 100px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.12;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 44px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.btn:hover { background: var(--tan); border-color: var(--tan); }

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

.btn-light:hover { background: var(--tan-dark); border-color: var(--tan-dark); }

/* ===== Intro ===== */
.intro {
    padding: 120px 48px;
    background: var(--white);
}

.intro-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
}

.intro-text {
    max-width: 680px;
}

.intro-text h2 {
    font-size: 2.8rem;
    margin-bottom: 28px;
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.95;
    margin-bottom: 16px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 0.04em;
    margin-top: 16px;
    transition: gap 0.25s ease;
}

.link-arrow:hover { gap: 14px; }

.link-arrow span { transition: transform 0.25s ease; }

/* ===== Pillars ===== */
.pillars {
    padding: 100px 48px 120px;
    background: var(--cream);
}

.pillars-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.pillar {
    padding: 0 8px;
}

.pillar-icon {
    color: var(--tan);
    margin-bottom: 24px;
}

.pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pillar p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 20px;
}

.pillar .link-arrow {
    font-size: 0.78rem;
    margin-top: 0;
}

/* ===== Philosophy ===== */
.philosophy {
    padding: 120px 48px;
    background: var(--navy);
    color: var(--cream);
}

.philosophy-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.philosophy .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tan-light);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.philosophy h2 {
    font-size: 2.8rem;
    color: var(--cream);
    margin-bottom: 24px;
}

.philosophy-left p {
    font-size: 1.05rem;
    color: var(--stone-light);
    line-height: 1.95;
}

.basket {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.basket:first-child { padding-top: 0; }
.basket:last-child { border-bottom: none; padding-bottom: 0; }

.basket h3 {
    font-size: 1.25rem;
    color: var(--tan-light);
    margin-bottom: 8px;
}

.basket p {
    font-size: 0.95rem;
    color: var(--stone-light);
    line-height: 1.85;
}

/* ===== Team ===== */
.team {
    padding: 120px 48px;
    background: var(--white);
}

.team-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.team .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.team h2 {
    font-size: 2.8rem;
    margin-bottom: 64px;
}

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

.team-card {
    background: var(--cream);
    padding: 52px 48px;
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 24px;
}

.team-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.team-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.team-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.9;
    text-align: left;
}

/* ===== Why Stonehouse ===== */
.why {
    padding: 120px 48px;
    background: var(--cream);
}

.why-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.why h2 {
    font-size: 2.8rem;
    margin-bottom: 64px;
}

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

.why-card {
    padding: 44px 40px;
    background: var(--white);
    border-top: 3px solid var(--tan);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.9;
}

/* ===== Contact ===== */
.contact {
    padding: 120px 48px;
    background: var(--cream);
    text-align: center;
}

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

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 40px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 560px;
    margin: 0 auto 24px;
    text-align: left;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border: 1px solid rgba(28, 46, 74, 0.15);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--stone);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--tan);
}

.contact-form textarea {
    margin-bottom: 24px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.contact-alt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}

.contact-alt a {
    color: var(--tan);
    font-weight: 500;
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-deep);
    padding: 64px 48px 48px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}

.footer-logo {
    height: 168px;
    width: auto;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

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

.footer-disclaimer {
    font-size: 0.73rem;
    color: var(--cream);
    opacity: 0.6;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 0.73rem;
    color: var(--cream);
    opacity: 0.45;
}

/* ===== Shared ===== */
.label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.pillars-inner .fade-in:nth-child(2) { transition-delay: 0.07s; }
.pillars-inner .fade-in:nth-child(3) { transition-delay: 0.14s; }
.pillars-inner .fade-in:nth-child(4) { transition-delay: 0.21s; }
.pillars-inner .fade-in:nth-child(5) { transition-delay: 0.28s; }
.team-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .intro-text h2, .philosophy h2, .team h2, .contact h2 { font-size: 2.2rem; }

    .pillars-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .philosophy-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .hero { padding: 120px 24px 80px; }
    .hero h1 { font-size: 2rem; line-height: 1.15; }
    .hero p { font-size: 1.05rem; }
    .hero-inner { padding: 100px 20px 80px; }

    .founder-statement { padding: 60px 24px; }
    .founder-quote { font-size: 1.1rem; line-height: 1.7; }
    .founder-attribution { font-size: 0.8rem; }

    .intro, .pillars, .philosophy, .team, .contact { padding: 80px 24px; }
    .header-inner { padding: 0 24px; }
    .footer { padding: 48px 24px 36px; }
    .footer-inner { padding: 0; }

    .pillars-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }

    .pillar {
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    .pillar.fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

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

    .header-logo img { height: 72px; }
    .header.scrolled .header-logo img { height: 52px; }

    .footer-nav { flex-wrap: wrap; gap: 16px; }
}
