/* ==========================================================================
   CEES Irrigation Services LLC — site stylesheet
   Palette is derived from the logo: deep navy, droplet blue, pale sky.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0e2b3f;
  --navy-800: #12344d;
  --navy-700: #1d5b87;
  --blue-700: #3f73a0;   /* actions + small text: 5.0:1 on white */
  --blue-600: #467eae;   /* brand blue, sampled from the logo */
  --blue-500: #6299c7;
  --blue-400: #a2bed6;   /* gear blue, sampled from the logo */
  --blue-300: #9ed2f0;
  --blue-100: #e3f0f9;
  --blue-50:  #f4f9fd;

  /* Neutrals */
  --ink:   #1b2733;
  --slate: #4f6070;
  --mute:  #7a8b99;
  --line:  #dbe6ee;
  --paper: #ffffff;
  --shell: #f6f9fb;

  /* Type */
  --font-head: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space + shape */
  --gutter: 24px;
  --maxw: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 43, 63, .06), 0 2px 8px rgba(14, 43, 63, .05);
  --shadow-md: 0 4px 12px rgba(14, 43, 63, .08), 0 12px 28px rgba(14, 43, 63, .07);
  --shadow-lg: 0 18px 48px rgba(14, 43, 63, .16);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration-color: rgba(29, 91, 135, .35); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------- primitives -- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 780px; }

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section--tint { background: var(--shell); }
.section--blue { background: var(--blue-50); }
.section--tight { padding-top: clamp(40px, 5vw, 56px); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 .75rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }

.lede { font-size: 1.1rem; color: var(--slate); }

.rule {
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  margin: 0 0 1.25rem;
}
.section-head--center .rule { margin-inline: auto; }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn--outline { border-color: var(--blue-600); color: var(--navy-700); background: #fff; }
.btn--outline:hover { background: var(--blue-100); color: var(--navy-800); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--blue-100); color: var(--navy-900); }

.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------- header -- */

.topbar {
  background: var(--navy-900);
  color: #cfe2ef;
  font-size: .875rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--blue-300); }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .75rem;
  color: var(--blue-300);
}
.topbar-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: clamp(146px, 17vw, 190px); height: auto; flex: none; }
.brand--footer img { width: 196px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--blue-600);
}
.brand-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 7px;
}
.nav a:hover { background: var(--blue-100); color: var(--navy-900); }
.nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.nav .btn:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 78% 12%, rgba(78, 155, 209, .38), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(29, 91, 135, .55), transparent 60%),
    linear-gradient(160deg, #123852 0%, #0e2b3f 55%, #0b2333 100%);
  color: #eaf3fa;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  padding: clamp(64px, 9vw, 108px) 0 clamp(56px, 7vw, 84px);
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .eyebrow { color: var(--blue-300); }
.hero p { color: #c9dcea; font-size: 1.12rem; max-width: 620px; }
.hero .btn-row { margin-top: 32px; }

.hero-page { padding: clamp(52px, 7vw, 76px) 0; }
.hero-page h1 { margin-bottom: .35em; }
.hero-page p { max-width: 640px; margin-bottom: 0; }

/* credential strip */

.credentials {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #d5e6f2;
}
.credentials ul {
  list-style: none;
  margin: 0; padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 14px 24px;
}
.credentials li {
  margin: 0;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .96rem;
}
.credentials strong { color: #fff; font-family: var(--font-head); font-weight: 600; }
.check {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  color: var(--blue-300);
}

/* ------------------------------------------------------------ CEES grid -- */

.cees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.cees-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cees-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
}
.cees-letter {
  font-family: var(--font-head);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-400);
  margin-bottom: .1em;
}
.cees-card h3 { margin-bottom: .4em; color: var(--navy-800); }
.cees-card p { font-size: .97rem; color: var(--slate); margin: 0; }

/* ------------------------------------------------------------- feature -- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 38px);
  box-shadow: var(--shadow-md);
}
.panel h3 { margin-bottom: .75em; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 6px;
}
.stat { border-left: 3px solid var(--blue-300); padding-left: 16px; }
.stat-value {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.9rem; line-height: 1.1; color: var(--navy-800);
}
.stat-label { font-size: .9rem; color: var(--slate); }

/* -------------------------------------------------------------- cards -- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }

.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--navy-700);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: .45em; }
.card p { color: var(--slate); font-size: .98rem; }

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue-700);
  text-decoration: none;
}
.card-link:hover { color: var(--navy-800); }
.card-link::after { content: " →"; }

/* --------------------------------------------------- service detail list -- */

.service-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(30px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 130px;
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }

.service-block-label { position: sticky; top: 130px; align-self: start; }
.service-block-label h2 { font-size: 1.5rem; margin-bottom: .5em; }
.service-block-label .tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700); background: var(--blue-100);
  padding: 5px 11px; border-radius: 100px;
}
.service-block-body p { color: var(--slate); }

.pill-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.pill-list li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: .96rem;
  color: var(--slate);
}
.pill-list strong { display: block; color: var(--navy-800); font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }

.badge-soon {
  display: inline-block; margin-left: 8px;
  font-family: var(--font-head); font-weight: 600;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8a6112; background: #fdf1d8; border: 1px solid #f2ddb2;
  padding: 3px 9px; border-radius: 100px; vertical-align: middle;
}

/* ----------------------------------------------------------- CTA band -- */

.cta-band {
  background:
    radial-gradient(700px 320px at 85% 20%, rgba(78, 155, 209, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9dcea; max-width: 620px; margin-inline: auto; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* --------------------------------------------------------------- form -- */

.form-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  color: var(--navy-800); margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--mute); font-size: .85rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(78, 155, 209, .22);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { font-size: .87rem; color: var(--mute); margin-top: 14px; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.info-card {
  background: var(--navy-800);
  color: #d5e6f2;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 34px);
}
.info-card h3 { color: #fff; }
.info-card a { color: var(--blue-300); }
.info-card a:hover { color: #fff; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin-bottom: 18px; }
.info-list li:last-child { margin-bottom: 0; }
.info-label {
  display: block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 3px;
}
.info-value { font-size: 1.05rem; color: #fff; text-decoration: none; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-900);
  color: #a9c4d6;
  font-size: .95rem;
  padding: clamp(48px, 6vw, 68px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 1.1em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #a9c4d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { font-size: 1.35rem; }
.site-footer .brand-sub { color: #8fb0c6; }
.footer-about p { color: #9ab6ca; font-size: .93rem; max-width: 34ch; margin-top: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: .87rem; color: #8aa8bd;
}

/* ------------------------------------------------------------ utilities -- */

.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }
.placeholder { /* marks copy Oscar still needs to supply */ }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .split,
  .form-layout { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 18px; }
  .service-block-label { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav .btn { margin-left: 0; margin-top: 8px; }
  .site-header { position: relative; }
  .site-header .container { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .topbar .container { justify-content: center; text-align: center; padding-block: 8px; }
  .topbar-badge { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

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

@media print {
  .site-header, .topbar, .cta-band, .site-footer, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
}
