/* ─── DESIGN TOKENS ────────────────────────────────────────────────
   AWAITING: logo, brand colors, font choices from client.
   Swap these variables when assets arrive — nothing else needs to change.
──────────────────────────────────────────────────────────────────── */
:root {
  --color-bg:            #e8e8e8;       /* light gray */
  --color-surface:       #ffffff;       /* white */
  --color-text:          #111111;       /* black */
  --color-text-muted:    #666666;       /* medium gray */
  --color-primary:       #cc1f1f;       /* fire engine red */
  --color-primary-hover: #a81818;
  --color-accent:        #111111;       /* black */
  --color-border:        #cccccc;       /* medium gray */
  --font-heading:        Georgia, 'Times New Roman', serif;   /* PLACEHOLDER */
  --font-body:           'Helvetica Neue', Arial, sans-serif; /* PLACEHOLDER */
  --max-width:           1100px;
  --section-pad:         4rem 1.25rem;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ─── UTILITY ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--color-surface);
  border-color: var(--color-surface);
}
.btn-outline:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}
.btn-dark:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-surface);
}

/* ─── NAVIGATION ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  padding: 0 1.25rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* AWAITING: replace text logo with SVG/PNG logo file when provided */
.nav-logo {
  color: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--color-surface);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }

.nav-links .nav-cta a {
  background: var(--color-accent);
  color: #ffffff;
  opacity: 1;
  font-weight: 600;
  padding: 0.45rem 1rem;
}
.nav-links .nav-cta a:hover { background: #333333; color: #ffffff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-surface);
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  .nav-links .nav-cta a {
    margin: 0.5rem 1.5rem 0;
    display: block;
    text-align: center;
  }
}

/* ─── PAGE HERO (full-bleed, large) ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 60%, #111111 100%);
  opacity: 0.92;
}
.hero-bg::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  color: var(--color-surface);
  line-height: 1.18;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ─── PAGE BANNER (compact, for interior pages) ──────────────────── */
.page-banner {
  position: relative;
  background: var(--color-accent);
  padding: 4rem 1.25rem 3.5rem;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 60%, #111111 100%);
}
.page-banner-bg::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  color: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-banner-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: normal;
  color: #ffffff;
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 1rem;
}

.page-banner-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.6;
}

/* ─── TRUST BAR ──────────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  align-items: center;
}

.trust-item {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ─── SECTION DEFAULTS ───────────────────────────────────────────── */
.section { padding: var(--section-pad); }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: normal;
  line-height: 1.22;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ─── TWO-COLUMN LAYOUT ──────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: center;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── PLACEHOLDER IMAGES ─────────────────────────────────────────── */
.placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.placeholder-img.wide { aspect-ratio: 16 / 9; }
.placeholder-img.tall { aspect-ratio: 3 / 4; }

/* ─── SERVICE CARDS (home page) ──────────────────────────────────── */
.services { background: var(--color-bg); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2rem 1.75rem;
}

.service-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.service-card .btn {
  font-size: 0.82rem;
  padding: 0.65rem 1.25rem;
}

/* ─── PROCESS STRIP (red bg) ─────────────────────────────────────── */
.process {
  background: var(--color-primary);
  color: var(--color-surface);
}

.process .section-label  { color: rgba(255,255,255,0.7); }
.process .section-heading { color: var(--color-surface); }
.process .section-body   { color: rgba(255,255,255,0.68); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step { border-top: 2px solid rgba(255,255,255,0.4); padding-top: 1.25rem; }

.step-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--color-surface);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ─── CTA BAND (black bg) ────────────────────────────────────────── */
.cta-band {
  background: var(--color-accent);
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: normal;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-dark { font-size: 1rem; }

/* ─── WHAT WE BUILD (home page section) ─────────────────────────── */
.what-we-build { background: var(--color-surface); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.55);
  padding: 3rem 1.25rem 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem 3rem;
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-surface);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-contact a {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}
.footer-contact a:hover { color: #ffffff; }

.footer-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--color-surface); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* ─── QUOTE WIDGET OVERLAY ───────────────────────────────────────
   All styles prefixed sqb- to avoid collisions with page styles.
──────────────────────────────────────────────────────────────────── */

/* Overlay wrapper */
.sqb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}
.sqb-overlay.sqb-open { display: block; }

/* Semi-transparent backdrop */
.sqb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* Slide-in panel from right */
.sqb-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 100vw;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sqb-slide-in 0.22s ease-out both;
}

@keyframes sqb-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@media (max-width: 480px) {
  .sqb-panel {
    width: 100vw;
    top: 0;
  }
}

/* Header */
.sqb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-primary);
  flex-shrink: 0;
}

.sqb-header-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-weight: 600;
}

.sqb-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.sqb-close:hover { opacity: 1; }

/* Scrollable body */
.sqb-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Steps */
.sqb-step {
  padding: 2rem 1.5rem 2.5rem;
}

.sqb-hidden { display: none !important; }

/* Greeting */
.sqb-greeting {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

/* Primary action buttons (full-width, dark) */
.sqb-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sqb-btn-primary {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-accent);
  color: #ffffff;
  border: 2px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.sqb-btn-primary:hover {
  background: #333333;
  border-color: #333333;
}

/* Secondary action buttons (smaller, outlined) */
.sqb-secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.sqb-btn-secondary {
  display: block;
  width: 100%;
  padding: 0.7rem 1.25rem;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sqb-btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* Back button */
.sqb-back {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.sqb-back:hover { color: var(--color-text); }

/* Step headings */
.sqb-step-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.sqb-step-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Form fields */
.sqb-form { display: flex; flex-direction: column; gap: 1rem; }

.sqb-field { display: flex; flex-direction: column; gap: 0.3rem; }

.sqb-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.sqb-req { color: var(--color-primary); }

.sqb-field input,
.sqb-field textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.sqb-field input:focus,
.sqb-field textarea:focus { border-color: var(--color-accent); }
.sqb-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Submit button (full-width red) */
.sqb-btn-submit {
  display: block;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 0.25rem;
}
.sqb-btn-submit:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* Form notes and errors */
.sqb-form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.sqb-field-error {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Success message */
.sqb-success {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sqb-success a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Renovation covers list */
.sqb-covers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.sqb-covers li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.sqb-covers li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
}

/* Consultation fee note */
.sqb-fee-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  border-left: 3px solid var(--color-border);
  padding-left: 0.85rem;
  margin-bottom: 1.25rem;
}

/* FAQ accordion */
.sqb-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.sqb-faq-item { border-bottom: 1px solid var(--color-border); }

.sqb-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.sqb-faq-q:hover { color: var(--color-primary); }

.sqb-faq-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-primary);
  flex-shrink: 0;
  font-style: normal;
}

.sqb-faq-a {
  padding: 0 0 1rem;
}
.sqb-faq-a p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.sqb-faq-footer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sqb-inline-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}
