/* ==========================================================================
   J & F Auto Glass Inc — site stylesheet
   Design tokens taken verbatim from the approved canvas design.
   Do not change the palette/type scale without checking the design first.
   ========================================================================== */

:root {
  --navy:        #12405f;
  --navy-dark:   #0d3149;
  --navy-deep:   #0e2f45;
  --navy-line:   #204a63;
  --navy-chip:   #2b5570;
  --red:         #b8321f;
  --red-dark:    #9c2917;
  --cream:       #f7f5f2;
  --cream-soft:  #faf9f7;
  --field:       #fdfcfb;
  --white:       #ffffff;
  --ink:         #1b2733;
  --ink-2:       #2c3944;
  --ink-3:       #3c4954;
  --ink-4:       #43505c;
  --ink-5:       #4a5763;
  --muted:       #626e7b;
  --border:      #e2ddd6;
  --border-soft: #e6e1da;
  --field-line:  #cfc9c1;
  --on-navy:     #d7e3ec;
  --on-navy-2:   #a9c1d3;
  --on-navy-3:   #eaf1f6;
  --footer-text: #cfdde7;
  --footer-mute: #9db6c6;
  --footer-fine: #86a2b5;
  --success:     #1c6b3f;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 880px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
  text-decoration: none; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: 150px; }

/* --------------------------------------------------------------- utility */
.h2 {
  font-family: var(--display); font-weight: 800; font-size: 40px;
  letter-spacing: -0.02em; color: var(--navy); margin: 0 0 10px;
  line-height: 1.12; text-wrap: balance;
}
.h3 {
  font-family: var(--display); font-weight: 700; font-size: 25px;
  color: var(--navy); margin: 0;
}
.lede { font-size: 20px; color: var(--ink-5); margin: 0 0 40px; max-width: 62ch; }
.prose p { font-size: 20px; color: var(--ink-3); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.section { padding: 78px 0; }
.section--tight { padding: 60px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .h2 { color: #fff; }
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--on-navy { border-color: rgba(255,255,255,0.25); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  padding: 16px 28px; border-radius: var(--radius-btn); text-align: center;
  transition: background-color 0.15s ease;
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost {
  background: transparent; color: #fff; padding: 20px 28px;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Stacked "Call — (262) …" button */
.btn-call {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--red); color: #fff; text-decoration: none;
  padding: 16px 30px; border-radius: var(--radius-btn); line-height: 1.15;
  transition: background-color 0.15s ease;
}
.btn-call:hover { background: var(--red-dark); color: #fff; }
.btn-call__label {
  font-size: 15px; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 700; opacity: 0.85;
}
.btn-call__number {
  font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- announce */
.announce {
  background: var(--navy); color: #fff; padding: 10px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  align-items: center; justify-content: center;
  font-size: 17px; letter-spacing: 0.01em;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: #fff; }
.announce__dot { opacity: 0.4; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 12px rgba(18,64,95,0.06);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
/* The supplied transparent logo has white lettering; a translucent dark disc
   behind it keeps that legible. The disc traces the logo's own ring, which is
   centred at (400, 340) with a 340px radius on the 797x654 source image. */
.brand, .footer-brand { position: relative; isolation: isolate; text-decoration: none; }
.brand::before, .footer-brand::before {
  content: ""; position: absolute; z-index: -1;
  left: 50.2%; top: 52%; width: 93%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: rgba(16, 24, 32, 0.7); border-radius: 50%;
}
.brand__logo, .footer-brand img { display: block; }
.brand { display: block; flex: none; }
.brand__logo { width: 86px; height: auto; }
.site-nav {
  margin-left: auto; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 20px; font-size: 17px; font-weight: 600;
}
/* The design's nav had five items; ours carries six. Tighten just enough at
   narrower desktop widths that the call button never wraps to its own row. */
@media (max-width: 1300px) {
  .site-nav { gap: 4px 16px; font-size: 16px; }
  .site-header__inner { gap: 16px; }
}
@media (max-width: 1080px) {
  .site-nav { gap: 4px 14px; }
  .site-header__inner { gap: 14px; }
  /* Drop the "CALL" kicker before the number — the button still reads clearly. */
  .header-call__label { display: none; }
  .header-call { padding: 13px 18px; }
}
/* Below this the six nav items no longer fit beside the logo and the call
   button, so give the nav its own row rather than letting the button drop. */
@media (max-width: 1000px) {
  [id] { scroll-margin-top: 220px; }
  .site-nav {
    order: 3; width: 100%; margin-left: 0;
    justify-content: flex-start; padding-top: 2px;
  }
  .header-call { margin-left: auto; }
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.header-call {
  display: flex; align-items: center; gap: 10px; background: var(--red);
  color: #fff; text-decoration: none; font-family: var(--display);
  font-weight: 700; font-size: 21px; padding: 13px 22px;
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: background-color 0.15s ease;
}
.header-call:hover { background: var(--red-dark); color: #fff; }
.header-call__label {
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85;
}

/* ----------------------------------------------------------------- hero */
.hero { background: var(--navy); color: #fff; padding: 84px 0 76px; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-block; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 6px 16px; font-size: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance;
}
.hero__sub {
  font-size: 23px; line-height: 1.5; margin: 0 0 34px;
  color: var(--on-navy); max-width: 38ch; text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__note { margin: 24px 0 0; font-size: 17px; color: var(--on-navy-2); }

/* Compact hero used on interior pages */
.hero--page { padding: 66px 0 60px; }
.hero--page h1 { font-size: 48px; }
.hero--page .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
/* Interior intros carry the old site's longer copy, so give them a wider
   measure than the home page's short headline-style sub. */
.hero--page .hero__sub { max-width: 52ch; font-size: 21px; }

.crumbs { font-size: 16px; color: var(--on-navy-2); margin: 0 0 18px; }
.crumbs a { color: var(--on-navy-2); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.6; padding: 0 6px; }

/* ----------------------------------------------------------------- bar */
.factbar { background: var(--white); border-bottom: 1px solid var(--border-soft); }
.factbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px;
  padding-top: 26px; padding-bottom: 26px;
}
.fact { display: flex; align-items: baseline; gap: 12px; }
.fact__n { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--navy); }
.fact__l { font-size: 18px; color: var(--ink-5); }

/* --------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(18,64,95,0.12); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body {
  padding: 26px 26px 28px; display: flex; flex-direction: column;
  gap: 12px; flex: 1;
}
.card__body p { margin: 0; color: var(--ink-4); font-size: 18px; }
.card__link {
  margin-top: auto; font-weight: 700; color: var(--red);
  text-decoration: none; font-size: 18px;
}
.card__link:hover { color: var(--red-dark); text-decoration: underline; }

/* --------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }
.split--gap-lg { gap: 56px; }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--display);
  font-weight: 800; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 {
  font-family: var(--display); font-weight: 700; font-size: 23px;
  color: var(--navy); margin: 6px 0 8px;
}
.step p { margin: 0; font-size: 18px; color: var(--ink-4); }

/* -------------------------------------------------------------- checks */
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px;
}
.checklist--three { grid-template-columns: repeat(3, 1fr); }
.checklist li {
  position: relative; padding-left: 30px; font-size: 19px; color: var(--ink-4);
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 9px; height: 16px; border: solid var(--red);
  border-width: 0 3px 3px 0; transform: translateY(-70%) rotate(45deg);
}

/* ------------------------------------------------------------- reviews */
.reviews__head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 38px;
}
.reviews__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 18px; }
.reviews__links a { color: #fff; }
.reviews__links a:hover { color: var(--on-navy-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 26px;
}
.quote p { margin: 0 0 16px; font-size: 19px; line-height: 1.55; color: var(--on-navy-3); }
.quote footer { font-weight: 700; color: var(--on-navy-2); font-size: 17px; }

/* ----------------------------------------------------------------- faq */
.faqs { display: flex; flex-direction: column; gap: 14px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream-soft); }
.faq > summary {
  cursor: pointer; list-style: none; padding: 22px 26px;
  font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--navy);
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+"; flex: none; font-size: 26px; line-height: 1;
  color: var(--red); font-weight: 700;
}
.faq[open] > summary::after { content: "\2013"; }
.faq__body { padding: 0 26px 24px; font-size: 19px; color: var(--ink-4); }
.faq__body p { margin: 0 0 12px; font-size: 19px; }
.faq__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.deflist {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: 12px 24px; font-size: 19px;
}
.deflist dt { font-weight: 700; color: var(--navy); }
.deflist dd { margin: 0; color: var(--ink-4); }
.deflist dd .fine { color: var(--muted); font-size: 17px; }

.form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field {
  display: flex; flex-direction: column; gap: 7px;
  font-weight: 600; font-size: 17px; color: var(--ink-2);
}
.field input, .field textarea {
  font: inherit; font-size: 19px; font-weight: 400; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--field-line);
  border-radius: var(--radius-sm); background: var(--field); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.form__note { margin: 0; font-size: 16px; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map {
  width: 100%; border: 0; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius); background: var(--border);
}

/* ---------------------------------------------------------------- CTA */
.cta-band { background: var(--navy); color: #fff; padding: 60px 0; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { font-family: var(--display); font-weight: 800; font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }
.cta-band p { margin: 0; font-size: 19px; color: var(--on-navy); max-width: 52ch; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--navy-deep); color: var(--footer-text); padding: 52px 0 34px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer__name {
  font-family: var(--display); font-weight: 800; font-size: 23px;
  color: #fff; margin-bottom: 10px;
}
.footer-brand { display: inline-block; margin-bottom: 20px; }
.footer-brand img { width: 129px; height: auto; }
.site-footer p { margin: 0 0 14px; font-size: 18px; }
.paychips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--footer-mute); }
.paychips span { border: 1px solid var(--navy-chip); border-radius: 4px; padding: 5px 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.footer-nav a { color: var(--footer-text); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact { font-size: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: #fff; }
.footer-contact__phone {
  color: #fff; font-family: var(--display); font-weight: 700;
  font-size: 24px; text-decoration: none;
}
.footer-contact__phone:hover { color: #fff; text-decoration: underline; }
.site-footer__fine {
  max-width: var(--wrap); margin: 34px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--navy-line); font-size: 15px; color: var(--footer-fine);
}

/* ------------------------------------------------------- mobile callbar */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--red); color: #fff; text-decoration: none; text-align: center;
  padding: 16px; font-family: var(--display); font-weight: 800; font-size: 21px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.18);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.callbar:hover { color: #fff; }

/* ==========================================================================
   Responsive — the canvas design was desktop-only; these are the breakpoints
   that make it work on phones without changing any of the design values.
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid, .hero--page .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 50px; }
  .hero--page h1 { font-size: 42px; }
  .hero__sub { max-width: none; }
  .split, .split--wide-left, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .steps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .factbar__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 18px; }
  /* The persistent call bar keeps contact available without covering content
     with a multi-row mobile navigation header. */
  .site-header { position: static; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header__inner { padding: 12px 20px; gap: 12px 16px; }
  .site-nav {
    order: 3; width: 100%; margin-left: 0; justify-content: flex-start;
    gap: 4px 18px; font-size: 16px; padding-top: 4px;
  }
  .header-call { margin-left: auto; font-size: 19px; padding: 11px 16px; }
  .header-call__label { display: none; }
  .brand__logo { width: 67px; }

  .hero { padding: 56px 0 52px; }
  .hero--page { padding: 48px 0 44px; }
  .hero h1, .hero--page h1 { font-size: 38px; }
  .hero__sub { font-size: 20px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn-call, .hero__actions .btn { width: 100%; }
  .btn--ghost { padding: 16px 24px; }

  .section, .section--tight { padding: 56px 0; }
  .h2, .cta-band h2 { font-size: 32px; }
  .lede, .prose p { font-size: 19px; }
  .cards, .steps, .quotes, .checklist, .checklist--three,
  .factbar__grid, .site-footer__grid, .form__row { grid-template-columns: 1fr; }
  .steps { gap: 22px; }
  .reviews__head { margin-bottom: 28px; }
  .faq > summary { font-size: 19px; padding: 18px 20px; }
  .faq__body { padding: 0 20px 20px; font-size: 18px; }
  .faq__body p { font-size: 18px; }
  .form { padding: 24px; }
  .deflist { grid-template-columns: 1fr; gap: 4px 0; }
  .deflist dt { margin-top: 14px; }
  .deflist dt:first-child { margin-top: 0; }

  /* Sticky call bar earns its keep on phones */
  .callbar { display: block; }
  body { padding-bottom: 72px; }
  [id] { scroll-margin-top: 24px; }
}

@media (max-width: 520px) {
  /* No room for the header phone button beside the logo. The fixed
     "Tap to call" bar at the bottom is always on screen at this size,
     and the hero has a full-width call button, so nothing is lost. */
  .header-call { display: none; }
}

@media (max-width: 480px) {
  .announce { font-size: 15px; gap: 4px 14px; padding: 9px 16px; }
  .announce__dot { display: none; }
  /* Keep the bar to two lines; the address is in the footer, on the
     contact page and on the map. */
  .announce a { display: none; }
  .hero h1, .hero--page h1 { font-size: 32px; }
  .h2, .cta-band h2 { font-size: 28px; }
  .btn-call__number { font-size: 26px; }
}

@media print {
  .site-header, .callbar, .announce, .form { display: none; }
  body { background: #fff; padding-bottom: 0; }
}
