/* ==========================================================================
   A-1 Roofing — demo site styles
   Navy/charcoal ground, safety-orange accent. Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:       #0f1b2d;
  --navy-2:     #16263d;
  --navy-3:     #1f3452;
  --charcoal:   #23272e;

  --paper:      #ffffff;
  --paper-2:    #f3f5f8;
  --line:       #dde2ea;

  --text:       #1c2430;
  --muted:      #5a6474;
  --on-dark:    #f4f6fa;
  --on-dark-2:  #b6c0d0;

  --accent:     #f26b1d;
  --accent-ink: #c2410c; /* accent dark enough for white text */
  --accent-soft:#fff1e8;

  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 10px 30px rgba(15, 27, 45, 0.10);
  --shadow-lg:  0 22px 50px rgba(15, 27, 45, 0.18);
  --ring:       0 0 0 3px rgba(242, 107, 29, 0.55);

  --wrap:       1160px;
  --gutter:     16px;
  --header-h:   64px;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 6vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 76px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; font-size: 1.08rem; padding: .8em 1.5em; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent-ink); color: #fff; box-shadow: 0 6px 16px rgba(194, 65, 12, .35); }
.btn--accent:hover { background: #a8380a; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--accent-ink); }
.btn--light:hover { background: var(--accent-soft); }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--charcoal); color: var(--on-dark-2);
  font-size: .78rem; text-align: center; padding: 6px var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 600 1.35rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand__sub { display: none; font: 500 .72rem/1 var(--font-body); color: var(--on-dark-2); text-transform: none; letter-spacing: .02em; margin-top: 4px; }

.nav { display: none; }
.header-call { min-height: 46px; padding: .55em .95em; font-size: 1rem; white-space: nowrap; }

@media (min-width: 420px) { .brand__sub { display: block; } }
@media (min-width: 720px) {
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 1.6rem; }
  .header-call { font-size: 1.12rem; padding: .65em 1.2em; min-height: 52px; }
}
@media (min-width: 1000px) {
  .nav { display: flex; gap: 26px; margin-left: auto; margin-right: 18px; }
  .nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: var(--accent); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(242, 107, 29, .28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 55%, #0a1220 100%);
  padding: 48px 0 96px;
}
.hero__inner { position: relative; z-index: 1; }
.eyebrow { font: 600 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffb07f; margin-bottom: 14px; }
.eyebrow--dark { color: var(--accent-ink); }
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--on-dark); max-width: 34ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__hours { margin: 22px 0 0; color: var(--on-dark-2); font-size: .92rem; }
.hero__roofline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--navy-2); }
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .hero { padding: 96px 0 150px; }
  .hero__roofline { height: 110px; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--navy-2); color: var(--on-dark); padding: 6px 0 22px; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.trust__icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
@media (min-width: 900px) {
  .trust { padding: 10px 0 30px; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__list li { justify-content: center; font-size: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--paper-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head--left { text-align: left; margin: 0 0 24px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (min-width: 720px) { .section { padding: 92px 0; } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}
.card__icon { width: 46px; height: 46px; color: var(--accent-ink); margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.card--alert { border-top-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--paper) 70%); }
.card__link { display: inline-block; margin-top: 14px; font-weight: 700; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
}

/* ---------- Winter callout ---------- */
.callout { background: var(--accent-ink); color: #fff; padding: 28px 0; }
.callout__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.callout__icon { width: 40px; height: 40px; flex: none; opacity: .9; }
.callout__text { font-size: 1.15rem; margin: 0; }
.callout__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; display: block; letter-spacing: .02em; }
@media (min-width: 800px) {
  .callout__inner { flex-direction: row; align-items: center; gap: 22px; }
  .callout__text { flex: 1; }
  .callout__text strong { display: inline; margin-right: .3em; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery__item {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 12px;
  border: 2px dashed #b9c3d2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M6 26 24 11l18 15' fill='none' stroke='%239aa7ba' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 24v14h24V24' fill='none' stroke='%239aa7ba' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") center 40% / 56px no-repeat,
    repeating-linear-gradient(135deg, #e8ecf2 0 10px, #eef1f6 10px 20px);
}
.gallery__item span { font-size: .82rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 8px; border-radius: 6px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; align-items: stretch; }
.rating {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 28px; text-align: center; display: flex; flex-direction: column; justify-content: center;
}
.rating__score { font: 600 3.6rem/1 var(--font-display); margin: 0; }
.rating__stars { color: #ffb53a; font-size: 1.6rem; letter-spacing: .12em; margin: 8px 0 6px; }
.rating__label { color: var(--on-dark-2); margin: 0; font-size: .95rem; }
.review {
  margin: 0; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px 24px; box-shadow: var(--shadow);
}
.review__tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #ffd2b5;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.review blockquote { margin: 0 0 12px; }
.review blockquote p { font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.45; font-weight: 500; margin: 0; }
.review figcaption { color: var(--muted); font-size: .9rem; }
@media (min-width: 800px) { .reviews { grid-template-columns: 1fr 2fr; gap: 28px; } }

/* ---------- Service area ---------- */
.area__list { display: flex; flex-wrap: wrap; gap: 10px; }
.area__list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 14px; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.area__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) {
  .area { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
  .area .section__head { margin: 0; }
}

/* ---------- Estimate ---------- */
.estimate { background: linear-gradient(160deg, var(--navy-3), var(--navy)); color: #fff; }
.estimate__inner { display: grid; gap: 32px; }
.estimate__intro p { color: var(--on-dark); font-size: 1.05rem; }
.estimate__intro .btn { margin: 8px 0 22px; }
.estimate__facts li { color: var(--on-dark-2); font-size: .95rem; padding: 4px 0; }
@media (min-width: 900px) { .estimate__inner { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; } }

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .form-card { padding: 34px 32px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 2px solid #c8d0dc; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: #c81e1e; }
.form__error { color: #b91c1c; font-weight: 600; font-size: .92rem; }
.form__note { color: var(--muted); font-size: .82rem; text-align: center; margin: 12px 0 0; }

.thanks { text-align: center; padding: 18px 4px; }
.thanks:focus { box-shadow: none; }
.thanks__icon { width: 64px; height: 64px; color: #15803d; margin: 0 auto 12px; }
.thanks h3 { font-size: 1.8rem; text-transform: uppercase; }
.thanks .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1220; color: var(--on-dark-2); padding: 40px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__brand { font: 600 1.4rem/1 var(--font-display); text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.site-footer__info li { padding: 3px 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.site-footer__base p { margin: 0; }
.site-footer__demo { color: #8793a6; }
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__info { text-align: right; }
}
