/* ==========================================================================
   Copper State Ceiling Restoration — Phoenix, AZ
   Single stylesheet. Edit color/spacing tokens below, then everything updates.
   No framework, no build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --navy-900: #0d1b2a;
  --navy-800: #16293d;
  --navy-700: #1f3a53;
  --blue-600: #1d6fb8;
  --blue-500: #2a8ad4;
  --blue-100: #e5f1fb;
  --amber-500: #f4a124;
  --amber-600: #e08a0c;
  --teal-500: #16a6a6;

  /* Neutrals */
  --ink: #16202b;
  --body: #3c4a58;
  --muted: #6b7a89;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-softer: #eef3f8;
  --white: #ffffff;

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, .08), 0 1px 2px rgba(13, 27, 42, .06);
  --shadow: 0 10px 30px rgba(13, 27, 42, .12);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .22);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #cfdbe6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--blue-600);
  font-size: 1rem;
  margin-bottom: .4rem;
  display: inline-block;
}
.section--navy .eyebrow { color: var(--amber-500); }
.lead { font-size: 1.18rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .5px;
  font-size: 1.1rem; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-600); box-shadow: var(--shadow); color: var(--navy-900); }
.btn--blue { background: var(--blue-600); color: #fff; }
.btn--blue:hover { background: var(--blue-500); color: #fff; }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { font-size: 1.2rem; padding: 16px 32px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--navy-900); color: #b9c7d6;
  font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #dce6f0; }
.topbar .topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__badge { color: var(--amber-500); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(13,27,42,.05);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  display: grid; place-items: center; color: #fff; font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.brand__name { display: block; font-size: 1.12rem; font-weight: 700; color: var(--navy-900); line-height: 1.02; letter-spacing: .4px; text-transform: uppercase; max-width: 210px; }
.brand__tag { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-toggle {
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; letter-spacing: .4px;
  color: var(--navy-800); padding: 10px 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; text-transform: uppercase;
}
.main-nav a:hover, .main-nav .nav-toggle:hover { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }
.has-dropdown { position: relative; }
.caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 70;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; font-size: 1rem; text-transform: none; letter-spacing: .2px; color: var(--body); border-radius: 6px; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue-600); }
.header-cta { display: inline-flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); white-space: nowrap; }
.header-phone small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Mobile menu button */
.hamburger { display: none; background: var(--navy-900); border: none; width: 46px; height: 46px; border-radius: 8px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: #fff; display: block; transition: .2s; }

/* ==========================================================================
   HERO (with form above image)
   ========================================================================== */
.hero { position: relative; background: var(--navy-900); color: #e7eef5; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(13,27,42,.94) 0%, rgba(13,27,42,.78) 45%, rgba(31,58,83,.55) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__sub { font-size: 1.22rem; color: #cdd9e6; max-width: 46ch; margin-bottom: 22px; }
.hero__points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.hero__points li { padding-left: 32px; position: relative; color: #e4edf5; font-weight: 500; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--teal-500); color: #fff; border-radius: 50%; font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__badge { font-family: var(--font-head); font-size: .95rem; letter-spacing: .5px; text-transform: uppercase; color: #cdd9e6; border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 50px; }

/* Hero form card */
.lead-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px; border-top: 5px solid var(--amber-500);
}
.lead-form h2 { font-size: 1.7rem; margin-bottom: 4px; }
.lead-form__note { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fcfdfe;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue-500); border-color: var(--blue-500); }
.field textarea { min-height: 84px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ==========================================================================
   TRUST BAR / FEATURE STRIP
   ========================================================================== */
.trust-strip { background: var(--navy-800); color: #dbe6f0; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.trust-strip__item { padding: 22px 18px; text-align: center; }
.trust-strip__item strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; letter-spacing: .5px; }
.trust-strip__item span { font-size: .9rem; color: #a9bace; }

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { font-size: .98rem; margin-bottom: 0; color: var(--body); }
/* Non-clickable homepage cards */
.card--static { cursor: default; }

/* Service/area link cards */
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card__more { display: inline-block; margin-top: 12px; font-family: var(--font-head); text-transform: uppercase; font-size: .95rem; letter-spacing: .5px; color: var(--blue-600); font-weight: 600; }

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split--reverse .split__media { order: 2; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step__num { counter-increment: step; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: #fff; font-family: var(--font-head); font-size: 1.6rem; display: grid; place-items: center; }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; }

/* Feature list with checks */
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; color: var(--teal-500); font-weight: 800; }

/* Pills / chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--bg-softer); color: var(--navy-800); border-radius: 50px; padding: 7px 15px; font-size: .92rem; font-weight: 600; margin: 0; }

/* Map embed */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 54px 20px 22px; font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; color: var(--navy-900); position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue-600); font-family: var(--font-body); }
.faq__item.open .faq__q::after { content: "–"; }
.faq__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__item.open .faq__a { padding: 0 22px 20px; max-height: 600px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--blue-600), var(--navy-800)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe9f6; max-width: 60ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Back-to-home highlight (used on sub pages) */
.home-link-band { background: var(--bg-softer); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-link-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 20px; }

/* Breadcrumb */
.crumbs { font-size: .9rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--blue-600); }

/* Page hero (lighter, for sub-pages without big form sometimes) */
.page-head { background: var(--navy-900); color: #d9e4ef; position: relative; overflow: hidden; }
.page-head::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% -20%, rgba(42,138,212,.35), transparent 60%); }
.page-head .wrap { position: relative; z-index: 2; padding: 56px 20px; }
.page-head h1 { color: #fff; }
.page-head p { color: #c3d2e1; max-width: 60ch; }

/* Prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--navy-800); }
.prose ul { padding-left: 1.3rem; }

/* Info cards grid for contact */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.info-card a { font-weight: 600; }

/* Stats */
.stat { text-align: center; }
.stat strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--blue-600); display: block; line-height: 1; }
.stat span { font-size: .95rem; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #a9bace; padding-top: 60px; font-size: .97rem; }
.site-footer a { color: #c9d6e3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: #9db0c3; }
.footer-contact { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.footer-contact li { padding-left: 26px; position: relative; }
.footer-contact li span { position: absolute; left: 0; top: 1px; }
.footer-col h4 { color: #fff; font-size: 1.25rem; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #d6e2ee; transition: background .18s; }
.social a:hover { background: var(--blue-600); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .88rem; color: #8ca0b4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #a9bace; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber-500); color: var(--navy-900); padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Floating mobile call bar */
.mobile-call { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 56px; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 1px; }
}
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .site-header .wrap { gap: 10px; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 80px 18px 28px; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a, .main-nav .nav-toggle { width: 100%; justify-content: space-between; padding: 14px 10px; border-radius: 8px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 8px 10px; padding: 0; max-height: 0; overflow: hidden; transition: max-height .25s; }
  .has-dropdown.open > .dropdown { max-height: 600px; }
  .has-dropdown:hover > .dropdown { opacity: 1; } /* keep hover from forcing open on mobile */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(13,27,42,.5); z-index: 80; opacity: 0; visibility: hidden; transition: .2s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .mobile-call { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; }
  .mobile-call a { flex: 1; text-align: center; padding: 14px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
  .mobile-call a:first-child { background: var(--blue-600); }
  .mobile-call a:last-child { background: var(--amber-500); color: var(--navy-900); }
  body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .header-phone small { display: none; }
}
