/* Rustic Pale Service Site — single-file CSS */

:root{
  --bg: #f5f1e8;          /* pale warm */
  --surface: #fffaf0;     /* cards */
  --surface-2: #f1ead8;   /* subtle tint */
  --ink: #1f2a1f;         /* dark text */
  --muted: #4c5a47;       /* muted text */
  --border: rgba(31,42,31,.14);

  --brand: #8a5a2b;       /* leather/wood */
  --brass: #c48a2c;       /* brass accent */
  --work: #2f6f4f;        /* workwear green */

  --max: 1120px;
  --gutter: clamp(16px, 3vw, 28px);

  --r1: 12px;
  --r2: 18px;
  --r3: 28px;

  --shadow1: 0 14px 34px rgba(31,42,31,.10);
  --shadow2: 0 24px 54px rgba(31,42,31,.14);

  --space1: 8px;
  --space2: 12px;
  --space3: 16px;
  --space4: 24px;
  --space5: 32px;
  --space6: 48px;
  --space7: 72px;
}

*{ box-sizing:border-box; }
html{ font-size:16px; }
body{
  margin:0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background-image: radial-gradient(rgba(31,42,31,.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip{
  position:absolute; left:-9999px; top:auto;
}
.skip:focus{
  left: 12px; top: 12px;
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #0b0f14;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 6px 0;
  text-decoration:none;
}

/* Logo lockup */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}

.logo-icon{
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
}

.logo-text{
  height: 26px;
  width: auto;
  max-width: 340px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.30));
}

/* Mobile: keep it tidy */
@media (max-width: 520px){
  .logo-text{ height: 22px; }
}

/* =========================
   NAVBAR: Black + Sticky
   ========================= */

.site-header .header-inner{
  padding: 14px 0;
}

:target{
  scroll-margin-top: 90px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}

.site-header .nav a{
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  text-decoration:none;
}

.site-header .nav a:hover{
  background: rgba(255,255,255,.08);
}

.site-header .nav a.active{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
}

/* Mobile nav */
.nav-toggle{
  display:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor:pointer;
}

@media (max-width: 760px){
  .nav-toggle{ display:inline-flex; }

  .nav{
    display:none;
    position:absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #0b0f14;
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: 10px var(--gutter) 14px;
    flex-direction:column;
    align-items:stretch;
  }
  .nav.open{ display:flex; }
}

/* Buttons (works for .button or .btn) */
.btn, .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,31,.18);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration:none;
  box-shadow: 0 12px 26px rgba(31,42,31,.10);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover, .button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  border-color: color-mix(in srgb, var(--brand) 30%, rgba(31,42,31,.18));
  box-shadow: 0 18px 38px rgba(31,42,31,.14);
  text-decoration:none;
}
.btn:active, .button:active{ transform: translateY(0); }

.btn.primary, .button.primary{
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, white), color-mix(in srgb, var(--brand) 70%, black));
  border-color: rgba(0,0,0,.18);
  color: #fffaf0;
}
.btn.accent, .button.alt, .button.accent{
  background: linear-gradient(180deg, color-mix(in srgb, var(--work) 92%, white), color-mix(in srgb, var(--work) 70%, black));
  border-color: rgba(0,0,0,.18);
  color: #fffaf0;
}
.btn.secondary, .button.secondary{
  background: rgba(255,255,255,.60);
  border-color: color-mix(in srgb, var(--brass) 45%, rgba(31,42,31,.18));
  color: color-mix(in srgb, var(--ink) 90%, var(--brand));
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: var(--space4) 0 0;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: 999px;
  font-weight: 800;
  color: color-mix(in srgb, var(--ink) 85%, var(--brand));
}

/* =========================
   HERO SECTION
   ========================= */
.hero{
  position: relative;
  width: 100%;
  min-height: min(90vh, 900px);
  color: #fff;
  overflow: hidden;
}

@media (max-width: 768px){
  .hero{
    min-height: min(78vh, 620px);
  }
}

.hero-slides{
  position:absolute; inset:0;
}

.hero-slide{
  position:absolute; inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--pos, center);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease;
  will-change: transform, opacity;
}

/* Active slide visible */
.hero-slide.is-active{ opacity: 1; }

/* Ken Burns motion on the active slide */
.hero-slide.is-active{
  animation: heroKenBurns 10.5s ease-in-out forwards;
}

@keyframes heroKenBurns{
  0%   { transform: scale(1.04) translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-slide.is-active{ animation: none; transform: none; }
  .hero-slide{ transition: opacity 250ms linear; }
}

@media (max-width: 768px){
  .hero-slide{
    background-position: var(--pos-mobile, var(--pos, center));
  }
}

/* Dark readability overlay (no “card”) */
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.10) 100%),
    linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.25) 100%);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6.5rem) 1.25rem;
  min-height: min(72vh, 720px);
  display:flex;
  align-items:flex-end;
}

.hero-copy{
  max-width: 620px;
}

.hero-kicker{
  display:inline-block;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  margin: 0 0 .6rem 0;
}

.hero h1{
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 .7rem 0;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-sub{
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.45;
  margin: 0 0 1.2rem 0;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.hero-cta{
  display:flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration:none;
  border: 1px solid transparent;
}

.btn-primary{
  background: #c48a2c; /* brass */
  color: #1f2a1f;
}

.btn-ghost{
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-dots{
  display:flex;
  gap:.4rem;
  margin-top: 1.1rem;
}

.hero-dots button{
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.40);
  cursor:pointer;
}

.hero-dots button[aria-current="true"]{
  background: rgba(255,255,255,.90);
}

/* Page sections */
main{
  padding: clamp(2rem, 4vw, 3.25rem) 0 var(--space7);
}
.section{
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}
.surface{
  background: var(--surface);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: var(--r3);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow1);
}
.surface.raised{
  box-shadow: var(--shadow2);
}
.intro-head h2{ margin: 0 0 var(--space2); }
.intro-lede{
  margin: 0;
  color: var(--muted);
  max-width: 110ch;
}

.intro-meta{
  margin-top: var(--space4);
  display: grid;
  gap: var(--space3);
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: 999px;
  font-weight: 800;
  color: color-mix(in srgb, var(--ink) 85%, var(--brand));
}

.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 800;
  font-size: .95rem;
}

.trust-row li{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: 999px;
  padding: 8px 12px;
}

.trust-row span{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: 999px;
  padding: 8px 12px;
}

@media (min-width: 900px){
  .intro-meta{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Grids + cards */
.grid{
  display: grid;
  gap: var(--space4);
  align-items: stretch;
}

.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px){
  .cols-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .cols-2, .cols-3{ grid-template-columns: 1fr; }
}

.card{
  height: 100%;
  display: flex;
  flex-direction: column;

  background: linear-gradient(180deg, var(--surface), #ffffff);
  border: 1px solid rgba(31,42,31,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow1);
  padding: var(--space4);
  position: relative;
  overflow: hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 260px at 18% 0%, rgba(138,90,43,.10), transparent 58%),
    radial-gradient(700px 260px at 82% 100%, rgba(196,138,44,.10), transparent 58%);
  pointer-events:none;
}
.card h3{ margin: 0 0 var(--space2); }
.card p{ margin: 0; color: var(--muted); }

.icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  margin-bottom: var(--space3);
  background: color-mix(in srgb, var(--brass) 18%, white);
  border: 1px solid color-mix(in srgb, var(--brass) 42%, transparent);
  box-shadow: 0 12px 26px rgba(31,42,31,.10);
  font-weight: 1000;
}

/* Split row */
.split{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space5, 32px);
  align-items: start;
}

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

.split > div{
  min-width: 0; /* prevents weird grid overflow edge cases */
}

.split-cards{
  grid-column: 1 / -1;   /* span both columns */
}

@media (max-width: 900px){
  .split-cards{
    grid-column: auto;   /* stacks naturally */
  }
}

.rule{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,42,31,.22), transparent);
  margin: var(--space4) 0;
}

/* Screen reader utility */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Forms */
form .field{ margin: 0 0 var(--space3); }
label{ font-weight: 900; display:block; margin: 0 0 6px; }
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,31,.18);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: color-mix(in srgb, var(--work) 45%, rgba(31,42,31,.18));
  box-shadow: 0 0 0 4px rgba(47,111,79,.12);
}
textarea{ min-height: 140px; resize: vertical; }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(31,42,31,.10);
  padding: 26px 0;
  color: var(--muted);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.small{ font-size: .92rem; }

.cta-card{
  background: rgba(255,250,240,.92);            /* tint */
  border: 1px solid var(--border, rgba(31,42,31,.14));
  border-radius: 22px;
  padding: 24px 26px;                           /* slightly tighter */
  box-shadow: 0 18px 40px rgba(31,42,31,.08);
  backdrop-filter: blur(6px);                   /* works because bg has alpha */
}

.cta-card h3{
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.cta-lede{
  margin: 0;
  color: var(--muted, #4c5a47);
  line-height: 1.55;
}

.cta-rule{
  height: 1px;
  margin: 18px 0 18px;
  background: rgba(31,42,31,.08);
}

.cta-actions{
  display: flex;
  gap: 12px;
  align-items: center;
}

.cta-actions .btn{
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
}

/* Force the “secondary” to look like a secondary */
.cta-actions .btn-ghost{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.20);
  color: var(--ink, #1f2a1f);
  box-shadow: none;
}

/* Primary gets visual weight; secondary stays calm */
.cta-actions .btn-primary{
  box-shadow: 0 10px 22px rgba(47,111,79,.22);
}

.cta-card h3{ margin: 0 0 8px; }
.cta-lede{ margin: 0; }
.cta-rule{ margin: 16px 0; }
.cta-note{ margin: 12px 0 0; }

.cta-note{
  margin: 14px 0 0;
  color: var(--muted, #4c5a47);
  font-size: .98rem;
  line-height: 1.4;
}

.cta-note a{
  color: var(--brand, #8a5a2b);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Mobile: stack CTAs so nothing squishes */
@media (max-width: 600px){
  .cta-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

.jump-links{
  margin-top: var(--space4);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,42,31,.10);
  font-weight: 800;
  color: color-mix(in srgb, var(--ink) 85%, var(--brand));
  text-decoration: none;
}
.chip:hover{ text-decoration: none; transform: translateY(-1px); }

/* .service-card{
  text-decoration: none;
  color: inherit;
} */

/* --- Service cards: layout + typography --- */
.service-card{
  position: relative;          /* needed for screws */
  display: flex;
  flex-direction: column;
}

.service-card h3{
  margin: 0 0 var(--space2);
  line-height: 1.2;
}

.service-card p{ margin: 0; }

.service-card .icon{
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.9;
  position: relative;          /* needed for the extra screws on the icon */
  margin-left: var(--space2);
}

/* keep your link styling */
.service-link{
  margin-top: var(--space3);
  font-weight: 900;
  color: var(--brand);
}

/* Top-left / bottom-right */
.service-card::before{
  top: 14px;
  left: 14px;
}
.service-card::after{
  bottom: 14px;
  right: 14px;
}

/* Top-right / bottom-left (relative to the icon box) */
.service-card .icon::before{
  top: -10px;
  right: -10px;
}
.service-card .icon::after{
  bottom: -10px;
  left: -10px;
}

/* === Services grid only: title + icon alignment === */
.services-grid .service-card .card-head{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space2);
  padding-top: 2px;
  padding-right: 10px;
}

.services-grid .service-card h3{
  margin: 0 0 var(--space2);
  line-height: 1.2;
}

.services-grid .service-card{
  /* keep whatever .card already has, but ensure we get the wash */
  background-image:
    radial-gradient(120% 140% at 15% 10%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
}

.services-grid .service-card p{ margin: 0; }

.services-grid .service-card .icon{
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.9;
  margin-left: var(--space2);
}

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem; /* fixes the “button smash” */
  flex-wrap: wrap;
}

/* Chips stay grouped */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Buttons align right and stay tight */
.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}