/* ==========================================================================
   Roots & Rise Ltd — Homepage (Simplified V2)
   Design System V1.1 tokens — reduced to 5 content sections per approved
   simplification: Hero, Who We Are, Core Services, Why Choose, CTA
   ========================================================================== */

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

  --operative: #2A7A5A;
  --deep-ops: #1F5C42;
  --ops-tint: #E8F4EF;

  --gold: #8B6914;
  --deep-gold: #7A5C11;
  --mid-gold: #A07820;
  --light-gold: #C9A23A;
  --gold-tint: #F5ECD0;

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

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

  --container-max: 1200px;
  --pad-desktop: 80px;
  --pad-tablet: 40px;
  --pad-mobile: 20px;

  --section-pad-desktop: 96px;
  --section-pad-tablet: 56px;
  --section-pad-mobile: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--operative);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink);
  padding: 12px 20px; z-index: 999; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}
@media (max-width: 1199px) { .container { padding: 0 var(--pad-tablet); } }
@media (max-width: 767px) { .container { padding: 0 var(--pad-mobile); } }

section { padding: var(--section-pad-desktop) 0; }
@media (max-width: 1199px) { section { padding: var(--section-pad-tablet) 0; } }
@media (max-width: 767px) { section { padding: var(--section-pad-mobile) 0; } }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.section-head p { font-size: 16px; color: var(--steel); margin-top: 14px; }

.overline {
  display: block; font-weight: 600; font-size: 11px; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 14px;
}
.overline--gold { color: var(--mid-gold); }
.overline--green { color: var(--operative); }

h1, h2, h3, h4 { font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 14px 32px; font-weight: 500; font-size: 14px;
  letter-spacing: 0.02em; border-radius: 3px;
  transition: background-color 150ms ease, transform 150ms ease, border-color 150ms ease;
  cursor: pointer; border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: var(--white); }
.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-ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Navigation (unchanged — locked, Section 8.1)
   ========================================================================== */
.site-nav { background: var(--ink); position: sticky; top: 0; z-index: 100; transition: box-shadow 200ms 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;
  transition: height 200ms ease;
}
/* Scrolled state — canonical sitewide 76px -> 58px, same identity proportionally reduced */
.site-nav.scrolled .nav-inner { height: 58px; }
.site-nav.scrolled .logo-icon { width: 20px; height: 16px; }
.site-nav.scrolled .logo-divider { height: 20px; }
.site-nav.scrolled .logo-word-main { font-size: 14px; }
.site-nav.scrolled .logo-word-sub { font-size: 8px; }
@media (max-width: 1199px) { .nav-inner { padding: 0 var(--pad-tablet); } }
@media (max-width: 767px) { .nav-inner { padding: 0 var(--pad-mobile); } }

.brand { display: flex; align-items: center; gap: 14px; }

/* Canonical logo mark (Option 2 — SVG/CSS-variable, About-page structural base) */
.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; }
.footer-logo-icon { width: 28px; height: 22px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 14px; color: var(--slate); transition: color 150ms ease; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform 150ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; width: 280px; max-width: 84vw; height: 100%;
  background: var(--ink); transform: translateX(100%); transition: transform 250ms ease;
  z-index: 110; padding: 24px; display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a { color: var(--white); font-size: 18px; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--charcoal); }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--white); font-size: 24px; line-height: 1; padding: 8px; margin-bottom: 12px; cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 200ms ease; z-index: 105; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background-color: #0d0d0d; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 120px 0; }
.hero h1 { font-size: 52px; line-height: 1.12; letter-spacing: -0.03em; color: var(--white); margin-bottom: 22px; }
.hero p { font-size: 18px; line-height: 1.7; color: #E4E2DE; max-width: 580px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

@media (max-width: 1199px) {
  .hero-content { padding: 100px 0; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 767px) {
  .hero { min-height: 540px; }
  .hero-content { padding: 76px 0; text-align: center; margin: 0 auto; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; justify-content: center; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ==========================================================================
   2. Who We Are
   ========================================================================== */
.who-we-are { background: var(--white); }
.who-we-are-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.who-we-are-inner h2 { font-size: 30px; line-height: 1.3; margin-bottom: 22px; }
.who-we-are-inner p { font-size: 17px; color: var(--steel); line-height: 1.75; margin-bottom: 18px; }
.who-we-are-inner .btn { margin-top: 12px; }

/* ==========================================================================
   3. Our Core Services
   ========================================================================== */
.core-services { background: var(--linen); }
.core-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.core-service-card {
  background: var(--white);
  border: 1px solid #E8E6E0;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
  padding: 28px 24px;
  transition: border-top-color 200ms ease;
}
.core-service-card:hover, .core-service-card:focus-within { border-top-color: var(--operative); }
.core-service-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.core-service-card p { font-size: 14px; color: var(--steel); line-height: 1.6; }

.core-services-cta { margin-top: 44px; text-align: center; }

@media (max-width: 1199px) { .core-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .core-services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   4. Why Choose Roots & Rise
   ========================================================================== */
.why-choose { background: var(--white); }
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.why-choose-item { text-align: center; padding: 0 8px; }
.why-choose-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ops-tint);
  display: flex; align-items: center; justify-content: center;
}
.why-choose-icon svg { width: 24px; height: 24px; stroke: var(--operative); fill: none; stroke-width: 1.75; }
.why-choose-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.why-choose-item p { font-size: 14px; color: var(--steel); line-height: 1.6; }

@media (max-width: 1199px) { .why-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 767px) { .why-choose-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   5. CTA band
   ========================================================================== */
.cta-band { background: var(--cream); text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner h2 { font-size: 28px; line-height: 1.3; margin-bottom: 18px; }
.cta-inner p { font-size: 16px; color: var(--steel); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer (unchanged — Section 8.3, sitewide chrome)
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .name { font-weight: 700; font-size: 14px; color: var(--white); margin-top: 14px; }
.footer-brand .tagline { font-style: italic; font-size: 11px; color: var(--slate); margin-top: 6px; }
.footer-divider { width: 24px; height: 2px; background: var(--gold); margin: 14px 0; }
.footer-brand p { font-size: 13px; color: #A8A6A1; line-height: 1.6; margin-bottom: 20px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--charcoal);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--slate);
  transition: border-color 150ms ease, color 150ms ease;
}
.social-icons a:hover, .social-icons a:focus-visible { border-color: var(--slate); color: var(--white); }

.site-footer h2.footer-heading { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; font-weight: 600; }
.site-footer ul li { margin-bottom: 12px; font-size: 14px; color: #C7C5C0; }
.footer-contact ul li { display: flex; align-items: center; gap: 8px; }
.footer-contact a { color: #C7C5C0; transition: color 150ms ease; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--white); }
.icon-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--operative); display: inline-block; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--charcoal); padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8A8884;
}
.footer-bottom-links a { margin-left: 20px; color: #8A8884; }
.footer-bottom-links a:first-child { margin-left: 0; }
.footer-bottom-links a:hover, .footer-bottom-links a:focus-visible { color: var(--white); }

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "nav services" "contact contact";
  }
  .footer-brand { grid-area: brand; }
  .footer-nav { grid-area: nav; }
  .footer-services { grid-area: services; }
  .footer-contact { grid-area: contact; }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "nav services" "contact contact"; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links a:first-child { margin-left: 0; }
  .footer-bottom-links a { margin-left: 0; margin-right: 20px; }
}

/* ==========================================================================
   Scroll fade-in
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 300ms ease-out, transform 300ms ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }
.no-js .fade-in { opacity: 1; transform: none; }
