/* ==========================================================================
   Paragon Windows & Doors — v2 "Black Gold"
   Direction: bold, premium, high-converting — inspired by magwindows.ca.
   Palette: near-black foundation, gold accent, white headline contrast.
   ========================================================================== */

:root {
  --black: #0E0E0E;
  --black-alt: #1A1A1A;
  --black-card: #1A1A1A;
  --black-soft: #2B2B2B;

  --gold: #FFC107;
  --gold-deep: #E6B325;
  --gold-dim: rgba(255, 193, 7, 0.14);

  --white: #FFFFFF;
  --grey-text: #A6A6A6;
  --grey-dim: #7A7A7A;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Keep anchor targets clear of the sticky header. */
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--grey-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); display: inline-block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; }
h3 { font-size: clamp(18px, 2vw, 21px); }

.accent { color: var(--gold); }

p { color: var(--grey-text); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .section-lead { margin-top: 16px; font-size: 15.5px; color: #C9C9C9; }

/* Keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #17140A;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 12px 28px rgba(255,193,7,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 16px 34px rgba(255,193,7,0.28); }
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-ghost {
  color: var(--white);
  border: 1px solid var(--black-soft);
}
.btn-sm { padding: 11px 20px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--black-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo (official artwork, transparent PNG built for dark backgrounds) */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { display: block; height: auto; }
.logo-img--header { width: auto; height: 52px; }
.logo-img--footer { width: 220px; }
@media (max-width: 700px) { .logo-img--header { height: 44px; } }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.logo-word .name span { color: var(--gold); }
.logo-word .sub {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #D6D6D6;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.main-nav a:hover { color: var(--gold); }
.main-nav .chev { width: 8px; height: 8px; opacity: 0.6; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }
  .header-actions .btn-secondary.hide-mobile { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--black-alt);
  border-bottom: 1px solid var(--black-soft);
  padding: 8px 32px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  color: #D6D6D6;
  border-bottom: 1px solid var(--black-soft);
}
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 0;
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(120% 90% at 15% 20%, rgba(255,193,7,0.14), transparent 55%),
    linear-gradient(180deg, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0.72) 70%, rgba(14,14,14,0.96) 100%),
    var(--photo, linear-gradient(120deg, #1c1a14 0%, #14120e 45%, #0e0e0e 100%));
}
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; padding: 60px 0 90px; }

@media (max-width: 700px) {
  .hero { padding-top: 0; }
  /* Smaller hero photo for phones (beats the inline desktop --photo). */
  .hero-media { min-height: 560px; --photo: url('assets/hero-exterior-dusk-mobile.jpg') !important; }
  .container, .header-inner { padding-left: 20px; padding-right: 20px; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 .line2 { color: var(--gold); display: block; }
.hero-sub { font-size: 16.5px; max-width: 460px; margin-bottom: 34px; color: #C9C9C9; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--black-soft);
  border-top: 1px solid var(--black-soft);
  border-bottom: 1px solid var(--black-soft);
  position: relative;
  z-index: 2;
}
.hero-trust-item {
  background: rgba(14,14,14,0.92);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-trust-item .icon-wrap {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--black-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-trust-item .icon-wrap svg { width: 16px; height: 16px; color: var(--gold); }
.hero-trust-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 900px) {
  .hero-trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-trust-row { grid-template-columns: 1fr; }
}

/* ---------- Section shells ---------- */
section { padding: 100px 0; }
.section-alt { background: var(--black-alt); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--black-soft);
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(180deg, rgba(14,14,14,0.05) 30%, rgba(14,14,14,0.97) 92%),
    radial-gradient(120% 90% at 80% 10%, rgba(255,193,7,0.10), transparent 55%),
    var(--photo, linear-gradient(150deg, #201d16, #131210 70%));
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: flex-end;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.product-body { padding: 26px 24px; position: relative; z-index: 2; width: 100%; }
.product-body .tag-sm {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.product-body h3 { text-transform: uppercase; margin-bottom: 10px; }
.product-body p { font-size: 13.5px; margin-bottom: 16px; color: #C4C4C4; }
.product-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-link:hover { color: var(--gold); }

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

/* ---------- Why Paragon ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--black-soft);
  border: 1px solid var(--black-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.diff-card { padding: 34px 28px; background: var(--black); }
.diff-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.diff-card h3 { text-transform: uppercase; margin-bottom: 10px; font-size: 16.5px; }
.diff-card p { font-size: 13.5px; }

@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- 4-step process ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--black-soft);
  border: 1px solid var(--black-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.journey-step { padding: 32px 24px; background: var(--black-alt); }
.journey-step .step-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.journey-step h3 { text-transform: uppercase; font-size: 15.5px; margin-bottom: 8px; }
.journey-step p { font-size: 13px; }

@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journey-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials (section currently off; see templates/) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--black-alt);
  border: 1px solid var(--black-soft);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  line-height: 0.4;
  display: block;
  margin-bottom: 18px;
}
.testimonial-card p.quote { color: #D2D2D2; font-size: 14px; margin-bottom: 22px; }
.testimonial-meta strong { display: block; font-size: 13.5px; color: var(--white); text-transform: uppercase; letter-spacing: 0.02em; }
.testimonial-meta span { font-size: 12px; color: var(--grey-dim); }

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

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
.gallery-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--black-soft);
  background-size: cover;
  background-position: center;
  background-image:
    radial-gradient(120% 100% at 30% 0%, rgba(255,193,7,0.08), transparent 60%),
    var(--photo, linear-gradient(155deg, #1d1b16, #121110));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.gallery-tile:hover { transform: scale(1.02); }
.gallery-tile span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 0 10px;
}
.gallery-tile.big { grid-column: span 2; grid-row: span 2; }
/* Sixth tile would sit alone on its own row; stretch it into a full-width strip. */
.gallery-tile:nth-child(6):last-child { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-tile.big { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Lead form ---------- */
.quote-section {
  background: var(--black-alt);
  border: 1px solid var(--black-soft);
  border-radius: var(--radius-lg);
  margin-inline: auto;
  max-width: var(--container);
  overflow: hidden;
  position: relative;
}
.quote-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 100% 0%, rgba(255,193,7,0.08), transparent 60%);
  pointer-events: none;
}
.quote-inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.quote-copy { padding: 64px 56px; }
.quote-copy h2 { margin-bottom: 16px; }
.quote-copy p { color: #B8B8B8; margin-bottom: 28px; max-width: 380px; }
.quote-copy-list { display: flex; flex-direction: column; gap: 14px; }
.quote-copy-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #CFCFCF; }
.quote-copy-list .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.quote-copy-list .check svg { width: 10px; height: 10px; color: var(--gold); }

.quote-form-wrap { background: var(--black); padding: 56px; border-left: 1px solid var(--black-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
fieldset.field { border: none; padding: 0; min-width: 0; }
.field legend { padding: 0; }
.field label, .field legend {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B8B8B8;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--black-soft);
  background: var(--black-alt);
  font-family: inherit;
  font-size: 14px;
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6E6E6E; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E5484D; }
.field-error { font-size: 12.5px; color: #FF8A8A; margin-top: 6px; }
.label-optional { font-weight: 400; text-transform: none; color: var(--grey-dim); }

.service-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
/* Visually hidden but still focusable and announced. */
.service-toggle input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.service-toggle input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.service-toggle label { cursor: pointer; }
.service-toggle label {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--black-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #D0D0D0;
  background: var(--black-alt);
  transition: all 0.15s ease;
}
.service-toggle input:checked + label {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140A;
}
.form-note { font-size: 11.5px; color: var(--grey-dim); margin-top: 14px; text-align: center; }
.form-note a { color: var(--grey-text); text-decoration: underline; }
.form-note a:hover { color: var(--gold); }
.form-error {
  font-size: 13px;
  color: #FF8A8A;
  background: rgba(229,72,77,0.08);
  border: 1px solid rgba(229,72,77,0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.turnstile-slot:not(:empty) { margin-bottom: 14px; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success:focus { outline: none; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success svg { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; text-transform: none; }
.form-success p { font-size: 13.5px; }

@media (max-width: 900px) {
  .quote-inner { grid-template-columns: 1fr; }
  .quote-copy, .quote-form-wrap { padding: 44px 28px; }
  .quote-form-wrap { border-left: none; border-top: 1px solid var(--black-soft); }
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 72px; border-top: 1px solid var(--black-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--black-soft);
}
.footer-brand .logo { margin-bottom: 16px; }
/* The four-column footer was squeezing the brand column to ~100px on phones. */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .logo-img--footer { width: 200px; } }
.footer-brand p { font-size: 13px; max-width: 260px; margin-bottom: 18px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 13.5px;
  color: var(--grey-text);
  margin-bottom: 11px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 32px;
  font-size: 12px;
  color: var(--grey-dim);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--grey-dim); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 72px 0 96px; }
.legal-container { max-width: 760px; }
.legal-page h1 { font-size: clamp(32px, 4.4vw, 46px); text-transform: uppercase; margin-bottom: 10px; }
.legal-page h2 { font-size: 19px; text-transform: none; margin: 38px 0 12px; }
.legal-page p, .legal-page li { font-size: 15px; color: #C4C4C4; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a:not(.btn) { color: var(--gold); text-decoration: underline; }
.legal-updated { color: var(--grey-dim) !important; font-size: 13px !important; margin-bottom: 28px !important; }
.legal-back { margin-top: 40px; }
.legal-page + .site-footer { padding-top: 0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(14,14,14,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--black-soft);
}
@media (max-width: 700px) {
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}
.mobile-sticky-cta .btn { flex: 1; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
