/* Iron Coast General Contracting — site stylesheet.
   Tokens first; nothing below defines a colour. Parent base is the Iron Coast
   gunmetal + Gulf teal; the GC division accent is safety orange, set at
   #c2410c because brighter safety oranges fail contrast against white text. */

:root {
  color-scheme: light;
  --bg: #f4f5f4;
  --surface: #ffffff;
  --surface-2: #eaeeee;
  --border: #d4dbdc;
  --text: #22303c;
  --text-dim: #5d6b7a;
  --ink: #28323d;            /* gunmetal */
  --teal: #2c7f74;           /* Gulf teal waterline */
  --accent: #c2410c;         /* GC safety orange */
  --accent-strong: #9a3412;
  --accent-soft: #fdeadf;
  --on-accent: #ffffff;
  --hero-bg: #28323d;
  --hero-text: #eef2f3;
  --hero-dim: #b4c0c9;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(34, 48, 60, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161c23;
    --surface: #1f2730;
    --surface-2: #28323d;
    --border: #36434f;
    --text: #e6ebee;
    --text-dim: #9aa8b5;
    --ink: #dfe6ec;
    --teal: #4aa79e;
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --accent-soft: #3a2416;
    --on-accent: #1a1208;
    --hero-bg: #10151b;
    --hero-text: #eef2f3;
    --hero-dim: #9aa8b5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161c23;
  --surface: #1f2730;
  --surface-2: #28323d;
  --border: #36434f;
  --text: #e6ebee;
  --text-dim: #9aa8b5;
  --ink: #dfe6ec;
  --teal: #4aa79e;
  --accent: #fb923c;
  --accent-strong: #fdba74;
  --accent-soft: #3a2416;
  --on-accent: #1a1208;
  --hero-bg: #10151b;
  --hero-text: #eef2f3;
  --hero-dim: #9aa8b5;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
/* set in <head> while no phone or email is configured */
.no-contact [data-contact] { display: none !important; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; }
.lockup { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark { font-weight: 800; font-size: 16px; letter-spacing: .05em; color: var(--ink); }
.division {
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .24em; color: var(--accent);
}
.division::before { content: ""; width: 14px; height: 3px; background: var(--accent); border-radius: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn { padding: 8px 14px; font-size: 14.5px; }
.theme-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 6px 9px; cursor: pointer; font: inherit; font-size: 13px;
}
.division { white-space: nowrap; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .nav { flex-wrap: nowrap; gap: 8px; }
  .topbar .wrap { gap: 10px; padding-inline: 14px; }
  .division { letter-spacing: .12em; font-size: 9.5px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .hero .wrap { padding-block: 48px 100px; }
}

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; }
.hero .wrap { padding-block: 84px 120px; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fdba74; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 18px; max-width: 20ch; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--hero-dim); max-width: 56ch; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.primary { background: #ea580c; color: #fff; }
.hero .btn.primary:hover { background: #c2410c; }
.hero .btn.ghost { color: var(--hero-text); }
/* the shoreline from the mark, drawn across the bottom of the hero */
.hero svg.waterline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 0; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; color: var(--hero-dim); font-size: 14.5px; }
.hero-points span::before { content: "■"; color: #ea580c; margin-right: 8px; font-size: 10px; vertical-align: 2px; }

/* ---------- sections ---------- */
section { padding-block: 76px; scroll-margin-top: 64px; /* clears the sticky header on anchor jumps */ }
.section-head { max-width: 680px; margin-bottom: 36px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 12px; color: var(--ink); letter-spacing: -.01em; }
.section-head p { color: var(--text-dim); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0 0 12px; color: var(--text-dim); }
.card ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 15px; }
.card ul li { margin-bottom: 4px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card.featured { border-top: 4px solid var(--accent); }

.alt { background: var(--surface); border-block: 1px solid var(--border); }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 22px; border-left: 3px solid var(--teal); background: var(--bg); border-radius: 0 10px 10px 0; }
.alt .step { background: var(--surface-2); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--teal); margin-bottom: 6px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* the single-point-of-responsibility band */
.promise { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
.promise blockquote {
  margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; font-weight: 700; color: var(--ink);
  border-left: 5px solid var(--accent); padding-left: 22px;
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* service area */
.area { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.area .card h3 { display: flex; align-items: center; gap: 8px; }
.area .tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.area .tag.soon { background: var(--surface-2); color: var(--text-dim); }

/* storm callout */
.storm {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 22px 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px;
}
.storm strong { color: var(--ink); }
.storm p { margin: 0; flex: 1; min-width: 240px; }

/* contact */
.contact { display: grid; gap: 32px; grid-template-columns: 1fr 1.2fr; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 500; font-size: 14px;
}
.choice-row input { width: auto; accent-color: var(--accent); }
.form-note { font-size: 13px; color: var(--text-dim); margin: 0; }
.contact-facts { display: grid; gap: 16px; align-content: start; }
.contact-facts .fact { display: flex; gap: 12px; }
.contact-facts .fact b { display: block; color: var(--ink); }
.contact-facts .fact span { color: var(--text-dim); font-size: 15px; }

/* footer */
footer { background: var(--hero-bg); color: var(--hero-dim); padding-block: 40px; font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
footer .wordmark { color: var(--hero-text); }
footer a { color: var(--hero-text); }
footer .family { display: flex; gap: 14px; flex-wrap: wrap; }
footer .family span { display: inline-flex; align-items: center; gap: 6px; }
footer .family i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 50; font-weight: 600; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
