/* =========================================================
   Achilles Plumbing — Design System
   Brand: Achilles Plumbing (operated by AchillesCC LLC)
   ========================================================= */

:root {
  /* Palette */
  --navy:        #0c2440;
  --navy-700:    #123a5e;
  --blue:        #1f6fd6;
  --blue-600:    #1a5fb8;
  --blue-050:    #e9f2fc;
  --sky:         #f3f8fd;
  --accent:      #f4a118;   /* copper/amber — used sparingly */
  --ink:         #0f1d2e;
  --muted:       #56697f;
  --line:        #e2e8f0;
  --bg:          #ffffff;
  --bg-soft:     #f6f9fc;
  --success:     #15803d;
  --success-bg:  #e8f7ee;
  --danger:      #d6342b;
  --danger-bg:   #fdecea;
  --white:       #ffffff;

  /* Shape */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --shadow:      0 10px 30px rgba(12, 36, 64, .08);
  --shadow-lg:   0 24px 60px rgba(12, 36, 64, .14);
  --ring:        0 0 0 3px rgba(31, 111, 214, .25);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #e7eef6; }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-050);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: #bcd6f5; background: rgba(255,255,255,.08); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
.lead { font-size: 1.14rem; color: var(--muted); }
.section--navy .lead { color: #aebfd4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(31,111,214,.28); }
.btn-primary:hover { background: var(--blue-600); }

.btn-cta { background: var(--accent); color: #3a2600; box-shadow: 0 8px 20px rgba(244,161,24,.3); }
.btn-cta:hover { background: #e6940b; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef4fb; }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--blue-600); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.nav-phone:hover { color: var(--blue-600); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 46px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,111,214,.18), transparent 60%),
    linear-gradient(180deg, #0c2440 0%, #123a5e 100%);
  color: #eaf2fc;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 380px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: #6fb1ff; }
.hero p.lead { color: #c2d4ec; margin-top: 18px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: #d4e2f5; font-weight: 600; }
.hero-trust svg { width: 20px; height: 20px; color: #6fb1ff; flex: none; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; margin-bottom: 6px; }
.hero-card p { color: #b9cce6; font-size: .96rem; }
.hero-card .price { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 14px 0 2px; }
.hero-card .price span { font-size: 1rem; font-weight: 600; color: #9fb6d4; }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: #d8e4f4; font-size: .96rem; }
.hero-card li svg { width: 18px; height: 18px; color: #5ee08a; flex: none; margin-top: 3px; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0f4; }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-050);
  color: var(--blue);
  margin-bottom: 16px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.feature { display: flex; gap: 16px; }
.feature .fi {
  flex: none; width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue); color: #fff;
}
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4f7; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebfd4; padding: 60px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #aebfd4; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: #6fb1ff; flex: none; margin-top: 3px; }
.footer-sms {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .82rem;
  color: #93a8c4;
  margin-top: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #8499b6;
}
.footer-bottom a { color: #aebfd4; }

/* ---------- Booking layout ---------- */
.book-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background:#fff; }
.book-aside { background: var(--navy); color: #d8e4f4; padding: 40px 34px; }
.book-aside .brand-mini { display: flex; align-items: center; gap: 10px; color:#fff; font-weight:800; margin-bottom: 26px; }
.book-aside .brand-mini img { width: 36px; height: 36px; }
.book-aside h2 { color: #fff; font-size: 1.5rem; margin-bottom: 22px; }
.book-meta { list-style: none; padding: 0; display: grid; gap: 18px; }
.book-meta li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; line-height: 1.5; }
.book-meta svg { width: 20px; height: 20px; color: #6fb1ff; flex: none; margin-top: 2px; }
.book-aside .reassure { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .9rem; color: #9fb6d4; }

.book-main { padding: 42px 40px; }
.book-main > h2 { font-size: 1.6rem; margin-bottom: 4px; }
.book-main > p.sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--danger); }
.field .hint { font-weight: 500; color: var(--muted); font-size: .82rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: #9aa9bc; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); background: var(--danger-bg); }
.field .error-msg { display: none; color: var(--danger); font-size: .82rem; margin-top: 6px; }
.field.invalid .error-msg { display: block; }

/* Consent / checkbox */
.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 6px 0 22px;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #9db4cf;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: background .15s ease, border-color .15s ease;
}
.consent input[type="checkbox"]:checked { background: var(--blue); border-color: var(--blue); }
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: var(--ring); }
.consent label { font-size: .86rem; color: #41526a; line-height: 1.55; cursor: pointer; }
.consent label a { color: var(--blue-600); text-decoration: underline; font-weight: 600; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Form status banners */
.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; font-weight: 600; }
.form-status.show { display: block; }
.form-status.error { background: var(--danger-bg); color: var(--danger); }
.form-status.success { background: var(--success-bg); color: var(--success); }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #34455a; }
.legal p { margin-bottom: 14px; }
.legal ul { margin-bottom: 16px; display: grid; gap: 8px; }
.legal .callout {
  background: var(--blue-050);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 18px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 34px; }
.legal .toc h4 { margin-bottom: 10px; }
.legal .toc ul { columns: 2; gap: 24px; margin: 0; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: 30px 0; }
.thanks .check {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
}
.thanks .check svg { width: 44px; height: 44px; }
.thanks .next { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 30px; text-align: left; }
.thanks .next ul { margin: 10px 0 0; color: var(--muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 28px; }
.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; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 72px; }
  .hero-card { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .book-wrap { grid-template-columns: 1fr; }
  .book-aside { padding: 32px 28px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 22px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 56px 0; }
  .cta-band { padding: 34px 26px; text-align: center; justify-content: center; }
  .book-main { padding: 30px 24px; }
  .legal .toc ul { columns: 1; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
