/* ===== AMB Irrigation & Construction — TOKENS + LAYOUT ===== */
:root {
  /* Brand — navy → azure (sampled from logo) */
  --navy-900:  #04244F;
  --navy-800:  #073066;
  --navy-700:  #0A5089;
  --brand-700: #0C6FB0;   /* primary action */
  --brand-600: #1488C8;
  --brand-500: #1E9DE0;   /* azure accent */
  --brand-300: #6FC5EC;
  --brand-200: #A9DBF2;
  --brand-100: #DCEFFA;
  --brand-50:  #EFF7FC;

  /* Surfaces */
  --bg:         #FFFFFF;
  --bg-alt:     #F2F5F8;
  --bg-deep:    var(--navy-900);

  /* Text */
  --text:        #11202F;
  --text-muted:  #51606E;
  --text-subtle: #8A97A3;

  /* Lines */
  --border:     #E2E8EE;
  --border-med: #CBD5DE;

  --white: #FFFFFF;
  --star:  #F5A623;

  /* Signature gradient */
  --grad-brand: linear-gradient(120deg, var(--navy-800), var(--brand-500));
  --grad-bubble: linear-gradient(135deg, var(--brand-500), var(--brand-300));
  /* Azure-leaning hero scrim (over photos) */
  --hero-scrim: linear-gradient(105deg, rgba(4,36,79,.9) 0%, rgba(7,48,102,.6) 48%, rgba(30,157,224,.18) 100%);

  /* Typography */
  --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (4pt) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-6:24px; --space-8:32px; --space-12:48px; --space-16:64px; --space-24:96px;

  /* Shape */
  --radius-sm:6px; --radius:10px; --radius-lg:16px; --radius-xl:20px; --radius-full:9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(4,36,79,.08);
  --shadow:    0 6px 22px rgba(4,36,79,.10);
  --shadow-lg: 0 16px 44px rgba(4,36,79,.16);
  --shadow-glow: 0 24px 50px rgba(30,157,224,.28);
  --shadow-float: 0 24px 60px rgba(4,36,79,.18);

  --transition: .22s ease;
  --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.12;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { max-width: 68ch; }
strong { font-weight: 600; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: 880px; }

.section       { padding: var(--space-24) 0; }
.section--sm   { padding: var(--space-16) 0; }
.section--alt  { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--white); }
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--white); }

/* Section header */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brand-700);
  margin-bottom: var(--space-3);
}
.section--deep .section-eyebrow { color: var(--brand-300); }
.section-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }

.section-title { margin-bottom: var(--space-4); }
.section-subtitle {
  color: var(--text-muted); font-size: 1.08rem;
  margin-bottom: var(--space-12); max-width: 60ch;
}
.section--deep .section-subtitle { color: rgba(255,255,255,.72); }

.text-center { text-align: center; }
.text-center .section-eyebrow,
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  transition: all var(--transition); border: 2px solid transparent;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-700); color: var(--white); border-color: transparent; box-shadow: 0 8px 20px rgba(12,111,176,.25); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12,111,176,.32); }
.btn--glass { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.18); border-color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--brand-700); border-color: var(--border-med); }
.btn--outline:hover { border-color: var(--brand-700); background: var(--brand-50); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--navy-800); gap: var(--space-3); }
.btn--lg { padding: 17px 38px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ===== STARS / MISC ===== */
.stars { color: var(--star); letter-spacing: 2px; }

/* ===== WAVE DIVIDER ===== */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 70px); }
.wave--flip { transform: rotate(180deg); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HELPERS ===== */
.hide-mobile { }
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) { .hide-desktop { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none !important; }
}
