/* === Sky Suites — style.css === */
/* Luxury hospitality design. Light mode only. */

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254,252,246,0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(26,26,46,0.06);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  height: var(--header-height);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.logo svg { flex-shrink: 0; }

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: var(--space-1); }
.nav-desktop a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--charcoal); background: rgba(26,26,46,0.03); }
.nav-desktop a.active { color: var(--champagne-dark); }

.nav-cta {
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-5) !important;
  background: var(--charcoal) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  font-size: var(--text-sm) !important;
  font-weight: 500 !important;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.nav-cta:hover { background: var(--charcoal-light) !important; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta:active { transform: translateY(0); }

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal);
  position: absolute; left: 11px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 26px; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(3.5px, 3.5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(3.5px, -3.5px); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--ivory);
  z-index: 60;
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open {
  display: flex;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}
.nav-mobile a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.nav-mobile a:hover, .nav-mobile a:active { background: rgba(26,26,46,0.04); color: var(--charcoal); }
.nav-mobile a.active { color: var(--champagne-dark); }
.nav-mobile .nav-cta-mobile {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 500;
  text-align: center;
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}
.section-sm {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) 0;
}

/* ===========================
   HERO SECTIONS
   =========================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,26,46,0.3) 0%,
    rgba(26,26,46,0.55) 60%,
    rgba(26,26,46,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6);
}
.hero h1 {
  font-size: var(--text-hero);
  color: var(--white);
  max-width: 18ch;
  margin-bottom: var(--space-5);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  max-width: 42ch;
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

/* Hero KPI bar */
.hero-kpis {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero-kpi {
  display: flex;
  flex-direction: column;
}
.hero-kpi-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--champagne-light);
  line-height: 1.1;
}
.hero-kpi-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* Hero CTA group */
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Page hero (smaller, for sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 60%, var(--navy) 100%);
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0 clamp(var(--space-12), 8vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  max-width: 55ch;
}
.page-hero .breadcrumb {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.page-hero .breadcrumb a { color: var(--champagne-light); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:active { transform: translateY(0) !important; }

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--champagne);
  color: var(--charcoal);
}
.btn-gold:hover { background: var(--champagne-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--sand);
}
.btn-outline-dark:hover { border-color: var(--champagne); background: rgba(201,169,110,0.04); }

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--white);
  border: 1px solid rgba(26,26,46,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-elevated {
  background: var(--white);
  border: 1px solid rgba(26,26,46,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.card-elevated:hover { box-shadow: var(--shadow-lg); }

.card-gold {
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, rgba(201,169,110,0.02) 100%);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* ===========================
   SECTION HEADINGS
   =========================== */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--champagne-dark);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.6;
}

/* ===========================
   TABLES (data-rich luxury)
   =========================== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.data-table thead th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--sand);
  background: var(--ivory-warm);
  white-space: nowrap;
}
.data-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(26,26,46,0.05);
  color: var(--text-primary);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(201,169,110,0.03); }

/* Table wrapper for horizontal scroll on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26,26,46,0.06);
  background: var(--white);
}

/* ===========================
   GRADE BADGES
   =========================== */
.grade { 
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 32px;
  padding: 0 var(--space-3);
  font-weight: 600; font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.grade-a-plus { background: #1B5E20; color: #fff; }
.grade-a { background: #2E7D32; color: #fff; }
.grade-b-plus { background: #558B2F; color: #fff; }
.grade-b { background: #F9A825; color: #1A1A2E; }
.grade-c { background: #EF6C00; color: #fff; }
.grade-d { background: #C62828; color: #fff; }
.grade-f { background: #4E342E; color: #fff; }

/* ===========================
   STATS / KPI CARDS
   =========================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.kpi-card {
  background: var(--white);
  border: 1px solid rgba(26,26,46,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  text-align: center;
}
.kpi-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}
.kpi-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}
.kpi-card-gold {
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(201,169,110,0.03) 100%);
  border-color: rgba(201,169,110,0.2);
}
.kpi-card-gold .kpi-value { color: var(--champagne-dark); }

/* ===========================
   COMPARISON LAYOUTS
   =========================== */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: start;
}
.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { margin: var(--space-4) auto; }
}

/* ===========================
   CHANNEL BAR
   =========================== */
.channel-bar {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 40px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.channel-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  white-space: nowrap;
  color: var(--white);
}
.channel-airbnb { background: #FF5A5F; }
.channel-booking { background: #003580; }
.channel-expedia { background: #FBCC33; color: var(--charcoal) !important; }
.channel-direct { background: var(--charcoal); }

/* ===========================
   GRADING TOOL (Revenue Estimator)
   =========================== */
.grading-form {
  display: grid;
  gap: var(--space-6);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
}
.form-select, .form-input {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-select:focus, .form-input:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
  outline: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235A6178' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4H4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* Checkbox grid for amenities */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-2);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(26,26,46,0.08);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.checkbox-item:hover { background: rgba(201,169,110,0.04); border-color: rgba(201,169,110,0.2); }
.checkbox-item input:checked + span { color: var(--champagne-dark); font-weight: 500; }
.checkbox-item input { accent-color: var(--champagne); }

/* Grade result display */
.grade-result {
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
}
.grade-result .grade-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--champagne-light);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.grade-result .grade-label {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
}

/* ===========================
   GATE MODAL (Lead capture)
   =========================== */
.gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26,26,46,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.gate-overlay.open { display: flex; }
.gate-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.gate-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.gate-close:hover { background: rgba(26,26,46,0.06); }

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-item {
  border-bottom: 1px solid rgba(26,26,46,0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--charcoal);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--champagne-dark); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand .logo { color: var(--white); margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); max-width: 32ch; line-height: 1.6; }
.footer-col h4 {
  font-family: 'General Sans', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--champagne-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--champagne-light); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================
   WHATSAPP FAB
   =========================== */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: anim-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes anim-fade { to { opacity: 1; } }

.reveal-up { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(30% 0 0 0);
    opacity: 0;
    animation: anim-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes anim-reveal { to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* ===========================
   MISC UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--champagne-dark); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--text-secondary);
}
.tag-gold {
  background: rgba(201,169,110,0.1);
  color: var(--champagne-dark);
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(26,26,46,0.06);
  margin: var(--space-8) 0;
}

.prose {
  max-width: 65ch;
  line-height: 1.7;
  color: var(--text-secondary);
}
.prose p + p { margin-top: var(--space-4); }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose ul, .prose ol { padding-left: var(--space-5); margin: var(--space-3) 0; }
.prose li { margin-bottom: var(--space-2); }

/* Perplexity attribution */
.pplx-attr {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.pplx-attr a { color: rgba(255,255,255,0.35); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.15); }
.pplx-attr a:hover { color: var(--champagne-light); }

/* Image hover zoom */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.img-hover-zoom img {
  transition: transform 600ms var(--ease-out);
}
.img-hover-zoom:hover img { transform: scale(1.04); }

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  padding: var(--space-3) var(--space-4);
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.sticky-mobile-cta .cta-inner {
  display: flex;
  gap: var(--space-2);
  max-width: var(--content-max);
  margin: 0 auto;
}
.sticky-mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-mobile-cta .cta-whatsapp {
  background: #25D366;
  color: white;
}
.sticky-mobile-cta .cta-estimate {
  background: var(--champagne);
  color: var(--charcoal);
}
@media (max-width: 768px) {
  .sticky-mobile-cta { display: block; }
  .site-footer { padding-bottom: 72px; }
  .whatsapp-fab { bottom: 80px; }
}

/* ===========================
   MOBILE RESPONSIVE FIXES
   =========================== */

/* --- Global mobile overflow fix --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Hero section mobile fixes */
  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: var(--space-16) var(--space-4) var(--space-12);
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: var(--space-10);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    max-width: 100%;
    word-wrap: break-word;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: var(--text-base);
  }

  .hero-market-copy {
    max-width: 100%;
    font-size: var(--text-sm);
  }

  .hero-kpis {
    gap: var(--space-4);
  }

  .hero-kpi {
    min-width: calc(50% - var(--space-3));
  }

  .hero-kpi-value {
    font-size: var(--text-xl);
  }

  .hero-kpi-label {
    font-size: 0.65rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .hero-note {
    max-width: 100%;
    font-size: var(--text-xs);
  }

  /* Hero badge and market score */
  .hero-badge,
  .market-score-badge {
    font-size: 0.6rem;
    padding: var(--space-1) var(--space-3);
  }

  /* Section head inline -> stack */
  .section-head-inline {
    grid-template-columns: 1fr;
  }

  .section-kicker {
    justify-self: start;
    max-width: 100%;
  }

  /* Market layout -> single column */
  .market-layout {
    grid-template-columns: 1fr;
  }

  /* Tier cards -> single column */
  .tier-card {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .tier-value {
    text-align: left;
  }

  /* ROI layout */
  .roi-layout {
    grid-template-columns: 1fr;
  }

  /* Savings layout */
  .savings-layout {
    grid-template-columns: 1fr;
  }

  .savings-row {
    grid-template-columns: 1fr;
  }

  /* Formula terms */
  .formula-term {
    grid-template-columns: 1fr;
  }

  /* Advantages grid */
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* Cost summary */
  .cost-summary {
    grid-template-columns: 1fr;
  }

  /* CTA card */
  .cta-card {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Proof band */
  .proof-band {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  /* Tables */
  .data-table {
    font-size: var(--text-xs);
  }

  .data-table thead th,
  .data-table tbody td {
    padding: var(--space-2) var(--space-3);
  }

  /* Page hero */
  .page-hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
    max-width: 100%;
  }

  .page-hero p {
    max-width: 100%;
  }

  /* KPI grid */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .kpi-card {
    padding: var(--space-4);
  }

  .kpi-value {
    font-size: var(--text-lg);
  }

  /* VS grid */
  .vs-grid {
    grid-template-columns: 1fr;
  }

  .vs-divider {
    margin: var(--space-4) auto;
  }

  /* Grade result */
  .grade-result {
    padding: var(--space-6);
  }

  .grade-result .grade-display {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* Gate modal */
  .gate-modal {
    padding: var(--space-6);
    margin: var(--space-4);
  }

  /* Channel bar labels */
  .channel-bar > div {
    font-size: 0.6rem;
    padding: 0 var(--space-2);
  }

  /* Checkbox grid */
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding reduction */
  .section {
    padding: var(--space-12) 0;
  }

  .section-sm {
    padding: var(--space-8) 0;
  }

  /* Container padding */
  .container,
  .container-wide,
  .container-narrow {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Header inner padding */
  .header-inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Section titles */
  .section-title {
    font-size: var(--text-xl);
  }

  /* Prose max-width */
  .prose {
    max-width: 100%;
  }
}

/* Extra small screens (below 400px) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-kpi {
    min-width: 100%;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }
}
