/* ═══════════════════════════════════════════
   4sh Foundation — Main Stylesheet
   ═══════════════════════════════════════════ */

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

:root {
    --saffron:    #FF6700;
    --saffron-dk: #E05500;
    --charcoal:   #1E1E1E;
    --body-text:  #2D2D2D;
    --muted:      #666666;
    --bg:         #FFFFFF;
    --bg-alt:     #F9F7F4;
    --bg-dark:    #1A1A1A;
    --header-h:   72px;
    --max-w:      1200px;
    --section-py: 100px;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 20px; }

body {
    font-family: var(--font-sans);
    color: var(--body-text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Placeholder Images ── */
.placeholder-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 4px;
    background:
        linear-gradient(135deg, #F5EFE8 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, #F5EFE8 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, #F5EFE8 25%, transparent 25%),
        linear-gradient(45deg,  #F5EFE8 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #EDE8E1;
}
.placeholder-hero {
    aspect-ratio: 16/9;
    border-radius: 0;
    background:
        linear-gradient(135deg, #DDD7CE 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, #DDD7CE 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, #DDD7CE 25%, transparent 25%),
        linear-gradient(45deg,  #DDD7CE 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #D4CEC6;
}
.placeholder-founder {
    aspect-ratio: 3/4;
    background:
        linear-gradient(135deg, #EDE8E1 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, #EDE8E1 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, #EDE8E1 25%, transparent 25%),
        linear-gradient(45deg,  #EDE8E1 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #E5DFD8;
}
.placeholder-screenshot {
    aspect-ratio: 16/10;
    border: 2px solid #E0DAD3;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #EAE4DD 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, #EAE4DD 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, #EAE4DD 25%, transparent 25%),
        linear-gradient(45deg,  #EAE4DD 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #F0EBE4;
}
.placeholder-app {
    aspect-ratio: 9/16;
    max-width: 260px;
    margin: 0 auto;
    border: 2px solid #E0DAD3;
    border-radius: 20px;
    background:
        linear-gradient(135deg, #EDE8E1 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, #EDE8E1 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, #EDE8E1 25%, transparent 25%),
        linear-gradient(45deg,  #EDE8E1 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #E5DFD8;
}

/* ── Real Images ── */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Photo slabs: image stretches to match text column height */
.section-image {
    align-self: stretch;
    border-radius: 6px;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Founder: favor face over feet */
.img-founder { object-position: top center; }

/* Website screenshot — text + CTA first, screenshot below */
#pilot-web .section-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
#pilot-web .section-image {
    order: 1;
    align-self: auto;
    min-height: 0;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}
#pilot-web .section-image img {
    height: auto;
    border: 1px solid #E0DAD3;
    border-radius: 8px;
}

/* App screenshot — larger phone */
#pilot-apps .section-image {
    align-self: center;
    min-height: 0;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-app {
    max-width: 340px;
    height: auto;
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,0.08);
    display: block;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.desktop-nav {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.desktop-nav a {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.desktop-nav a:hover  { color: var(--charcoal); }
.desktop-nav a.active { color: var(--saffron); font-weight: 600; }

/* ── CTA Button ── */
.btn-cta {
    display: inline-block;
    background: var(--saffron);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    border: 2px solid var(--saffron);
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
    letter-spacing: 0.01em;
    cursor: pointer;
}
.btn-cta:hover {
    background: var(--saffron-dk);
    border-color: var(--saffron-dk);
    transform: translateY(-1px);
}
.btn-cta-hero {
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
    border-radius: 4px;
}
.btn-cta-outline {
    background: transparent;
    color: var(--saffron);
    border: 2px solid var(--saffron);
    margin-top: 1.5rem;
}
.btn-cta-outline:hover {
    background: var(--saffron);
    color: #fff;
}
.btn-cta-submit {
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
    border: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════ */
.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 5rem 2.5rem 2.5rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    overflow-y: auto;
}
.mobile-nav.open { right: 0; }

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color var(--transition);
}
.mobile-link:hover { color: var(--saffron); }
.join-mobile {
    margin-top: 1.5rem;
    color: var(--saffron);
    font-weight: 700;
    border-bottom: none;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
}
.mobile-nav-overlay.open { display: block; }

/* ═══════════════════════════════════════════
   SECTIONS — BASE
═══════════════════════════════════════════ */
.section { padding: var(--section-py) 0; }
.section:first-of-type { padding-top: 0; }

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 4rem;
    align-items: center;
}

.layout-text-left  { grid-template-columns: 1fr 1fr; }
.layout-image-left { grid-template-columns: 1fr 1fr; }

.layout-image-left .section-image { order: -1; }

.section-alt  { background: var(--bg-alt); }
.section-dark {
    background: var(--bg-dark);
    color: #fff;
}
.section-dark .section-label-light { color: var(--saffron); }
.section-dark .section-text h2 { color: #fff; }
.section-dark .section-text p  { color: rgba(255,255,255,0.82); }

/* ═══════════════════════════════════════════
   SECTION TEXT
═══════════════════════════════════════════ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 1rem;
}

.section-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-text p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1rem;
}
.section-text p:last-child { margin-bottom: 0; }

.pull-quote {
    border-left: 3px solid var(--saffron);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.6;
}

.founder-note {
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════
   HOME / HERO SECTION
═══════════════════════════════════════════ */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}
.hero-image-wrap .placeholder-image {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border-radius: 0;
    background: #C0BBB4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 2rem;
    margin-top: var(--header-h);
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   IMPACT NUMBERS
═══════════════════════════════════════════ */
.impact-numbers {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}
.impact-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--saffron);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ═══════════════════════════════════════════
   PILOT APPS — APP SEARCH CTA
═══════════════════════════════════════════ */
.app-search-cta {
    margin-top: 1.5rem;
}
.app-search-label {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.app-search-term {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.app-badges {
    display: flex;
    gap: 0.75rem;
}
.app-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color var(--transition), color var(--transition);
}
.app-badge:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

/* ═══════════════════════════════════════════
   JOIN US SECTION
═══════════════════════════════════════════ */
.section-join {
    background: var(--bg);
    text-align: center;
}
.join-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 2rem;
}
.join-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.join-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.join-form {
    text-align: left;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--body-text);
    background: #fff;
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--saffron); }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.join-success {
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--saffron);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
    background: var(--charcoal);
    color: #fff;
    padding: 4rem 0 0;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
}
.footer-tagline {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}
.social-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #aaa;
    border: 1px solid #444;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    transition: color var(--transition), border-color var(--transition);
}
.social-link:hover { color: #fff; border-color: #fff; }

.footer-nav-title {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--saffron);
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-nav a, .footer-contact a {
    font-size: 0.875rem;
    color: #aaa;
    transition: color var(--transition);
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 1.25rem 2rem;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: #ffffff;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--saffron);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    z-index: 900;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--saffron-dk); }

/* ═══════════════════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .layout-text-left,
    .layout-image-left { grid-template-columns: 1fr; }
    .layout-image-left .section-image { order: 0; }
    .desktop-nav { display: none; }
    .hamburger   { display: flex; }
    .btn-cta:not(.btn-cta-hero):not(.btn-cta-outline):not(.btn-cta-submit) { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .impact-numbers { flex-wrap: wrap; gap: 1.5rem; }
    .placeholder-app { max-width: 180px; }
}

@media (max-width: 600px) {
    :root { --section-py: 64px; }
    .footer-inner { grid-template-columns: 1fr; }
    .section-inner { gap: 2.5rem; }
    .hero-content h1 { font-size: 2rem; }
    .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
