/* =========================================
   CLEARVIEW WINDOWS & DOORS — STYLES
   Primary: #1ea5d6  |  Font: Inter + Playfair
   ========================================= */

:root {
  --primary:      #1ea5d6;
  --primary-dark: #1589b3;
  --primary-light:#4dc3e8;
  --primary-glow: rgba(30,165,214,0.25);
  --accent:       #f0b429;
  --dark:         #0d1b2a;
  --dark-mid:     #162234;
  --surface:      #1a2a3a;
  --surface-light:#f7fafc;
  --white:        #ffffff;
  --text:         #1a2a3a;
  --text-muted:   #5a6e7f;
  --border:       #d1dde6;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.08);
  --shadow:       0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --transition:   0.28s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

/* ===================== TYPOGRAPHY ===================== */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #46d7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30,165,214,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-block { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.logo-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2.5px;
  color: #1ea5d6;
  line-height: 1;
}
.logo-tagline {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3.5px;
  color: #0d1b2a;
  margin-top: 4px;
  text-transform: uppercase;
}
/* On dark headers the header has dark bg so we need light text */
.site-header .logo-tagline { color: #000; }
.logo-tagline.dark { color: #0d1b2a; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(30,165,214,0.08);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  font-size: 14px;
}

.chevron { transition: transform 0.2s; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== PAGES ===================== */
/* Multi-page architecture — no .page show/hide needed */


/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #0d1b2a 0%, #12263a 50%, #0c2233 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,165,214,0.25) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,165,214,0.15) 0%, transparent 70%);
  bottom: -50px; right: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px, -30px); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,165,214,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,165,214,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,165,214,0.12);
  border: 1px solid rgba(30,165,214,0.3);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: fit-content;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.stat { text-align: center; padding: 0 20px; }
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--primary-light); }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-visual {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: fadeIn 1.5s ease 0.5s both;
  pointer-events: none;
}

.hero-svg {
  width: 440px;
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: floatUpDown 6s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===================== ENERGY STAR HERO BADGE ===================== */
.hero-energy-star {
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.35s both;
}

.energystar-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 20px 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.energystar-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.energystar-logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.energystar-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.energystar-badge-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.2px;
}
.energystar-badge-sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===================== ENERGY STAR CERT BANNER ===================== */
.energystar-cert-banner {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 28px 40px;
  max-width: 100%;
}

.ecb-logo {
  flex-shrink: 0;
  padding-right: 32px;
}
.ecb-logo-img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.ecb-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  margin-right: 32px;
}

.ecb-content {
  flex: 1;
}
.ecb-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}
.ecb-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 560px;
}
.ecb-desc strong { color: rgba(255,255,255,0.85); }

.ecb-link {
  flex-shrink: 0;
  margin-left: 32px;
  font-size: 13px;
  font-weight: 700;
  color: #4dc3e8;
  border: 1px solid rgba(30,165,214,0.35);
  padding: 9px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.ecb-link:hover {
  background: rgba(30,165,214,0.12);
  border-color: var(--primary);
  color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 1px;
  animation: fadeIn 2s ease 1s both;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===================== PRODUCTS TEASER ===================== */
.products-teaser { background: var(--surface-light); }

.product-category-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cat-card {
  flex: 1;
  min-width: 280px;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-card-windows { background: linear-gradient(135deg, #1589b3 0%, #1ea5d6 60%, #46d7ff 100%); }
.cat-card-doors { background: linear-gradient(135deg, #0d1b2a 0%, #1a2a3a 60%, #223344 100%); }

.cat-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.cat-card-icon {
  margin-bottom: 24px;
  opacity: 0.9;
}
.cat-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cat-card p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 280px;
}
.cat-card-arrow {
  font-weight: 700;
  font-size: 16px;
  opacity: 0.9;
  transition: var(--transition);
}
.cat-card:hover .cat-card-arrow { letter-spacing: 2px; }

/* ===================== WHY STRIP ===================== */
.why-strip {
  background: var(--dark);
  padding: 60px 0;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(30,165,214,0.1);
  border-color: rgba(30,165,214,0.3);
  transform: translateY(-4px);
}
.why-icon { font-size: 32px; margin-bottom: 14px; }
.why-card h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.6; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--surface-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.featured-testimonial {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: transparent;
}
.featured-testimonial p,
.featured-testimonial small { color: rgba(255,255,255,0.85); }
.featured-testimonial strong { color: white; }

.stars { color: var(--accent); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 24px; }
.featured-testimonial p { color: rgba(255,255,255,0.88); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.featured-testimonial .author-avatar {
  background: rgba(255,255,255,0.25);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2a3a 100%);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(30,165,214,0.25) 0%, transparent 70%);
}
.cta-inner { position: relative; }
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: white;
  margin-bottom: 14px;
}
.cta-banner p { color: rgba(255,255,255,0.65); font-size: 17px; margin-bottom: 36px; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(30,165,214,0.2) 0%, transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 56px);
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.62); font-size: 18px; }

.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===================== PRODUCT TYPE SELECTOR ===================== */
.pts-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: var(--transition);
  cursor: pointer;
}
.pts-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pts-illustration {
  background: linear-gradient(135deg, #eef6fa 0%, #d8eef7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.pts-illustration svg { width: 220px; height: auto; }

.pts-info {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pts-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.pts-info p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.pts-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pts-types span {
  background: rgba(30,165,214,0.08);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(30,165,214,0.2);
}

/* ===================== WINDOWS GRID ===================== */
.windows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.window-type-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.window-type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.wtc-illustration {
  background: linear-gradient(135deg, #eef6fa 0%, #d8eef7 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  overflow: hidden;
}
.window-type-card:hover .wtc-illustration {
  background: linear-gradient(135deg, #dbeef7 0%, #b8ddef 100%);
}

/* Photo card variant */
.wtc-photo-wrap {
  background: #f4f8fb;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.wtc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.45s ease;
}
.window-type-card:hover .wtc-photo {
  transform: scale(1.06);
}

.wtc-info { padding: 24px; }
.wtc-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.wtc-short { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.wtc-best-for {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(30,165,214,0.08);
  padding: 5px 12px;
  border-radius: 20px;
}
.wtc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.wtc-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================== WINDOW DETAIL ===================== */
.detail-hero-section {
  padding: 120px 0 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.detail-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  color: white;
  font-weight: 800;
  margin-bottom: 16px;
}
.detail-tagline { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 28px; }
.detail-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.detail-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}
.detail-feature::before { content: '✓'; color: var(--primary-light); font-weight: 700; font-size: 16px; }

.detail-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 0;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}
.detail-illustration-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-lg);
  display: block;
}
.detail-illustration-wrap svg { max-width: 240px; width: 100%; padding: 48px; }

.detail-body { padding: 80px 0; background: var(--surface-light); }
.detail-body-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.detail-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.detail-desc { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 14px 0; font-size: 14px; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; }
.specs-table td:last-child { color: var(--dark); font-weight: 500; }

.detail-sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}
.sidebar-cta-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.sidebar-cta-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.sidebar-benefits { margin-bottom: 24px; }
.sb-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.sb-item::before { content: '✓'; color: var(--primary); font-weight: 700; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.use-case-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}
.uc-icon { font-size: 28px; margin-bottom: 8px; }
.uc-label { font-size: 13px; font-weight: 600; color: var(--dark); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.back-btn:hover { color: white; }

/* ===================== WHY US PAGE ===================== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}
.why-us-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.why-us-icon { font-size: 40px; margin-bottom: 20px; }
.why-us-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.why-us-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

.process-section { text-align: center; margin-bottom: 60px; }
.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  justify-content: center;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 0 0 8px rgba(30,165,214,0.12);
}
.step-content { text-align: center; }
.step-content h4 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.process-connector {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin-bottom: 36px;
  flex-shrink: 0;
}

.certifications { text-align: center; padding: 48px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.certifications h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--dark); }
.cert-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cert-badge {
  background: linear-gradient(135deg, rgba(30,165,214,0.08), rgba(30,165,214,0.12));
  border: 1px solid rgba(30,165,214,0.25);
  color: var(--primary-dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

/* ===================== GALLERY ===================== */
.gallery-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.gallery-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.gallery-btn:hover,
.gallery-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef6fa;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item svg { width: 100%; height: 100%; }
.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  padding: 20px 16px 12px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-label { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.hidden { display: none; }

/* ===================== ABOUT PAGE ===================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}
.about-text .section-label { margin-bottom: 12px; }
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}
.about-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

.about-values { margin-top: 32px; }
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.value-icon { font-size: 20px; }

.about-stats-card {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: sticky;
  top: 100px;
}
.about-stat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.about-stat:last-child { border-bottom: none; }
.big-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
}
.about-stat span:last-child {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ===================== CONTACT PAGE ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-intro { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  background: #eafaf1;
  border: 1px solid #27ae60;
  color: #1a7a40;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
}

.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
}
.contact-info-card h3 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.cd-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-detail strong { display: block; color: white; font-size: 14px; margin-bottom: 3px; }
.contact-detail a,
.contact-detail span { color: rgba(255,255,255,0.6); font-size: 14px; }
.contact-detail a:hover { color: var(--primary-light); }

.service-areas-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.service-areas-card h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  background: rgba(30,165,214,0.06);
  border: 1px solid rgba(30,165,214,0.2);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #060e16;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}
.footer-brand .footer-logo span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  color: rgba(255,255,255,0.5);
}
.social-link:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.footer-col h5 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a,
.footer-col span {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-cta {
  color: var(--primary-light) !important;
  font-weight: 700 !important;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-stats-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .detail-body-grid { grid-template-columns: 1fr; }
  .detail-sidebar-card { position: static; }
}

@media (max-width: 820px) {
  .product-category-cards { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .windows-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pts-card { grid-template-columns: 1fr; }
  .pts-illustration { height: 200px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 80px; height: 1px; }
  .detail-hero-inner { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-connector { width: 2px; height: 40px; margin-bottom: 0; }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  /* Energy Star cert banner — stack vertically on tablet/mobile */
  .energystar-cert-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }
  .ecb-divider { display: none; }
  .ecb-logo { padding-right: 0; }
  .ecb-link { margin-left: 0; align-self: flex-start; }
}

@media (max-width: 640px) {
  /* ── BASE ── */
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  /* ── NAV ── */
  .main-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }

  /* ── HERO ── */
  .hero-stats { display: none; }
  .hero-visual { display: none; }

  /* ── GRIDS ── */
  .why-cards { grid-template-columns: 1fr; }
  .windows-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .product-category-cards { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ── PRODUCTS PAGE ── */
  .pts-card {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
  }
  /* Prevent any horizontal overflow site-wide */
  body { overflow-x: hidden; }
  main, section, .container, .section { max-width: 100vw; overflow-x: hidden; }

  /* ── ENERGY STAR BANNER ── */
  .energystar-cert-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 16px;
  }
  .ecb-divider { display: none; }
  .ecb-logo { padding-right: 0; }
  .ecb-link { margin-left: 0; }

  /* ── TABLES — wrap in scrollable container ── */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1.5px solid #e2ecf2;
    margin-bottom: 8px;
  }
  .frame-compare, .energy-table {
    min-width: 560px;
  }

  /* ── PAGE HERO ── */
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 28px; }

  /* ── ABOUT ── */
  .about-stats-card { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── CONTACT ── */
  .contact-info-panel { margin-top: 8px; }

  /* ── CAT-CARD ── */
  .cat-card { padding: 32px 20px; }

  /* ── MOSAIC / PRODUCT CARDS ── */
  .product-mosaic { border-radius: 16px; }
  .mosaic-grid { gap: 8px; }
}
