/* ============================================================
   NWA Glazers - main stylesheet
   Palette: deep slate ink + glass teal + warm paper
   Type: Fraunces (display) / Inter (text)
   ============================================================ */

:root {
  --ink: #0d1f2d;
  --ink-2: #16324a;
  --ink-3: #274a66;
  --teal: #0e7c86;
  --teal-dark: #0a5f68;
  --teal-soft: #e3f1f2;
  --gold: #c9a227;
  --paper: #fbfcfd;
  --sky: #eef4f6;
  --line: #dde6ea;
  --text: #2b3b47;
  --muted: #5d7280;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 45, .08);
  --shadow-md: 0 10px 30px -12px rgba(13, 31, 45, .25);
  --shadow-lg: 0 24px 60px -20px rgba(13, 31, 45, .35);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.bg-sky { background: var(--sky); }
.bg-ink { background: var(--ink); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #cfdbe4; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__group { display: flex; gap: 26px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,252,253,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.brand__name span { color: var(--teal); }
.brand__tag { display: block; font-family: var(--font-text); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav__parent > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 6px;
  color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.nav > a:hover, .nav__parent > a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav > a.is-active { color: var(--teal-dark); }
.nav__parent { position: relative; }
.nav__parent > a svg { width: 11px; height: 11px; opacity: .6; transition: transform .2s; }
.nav__parent:hover > a svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.nav__parent:hover .nav__menu, .nav__parent:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav__menu a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 20px; }
.header-phone { text-align: right; line-height: 1.25; white-space: nowrap; }
.header-phone small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.header-phone a { font-weight: 700; color: var(--ink); font-size: 16px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; display: flex; align-items: center; min-height: 640px; padding: 110px 0; }
.hero--sub { min-height: 380px; padding: 80px 0; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,22,33,.88) 0%, rgba(9,22,33,.62) 46%, rgba(9,22,33,.25) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 660px; }
.hero .eyebrow { color: #8fd6dc; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 62px); margin: 16px 0 20px; font-weight: 600; }
.hero h1 em { font-style: italic; color: #a7e3e8; }
.hero p.lead { font-size: 19px; color: #d9e4ec; max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { position: relative; z-index: 2; display: flex; gap: 34px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__badge { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: #e6eef4; }
.hero__badge svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.breadcrumb { position: relative; z-index: 2; font-size: 13.5px; color: #b9c9d5; margin-bottom: 6px; }
.breadcrumb a { color: #d9e4ec; }
.breadcrumb a:hover { color: #fff; }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 28px; counter-reset: step; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 21px; }
.card__body p { color: var(--muted); font-size: 15px; flex: 1; }
.card__link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--teal); }
.card__link svg { width: 14px; height: 14px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.split__media .stamp {
  position: absolute; bottom: -22px; right: -14px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.stamp strong { display: block; font-family: var(--font-display); font-size: 32px; color: var(--gold); line-height: 1; }
.stamp span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #b9c9d5; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 18px; }
.split p + p { margin-top: 14px; }

.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.checklist svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 30px 16px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); color: #fff; }
.stat strong em { color: var(--gold); font-style: normal; }
.stat span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #9db4c3; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  color: var(--teal-soft); position: absolute; top: 16px; right: 20px; line-height: 1;
}
.step svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.quote__stars { color: var(--gold); display: flex; gap: 3px; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { font-size: 15.5px; color: var(--ink-2); font-style: italic; flex: 1; }
.quote footer { font-size: 14px; font-weight: 700; color: var(--ink); }
.quote footer span { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- gallery ---------- */
.masonry { columns: 3; column-gap: 22px; }
.masonry figure { break-inside: avoid; margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; position: relative; }
.masonry img { width: 100%; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(9,22,33,.85));
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; padding: 96px 0; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,25,37,.85), rgba(10,25,37,.85)); }
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.cta-band p { color: #c9d8e2; max-width: 560px; margin: 0 auto 34px; font-size: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a9bcc9; font-size: 14.5px; }
.site-footer a { color: #d5e1e9; }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 70px 0 50px; }
.footer-main h4 { color: #fff; font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.footer-main ul { list-style: none; display: grid; gap: 11px; }
.footer-brand p { margin: 16px 0 22px; max-width: 300px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7e94a3; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.post-card__meta .cat { color: var(--teal-dark); background: var(--teal-soft); padding: 3px 10px; border-radius: 100px; }
.article { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; gap: 14px; align-items: center; margin: 18px 0 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.article__meta .cat { color: var(--teal-dark); background: var(--teal-soft); padding: 4px 12px; border-radius: 100px; font-size: 13px; }
.article__hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.article__hero img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); }
.article h2 { font-size: 26px; margin: 40px 0 14px; }
.article p { margin-bottom: 18px; font-size: 17px; }
.article ul { margin: 0 0 20px 22px; }
.article li { margin-bottom: 8px; }
.article__footer { margin-top: 48px; padding: 28px; background: var(--sky); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.article__footer h3 { font-size: 20px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 7px; text-transform: uppercase; }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-text); font-size: 15.5px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
textarea { min-height: 130px; resize: vertical; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 14px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px;
}
details summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 16.5px; font-family: var(--font-text);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 24px; color: var(--teal); font-weight: 400; flex: none; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details[open] { border-color: var(--teal); }
details .faq-body { padding: 0 0 22px; color: var(--muted); }

/* ---------- misc ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table th { background: var(--ink); color: #fff; font-family: var(--font-text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--ink-2); }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 24px; }
.area-card h3 { font-size: 19px; margin-bottom: 6px; }
.area-card p { font-size: 14.5px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: #fff; padding: 0 12px;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-dark); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .brand__tag { display: none; }
  .header-phone { display: none; }
  .nav > a, .nav__parent > a { padding: 10px 10px; font-size: 14px; }
}

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .post-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar__group--hours { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 90px 26px 40px; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .3s ease; z-index: 70; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav > a, .nav__parent > a { padding: 14px 12px; font-size: 17px; justify-content: space-between; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 8px 16px; display: none; }
  .nav__parent.is-open .nav__menu { display: block; }
  .nav-close { position: absolute; top: 22px; right: 22px; }
  .header-cta .btn { display: none; }
  .hero { min-height: 540px; padding: 80px 0; }
  .hero__badges { gap: 20px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid--3, .grid--4, .post-grid, .quote-grid, .steps, .form-grid, .area-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .masonry { columns: 1; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .topbar__group--right { display: none; }
  .topbar .container { justify-content: center; }
  .split__media .stamp { right: 10px; bottom: -18px; padding: 14px 18px; }
  .form-grid .full { grid-column: auto; }
  .hero p.lead { font-size: 17px; }
}
