/* ============================================================
   Tara Window Installation Services — Design System
   Palette: charcoal frame / warm glass-white / slate glass-tint / amber sunlight accent
   Type: Space Grotesk (display/architectural) + Source Serif 4 (body) + IBM Plex Mono (utility/labels)
   Signature motif: window-pane mullion dividers
   ============================================================ */

:root {
  --charcoal: #1C2526;
  --charcoal-soft: #2A3536;
  --glass-white: #F7F5F0;
  --glass-white-dim: #EFEBE2;
  --slate: #4A6670;
  --slate-light: #7C959D;
  --amber: #D98E3F;
  --amber-deep: #B8742A;
  --hairline: #D7D2C7;
  --ink: #1C2526;
  --ink-soft: #5B6364;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--glass-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--amber-deep); }

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

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

/* ---------- Utility / label style ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Mullion divider motif ----------
   Echoes an actual window grille: a thin cross-hatch rule used
   structurally between major sections, not decoratively repeated. */
.mullion-divider {
  position: relative;
  height: 28px;
  margin: 0;
}
.mullion-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--hairline);
}
.mullion-divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.pane-frame {
  border: 1px solid var(--hairline);
  position: relative;
  padding: 40px;
}
.pane-frame::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 33.333%;
  width: 1px;
  background: var(--hairline);
  opacity: 0.6;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--charcoal);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--glass-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--amber);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
}
.brand-mark::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.brand-mark::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }

nav.main-nav {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.main-nav a { color: var(--glass-white-dim); }
nav.main-nav a:hover { color: var(--amber); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease;
}
.call-btn:hover { background: var(--glass-white); color: var(--charcoal); }
.call-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.emergency-strip {
  background: var(--amber-deep);
  color: var(--glass-white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 7px 12px;
}
.emergency-strip a { color: var(--glass-white); font-weight: 600; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--glass-white);
  position: relative;
  overflow: hidden;
  padding: 86px 0 70px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background:
    linear-gradient(90deg, transparent 0%, transparent 49.5%, rgba(217,142,63,0.18) 50%, transparent 50.5%, transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent 32%, rgba(247,245,240,0.07) 32.3%, transparent 32.6%, transparent 65%, rgba(247,245,240,0.07) 65.3%, transparent 65.6%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  color: var(--glass-white);
  font-size: clamp(34px, 4.4vw, 54px);
  margin-bottom: 18px;
}
.hero h1 em {
  color: var(--amber);
  font-style: normal;
}
.hero p.lede {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--glass-white-dim);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--slate-light);
  color: var(--glass-white-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: var(--radius);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-stats {
  border: 1px solid rgba(247,245,240,0.18);
  padding: 28px;
  display: grid;
  gap: 22px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--amber);
  font-weight: 700;
  display: block;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }

.bg-dim { background: var(--glass-white-dim); }
.bg-charcoal { background: var(--charcoal); color: var(--glass-white); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--glass-white); }

/* ---------- Service grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.service-card {
  background: var(--glass-white);
  padding: 32px 28px;
}
.service-card .eyebrow { margin-bottom: 14px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Process steps (legit sequence — installation order) ---------- */
.process-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  padding-top: 4px;
}
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Map / GBP embed block ---------- */
.gbp-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--hairline);
}
.gbp-info {
  padding: 36px;
  background: var(--glass-white);
}
.gbp-info h3 { font-size: 21px; margin-bottom: 16px; }
.gbp-info .nap-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}
.gbp-info .nap-line strong { color: var(--ink); font-weight: 600; min-width: 18px; }
.gbp-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--charcoal);
  color: var(--glass-white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--glass-white); font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.cta-banner p { color: var(--glass-white-dim); margin-bottom: 26px; }
.call-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--amber);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  padding: 18px 34px;
  border-radius: var(--radius);
}
.call-btn-large:hover { background: var(--glass-white); }
.call-btn-large svg { width: 22px; height: 22px; }
.cta-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-light); margin-top: 14px; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--glass-white-dim);
  padding: 50px 0 28px;
  border-top: 3px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--glass-white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer-grid a { color: var(--glass-white-dim); }
.footer-grid a:hover { color: var(--amber); }
.footer-nap { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; color: var(--glass-white-dim); }
.footer-bottom {
  border-top: 1px solid rgba(247,245,240,0.12);
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--slate-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Blog index ---------- */
.post-list { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.post-row {
  background: var(--glass-white);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}
.post-row .post-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); padding-top: 5px; }
.post-row h3 { font-size: 20px; margin-bottom: 8px; }
.post-row h3 a { color: var(--charcoal); }
.post-row h3 a:hover { color: var(--amber-deep); }
.post-row p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--hairline);
  padding: 3px 9px;
  margin-top: 10px;
  border-radius: var(--radius);
}

/* ---------- Blog post layout ---------- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.post-article h1 { font-size: clamp(28px, 3.6vw, 40px); }
.post-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.post-article h2 { font-size: 24px; margin-top: 42px; }
.post-article h3 { font-size: 19px; margin-top: 30px; }
.post-article p { margin: 0 0 20px; font-size: 17px; }
.post-article ul, .post-article ol { margin: 0 0 20px; padding-left: 22px; }
.post-article li { margin-bottom: 8px; }
.post-article blockquote {
  border-left: 3px solid var(--amber);
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  color: var(--ink-soft);
  font-style: italic;
}
.source-note {
  font-size: 13.5px;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 36px;
}

.sidebar { display: grid; gap: 28px; position: sticky; top: 90px; }
.sidebar-card {
  border: 1px solid var(--hairline);
  padding: 26px;
  background: var(--glass-white-dim);
}
.sidebar-card h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.sidebar-card .call-btn { width: 100%; justify-content: center; margin-top: 6px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.sidebar-card .gbp-map iframe { min-height: 200px; }

.related-posts { display: grid; gap: 14px; }
.related-posts a { font-size: 14.5px; color: var(--ink); display: block; }
.related-posts a:hover { color: var(--amber-deep); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
  padding: 16px 0;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--amber-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gbp-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-row { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
