/* ==========================================================================
   Roots & Rise Ltd — Services Page
   Design System V1.1
   ========================================================================== */

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

  /* Tier 2 — Operational 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;

  /* Logo mark tokens (canonical Option 2) */
  --logo-bar-1:#EDEDED;
  --logo-bar-2:#BFBFBF;
  --logo-bar-3:#8A8A8A;
  --logo-bar-4:#3A3A3A;

  /* Spacing tokens */
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:40px;
  --space-xl:64px;
  --space-2xl:96px;
  --space-3xl:128px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

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

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

.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; }
button{ font-family:inherit; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 80px;
}

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

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

section{ padding:var(--space-2xl) 0; }

/* 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);
}
@media (prefers-reduced-motion: reduce){
  .fade-in{ opacity:1; transform:none; transition:none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav{
  background:var(--ink);
  position:sticky;
  top:0;
  z-index:100;
}
.nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 80px;
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:height 200ms ease;
}

/* ---- Brand mark: icon + wordmark lockup (locked V1 logo treatment) ---- */
.brand{ display:flex; align-items:center; gap:14px; }

.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); }

.brand-divider{
  width:1px;
  height:32px;
  background:rgba(255,255,255,0.25);
  flex-shrink:0;
  transition:height 200ms ease;
}

.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:#fff; transition:font-size 200ms ease; }
.logo-word-sub{ font-weight:400; font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:var(--slate); margin-top:2px; transition:font-size 200ms ease; }
.footer-icon{ width:28px; height:22px; }

/* ---- Scrolled state: canonical sitewide 76px -> 58px, same identity proportionally reduced ---- */
.nav.scrolled .nav-inner{ height:58px; }
.nav.scrolled .logo-icon{ width:20px; height:16px; }
.nav.scrolled .brand-divider{ height:20px; }
.nav.scrolled .logo-word-main{ font-size:14px; }
.nav.scrolled .logo-word-sub{ font-size:8px; }

@media (prefers-reduced-motion: reduce){
  .nav-inner, .logo-icon, .brand-divider,
  .logo-word-main, .logo-word-sub{ transition:none; }
}

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

.hamburger{
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:none;
  border:none;
  color:#fff;
  font-size:24px;
  width:44px;
  height:44px;
  padding:0;
}

.mobile-drawer{
  position:fixed;
  top:0; right:-280px;
  width:280px; height:100%;
  background:var(--ink);
  z-index:200;
  transition:right 250ms ease;
  padding:32px 24px;
}
.mobile-drawer.open{ right:0; }
.mobile-drawer a{
  display:block;
  color:#fff;
  font-size:18px;
  padding:16px 0;
  border-bottom:1px solid var(--charcoal);
  min-height:56px;
  display:flex;
  align-items:center;
}
.drawer-close{
  color:#fff;
  font-size:24px;
  background:none;
  border:none;
  cursor:pointer;
  margin-bottom:24px;
  padding:10px;
}
.overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  z-index:150;
}
.overlay.open{ display:block; }

@media (prefers-reduced-motion: reduce){
  .mobile-drawer{ transition:none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display:inline-block;
  padding:14px 32px;
  font-family:'Inter';
  font-weight:500;
  font-size:14px;
  letter-spacing:0.02em;
  border-radius:3px;
  transition:background 150ms ease, border-color 150ms ease;
  cursor:pointer;
  border:none;
}
.btn:active{ transform:scale(0.98); }
.btn-primary{ background:var(--gold); color:#fff; }
.btn-primary:hover{ background:var(--deep-gold); }
.btn-secondary{ background:#fff; color:var(--ink); border:1.5px solid var(--ink); }
.btn-secondary:hover{ background:var(--linen); }
.btn-ghost-dark{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-dark:hover{ background:rgba(255,255,255,0.1); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{ background:var(--ink); padding:120px 0 96px; }
.hero .overline{ color:var(--operative); }
.hero h1{
  font-size:40px;
  line-height:1.15;
  letter-spacing:-0.02em;
  color:#fff;
  max-width:820px;
  margin-bottom:20px;
}
.hero p.support-line{
  font-size:18px;
  line-height:1.7;
  color:#B9B9B9;
  max-width:640px;
}

/* ==========================================================================
   Services Introduction
   ========================================================================== */

.services-intro{ background:var(--white); }
.services-intro-inner{
  max-width:660px;
  margin:0 auto;
  text-align:center;
  border-top:2px solid var(--gold);
  padding-top:40px;
}
.services-intro-inner p{ font-size:18px; color:var(--steel); }

/* ==========================================================================
   Service Detail Blocks
   ========================================================================== */

.service-block{ padding:var(--space-2xl) 0; }
.service-block.charcoal{ background:var(--charcoal); color:#fff; }
.service-block.linen{ background:var(--linen); }
.service-block.white{ background:var(--white); }

.service-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:64px;
  align-items:center;
}
.service-grid.reverse{ grid-template-columns:0.9fr 1.1fr; }
.service-grid.reverse .service-photo{ order:2; }
.service-grid.reverse .service-copy{ order:1; }

.service-copy h2{ font-size:28px; margin-bottom:24px; }
.charcoal .service-copy h2{ color:#fff; }
.service-copy p{ margin-bottom:16px; font-size:16px; line-height:1.7; }
.charcoal .service-copy p{ color:#CFCFCF; }
.linen .service-copy p, .white .service-copy p{ color:var(--steel); }

.service-photo img{
  border-radius:4px;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  filter:saturate(0.87);
}

.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin:20px 0 28px; }
.tag{
  font-size:12px;
  padding:6px 12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.25);
  color:#D8D8D8;
}
.linen .tag, .white .tag{ border:1px solid var(--bone); color:var(--steel); }

.marker-list li{
  position:relative;
  padding-left:20px;
  margin-bottom:14px;
  font-size:15px;
  line-height:1.6;
}
.charcoal .marker-list li{ color:#D8D8D8; }
.linen .marker-list li, .white .marker-list li{ color:var(--steel); }
.marker-list li::before{
  content:'';
  position:absolute;
  left:0; top:8px;
  width:10px; height:2px;
  background:var(--operative);
}

.qualifier-note{
  font-style:italic;
  font-size:13px;
  color:var(--slate);
  margin-top:24px;
  max-width:520px;
}
.charcoal .qualifier-note{ color:#9a9a9a; }

/* Differentiator list (Service 02) */
.differentiator-list li{ padding:18px 0; border-top:1px solid var(--bone); }
.differentiator-list li:last-child{ border-bottom:1px solid var(--bone); }
.differentiator-list li b{
  display:block;
  font-size:15px;
  color:var(--ink);
  margin-bottom:4px;
  font-weight:600;
}
.differentiator-list li span{ font-size:14px; color:var(--steel); }

/* 4-stage process (Service 03) */
.process-col{ display:flex; flex-direction:column; }
.process-step{ display:flex; gap:20px; padding:20px 0; border-top:1px solid var(--bone); }
.process-step:last-child{ border-bottom:1px solid var(--bone); }
.step-num{ font-family:'Inter'; font-weight:700; font-size:22px; color:var(--gold); min-width:40px; }
.step-body b{ display:block; font-size:15px; margin-bottom:4px; }
.step-body span{ font-size:14px; color:var(--steel); }

/* 5-step strip (Service 05) */
.five-step-strip{ background:var(--cream); padding:56px 0; }
.five-step-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:24px;
}
.five-step-item .num{
  font-weight:700;
  font-size:22px;
  color:var(--gold);
  margin-bottom:10px;
  display:block;
}
.five-step-item b{ display:block; font-size:14px; margin-bottom:6px; }
.five-step-item span{ font-size:13px; color:var(--steel); line-height:1.6; }

/* ==========================================================================
   Field Execution Capacity
   ========================================================================== */

.field-capacity{ background:var(--cream); }
.fc-grid{
  display:grid;
  grid-template-columns:1fr 0.85fr;
  gap:64px;
  align-items:start;
}
.fc-copy h2{ font-size:28px; margin-bottom:20px; color:var(--ink); }
.fc-copy p{ color:var(--steel); margin-bottom:16px; font-size:16px; }
.fc-stat{
  border-left:3px solid var(--gold);
  padding:14px 20px;
  margin-top:24px;
  font-weight:600;
  font-size:16px;
  background:var(--white);
}
.info-cards{ display:flex; flex-direction:column; gap:16px; }
.info-card{
  background:var(--white);
  border:1px solid #E8E6E0;
  border-radius:4px;
  padding:16px 18px;
}
.info-card b{ display:block; font-size:14px; margin-bottom:6px; }
.info-card span{ font-size:13px; color:var(--steel); line-height:1.6; }

/* ==========================================================================
   CTA Band
   ========================================================================== */

.cta-band{ background:var(--cream); text-align:center; }
.cta-inner{ max-width:500px; margin:0 auto; }
.cta-inner h2{ font-size:28px; margin-bottom:16px; }
.cta-inner p{ color:var(--steel); margin-bottom:28px; font-size:16px; }
.cta-buttons{ display:flex; gap:16px; justify-content:center; margin-bottom:20px; }
.response-micro{ font-size:13px; color:var(--slate); font-style:italic; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer{ background:var(--ink); color:#fff; padding:72px 0 0; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:56px;
}
.footer-logo-mark{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.footer-icon{ width:26px; height:22px; }
.footer-divider{ height:36px; }
.footer-wordmark .logo-word-main{ font-size:18px; }
.footer-wordmark .logo-word-sub{ font-size:11px; }
.footer-tagline{ font-style:italic; color:var(--slate); font-size:11px; margin-bottom:12px; }
.gold-divider{ width:24px; height:2px; background:var(--gold); margin-bottom:16px; }
.footer-desc{ font-size:13px; color:#B9B9B9; line-height:1.7; margin-bottom:20px; }
.social-icons{ display:flex; gap:12px; }
.social-icons a{
  width:32px; height:32px;
  border:1px solid #3a3a3a;
  border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; 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:#fff; }
.footer-col h4{ font-size:13px; color:#fff; margin-bottom:18px; font-weight:600; }
.footer-col li{ margin-bottom:12px; font-size:13px; color:#B9B9B9; }
.footer-col a:hover{ color:#fff; }
.footer-col li.active-page{ color:#fff; font-weight:500; }
.footer-bottom{
  border-top:1px solid var(--charcoal);
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--slate);
}
.footer-bottom div a{ margin-left:20px; }

/* ==========================================================================
   Accessibility — focus states
   ========================================================================== */

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

/* ==========================================================================
   Responsive — Tablet (768–1199px)
   ========================================================================== */

@media (max-width:1199px){
  .container{ padding:0 40px; }
  .nav-inner{ padding:0 40px; }
  .service-grid, .fc-grid{ grid-template-columns:1fr; gap:32px; }
  .service-grid.reverse .service-photo,
  .service-grid.reverse .service-copy{ order:0; }
  .five-step-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ==========================================================================
   Responsive — Mobile (<768px)
   ========================================================================== */

@media (max-width:767px){
  .container{ padding:0 20px; }
  .nav-inner{ padding:0 20px; }
  .nav-links{ display:none; }
  .hamburger{ display:flex; }

  /* Compact mark: same icon + wordmark relationship, reduced scale */
  .brand{ gap:10px; }
  .logo-icon{ width:18px; height:16px; }
  .brand-divider{ height:26px; }
  .logo-word-main{ font-size:14px; }
  .logo-word-sub{ font-size:9px; }

  section{ padding:56px 0; }
  .hero{ padding:64px 0 56px; text-align:center; }
  .hero h1{ font-size:28px; margin-left:auto; margin-right:auto; }
  .hero p.support-line{ font-size:15px; margin-left:auto; margin-right:auto; }

  .services-intro-inner p{ font-size:16px; }

  .service-copy h2{ font-size:22px; }

  /* Site Operations & Supervision (and all service-grid sections) — guaranteed
     single-column mobile stacking, full-width imagery, card-style differentiator list */
  .service-grid{ grid-template-columns:1fr !important; gap:28px; }
  .service-photo{ width:100%; }
  .service-photo img{ width:100%; }

  .differentiator-list{ display:flex; flex-direction:column; gap:12px; }
  .differentiator-list li{
    padding:18px; border:1px solid var(--bone); border-radius:8px;
    background:var(--white);
  }
  .differentiator-list li:last-child{ border-bottom:1px solid var(--bone); }
  .differentiator-list li b{ font-size:15px; }
  .differentiator-list li span{ display:block; font-size:14px; line-height:1.6; }

  .five-step-grid{ grid-template-columns:1fr; }

  .cta-inner h2{ font-size:22px; }
  .cta-buttons{ flex-direction:column; }
  .btn{ width:100%; text-align:center; }

  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:12px; text-align:center; }
}


/* Progressive enhancement fallback */
.no-js .fade-in { opacity: 1; transform: none; }
