/* ==========================================================================
   Torrens-Hudson Group — Stylesheet
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --color-bg:         #0f1923;
    --color-bg-alt:     #162130;
    --color-bg-card:    #1a2836;
    --color-surface:    #1e2f3d;
    --color-text:       #e8e2d8;
    --color-text-muted: #8a9baa;
    --color-accent:     #c9a96e;
    --color-accent-dim: rgba(201, 169, 110, 0.15);
    --color-border:     rgba(201, 169, 110, 0.12);

    --font-serif:  'EB Garamond', 'Georgia', serif;
    --font-sans:   'Inter', -apple-system, 'Segoe UI', sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 10rem;

    --max-width: 1200px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--color-accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.01em;
}
.nav__logo:hover { opacity: 1; color: var(--color-accent); }

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

.nav__links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav__links a:hover {
    color: var(--color-text);
    opacity: 1;
}

.nav__cta {
    color: var(--color-accent) !important;
    border: 1px solid var(--color-accent);
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
}
.nav__cta:hover {
    background: var(--color-accent);
    color: var(--color-bg) !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.hero__inner {
    max-width: 820px;
    text-align: center;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__scroll span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
}
.btn--primary:hover {
    background: #d4b578;
    opacity: 1;
}

.btn--ghost {
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.btn--ghost:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
    opacity: 1;
}

.btn--outline {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    background: transparent;
}
.btn--outline:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    opacity: 1;
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-xl) var(--space-md);
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-lg);
}

.label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    position: sticky;
    top: 100px;
}

.section__content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section__content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    max-width: 640px;
}

.section__footnote {
    margin-top: var(--space-md);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-text) !important;
}

/* Alternating section backgrounds */
.section--philosophy,
.section--criteria,
.section--investors {
    background: var(--color-bg-alt);
}

/* ---------- Pillars (Acquire / Operate / Compound) ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.pillar {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: border-color var(--transition);
}
.pillar:hover {
    border-color: var(--color-accent);
}

.pillar__number {
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-sm);
}

.pillar h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.pillar p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---------- Pullquote ---------- */
.pullquote {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.35;
    color: var(--color-text);
    border-left: 2px solid var(--color-accent);
    padding-left: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* ---------- Philosophy Note ---------- */
.philosophy-note {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-accent-dim);
    border-left: 2px solid var(--color-accent);
    border-radius: 0 3px 3px 0;
}

.philosophy-note p {
    color: var(--color-text) !important;
    margin-bottom: 0;
    font-size: 1rem;
}

.philosophy-note strong {
    color: var(--color-accent);
}

/* ---------- Process (How We Acquire) ---------- */
.process {
    margin: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.process__step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.process__marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.5rem;
    position: relative;
}

.process__step:not(:last-child) .process__marker::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: calc(100% + var(--space-md) + 4px);
    background: var(--color-border);
}

.process__body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.process__body p {
    font-size: 0.9375rem;
}

/* ---------- Criteria List ---------- */
.criteria-list {
    list-style: none;
    margin: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.criteria-list li {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.criteria-list__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    position: relative;
}

.criteria-list__icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--color-accent);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.criteria-list strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text);
}

.criteria-list p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---------- Founders ---------- */
.section--founders .section__content .btn {
    margin-top: var(--space-md);
}

/* ---------- Contact ---------- */
.section--contact {
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

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

.contact h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.contact p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: none;
}

.contact__email {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    margin-bottom: var(--space-sm);
}
.contact__email:hover {
    opacity: 0.8;
}

.contact__location {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
}

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

.footer__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.footer__meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .section__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .label {
        position: static;
    }

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

    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-alt);
        flex-direction: column;
        padding: 5rem var(--space-md) var(--space-md);
        gap: var(--space-sm);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    }

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

    .nav__links a {
        font-size: 0.9375rem;
    }

    .hero {
        padding-top: 8rem;
        min-height: 90vh;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }
}
