/* =========================================================================
   Northpoint Garage Door — styles.css
   Aesthetic: "Trustworthy Industrial" — deep navy + safety-orange,
   blueprint-grid texture, Archivo (display) + IBM Plex Sans (body).
   Vanilla CSS, mobile-first, no build step.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy:        #0A2540;
  --navy-deep:   #061A30;
  --navy-700:    #0F325C;
  --blue-accent: #2D6CDF;
  --orange:      #FF6A1A;
  --orange-deep: #E8500A;

  /* Neutrals */
  --bg:          #F5F8FC;
  --surface:     #FFFFFF;
  --ink:         #0B1A2E;
  --ink-soft:    #3B4D63;
  --line:        #DCE5F0;

  /* Effects */
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(10,37,64,.06), 0 2px 6px rgba(10,37,64,.06);
  --shadow-md:   0 8px 24px rgba(10,37,64,.10);
  --shadow-lg:   0 22px 60px rgba(10,37,64,.18);
  --shadow-cta:  0 10px 24px rgba(232,80,10,.35);

  --maxw:        1120px;
  --header-h:    72px;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::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(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--orange); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 700; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--cta {
  background: var(--orange); color: #fff; box-shadow: var(--shadow-cta);
}
.btn--cta:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn--cta:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--wa { background: #25D366; color: #062b14; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn--wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn--wa svg { width: 1.25em; height: 1.25em; }
.btn--lg { font-size: 1.1rem; padding: 17px 30px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); background: rgba(255,255,255,.95); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
  display: grid; place-items: center; color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: -.02em; line-height: 1.05; }
.brand__name span { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.header-call .btn { padding: 12px 20px; }
.header-call .label-full { display: none; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-eyebrow {
  display: inline-block; font-family: var(--font-body);
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 620px; }
.section-head { margin-bottom: 46px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* Blueprint grid texture helper */
.blueprint {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 520px at 78% -10%, rgba(255,106,26,.20), transparent 60%),
              radial-gradient(900px 600px at 0% 110%, rgba(45,108,223,.18), transparent 55%);
}
.blueprint > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 108px); color: #fff; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,106,26,.15); border: 1px solid rgba(255,106,26,.4);
  color: #FFD8C2; padding: 7px 15px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 22px;
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,106,26,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,106,26,.6);} 70%{box-shadow:0 0 0 9px rgba(255,106,26,0);} 100%{box-shadow:0 0 0 0 rgba(255,106,26,0);} }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); font-weight: 900; margin-bottom: 18px; }
.hero h1 .accent { color: var(--orange); }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: #C9D6E8; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 9px 15px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: #E7EEF8;
}
.hero__badges svg { width: 17px; height: 17px; color: var(--orange); flex: none; }

/* Hero visual card */
.hero__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 26px;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero__card h2 { font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.hero__card .muted { color: #9FB2CC; font-size: .9rem; margin-bottom: 18px; }
.hero__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.hero__stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px 12px; text-align: center; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--orange); }
.hero__stat span { font-size: .78rem; color: #B7C6DC; }

/* staggered intro */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C6D6EC; }
.service-card__icon {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #FFF1E8, #FFE2D1);
  color: var(--orange-deep);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.16rem; color: var(--navy); margin-bottom: 7px; }
.service-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Why choose us ---------- */
.why { color: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.why-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 26px; }
.why-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #fff; margin-bottom: 16px; }
.why-card__icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why-card p { color: #C2D0E4; font-size: .95rem; margin: 0; }

/* ---------- Lead form ---------- */
.lead { background: var(--bg); }
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
.lead-copy h2 { color: var(--navy); }
.lead-copy .phone-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.lead-copy .phone-line svg { width: 26px; height: 26px; color: var(--orange); }
.lead-points { margin-top: 22px; display: grid; gap: 12px; }
.lead-points li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); }
.lead-points svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }
.lead-points--center { max-width: 560px; margin: 30px auto 0; justify-items: center; }
.lead-points--center li { justify-content: center; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.form-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 4px; }
.form-card .form-note { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field label .opt { color: var(--ink-soft); font-weight: 500; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #FBFCFE; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,26,.14); }
.field textarea { resize: vertical; min-height: 96px; }
.form-fineprint { font-size: .8rem; color: var(--ink-soft); margin: 14px 0 0; }
.form-fineprint a { color: var(--orange-deep); text-decoration: underline; }

/* thank-you state */
.form-success { display: none; text-align: center; padding: 18px 6px; }
.form-success.is-visible { display: block; animation: rise .5s ease forwards; }
.form-card.is-sent .lead-form { display: none; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: #E6F7EE; color: #15A05B; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success__icon svg { width: 34px; height: 34px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Service area ---------- */
.area { background: var(--surface); }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.area-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 600; font-size: .93rem; color: var(--navy);
}
.area-chips svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.area-note { margin-top: 22px; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.review-card .placeholder-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #FFF1E8; color: var(--orange-deep); padding: 4px 9px; border-radius: 6px;
}
.stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--orange); }
.stars svg { width: 18px; height: 18px; }
.review-card blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink); }
.review-card .reviewer { font-weight: 700; color: var(--navy); font-size: .92rem; }
.review-card .reviewer span { display: block; font-weight: 500; color: var(--ink-soft); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: #C6D6EC; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 24px; height: 24px; color: var(--orange); transition: transform .25s ease; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C6DA; padding: 56px 0 110px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-brand .brand__name { color: #fff; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: .02em; }
.footer-col a, .footer-col p { color: #B9C6DA; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-col ul { display: grid; gap: 9px; }
.footer-phone { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .85rem; color: #8497B0; }
.footer-bottom a { color: #8497B0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating call + WhatsApp (always visible while scrolling) ---------- */
.fab-stack {
  position: fixed; right: 20px; bottom: 24px; z-index: 130;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab {
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0; border-radius: 999px;
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-lg); overflow: hidden; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, padding .2s ease;
}
.fab svg { width: 26px; height: 26px; flex: none; margin: 0 15px; }
.fab__label { max-width: 0; opacity: 0; padding-right: 0; transition: max-width .25s ease, opacity .2s ease, padding .25s ease; }
.fab:hover { transform: translateY(-2px); }
.fab:hover .fab__label, .fab:focus-visible .fab__label { max-width: 130px; opacity: 1; padding-right: 20px; }
.fab:hover svg, .fab:focus-visible svg { margin-right: 8px; }
.fab--call { background: var(--orange); }
.fab--call:hover { background: var(--orange-deep); }
.fab--wa { background: #25D366; }
.fab--wa:hover { background: #1ebe5a; }
/* gentle attention pulse on the call FAB */
.fab--call::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255,106,26,.6); animation: fabpulse 2.4s infinite;
}
.fab { position: relative; }
@keyframes fabpulse { 0%{box-shadow:0 0 0 0 rgba(255,106,26,.55);} 70%{box-shadow:0 0 0 16px rgba(255,106,26,0);} 100%{box-shadow:0 0 0 0 rgba(255,106,26,0);} }

/* ---------- Mobile sticky bottom bar (call + WhatsApp) ---------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(6,26,48,.94); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.mobile-callbar .btn { flex: 1; padding: 14px 10px; font-size: 1.02rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 90px; }
.legal-doc { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 52px); box-shadow: var(--shadow-sm); }
.legal-doc h1 { color: var(--navy); font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 6px; }
.legal-doc .updated { color: var(--ink-soft); font-size: .92rem; margin-bottom: 30px; }
.legal-doc h2 { color: var(--navy); font-size: 1.3rem; margin: 32px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal-doc a { color: var(--orange-deep); text-decoration: underline; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-weight: 600; color: var(--navy); }
.back-home svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .header-call .label-full { display: inline; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .mobile-callbar { display: flex; }
  .fab-stack { display: none; }
  .site-footer { padding-bottom: 104px; }
  .header-call .btn span.txt { display: none; }
  .header-call .btn { padding: 11px 14px; }
}

/* ---------- Motion / a11y preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
