/* Emergency Plumbing Alpharetta — lightweight, no frameworks. */
:root {
  --navy: #0e3a5d;
  --navy-dark: #0a2c47;
  --accent: #e8641c;
  --accent-dark: #c95212;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f2f6fa;
  --border: #dbe4ec;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: #d7e3ee; text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .8rem 1.6rem; border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-large { font-size: 1.1rem; padding: 1rem 2rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 3.5rem 0; }
.hero h1 { font-size: 2.2rem; margin: 0 0 .75rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: #d7e3ee; max-width: 640px; }
.hero .btn { margin-top: 1rem; }

.page-hero { background: var(--bg-soft); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 .5rem; font-size: 2rem; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }

section.block { padding: 2.5rem 0; }
section.block h2 { font-size: 1.5rem; margin-top: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.steps strong { display: block; color: var(--navy); margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Area links */
.area-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.area-list a { display: inline-block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; color: var(--navy); text-decoration: none; font-size: .95rem; }
.area-list a:hover { background: var(--navy); color: #fff; }

.plain-list { padding-left: 1.25rem; }
.plain-list li { margin-bottom: .4rem; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .6rem; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.faq p { margin: .5rem 0 0; color: var(--muted); }

/* Quote form */
.quote { background: var(--navy); color: #fff; padding: 3rem 0; }
.quote h2 { margin-top: 0; font-size: 1.7rem; }
.quote > .container > p { color: #d7e3ee; max-width: 640px; }
.quote-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.75rem; margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { margin-top: 1.25rem; width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }
.form-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3b7b7; border-radius: 6px; padding: .75rem 1rem; margin: 1rem 0 0; font-size: .9rem; }
.quote-confirmation { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; text-align: center; }
.quote-confirmation h3 { color: var(--navy); margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c9d7e4; padding: 2.5rem 0 1rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-brand { color: #fff; font-weight: 700; margin: 0 0 .5rem; }
.footer-heading { color: #fff; font-weight: 600; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #c9d7e4; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; }
.footer-bottom p { font-size: .85rem; margin: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .site-nav a:not(.btn) { display: none; }
}
