/* =========================================================
   South Florida Sprinkler Solutions — site styles
   Brand: deep ocean blue + lawn green, on warm-white surfaces
   ========================================================= */

:root {
  /* Brand */
  --brand-blue: #0b6cab;
  --brand-blue-dark: #074a78;
  --brand-blue-ink: #0a2a44;
  --brand-green: #3aa44b;
  --brand-green-dark: #2a7d39;
  --brand-mist: #e7f3fb;
  --brand-mist-2: #f3faff;

  /* Neutrals */
  --bg: #fbfbfa;
  --bg-soft: #f3f6f4;
  --surface: #ffffff;
  --ink-1: #0c1b29;     /* near-black, warm */
  --ink-2: #344458;
  --ink-3: #5a6b7d;
  --ink-4: #8896a4;
  --line: #e3e8ed;
  --line-2: #d6dde4;

  /* Type */
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10,40,70,.06), 0 2px 8px rgba(10,40,70,.04);
  --shadow-md: 0 6px 24px rgba(10,40,70,.08), 0 2px 6px rgba(10,40,70,.05);
  --shadow-lg: 0 20px 60px rgba(10,40,70,.14), 0 6px 18px rgba(10,40,70,.08);

  --container: 1180px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-1);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--brand-blue-ink); letter-spacing: -0.01em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.6vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.7rem); }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: -0.005em; }
p  { color: var(--ink-2); margin: 0 0 1rem; }
em { font-style: italic; font-family: var(--display); color: var(--brand-green-dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(11,108,171,.35);
}
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11,108,171,.45); }
.btn--ghost {
  background: transparent; color: var(--brand-blue-ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--brand-blue); color: var(--brand-blue-dark); }

/* ========== Top bar ========== */
.topbar {
  background: var(--brand-blue-ink);
  color: #cfe1ee; font-size: 13px;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 24px; max-width: var(--container); margin: 0 auto;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(58,164,75,.18); }
.topbar__call { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar__call:hover { color: #cfe1ee; }

@media (max-width: 640px) {
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ========== Header ========== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 10px 24px;
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 28px; justify-content: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--brand-blue-dark); }
.header__cta { font-size: 14.5px; padding: 10px 16px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 480px) {
  .header__cta { display: none; }
  .header__inner { grid-template-columns: auto 1fr; }
  .brand img { height: 48px; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 9vw, 120px);
  background:
    radial-gradient(1100px 500px at 12% -10%, rgba(58,164,75,.18), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(11,108,171,.18), transparent 60%),
    linear-gradient(180deg, #f7fbfd 0%, #fbfbfa 100%);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,108,171,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,108,171,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-blue-dark);
  background: var(--brand-mist);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--on-blue { background: rgba(255,255,255,.16); color: #cfe7f7; }
.hero__title { margin-bottom: 18px; }
.hero__title .ink { color: var(--brand-blue); }
.hero__lede {
  font-size: clamp(17px, 1.4vw + .5rem, 20px);
  color: var(--ink-2); max-width: 540px; line-height: 1.55;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 28px; }
.hero__badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px 22px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
}
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--brand-green-dark); }

.hero__art {
  position: relative;
}
.hero__photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  transform: rotate(1.2deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(10, 42, 68, .85);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__photo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.hero__card {
  position: absolute; left: -28px; bottom: -28px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  border: 1px solid var(--line);
  transform: rotate(-1.4deg);
}
.hero__card-row { display: flex; gap: 26px; }
.hero__card-num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--brand-blue-ink); line-height: 1; }
.hero__card-lbl { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin: 24px auto 0; width: 100%; }
  .hero__photo { aspect-ratio: 16 / 11; transform: rotate(0); }
  .hero__card { left: auto; right: -8px; bottom: -22px; transform: rotate(0); }
}
@media (max-width: 480px) {
  .hero__card { padding: 14px 16px; right: 0; bottom: -18px; }
  .hero__card-row { gap: 16px; }
  .hero__card-num { font-size: 22px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* ========== Trust strip ========== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}
.trust__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust__label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; font-weight: 600; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.trust__row .bullet { color: var(--brand-green); font-size: 8px; opacity: .7; }

/* ========== Sections ========== */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(180deg, #0a2a44 0%, #0a2336 100%); color: #cfe1ee; }
.section--cta  { background: linear-gradient(135deg, #0b6cab 0%, #074a78 70%, #06304f 100%); color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section__head--light h2, .section__head--light .eyebrow { color: #fff; }
.section__head--light .eyebrow { background: rgba(255,255,255,.12); color: #b9d6ea; }
.section__title { margin: 0 0 12px; }
.section__title--light { color: #fff; }
.section__sub { color: var(--ink-3); font-size: 17px; max-width: 56ch; margin: 0 auto; }

/* ========== Services ========== */
.services {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9dceb; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-mist); color: var(--brand-blue-dark);
  margin-bottom: 18px;
}
.service h3 { margin-bottom: 10px; color: var(--brand-blue-ink); }
.service p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.service__list { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-3); }
.service__list li { padding-left: 18px; position: relative; margin-bottom: 5px; }
.service__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-green);
}
.service--featured {
  border: 1px solid #b8d8f0; background: linear-gradient(180deg, #f3faff 0%, #fff 100%);
  box-shadow: 0 10px 30px rgba(11,108,171,.08);
}
.service--featured .service__icon { background: var(--brand-blue); color: #fff; }
.service__pill {
  position: absolute; top: 18px; right: 18px;
  background: var(--brand-green); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ========== Why us ========== */
.why {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.why__item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: background .2s ease, transform .2s ease;
}
.why__item:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.why__num {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  color: var(--brand-green); letter-spacing: .1em;
  margin-bottom: 14px;
}
.why__item h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.why__item p  { color: #b9d0e2; margin: 0; font-size: 15px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ========== Showcase strip ========== */
.showcase {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px;
  padding: 0 12px clamp(48px, 6vw, 80px);
  max-width: 1400px; margin: -40px auto 0;
}
.showcase__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 3.4;
  box-shadow: var(--shadow-md);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; }
.showcase__item figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(10,42,68,.78); color: #fff; padding: 8px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
}
.showcase__item--lg { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__item--lg { aspect-ratio: 5 / 3.4; }
}

/* ========== Process / steps ========== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
}
.steps__num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-green); color: #fff; font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(58,164,75,.35);
}
.steps li h3 { margin-bottom: 6px; }
.steps li p { font-size: 14.5px; margin: 0; color: var(--ink-3); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ========== Areas ========== */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.areas__copy p { max-width: 50ch; color: var(--ink-2); font-size: 16.5px; margin-bottom: 22px; }
.areas__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px;
}
.areas__list li {
  background: #fff; border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 12px;
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.areas__list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-blue);
}
@media (max-width: 800px) {
  .areas { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== Reviews ========== */
.rating { margin-top: 16px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.rating__stars { color: #f5b942; font-size: 20px; letter-spacing: 2px; }
.rating__meta { font-size: 14px; color: var(--ink-3); }
.rating__meta strong { color: var(--ink-1); }
.reviews {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin: 0; padding: 26px 26px 22px;
  position: relative;
}
.review::before {
  content: '“'; position: absolute; top: -8px; right: 22px;
  font-family: var(--display); font-size: 92px; line-height: 1;
  color: var(--brand-mist); font-weight: 700;
}
.review__stars { color: #f5b942; font-size: 15px; letter-spacing: 1.5px; margin-bottom: 10px; }
.review p { color: var(--ink-1); font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.review footer { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.review footer span { color: var(--ink-4); font-weight: 500; }
@media (max-width: 800px) { .reviews { grid-template-columns: 1fr; } }

/* ========== FAQ ========== */
.faq { max-width: 780px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--brand-blue-ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--brand-blue); font-size: 22px; transition: transform .2s ease; line-height: 1; }
.faq details[open] .faq__chev { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ========== Quote / CTA ========== */
.quote {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.quote__copy a { color: #cfe7f7; text-decoration: underline; }
.quote__copy p { color: #cfe1ee; font-size: 17px; max-width: 46ch; }
.quote__list { list-style: none; padding: 0; margin: 18px 0 0; color: #d7e7f3; font-size: 15px; }
.quote__list li { margin-bottom: 6px; }
.quote__form {
  background: #fff; color: var(--ink-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .muted { color: var(--ink-4); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 15.5px; color: var(--ink-1);
  background: #fbfdff;
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11,108,171,.15);
}
.field textarea { resize: vertical; min-height: 88px; }
.form__note { font-size: 12.5px; color: var(--ink-4); text-align: center; margin: 4px 0 0; }
.form__success {
  background: #e9f7ec; color: #1a5e2a;
  border: 1px solid #b9e3c2; border-radius: 12px;
  padding: 14px 16px; font-size: 15px; text-align: center;
}
.form__success a { color: #1a5e2a; text-decoration: underline; }

@media (max-width: 880px) {
  .quote { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */
.footer { background: #0a2336; color: #b9d0e2; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding: 60px 24px 36px;
}
.footer__brand img { height: 80px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: #8aa4ba; font-size: 14.5px; max-width: 38ch; }
.footer__col h4 { color: #fff; font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { font-size: 14.5px; margin-bottom: 8px; color: #b9d0e2; }
.footer__col a { color: #d7e7f3; }
.footer__col a:hover { color: #fff; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__legal .container {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px;
  color: #6e879c; font-size: 13px;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ========== Sticky mobile bar ========== */
.mobilebar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  gap: 10px;
}
.mobilebar__btn {
  flex: 1; padding: 12px 6px; border-radius: 999px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
}
.mobilebar__btn--call { background: var(--brand-green); color: #fff; }
.mobilebar__btn--call:hover { color: #fff; background: var(--brand-green-dark); }
.mobilebar__btn--text { background: #1f2937; color: #fff; }
.mobilebar__btn--text:hover { color: #fff; background: #0f172a; }
.mobilebar__btn--quote { background: var(--brand-blue); color: #fff; }
.mobilebar__btn--quote:hover { color: #fff; background: var(--brand-blue-dark); }

@media (max-width: 720px) {
  .mobilebar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ========== Motion / a11y ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
