/* Apex Drafting Services -- "Fast Quote" design system (chosen by Joseph 2026-07-01).
   Deep blue + bold orange, big radii, soft shadows, conversion-first. Same class hooks as v1
   so all pages inherit the redesign from this single file. */

:root {
  /* Variable names kept from v1 so existing markup restyles automatically. */
  --navy: #153a63;            /* deep blue panels/heros */
  --navy-dark: #0f2b4c;       /* deeper blue */
  --navy-mid: #1d4a7c;
  --blue: #1f5da8;            /* link blue */
  --blue-light: #e9f1fa;
  --amber: #f47b20;           /* primary orange */
  --amber-dark: #d96812;
  --amber-light: #fde3cd;
  --ink: #1c2733;
  --ink-soft: #51606f;
  --line: #dfe6ee;
  --paper: #ffffff;
  --paper-soft: #f4f7fa;
  --radius: 16px;
  --radius-btn: 10px;
  --max: 1180px;
  --shadow-sm: 0 1px 3px rgba(21,58,99,.08), 0 1px 2px rgba(21,58,99,.06);
  --shadow-md: 0 10px 28px rgba(21,58,99,.12), 0 3px 10px rgba(21,58,99,.07);
  --shadow-lg: 0 24px 54px rgba(15,43,76,.20), 0 8px 20px rgba(15,43,76,.12);
  --shadow-orange: 0 10px 26px rgba(244,123,32,.32);
  /* One gutter expression: at least the responsive side padding, or whatever centers a --max-wide
     content area. Sections use it as padding so ALL children align uniformly. */
  --gutter: max(clamp(1.25rem, 4vw, 3rem), calc((100% - var(--max)) / 2));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; color: var(--navy); font-weight: 800; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); letter-spacing: -.025em; font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-top: 1.8em; }
h2::before {
  content: ""; display: block; width: 46px; height: 5px; background: var(--amber); border-radius: 3px; margin-bottom: .6em;
}
.cta-band h2::before, .text-center h2::before { margin-left: auto; margin-right: auto; }
.card h2::before, .faq-item h2::before { display: none; }
h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: #fff;
  padding: .6em 1em; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Top utility bar -- slim, dark, click-to-call */
.topbar { background: var(--navy-dark); color: #c4d4e6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; gap: .3rem; }
.topbar a { color: var(--amber); font-weight: 800; letter-spacing: .01em; }
.topbar a:hover { color: #ffa057; text-decoration: none; }

/* Header / nav -- white, sticky */
header.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(21,58,99,.06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { color: var(--navy); font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; }
.brand span { color: var(--amber); }
.brand:hover { text-decoration: none; }
nav.primary-nav { display: none; }
nav.primary-nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; align-items: center; }
nav.primary-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
nav.primary-nav a:hover { color: var(--amber-dark); text-decoration: none; }
.nav-cta {
  background: var(--amber); color: #fff !important; padding: .6rem 1.25rem; border-radius: 999px;
  font-weight: 800 !important; white-space: nowrap; box-shadow: var(--shadow-orange);
  transition: transform .15s ease, background-color .15s ease;
}
.nav-cta:hover { background: var(--amber-dark); text-decoration: none !important; transform: translateY(-1px); }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); color: var(--navy); padding: .45rem .65rem; border-radius: 8px; font-size: 1rem; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(21,58,99,.12); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.mobile-menu a { display: block; color: var(--ink); padding: .6rem 1.25rem; font-weight: 600; }
.mobile-menu details summary { color: var(--ink); padding: .6rem 1.25rem; font-weight: 700; cursor: pointer; }
.mobile-menu details ul { padding-left: 1.25rem; }

@media (min-width: 900px) {
  nav.primary-nav { display: block; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .dropdown { position: relative; }
  .dropdown-panel {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; min-width: 270px;
    box-shadow: var(--shadow-lg); border-radius: 14px; padding: .55rem 0; z-index: 50; border: 1px solid var(--line);
  }
  .dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: block; }
  .dropdown-panel a { color: var(--ink); padding: .55rem 1.1rem; display: block; font-weight: 500; }
  .dropdown-panel a:hover { background: var(--blue-light); text-decoration: none; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--ink-soft); padding: .8rem 0; border-bottom: 1px solid var(--line); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 .5em; color: #b3c0cd; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* Hero -- deep blue, blueprint grid, orange energy */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  background-image:
    linear-gradient(160deg, rgba(21,58,99,.97) 0%, rgba(15,43,76,.99) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px);
  color: #fff;
  padding: 3.4rem var(--gutter) 3rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 50%; right: var(--gutter);
  width: 420px; height: 370px;
  transform: translateY(-50%);
  background-image: url("/assets/blueprint-hero.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .5;
  pointer-events: none;
  display: none;
}
@media (min-width: 900px) {
  .hero::after { display: block; }
  .hero .container { position: relative; z-index: 1; }
  .hero h1, .hero .lede { max-width: 56%; }
  .hero.has-form::after { display: none; }
  .hero.has-form h1, .hero.has-form .lede { max-width: 100%; }
}
.hero h1 { color: #fff; }
.hero h1 em, .hero h1 .hi { font-style: normal; color: var(--amber); }
.hero .lede { font-size: 1.18rem; color: #cddcec; max-width: 62ch; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .eyebrow {
  display: inline-block; background: rgba(244,123,32,.15); border: 1px solid rgba(244,123,32,.4);
  color: #ffb37a; font-weight: 700; font-size: .78rem; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 1rem; padding: .35rem .9rem; border-radius: 999px;
}
.hero .checks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.hero .checks li { padding-left: 1.7rem; position: relative; margin-bottom: .45rem; color: #dfe9f3; font-weight: 600; font-size: .95rem; }
.hero .checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--amber); font-weight: 900; }

/* Split hero with embedded quote form (homepage) */
.hero-split { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-split { grid-template-columns: 1.08fr .92fr; } }
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 460px; justify-self: center; width: 100%;
}
.quote-card .qc-head { background: var(--amber); color: #fff; padding: 1rem 1.4rem; }
.quote-card .qc-head h2, .quote-card .qc-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.quote-card .qc-head h2::before { display: none; }
.quote-card .qc-head p { color: #ffe4cd; margin: .15rem 0 0; font-size: .85rem; }
.quote-card form { padding: 1.3rem 1.4rem 1.5rem; }
.quote-card .small { text-align: center; display: block; margin-top: .8rem; }

/* Forms (quote card + lead sections + contact page) */
form label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin: .9rem 0 .3rem; }
form input[type="text"], form input[type="email"], form input[type="tel"], form input[type="number"],
form select, form textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244,123,32,.18);
}
form button[type="submit"], form .btn { margin-top: 1.1rem; width: 100%; border: 0; cursor: pointer; font-size: 1rem; }

/* Lead-form band on location pages */
.lead-band { background: var(--paper-soft); border-top: 1px solid var(--line); }
.lead-band .lead-wrap { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .lead-band .lead-wrap { grid-template-columns: 1fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.7rem;
  border-radius: var(--radius-btn); font-weight: 800; font-size: .98rem;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* Sections / cards.
   Content sections are NOT individually wrapped in .container divs, so the section itself
   provides the centered content area via --gutter padding. Backgrounds stay full-bleed
   while every child aligns to the same readable bounds. */
main { display: block; }
section { padding: 2.8rem var(--gutter); }
section.alt { background: var(--paper-soft); }
main > section:not(.hero):not(.cta-band):not(.lead-band):nth-of-type(even) { background: var(--paper-soft); }
/* The stat strip is itself a styled card-section: center the strip via margin, no inner padding. */
section.stat-strip { margin: 2.8rem var(--gutter); padding: 0; }
.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; list-style: none; padding-left: 0; margin: 0; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdae6;
}
.card h3 { margin-top: 0; }
.card a.card-link { font-weight: 700; color: var(--amber-dark); }
.card a.card-link::after { content: " \2192"; }

/* Icon badge */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--amber-light); color: var(--amber-dark); margin-bottom: .8rem;
}
.icon-badge svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.card:hover .icon-badge { background: var(--amber); color: #fff; }

/* Numbered index for listicle/process cards */
.step-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #fff;
  font-weight: 900; font-size: 1rem; margin-bottom: .7rem; box-shadow: var(--shadow-orange);
}

/* Trust badge row */
.trust-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 800px) { .trust-row { grid-template-columns: repeat(4,1fr); } }
.trust-badge {
  display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: .95rem 1.1rem; box-shadow: var(--shadow-sm); font-weight: 700; font-size: .92rem; color: var(--navy);
}
.trust-badge svg { width: 26px; height: 26px; stroke: var(--amber); fill: none; flex: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item summary {
  font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; position: relative; padding-right: 1.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: -4px; font-size: 1.45rem; font-weight: 600; color: var(--amber);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .7rem; }

/* CTA band */
.cta-band {
  position: relative; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede, .cta-band p { color: #cddcec; }
.cta-band .hero-ctas { justify-content: center; }

/* Placeholder blocks */
.placeholder-block {
  border: 2px dashed var(--amber); background: var(--amber-light); color: #7a4a15; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  font-size: .95rem; position: relative; padding-left: 3.2rem;
}
.placeholder-block::before {
  content: "\1F4CB"; position: absolute; left: 1.1rem; top: 1.05rem; font-size: 1.3rem;
}

/* Image placeholder tiles */
.img-placeholder {
  background: var(--navy);
  background-image:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 20px);
  border: 1px solid var(--navy-dark); border-radius: var(--radius); aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: #cddcec; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-align: center; padding: .5rem;
}
.img-placeholder::before {
  content: "";
  width: 40px; height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f47b20' stroke-width='1.6'%3E%3Cpath d='M3 21V7l9-4 9 4v14'/%3E%3Cpath d='M9 21V12h6v9'/%3E%3Cpath d='M3 7l9 4 9-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .9;
}

/* Real photo tiles (blueprints, floor plans, 3D renderings) replacing the abstract placeholder */
.photo-tile {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
  margin: 0;
}
.photo-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-tile figcaption {
  padding: .65rem .9rem; font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: var(--navy); text-align: center; border-top: 1px solid var(--line);
}
.photo-tile--solo { max-width: 460px; margin: 1.4rem auto 0; }
.avatar-photo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  display: block; margin: 0 auto 1.1rem; border: 3px solid var(--blue-light); box-shadow: var(--shadow-sm);
}
.photo-note {
  font-size: .82rem; color: var(--muted, #6b7a8d); text-align: center; margin: .5rem auto 0; max-width: 460px;
}

/* Chip lists */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-list a {
  background: var(--blue-light); color: var(--navy); padding: .55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1px solid transparent; transition: all .15s ease;
}
.chip-list a:hover { background: var(--amber); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-orange); }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
@media (min-width: 700px) { .stat-strip { grid-template-columns: repeat(4,1fr); } }
.stat-strip .stat { padding: 1.7rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .stat:nth-child(2n) { border-right: none; }
@media (min-width: 700px) {
  .stat-strip .stat { border-bottom: none; }
  .stat-strip .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat-strip .stat:last-child { border-right: none; }
}
.stat-strip .stat b { display: block; font-size: 2.1rem; color: var(--amber); font-weight: 900; }
.stat-strip .stat span { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { text-align: left; padding: .65em .75em; border-bottom: 1px solid var(--line); }
th { color: var(--navy); background: var(--paper-soft); }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #b6c7d9; margin-top: 2rem; border-top: 4px solid var(--amber); }
footer.site-footer a { color: #b6c7d9; transition: color .15s ease; }
footer.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; padding: 2.6rem 0 1.4rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .45em; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #1c436f; padding: 1.1rem 0; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
