/* ============================================================
   BASE — Carolina Sod Solutions
   Premium residential lawn installation — Laurens County, SC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@400;500&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
  /* Brand greens */
  --green-900:   #122b13;
  --green-800:   #1c3f1e;
  --green-700:   #275c2a;
  --green-600:   #317534;
  --green-500:   #3d8c41;
  --green-400:   #5aaa5e;
  --green-300:   #84c389;
  --green-50:    #f2f8f2;
  --green-100:   #e4f1e5;
  --green-200:   #c3e0c5;

  /* Warm gold — premium CTAs */
  --gold:        #b07d1a;
  --gold-dark:   #8a5f10;
  --gold-light:  #d4a23c;
  --gold-bg:     #fdf7ec;

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #fafaf9;
  --cream:       #f6f5f0;
  --stone:       #ede9e2;
  --border:      rgba(0,0,0,.09);
  --border-mid:  rgba(0,0,0,.14);

  /* Text */
  --text-dark:   #141c14;
  --text-body:   #2e382e;
  --text-muted:  #627062;
  --text-light:  rgba(255,255,255,.85);

  /* Aliases for component compatibility */
  --ink:         #1c3f1e;
  --ink-mid:     #275c2a;
  --ink-light:   #317534;
  --amber:       #b07d1a;
  --amber-dark:  #8a5f10;
  --amber-light: #d4a23c;
  --sage:        #5aaa5e;
  --cream-dark:  #ede9e2;
  --paper:       #fafaf9;
  --body-text:   #2e382e;
  --body-muted:  #627062;
  --border-light: rgba(255,255,255,.18);

  /* Typography */
  --font-display:    'Inter', system-ui, sans-serif;
  --font-serif:      'Inter', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-reading:    'Inter', system-ui, sans-serif;
  --font-editorial:  'Instrument Serif', Georgia, serif;
  --font-mono:       'DM Mono', ui-monospace, monospace;

  /* Type scale */
  --step--1: clamp(.8rem,   1.5vw, .875rem);
  --step-0:  clamp(.9rem,   1.8vw, 1rem);
  --step-1:  clamp(1.05rem, 2vw,   1.2rem);
  --step-2:  clamp(1.25rem, 2.5vw, 1.5rem);
  --step-3:  clamp(1.6rem,  3.5vw, 2.1rem);
  --step-4:  clamp(2rem,    4.5vw, 2.9rem);
  --step-5:  clamp(2.6rem,  6vw,   4rem);
  --step-6:  clamp(3.5rem,  9vw,   6.5rem);

  /* Spacing */
  --space-xs:  .5rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container:  1240px;
  --gutter:     clamp(1.25rem, 5vw, 2.5rem);
  --radius-s:   6px;
  --radius-m:   10px;
  --radius-l:   18px;

  /* Shadows */
  --shadow-s:     0 1px 4px rgba(0,0,0,.07);
  --shadow-m:     0 4px 20px rgba(0,0,0,.09);
  --shadow-l:     0 12px 48px rgba(0,0,0,.12);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.15);
  --shadow-amber: 0 6px 24px rgba(176,125,26,.30);

  /* Transitions */
  --ease:        cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur-s:  160ms;
  --dur-m:  280ms;
  --dur-l:  480ms;
}

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

html, body {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }

::selection {
  background: var(--green-600);
  color: #fff;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -.025em;
}

h1 { font-size: var(--step-5); line-height: 1.0; letter-spacing: -.035em; }
h2 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -.025em; }
h4 { font-size: var(--step-2); font-weight: 600; letter-spacing: -.02em; }
h5 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.015em; }
h6 { font-size: var(--step-0); font-weight: 600; letter-spacing: -.01em; }

h1 em, h2 em, h3 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  line-height: .95;
  letter-spacing: -.03em;
}

p {
  font-size: var(--step-0);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 68ch;
}

strong { font-weight: 600; color: var(--text-body); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

/* ── Eyebrow label ───────────────────────────────────────── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--green-700);
}

.label-tag::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--green-500);
  flex-shrink: 0;
  opacity: .6;
}

.label-tag--light {
  color: rgba(255,255,255,.8);
}
.label-tag--light::before {
  background: rgba(255,255,255,.5);
}

.label-tag--gold {
  color: var(--gold-light);
}
.label-tag--gold::before {
  background: var(--gold-light);
}

/* ── Scroll reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }

[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
  transform: translateX(0);
}

@media (max-width: 768px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(18px); }
  [data-reveal="left"].revealed,
  [data-reveal="right"].revealed { transform: translateY(0); }
}

[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

/* ── Section spacing ─────────────────────────────────────── */
.section {
  padding-block: var(--space-3xl);
}

.section--tight {
  padding-block: var(--space-2xl);
}

@media (max-width: 1024px) {
  .section       { padding-block: 4rem; }
  .section--tight { padding-block: 3rem; }
}

/* Section backgrounds */
.section--white  { background: var(--white); }
.section--off    { background: var(--off-white); }
.section--cream  { background: var(--cream); }
.section--green  { background: var(--green-50); }

.section--dark   {
  background: var(--green-800);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
  font-family: var(--font-serif);
}
.section--dark p { color: rgba(255,255,255,.72); }

.section--ink-mid {
  background: var(--green-700);
  color: var(--white);
}
.section--paper { background: var(--off-white); }

/* ── Clip shapes ─────────────────────────────────────────── */
.clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: calc(var(--space-3xl) + 3vw);
}

.clip-top {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-3xl) + 3vw);
  margin-top: -2.5vw;
}

.clip-both {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  padding-block: calc(var(--space-3xl) + 2.5vw);
  margin-block: -2vw;
}

/* ── Phone link ──────────────────────────────────────────── */
.phone-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: .02em;
  transition: color var(--dur-s);
}
.phone-link:hover { color: var(--green-700); }

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

.text-center { text-align: center; }
