/* ============================================
   CONNECTIVE MOTION — Global Stylesheet v8
   ============================================ */

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

:root {
  --black: #0B100D;
  --charcoal: #14201A;
  --bone: #F0EDE6;
  --forest: #2D4A2B;
  --forest-soft: rgba(45,74,43,0.18);
  --moss: #5C7F4A;
  --bark: #8B6F47;
  --bone-low: rgba(240,237,230,0.10);
  --bone-mid: rgba(240,237,230,0.55);
  --bone-high: rgba(240,237,230,0.82);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', sans-serif;
  /* Fluid spacing scale */
  --space-xs: clamp(8px, 1.5vw, 16px);
  --space-sm: clamp(16px, 2.5vw, 28px);
  --space-md: clamp(28px, 4vw, 56px);
  --space-lg: clamp(48px, 7vw, 110px);
  --space-xl: clamp(64px, 9vw, 140px);
  /* Fluid type scale */
  --text-xs: clamp(10px, 1.1vw, 11px);
  --text-sm: clamp(13px, 1.4vw, 15px);
  --text-base: clamp(14px, 1.5vw, 16px);
  --text-lg: clamp(16px, 1.8vw, 18px);
  --text-h3: clamp(22px, 3vw, 32px);
  --text-h2: clamp(32px, 5vw, 64px);
  --text-h1: clamp(36px, 6.5vw, 86px);
  --text-h1-long: clamp(28px, 4.8vw, 64px);
  --text-display: clamp(44px, 7vw, 96px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 3.5vw, 48px);
  border-bottom: 0.5px solid var(--bone-low);
  background: rgba(11,16,13,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding 0.3s, background 0.3s;
  gap: 16px;
}
nav.scrolled {
  padding: 12px clamp(16px, 3.5vw, 48px);
  background: rgba(11,16,13,0.95);
}

.logo {
  display: flex; align-items: center;
  text-decoration: none; line-height: 1; flex-shrink: 0;
}
.logo img {
  display: block;
  height: clamp(60px, 9vw, 110px);
  width: auto;
  transition: height 0.3s;
}
nav.scrolled .logo img { height: clamp(44px, 6vw, 78px); }
.logo .logo-light { display: none; }
body.theme-light .logo .logo-dark { display: none; }
body.theme-light .logo .logo-light { display: block; }

/* Desktop nav-links hidden by default (removed per brief) */
.nav-links { display: none; }

.nav-btns {
  display: flex; gap: clamp(6px, 1vw, 10px);
  align-items: center; flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--bone); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hamburger always visible since nav-links removed from desktop */
/* On desktop, nav-btns handle all navigation between pages */

/* ============================================
   MOBILE FULL-SCREEN MENU
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--black);
  padding: 0 clamp(20px, 5vw, 40px) 40px;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }

.mobile-menu .mobile-nav-links {
  display: flex; flex-direction: column; gap: 0;
}
.mobile-menu .mobile-nav-links a {
  font-size: clamp(22px, 5vw, 28px);
  font-family: var(--serif); font-weight: 400;
  color: var(--bone); text-decoration: none;
  border-bottom: 0.5px solid var(--bone-low);
  padding: clamp(16px, 3vw, 22px) 0;
  transition: color 0.2s;
}
.mobile-menu .mobile-nav-links a:first-child { border-top: 0.5px solid var(--bone-low); }
.mobile-menu .mobile-nav-links a:hover { color: var(--moss); }

.mobile-btns {
  display: flex; flex-direction: column;
  gap: 12px; padding: clamp(24px, 4vw, 32px) 0 0;
}
.mobile-btns .btn-fill,
.mobile-btns .btn-ghost {
  display: block; text-align: center; width: 100%;
  padding: clamp(14px, 2.5vw, 16px) 24px;
  font-size: clamp(11px, 1.5vw, 12px);
  letter-spacing: 0.18em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-fill {
  background: var(--forest); color: var(--bone);
  border: none; padding: clamp(10px, 1.5vw, 11px) clamp(18px, 2.5vw, 24px);
  font-size: var(--text-xs); letter-spacing: 0.16em; font-weight: 500;
  font-family: var(--sans); border-radius: 2px;
  cursor: pointer; text-decoration: none; text-transform: uppercase;
  display: inline-block; transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
}
.btn-fill:hover { background: var(--moss); transform: translateY(-1px); }
.btn-fill.btn-lg { padding: clamp(12px, 2vw, 15px) clamp(22px, 3vw, 32px); }

.btn-ghost {
  background: transparent; color: var(--bone);
  border: 1px solid rgba(240,237,230,0.32);
  padding: clamp(9px, 1.5vw, 10px) clamp(17px, 2.5vw, 23px);
  font-size: var(--text-xs); letter-spacing: 0.16em; font-weight: 500;
  font-family: var(--sans); border-radius: 2px;
  cursor: pointer; text-decoration: none; text-transform: uppercase;
  display: inline-block; transition: border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--bone); }
.btn-ghost.btn-lg { padding: clamp(11px, 2vw, 14px) clamp(21px, 3vw, 31px); }

.btn-white {
  background: var(--bone); color: var(--black);
  border: none; padding: clamp(12px, 2vw, 14px) clamp(22px, 3vw, 30px);
  font-size: var(--text-xs); letter-spacing: 0.16em; font-weight: 500;
  font-family: var(--sans); border-radius: 2px;
  cursor: pointer; text-decoration: none; text-transform: uppercase;
  display: inline-block; transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.88; }

.btn-outline-white {
  background: transparent; color: var(--bone);
  border: 1px solid rgba(240,237,230,0.55);
  padding: clamp(12px, 2vw, 14px) clamp(22px, 3vw, 30px);
  font-size: var(--text-xs); letter-spacing: 0.16em; font-weight: 500;
  font-family: var(--sans); border-radius: 2px;
  cursor: pointer; text-decoration: none; text-transform: uppercase;
  display: inline-block; transition: border-color 0.2s;
}
.btn-outline-white:hover { border-color: var(--bone); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--text-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--text-h2); margin-bottom: 24px; }
h2 em, h1 em, h3 em { font-style: italic; color: var(--moss); font-weight: 300; }

.eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.32em;
  color: var(--moss); text-transform: uppercase;
  margin-bottom: clamp(14px, 2vw, 22px);
  display: block; font-weight: 500;
}
.section-tag {
  font-size: var(--text-xs); letter-spacing: 0.3em;
  color: var(--moss); text-transform: uppercase;
  margin-bottom: clamp(14px, 2vw, 20px);
  display: block; font-weight: 500;
}
.body-text {
  font-size: var(--text-sm);
  color: var(--bone-mid); line-height: 1.8; font-weight: 300;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.section-pad {
  padding: var(--space-xl) clamp(16px, 4vw, 48px);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.two-col-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.dark-card {
  background: rgba(255,255,255,0.025);
  border: 0.5px solid var(--bone-low);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 36px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  padding: clamp(140px, 18vw, 200px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  background: var(--black);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,13,0.55) 0%, rgba(11,16,13,0.25) 30%, rgba(11,16,13,0.65) 75%, rgba(11,16,13,1) 100%),
    linear-gradient(90deg, rgba(11,16,13,0.65) 0%, rgba(11,16,13,0.10) 55%, rgba(11,16,13,0) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: min(720px, 90vw);
  margin-right: auto; margin-left: 0;
  text-align: left;
}
.hero-content .eyebrow,
.hero-content .hero-h1,
.hero-content .hero-sub,
.hero-content .hero-btns { text-align: left; }
.hero-content .hero-btns { justify-content: flex-start; }

.hero-h1 {
  font-size: var(--text-h1);
  font-weight: 400; line-height: 1.02;
  margin-bottom: clamp(18px, 2.5vw, 28px);
  letter-spacing: -0.02em;
}
.hero-h1.hero-h1-long {
  font-size: var(--text-h1-long);
  line-height: 1.08;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--bone-high);
  max-width: min(560px, 85vw);
  line-height: 1.7; margin-bottom: clamp(24px, 3.5vw, 36px);
  font-weight: 300;
}
.hero-btns { display: flex; gap: clamp(8px, 1.5vw, 12px); flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ============================================
   ABOUT / PULLQUOTE
   ============================================ */
.pullquote-line {
  width: 40px; height: 2px;
  background: var(--moss); margin-bottom: clamp(16px, 2vw, 24px);
}
.pullquote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300; font-style: italic;
  color: var(--bone); line-height: 1.32;
  letter-spacing: -0.005em;
}

/* ============================================
   SPLIT SECTION
   ============================================ */
.split-section { display: grid; grid-template-columns: 1fr 1fr; }
.split-card { padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 60px); }
.split-dark { background: var(--charcoal); }
.split-light { background: var(--bone); }
.split-h {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 400; line-height: 1.08;
  margin: clamp(10px, 1.5vw, 16px) 0 clamp(14px, 2vw, 22px);
  letter-spacing: -0.01em;
}
.split-h em { font-style: italic; color: var(--moss); font-weight: 300; }
.split-light .split-h em { color: var(--forest); }
.split-body {
  font-size: clamp(13px, 1.4vw, 14.5px);
  line-height: 1.8; margin-bottom: clamp(14px, 2vw, 22px);
}
.split-dark .split-body { color: var(--bone-mid); }
.split-light .split-body { color: rgba(13,13,13,0.62); }
.split-list { list-style: none; display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 11px); }
.split-list li {
  font-size: clamp(12px, 1.3vw, 13.5px);
  padding-left: 18px; position: relative;
}
.split-list li::before { content: '—'; position: absolute; left: 0; color: var(--moss); }
.split-light .split-list li::before { color: var(--forest); }
.split-dark .split-list li { color: var(--bone-mid); }
.split-light .split-list li { color: rgba(13,13,13,0.62); }

/* ============================================
   HOW IT WORKS — STEPS
   ============================================ */
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: stretch;
  margin-top: clamp(36px, 5vw, 60px);
}
.step-item {
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2.5vw, 32px);
  border: 0.5px solid var(--bone-low);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, background 0.3s;
}
.step-item:hover { border-color: rgba(92,127,74,0.4); background: rgba(45,74,43,0.06); }
.step-arrow {
  font-size: 20px; color: var(--moss);
  align-self: center; padding: 0 clamp(8px, 1.5vw, 18px);
}
.step-num-lg {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; color: rgba(92,127,74,0.4);
  line-height: 1; margin-bottom: clamp(8px, 1.2vw, 14px);
  font-style: italic;
}
.step-title {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500; color: var(--bone);
  margin-bottom: clamp(6px, 1vw, 10px);
  letter-spacing: 0.01em;
}
.step-body { font-size: clamp(12px, 1.3vw, 13.5px); color: var(--bone-mid); line-height: 1.7; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: var(--space-xl) clamp(16px, 4vw, 48px);
  text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: var(--charcoal);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('img/hero-forest.jpg');
  background-size: cover; background-position: center 60%;
  filter: blur(2px); transform: scale(1.05); z-index: -2;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,13,0.85) 0%, rgba(45,74,43,0.65) 50%, rgba(11,16,13,0.92) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(92,127,74,0.18) 0%, transparent 65%);
  z-index: -1;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 400; font-style: italic;
  color: var(--bone); margin-bottom: 0;
  letter-spacing: -0.01em;
}
.cta-btns {
  display: flex; gap: clamp(10px, 1.5vw, 14px);
  justify-content: center; flex-wrap: wrap;
  margin-top: clamp(24px, 3.5vw, 40px);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: clamp(12px, 1.8vw, 18px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 16px); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: var(--text-xs); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bone-mid); font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--bone-low);
  border-radius: 3px;
  padding: clamp(10px, 1.5vw, 13px) clamp(12px, 1.8vw, 16px);
  color: var(--bone); font-family: var(--sans);
  font-size: clamp(13px, 1.4vw, 14px); font-weight: 300;
  transition: border-color 0.2s, background 0.2s; outline: none;
  -webkit-appearance: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--moss); background: rgba(92,127,74,0.04); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(240,237,230,0.25); }
.form-group select option { background: var(--charcoal); color: var(--bone); }
.form-group textarea { resize: vertical; min-height: clamp(100px, 14vw, 140px); }

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list { list-style: none; }
.feature-item {
  padding: clamp(16px, 2.5vw, 24px) 0;
  border-bottom: 0.5px solid var(--bone-low);
  display: grid; grid-template-columns: 20px 1fr;
  gap: clamp(10px, 1.5vw, 16px); align-items: start;
}
.feature-item:first-child { border-top: 0.5px solid var(--bone-low); }
.feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss); margin-top: 9px; flex-shrink: 0;
}
.feature-title {
  font-size: clamp(13px, 1.4vw, 14.5px);
  font-weight: 500; color: var(--bone);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.feature-body { font-size: clamp(12px, 1.3vw, 13.5px); color: var(--bone-mid); line-height: 1.7; }

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid; grid-template-columns: clamp(50px, 7vw, 80px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(24px, 3.5vw, 38px) 0;
  border-bottom: 0.5px solid var(--bone-low); align-items: start;
}
.process-step:first-child { border-top: 0.5px solid var(--bone-low); }
.process-num {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 400; color: rgba(92,127,74,0.45);
  line-height: 1; font-style: italic;
}
.process-title {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500; color: var(--bone);
  margin-bottom: 8px; letter-spacing: 0.01em;
}
.process-body { font-size: clamp(12px, 1.3vw, 13.5px); color: var(--bone-mid); line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 0.5px solid var(--bone-low);
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer .logo img { height: clamp(44px, 6vw, 70px); }
.footer-meta {
  display: flex; gap: clamp(12px, 2vw, 24px); align-items: center;
  font-size: var(--text-xs); color: rgba(240,237,230,0.30);
  letter-spacing: 0.14em; text-transform: uppercase; flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================
   FADE-UP ANIMATION
   ============================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.85s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet landscape (981–1200px) */
@media (max-width: 1200px) {
  .steps-row { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .two-col, .two-col-3-2 { gap: clamp(24px, 4vw, 56px); }
}

/* Tablet portrait (641–980px) */
@media (max-width: 980px) {
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .split-section { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 14px; }
  .step-arrow { display: none; }
  .form-wrap { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .process-step { grid-template-columns: clamp(44px, 6vw, 60px) 1fr; }
}

/* Mobile landscape + small tablet (481–640px) */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .split-card { padding: clamp(32px, 6vw, 48px) clamp(16px, 4vw, 24px); }
  .cta-banner { padding: clamp(48px, 8vw, 70px) clamp(16px, 4vw, 24px); }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-meta { justify-content: flex-start; }
}

/* Mobile portrait (≤480px) */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn-fill,
  .hero-btns .btn-ghost { width: 100%; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-white,
  .cta-btns .btn-outline-white { width: min(280px, 80vw); text-align: center; }
  .pullquote { font-size: clamp(18px, 5vw, 22px); }
}

/* Very small screens (≤360px — iPhone SE etc.) */
@media (max-width: 360px) {
  .hero-h1, .hero-h1.hero-h1-long { font-size: clamp(26px, 8vw, 36px); }
  .hero-sub { font-size: 14px; }
  nav { padding: 12px 14px; }
}

/* Large desktop (≥1920px) */
@media (min-width: 1920px) {
  .section-pad { padding: 130px clamp(48px, 5vw, 120px); }
  .hero { padding: 220px clamp(48px, 5vw, 120px) 110px; }
}
