/* ============================================
   TYREE SPATIAL — Shared Styles
   ============================================ */

:root {
    --green-darkest: hsl(143, 66%, 5%);
    --green-dark: hsl(143, 66%, 9%);
    --green-mid: hsl(143, 66%, 16%);
    --green-accent: hsl(143, 66%, 25%);
    --green-light: hsl(143, 66%, 40%);
    --green-glow: hsla(143, 66%, 40%, 0.4);
    --tan: hsl(30, 30%, 88%);
    --tan-soft: hsl(30, 25%, 80%);
    --white: #f8faf9;
    --white-soft: #e8eeeb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--green-dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ── NAV ────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(5, 20, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--green-mid);
    padding: 0 3rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-brand span {
    color: var(--green-light);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-soft);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── BUTTONS ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--green-accent);
}

.btn-secondary:hover {
    border-color: var(--green-light);
    color: var(--green-light);
    transform: translateY(-2px);
}

.btn-secondary.dark {
    color: var(--green-darkest);
    border-color: var(--green-accent);
}

.btn-secondary.dark:hover {
    color: var(--green-light);
    border-color: var(--green-light);
}

.btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ── SECTION UTILITIES ──────────────────── */
.section {
    padding: 6rem 2rem;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--white-soft);
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bg-dark { background: var(--green-dark); }
.bg-darker { background: var(--green-darkest); }
.bg-tan { background: var(--tan); }

.bg-tan .section-title { color: var(--green-darkest); }
.bg-tan .section-subtitle { color: var(--green-dark); }
.bg-tan .section-label { color: var(--green-accent); }

/* ── CONTAINER ──────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── FOOTER ─────────────────────────────── */
.footer {
    background: var(--green-darkest);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--green-mid);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--green-light); }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--white-soft);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--white-soft);
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--green-light); }

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--green-mid);
    text-align: center;
    font-size: 0.75rem;
    color: var(--white-soft);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
    .nav { padding: 0 1.5rem; }

    .nav-links {
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(5, 20, 10, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--green-mid);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .nav-links.open {
        max-height: 320px;
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after { display: none; }

    .nav-toggle { display: block; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .section { padding: 4rem 1.5rem; }

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