/* ═══════════════════════════════════════════════════════
   SKYLIGHT CABIN — ARCH-S Design Studio
   Shared Design System Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --canvas: #FFFFFF;
  --warm: #FAF9F7;
  --stone: #F2EFEB;
  --charcoal: #1C1917;
  --text: #57534E;
  --text-light: #A8A29E;
  --border: #E7E5E4;
  --accent: #B8956A;
  --accent-hover: #96764D;
  --accent-light: rgba(184,149,106,0.08);
  --success: #3D7A1C;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1180px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 42px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }
.nav-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn-primary {
  margin-top: 24px;
  text-align: center;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  min-height: 52px;
  box-shadow: 0 2px 8px rgba(184,149,106,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(184,149,106,0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 16px;
  min-height: 52px;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-nav {
  padding: 10px 24px;
  font-size: 14px;
  min-height: 42px;
}

/* ─── HERO ─── */
.hero {
  padding-top: 76px;
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  will-change: transform;
}
.hero-image-wrapper {
  width: 100%;
  max-height: 72vh;
  overflow: hidden;
  position: relative;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-image-wrapper img,
.hero-image-wrapper video,
.hero-image-wrapper iframe {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border: none;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}
.hero-mobile { display: none; }
@media (max-width: 768px) {
  .hero-desktop { display: none !important; }
  .hero-mobile { display: block !important; }
  .hero-image-wrapper {
    max-height: 100vh;
  }
  .hero-image-wrapper img,
  .hero-image-wrapper video,
  .hero-image-wrapper iframe {
    height: 100vh;
    object-position: center center;
  }
  .hero-image-wrapper--static {
    max-height: none;
    aspect-ratio: 1 / 1;
    width: calc(100% - 48px);
    margin: 16px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .hero-image-wrapper--static img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }
  .hero-image-wrapper--static::after {
    display: none;
  }
  .hero-image-wrapper--static + .hero-content {
    margin-top: 32px;
    padding-top: 0;
  }
}
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--canvas) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  max-width: var(--max-w);
  margin: -80px auto 0;
  padding: 0 48px;
  position: relative;
  z-index: 2;
  text-align: center;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stone);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 740px;
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-specs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
.hero-spec { text-align: center; }
.hero-spec-value {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.hero-spec-label {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.hero-trust-stars {
  color: #F59E0B;
  letter-spacing: 2px;
  font-size: 16px;
}
.hero-trust strong { color: var(--charcoal); }
.hero-trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ─── SECTION SYSTEM ─── */
.section {
  padding: 100px 48px;
  max-width: calc(var(--max-w) + 96px);
  margin: 0 auto;
}
.section-warm { background: var(--warm); }
.section-warm .section {
  padding: 100px 48px;
  max-width: calc(var(--max-w) + 96px);
  margin: 0 auto;
}
.section-full { padding: 100px 48px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 600px;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 18px;
  color: var(--text);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ─── PARTNERS ─── */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px;
  flex-wrap: wrap;
}
.partners img {
  height: 36px;
  width: auto;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: opacity var(--transition);
}
.partners img:hover { opacity: 0.7; }

/* ─── DIVIDER ─── */
.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
}
.gallery-grid .gallery-wide {
  grid-column: span 2;
  height: 340px;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: var(--canvas);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.feature-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.feature-content p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── FLOOR PLANS ─── */
.plans-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.plan-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card img {
  width: 100%;
  padding: 24px;
  background: var(--warm);
  cursor: pointer;
}
.plan-card-label {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

/* ─── TECHNICAL DRAWINGS ─── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tech-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tech-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ─── 3D MODEL VIEWER ─── */
.model-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 32px;
  background: #0a0a0a;
}
/* Outer frame clips the iframe — the iframe is scaled up so all 4 corner
   icons (avatar, share, watermark cube, toolbar) fall OUTSIDE the clip area.
   This avoids the ugly black-rectangle masks that were visible when the
   model rotated onto non-black backgrounds. */
.model-frame {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  line-height: 0;
  background: #0a0a0a;
}
.model-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 138%;
  transform: translate(-50%, -50%);
  border: none;
  display: block;
}
/* Custom aesthetic loader — warm accent tone, replaces Sketchfab's blue default.
   Fades out after model has had time to load. */
.model-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(196, 168, 130, 0.08), transparent 60%),
    #0a0a0a;
  z-index: 2;
  pointer-events: none;
  animation: modelLoaderFade 3.5s ease-out forwards;
  animation-delay: 2.2s;
}
.model-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid rgba(196, 168, 130, 0.18);
  border-top-color: var(--accent, #c4a882);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  animation:
    modelSpinnerRotate 1.1s linear infinite,
    modelLoaderFade 3.5s ease-out forwards;
  animation-delay: 0s, 2.2s;
}
@keyframes modelSpinnerRotate {
  to { transform: rotate(360deg); }
}
@keyframes modelLoaderFade {
  0%   { opacity: 1; visibility: visible; }
  99%  { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@media (max-width: 768px) {
  .model-frame {
    height: 420px;
  }
  .model-frame iframe {
    width: 160%;
    height: 145%;
  }
}
.model-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--stone);
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.model-hint span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── COST TABLE ─── */
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 16px;
  margin-top: 32px;
}
.cost-table thead th {
  background: var(--charcoal);
  color: #fff;
  padding: 18px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.cost-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:nth-child(even) { background: var(--warm); }
.cost-table .state-list {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}
.cost-table .price-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--charcoal);
  font-size: 15px;
}
.cost-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
}

/* ─── COMPARISON ─── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 32px;
}
.compare-table th {
  padding: 18px 28px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  background: var(--stone);
  color: var(--charcoal);
}
.compare-table td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-ours {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  font-weight: 500;
  color: var(--charcoal);
}
.compare-table .col-ours .check-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check-icon svg { flex-shrink: 0; }

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.product-badge {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.product-card-body {
  padding: 28px 28px 32px;
}
.product-card-body h3 {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.product-card-body .specs {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.product-card-body .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.product-card-body .price {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
}
.product-card-body .price-old {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card .current-badge {
  background: var(--stone);
  color: var(--accent);
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: var(--text);
}
.pricing-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-note a:hover { color: var(--accent-hover); }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
}
.testimonial-loc {
  font-size: 13px;
  color: var(--text-light);
}
.trustpilot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}
.trustpilot-link:hover { color: var(--accent-hover); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  font-size: 19px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
  padding: 28px 0;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item:hover .faq-toggle {
  border-color: var(--accent);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 0 28px 0;
}
.faq-answer-inner {
  font-size: 18px;
  color: var(--text);
  max-width: 640px;
  line-height: 1.7;
}
.faq-item.open .faq-toggle {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

/* ─── NEWSLETTER STATIC ─── */
.newsletter-section {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px;
}
.newsletter-section h3 {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.newsletter-section p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  min-height: 52px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--canvas);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  white-space: nowrap;
}
.newsletter-success {
  display: none;
  color: var(--success);
  font-weight: 600;
  font-size: 16px;
  margin-top: 16px;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  text-align: center;
  padding: 96px 48px;
  max-width: 700px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 36px;
}
.cta-guarantees {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.cta-guarantees span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--charcoal);
  color: #ccc;
  padding: 64px 48px 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: #999;
  max-width: 280px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer a {
  display: block;
  font-size: 15px;
  color: #999;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer a:hover { color: var(--accent); }
.footer-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent) !important;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social svg { width: 18px; height: 18px; fill: #999; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: space-between;
}
.footer-bottom a {
  display: inline;
  font-size: 13px;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ─── NEWSLETTER POPUP ─── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.active {
  display: flex;
  opacity: 1;
}
.popup {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--stone);
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.popup-close:hover { background: var(--border); color: var(--charcoal); }
.popup-image {
  width: calc(100% + 80px);
  max-width: calc(100% + 80px);
  margin: -48px -40px 24px;
  height: 260px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}
.popup h3 {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.popup p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}
.popup .newsletter-form {
  flex-direction: column;
}
.popup .newsletter-form input { width: 100%; }
.popup .newsletter-form button { width: 100%; }

/* ─── MOBILE STICKY BAR ─── */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--canvas);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  align-items: center;
  justify-content: space-between;
}
.mobile-sticky-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mobile-sticky-price .price {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
}
.mobile-sticky-price .price-old {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}
.mobile-sticky .btn-primary {
  padding: 12px 28px;
  font-size: 15px;
  min-height: 48px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 46px; }
  .section-heading { font-size: 36px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-wide { grid-column: span 1; height: 280px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .model-frame { height: 460px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .hero-content { padding: 0 24px; }
  .hero-specs { gap: 24px; }
  .hero-spec-value { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section, .section-warm .section, .section-full { padding: 64px 24px; }
  .section-heading { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-wide { grid-column: span 1; height: 240px; }
  .gallery-grid img { height: 240px; }
  .tech-grid { grid-template-columns: 1fr; }
  .plans-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table td, .compare-table th { padding: 12px 14px; white-space: nowrap; }
  .cost-table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cost-table td, .cost-table th { padding: 10px 12px; }
  .cost-table .state-list { font-size: 11px; }
  .cost-table .price-cell { font-size: 13px; }
  .cta-banner { padding: 64px 24px; }
  .cta-banner h2 { font-size: 32px; }
  .cta-guarantees { flex-direction: column; gap: 12px; }
  .footer { padding: 48px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .partners { gap: 32px; padding: 32px 24px; }
  .partners img { height: 28px; }
  .model-frame { height: 380px; }
  .newsletter-form { flex-direction: column; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 72px; }
  .hero-trust { gap: 12px; font-size: 13px; }
  .hero-trust-divider { display: none; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  /* Push Tawk.to chat widget above sticky bar */
  iframe[title="chat widget"] { bottom: 80px !important; }
  #tidio-chat iframe,
  .widget-visible iframe { bottom: 80px !important; }
}

/* ─── TAWK.TO MOBILE OVERRIDE ─── */
@media (max-width: 768px) {
  .tawk-min-container,
  .tawk-button-circle {
    bottom: 84px !important;
    width: 48px !important;
    height: 48px !important;
    right: 12px !important;
  }
}
