/* ============================================================
   PURCELL'S FLOORING — CORE DESIGN SYSTEM
   Aesthetic: industrial blueprint. Gunmetal navy + electric
   cobalt, sharp grid lines, editorial type (Fraunces + Archivo).
   Generalizable components live here; page copy lives in HTML.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --gunmetal: #2B2D42;
  --concrete: #F4F5F7;
  --cobalt:   #005BEA;   /* Steel Cobalt — primary CTA */
  --cobalt-bright: #007BFF;
  --white:    #FFFFFF;
  --charcoal: #1B263B;

  --gunmetal-90: rgba(43,45,66,0.90);
  --line: rgba(27,38,59,0.12);
  --line-light: rgba(255,255,255,0.14);

  --shadow-sm: 0 1px 2px rgba(27,38,59,0.06);
  --shadow-md: 0 12px 30px -12px rgba(27,38,59,0.22);
  --shadow-lg: 0 30px 60px -20px rgba(43,45,66,0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --wrap: 1180px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --blueprint-grid:
    linear-gradient(rgba(0,91,234,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,91,234,0.05) 1px, transparent 1px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration: none; }
ul { list-style: none; }
.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-variation-settings: "SOFT" 0, "WONK" 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { max-width: 70ch; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--cobalt);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--concrete { background: var(--concrete); }
.section--gunmetal { background: var(--gunmetal); color: var(--white); }
.section--gunmetal h1, .section--gunmetal h2, .section--gunmetal h3 { color: var(--white); }
.grid { display: grid; gap: clamp(20px, 3vw, 44px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px,5vw,72px); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em; padding: 0.95em 1.7em; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: all 0.25s var(--ease);
  text-align: center; line-height: 1;
}
.btn--primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,91,234,0.6); }
.btn--primary:hover { background: var(--cobalt-bright); transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(0,91,234,0.55); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--light { background: #fff; color: var(--gunmetal); }
.btn--light:hover { transform: translateY(-2px); }
.btn--lg { padding: 1.15em 2.2em; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }
.bar--utility {
  background: var(--charcoal); color: rgba(255,255,255,0.78);
  font-size: 0.8rem; letter-spacing: 0.02em;
}
.bar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.bar__badge { font-weight: 600; color: #fff; }
.bar__badge::before { content: "◆ "; color: var(--cobalt-bright); }
.bar__contact { display: flex; align-items: center; gap: 0.7em; }
.bar__contact a { color: #fff; font-weight: 600; }
.bar__sep { opacity: 0.4; }
.bar--nav {
  background: var(--gunmetal-90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 0.7em; }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--cobalt); border-radius: var(--radius);
  box-shadow: 0 6px 16px -6px rgba(0,91,234,0.7);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__text strong { color: #fff; font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__text em { color: var(--cobalt-bright); font-style: normal; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.brand--footer .brand__text strong { color: #fff; }

.nav-list { display: flex; align-items: center; gap: 1.9rem; }
.nav-list > li > a {
  color: rgba(255,255,255,0.86); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 0.4em 0; transition: color 0.2s;
}
.nav-list > li > a:hover { color: #fff; }
.nav-list > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--cobalt-bright); transition: width 0.25s var(--ease);
}
.nav-list > li > a:not(.btn):hover::after { width: 100%; }
.nav-cta a { color: #fff; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px; min-width: 320px; opacity: 0; visibility: hidden;
  transition: all 0.25s var(--ease); border-top: 3px solid var(--cobalt);
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega ul { display: grid; gap: 2px; }
.mega a {
  display: block; padding: 0.65em 0.9em; color: var(--charcoal); font-weight: 600;
  font-size: 0.92rem; border-radius: 2px; transition: all 0.18s;
}
.mega a:hover { background: var(--concrete); color: var(--cobalt); padding-left: 1.2em; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span:not(.sr-only) { width: 26px; height: 2px; background: #fff; transition: 0.25s; }

/* ============================================================
   HERO (home + service)
   ============================================================ */
.hero { position: relative; background: var(--gunmetal); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--blueprint-grid); background-size: 44px 44px;
  opacity: 0.5; pointer-events: none;
}
.hero__inner { position: relative; padding: clamp(60px, 9vw, 120px) 0; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 56ch; margin-top: 1.3rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__stats { display: flex; gap: clamp(24px,5vw,64px); margin-top: 3rem; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--cobalt-bright); line-height: 1; }
.stat__label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.4em; }

/* breadcrumb */
.crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1.4rem; letter-spacing: 0.04em; }
.crumbs a { color: rgba(255,255,255,0.78); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.45; margin: 0 0.5em; }

/* ============================================================
   CARDS / FEATURES
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--concrete); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { font-size: 0.95rem; color: rgba(27,38,59,0.78); flex: 1; }
.card__link { margin-top: 1.1rem; font-weight: 700; font-size: 0.9rem; color: var(--cobalt); display: inline-flex; gap: 0.4em; align-items: center; }
.card__index { font-family: var(--font-display); font-size: 0.8rem; color: var(--cobalt); letter-spacing: 0.1em; }

.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--cobalt);
}
.section--gunmetal .feature__icon { background: rgba(255,255,255,0.06); border-color: var(--line-light); color: var(--cobalt-bright); }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.feature p { font-size: 0.94rem; color: rgba(27,38,59,0.75); }
.section--gunmetal .feature p { color: rgba(255,255,255,0.72); }

/* ============================================================
   PRICING TABLE (service pages)
   ============================================================ */
.pricing {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
}
.pricing table { width: 100%; border-collapse: collapse; }
.pricing thead { background: var(--gunmetal); }
.pricing th {
  text-align: left; color: #fff; font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1.1rem 1.4rem;
}
.pricing td { padding: 1.05rem 1.4rem; border-top: 1px solid var(--line); font-size: 0.96rem; vertical-align: top; }
.pricing tbody tr:nth-child(even) { background: var(--concrete); }
.pricing tbody tr:hover { background: rgba(0,91,234,0.05); }
.pricing td:first-child { font-weight: 600; color: var(--charcoal); }
.pricing .price { font-family: var(--font-display); font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.pricing__note { font-size: 0.85rem; color: rgba(27,38,59,0.6); margin-top: 0.9rem; max-width: none; }

/* ============================================================
   PROSE (service/blog body copy)
   ============================================================ */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p { color: rgba(27,38,59,0.86); }
.prose a { font-weight: 600; border-bottom: 1px solid rgba(0,91,234,0.3); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--cobalt); }
.prose ul.checks { display: grid; gap: 0.7rem; }
.prose ul.checks li { position: relative; padding-left: 1.9rem; color: rgba(27,38,59,0.86); }
.prose ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}
.prose blockquote {
  border-left: 3px solid var(--cobalt); padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); font-style: italic;
}

/* sidebar quote box */
.sidebar { position: sticky; top: 130px; }
.quote-box {
  background: var(--gunmetal); color: #fff; border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.quote-box::before {
  content: ""; position: absolute; inset: 0; background-image: var(--blueprint-grid);
  background-size: 28px 28px; opacity: 0.5;
}
.quote-box > * { position: relative; }
.quote-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.6rem; }
.quote-box p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 1.3rem; }
.quote-box .btn { width: 100%; justify-content: center; }
.quote-box ul { margin: 1.3rem 0; display: grid; gap: 0.6rem; }
.quote-box ul li { font-size: 0.88rem; padding-left: 1.5rem; position: relative; color: rgba(255,255,255,0.85); }
.quote-box ul li::before { content: "◆"; position: absolute; left: 0; color: var(--cobalt-bright); font-size: 0.7rem; top: 0.25em; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--cobalt); color: #fff; border-radius: var(--radius);
  padding: clamp(2rem,4vw,3rem); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-strip h2 { color: #fff; font-size: clamp(1.5rem,3vw,2rem); max-width: 22ch; }
.cta-strip p { color: rgba(255,255,255,0.9); margin-top: 0.4rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem;
  background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.2rem 1.4rem; font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font-size: 1.5rem; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.4rem 1.3rem; color: rgba(27,38,59,0.8); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gunmetal); color: rgba(255,255,255,0.72); }
.footer-cta { background: var(--charcoal); border-bottom: 1px solid var(--line-light); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.4rem,5vw,4rem) 0; flex-wrap: wrap; }
.footer-cta__eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-bright); font-weight: 700; }
.footer-cta__title { color: #fff; font-size: clamp(1.6rem,3vw,2.4rem); margin: 0.5rem 0; }
.footer-cta__sub { color: rgba(255,255,255,0.7); font-size: 0.98rem; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem,5vw,4.5rem) 24px; }
.footer-col h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.92rem; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-blurb { font-size: 0.92rem; margin: 1.2rem 0; max-width: 38ch; }
.footer-license { font-size: 0.82rem; color: var(--cobalt-bright); font-weight: 600; }
.contact-list li { font-size: 0.92rem; margin-bottom: 0.6rem; }

.footer-hoods { display: flex; align-items: baseline; gap: 1rem; padding: 1.8rem 24px; border-top: 1px solid var(--line-light); flex-wrap: wrap; }
.footer-hoods__label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 700; }
.footer-hoods__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-hoods__tags span { font-size: 0.82rem; padding: 0.3em 0.8em; background: rgba(255,255,255,0.06); border-radius: 2px; color: rgba(255,255,255,0.78); }

.footer-bottom { border-top: 1px solid var(--line-light); }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom ul { display: flex; gap: 1.4rem; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: rise 0.7s var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--gunmetal); padding: 1rem;
    border-bottom: 1px solid var(--line-light); max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav-list.is-open { max-height: 480px; }
  .nav-list > li { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line-light); }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: rgba(255,255,255,0.04); min-width: 0; margin-top: 0.6rem; }
  .mega a { color: rgba(255,255,255,0.8); }
  .mega a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .bar--utility .bar__hours, .bar__sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
