/* ==========================================================================
   ROOTS & RISE LTD — About Page
   Design System V1.1 — tokens below are locked; do not introduce new values.
   ========================================================================== */

:root {
  /* Tier 1 — Foundation */
  --ink: #1A1A1A;
  --charcoal: #2C2C2C;
  --steel: #4A4A4A;
  --slate: #888888;
  --bone: #D0CDC8;
  --linen: #F0EDE8;
  --cream: #F8F7F4;
  --white: #FFFFFF;

  /* Tier 2 — Operative Green */
  --operative: #2A7A5A;
  --deep-ops: #1F5C42;
  --ops-tint: #E8F4EF;

  /* Tier 3 — Brand Gold */
  --gold: #8B6914;
  --deep-gold: #7A5C11;
  --mid-gold: #A07820;
  --light-gold: #C9A23A;
  --gold-tint: #F5ECD0;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Logo mark — grayscale only, no gold/green */
  --logo-bar-1: #EDEDED;
  --logo-bar-2: #BFBFBF;
  --logo-bar-3: #8A8A8A;
  --logo-bar-4: #3A3A3A;

  /* Layout */
  --container-max: 1200px;
  --pad-desktop: 80px;
  --pad-mobile: 20px;
  --section-pad-desktop: 96px;
  --section-pad-tablet: 56px;
  --section-pad-mobile: 40px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}
.section { padding: var(--section-pad-desktop) 0; }
.center { text-align: center; }
.narrow { max-width: 540px; margin-left: auto; margin-right: auto; }

.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.overline-gold { color: var(--gold); }
.overline-green { color: var(--operative); }
.overline.center { text-align: center; }

h1, h2, h3 { font-weight: 600; color: var(--ink); margin: 0; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 24px; }
h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; }

p { font-size: 16px; line-height: 1.7; color: var(--steel); margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: height 150ms ease;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* ---------------- Logo mark (icon + wordmark) ---------------- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform 150ms ease;
}
.logo-icon {
  width: 26px;
  height: 21px;
  flex-shrink: 0;
  transition: width 150ms ease, height 150ms ease;
}
.logo-icon .bar { transition: none; }
.logo-icon .bar-1 { fill: var(--logo-bar-1); }
.logo-icon .bar-2 { fill: var(--logo-bar-2); }
.logo-icon .bar-3 { fill: var(--logo-bar-3); }
.logo-icon .bar-4 { fill: var(--logo-bar-4); }

.logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-word-main {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--white);
}
.logo-word-sub {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-top: 2px;
}

/* Scrolled header — same identity, proportionally reduced */
.site-header.scrolled .nav-inner { height: 58px; }
.site-header.scrolled .logo-icon { width: 20px; height: 16px; }
.site-header.scrolled .logo-divider { height: 20px; }
.site-header.scrolled .logo-word-main { font-size: 14px; }
.site-header.scrolled .logo-word-sub { font-size: 8px; }

/* Mobile drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.nav-logo-compact .logo-icon { width: 22px; height: 18px; }
.nav-logo-compact .logo-word-main { font-size: 15px; }
.nav-logo-compact .logo-word-sub { font-size: 9px; }

/* Footer brand mark */
.nav-logo-footer { margin-bottom: 20px; }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a {
  font-size: 14px;
  color: var(--slate);
  transition: color 150ms ease;
  position: relative;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--white); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 150ms ease;
}
.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--ink);
  transform: translateX(100%);
  transition: transform 250ms ease;
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 32px;
  cursor: pointer;
}
.mobile-drawer nav { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  font-size: 18px;
  color: var(--white);
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--charcoal);
}
.mobile-drawer nav a.active { color: var(--light-gold); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 150;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------------- Hero ---------------- */
.hero-about {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.hero-watermark {
  position: absolute;
  right: 40px;
  top: -20px;
  font-size: 220px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-headline {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 640px;
  font-weight: 700;
}
.hero-subline {
  font-size: 14px;
  color: var(--slate);
  margin-top: 20px;
}

/* ---------------- Split 50/50 layout ---------------- */
.split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-50.reverse { direction: rtl; }
.split-50.reverse > * { direction: ltr; }
.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  filter: saturate(85%) contrast(1.02);
}

/* Why Choose Us — full scene requested; container matches source photo's own
   aspect ratio exactly so cover crops nothing. Scoped to this section only. */
.why-choose .split-photo img {
  aspect-ratio: 1000 / 1316;
  height: auto;
}
@media (max-width: 768px) {
  /* Mobile only: the full-scene portrait ratio becomes excessively tall on
     narrow viewports. Use a landscape ratio and favor the top of the frame
     so the cab, operator, and wheels stay visible. Desktop unchanged. */
  .why-choose .split-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 11%;
    height: auto;
  }
}

/* ---------------- Who We Are ---------------- */
.who-we-are { background: var(--white); }

/* ---------------- Mission & Values ---------------- */
.mission-values { background: var(--charcoal); }
.mission-statement {
  font-size: 19px;
  font-style: italic;
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.values-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #3a3a3a;
}
.value-item {
  padding: 24px 20px 0;
  border-right: 1px solid #3a3a3a;
}
.value-item:last-child { border-right: none; }
.value-item h3 { color: var(--white); }
.value-item p { color: var(--slate); font-size: 14px; }

/* ---------------- How We Work ---------------- */
.how-we-work { background: var(--linen); }
.how-we-work-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
}
.how-item { padding: 0 32px; border-right: 1px solid var(--bone); }
.how-item:first-child { padding-left: 0; }
.how-item:last-child { border-right: none; padding-right: 0; }
.how-item p { font-size: 14px; }

/* ---------------- Why Choose Us ---------------- */
.why-choose { background: var(--white); }
.differentiator {
  border-top: 1px solid #E8E6E0;
  padding-top: 20px;
  margin-top: 20px;
}
.differentiator:first-of-type { margin-top: 24px; }
.differentiator p { font-size: 14px; }

/* ---------------- CTA Band ---------------- */
.cta-band { background: var(--cream); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin-bottom: 32px; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: background 150ms ease, transform 150ms ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: none;
}
.btn-primary:hover { background: var(--deep-gold); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background: var(--linen); }
.btn-sm { padding: 10px 20px; font-size: 13px; margin-top: 16px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); padding-top: 64px; }
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-name { font-weight: 700; font-size: 14px; color: var(--white); }
.footer-tagline { font-style: italic; color: var(--slate); font-size: 11px; margin-top: 6px; }
.gold-divider { width: 24px; height: 2px; background: var(--gold); margin: 16px 0; }
.footer-desc { font-size: 13px; color: var(--slate); line-height: 1.6; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { color: var(--slate); font-size: 20px; transition: color 150ms ease; }
.footer-social a:hover { color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a, .footer-whatsapp {
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--white); }
.footer-whatsapp { color: var(--operative); }
.footer-whatsapp i, .footer-whatsapp .icon-svg { margin-right: 6px; }
.footer-col a i, .footer-col a .icon-svg { margin-right: 6px; }

.footer-bottom {
  border-top: 1px solid var(--charcoal);
  padding: 20px var(--pad-desktop);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--white); }

/* ---------------- Fade-in on scroll ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.no-js .fade-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .mobile-drawer, .nav-desktop a::after { transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1199px) {
  .section { padding: var(--section-pad-tablet) 0; }
  .section-inner { padding: 0 40px; }
  .nav-inner { padding: 0 40px; }
  .split-50 { gap: 48px; }
}

@media (max-width: 900px) {
  .values-row, .how-we-work-row {
    grid-template-columns: 1fr;
  }
  .value-item, .how-item {
    border-right: none;
    border-bottom: 1px solid #3a3a3a;
    padding: 24px 0;
  }
  .how-item { border-bottom-color: var(--bone); }
  .value-item:last-child, .how-item:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .section { padding: var(--section-pad-mobile) 0; }
  .section-inner { padding: 0 var(--pad-mobile); }
  .nav-inner { padding: 0 var(--pad-mobile); }
  .hero-headline { font-size: 34px; text-align: center; margin-left: auto; margin-right: auto; }
  .hero-about .section-inner { text-align: center; }
  .hero-subline { margin-left: auto; margin-right: auto; }
  h2 { font-size: 22px; }
  .split-50, .split-50.reverse { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .split-50.reverse .split-photo { order: -1; }
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 20px var(--pad-mobile); }
  .btn { width: 100%; justify-content: center; }
  .cta-group { flex-direction: column; }
}
