/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-dark: #0D1F3D;      /* Deep rich navy */
  --primary-dark-rgb: 13, 31, 61;
  --secondary-blue: #1E5FA8;    /* Professional medium blue */
  --secondary-blue-rgb: 30, 95, 168;
  --accent-orange: #FF6A00;     /* Energetic branding orange */
  --accent-orange-hover: #E05D00;
  --bg-light: #F8FAFC;          /* Clean subtle off-white */
  --bg-white: #FFFFFF;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #128C7E;
  
  /* Text Colors */
  --text-primary: #0D1F3D;
  --text-muted: #576F93;
  --text-light: #FFFFFF;
  --text-light-muted: #CBD5E1;
  
  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* UI Accents */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Shadows & Glassmorphism */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 15px -3px rgba(13, 31, 61, 0.1), 0 4px 6px -2px rgba(13, 31, 61, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(13, 31, 61, 0.15), 0 10px 10px -5px rgba(13, 31, 61, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(30, 95, 168, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(13, 31, 61, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-blue);
  border-radius: var(--border-radius-full);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Focus Outline Style */
:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg) auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-blue);
  background-color: rgba(30, 95, 168, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 48px; /* Mobile accessibility target */
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: var(--text-light);
}
.btn-accent:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  border-color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-light);
}
.btn-whatsapp:hover:not(:disabled) {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-large {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--border-radius-md);
}

.btn-full {
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: var(--transition-fast);
}
.btn-text:hover {
  color: var(--accent-orange);
}

/* Icons styling */
.icon {
  flex-shrink: 0;
}

/* Divider helper */
.panel-divider {
  border: 0;
  height: 1px;
  background-color: var(--glass-border);
  margin: var(--spacing-md) 0;
}

/* Visually Hidden Utility for accessibility */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 31, 61, 0.05);
  transition: var(--transition-smooth);
}

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

.logo-area {
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
}

.nav-menu {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-orange);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-fast);
}
.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark);
  position: absolute;
  transition: var(--transition-fast);
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

/* Mobile active state for toggle */
.mobile-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.mobile-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
  background: radial-gradient(circle at 10% 20%, rgba(13, 31, 61, 0.95) 0%, rgba(30, 95, 168, 0.98) 90%);
  color: var(--text-light);
  overflow: hidden;
  position: relative;
}

/* Subtle background accent shapes */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1.2rem;
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-sm);
}

.hero-title .highlight {
  color: var(--accent-orange);
  position: relative;
}

.hero-description {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-light-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-action-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  width: 100%;
}

/* Pillars grid in Hero */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.pillar-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.08);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pillar-card p {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

/* Image column in Hero */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-glass-frame {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 480px;
  width: 100%;
}

.hero-img {
  border-radius: var(--border-radius-md);
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.floating-stat-card {
  position: absolute;
  bottom: 5%;
  left: -5%;
  background: var(--bg-white);
  color: var(--primary-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-large);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(30, 95, 168, 0.1);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
}

.floating-stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.floating-stat-card-2 {
  position: absolute;
  top: 10%;
  right: -3%;
  background: var(--secondary-blue);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-large);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefits-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.benefit-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(13, 31, 61, 0.05);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  transition: var(--transition-smooth);
}
.benefit-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-medium);
  border-color: var(--glass-border);
}

.benefit-icon {
  background-color: rgba(30, 95, 168, 0.1);
  color: var(--secondary-blue);
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  transition: var(--transition-smooth);
}
.benefit-card:hover .benefit-icon {
  background-color: var(--accent-orange);
  color: var(--text-light);
  transform: rotate(5deg);
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--spacing-md);
  align-items: start;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  padding: var(--spacing-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.highlighted-panel {
  background: radial-gradient(circle at 100% 0%, rgba(30, 95, 168, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 2px solid var(--secondary-blue);
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}
.panel-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-blue);
  border-radius: var(--border-radius-full);
}

/* Form Styles */
.room-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input, .form-group select {
  height: 48px;
  padding: 0 0.85rem;
  border: 1.5px solid rgba(30, 95, 168, 0.2);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 168, 0.15);
  outline: none;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  width: 100%;
  padding-right: 2.5rem;
}

.input-with-unit .unit {
  position: absolute;
  right: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom Name Animation */
.id-custom-name {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live Preview */
.form-live-preview {
  background-color: rgba(30, 95, 168, 0.05);
  border: 1px dashed var(--secondary-blue);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.form-live-preview strong {
  color: var(--secondary-blue);
}

/* Rooms List Header */
.rooms-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.rooms-list-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Rooms List */
.rooms-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.empty-list-state {
  text-align: center;
  padding: var(--spacing-md);
  border: 2px dashed rgba(13, 31, 61, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

/* Room Item Card */
.room-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-white);
  border: 1px solid rgba(13, 31, 61, 0.08);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  transition: var(--transition-smooth);
  animation: scaleIn 0.3s ease-out;
}
.room-item-card:hover {
  box-shadow: var(--shadow-subtle);
  border-color: rgba(30, 95, 168, 0.3);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Animation for removal */
.room-item-card.removing {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(50px); }
}

.room-item-info {
  display: flex;
  flex-direction: column;
}

.room-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.room-item-dimensions {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.room-item-area {
  display: inline-block;
  background-color: rgba(30, 95, 168, 0.08);
  color: var(--secondary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.room-item-pricing {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.room-item-price {
  font-weight: 700;
  color: var(--primary-dark);
}

.btn-remove-room {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  width: 32px;
  height: 32px;
}
.btn-remove-room:hover {
  background-color: #fee2e2;
}

/* Summary Stats */
.summary-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-name {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stat-value {
  font-weight: 700;
  color: var(--primary-dark);
}

.highlight-text {
  color: var(--accent-orange);
  background-color: rgba(255, 106, 0, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.summary-divider {
  border: 0;
  height: 1px;
  background-color: var(--secondary-blue);
  opacity: 0.2;
  margin: var(--spacing-xs) 0;
}

.total-highlight-box {
  background: radial-gradient(circle at 0% 0%, var(--primary-dark) 0%, #173b75 100%);
  color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--spacing-xs);
}

.total-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-light-muted);
  display: block;
  margin-bottom: 2px;
}

.total-value-huge {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-orange);
  display: block;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.payment-terms {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  display: block;
  margin-top: 4px;
}

.extra-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--spacing-xs);
}

.extra-benefit-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.eb-icon {
  font-size: 1rem;
}

/* WhatsApp Area */
.whatsapp-cta-area {
  margin-top: var(--spacing-md);
}

.cta-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(13, 31, 61, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-rating {
  color: var(--accent-orange);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-user .avatar {
  width: 44px;
  height: 44px;
  background-color: var(--secondary-blue);
  color: var(--text-light);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-user .user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-user .user-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid rgba(13, 31, 61, 0.06);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item[open] {
  box-shadow: var(--shadow-medium);
  border-color: var(--glass-border);
}

.faq-question {
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default arrow */
  min-height: 48px;
}
.faq-question::-webkit-details-marker {
  display: none; /* Hide default arrow Safari */
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-dark);
  transition: var(--transition-smooth);
}
/* Horizontal bar */
.faq-icon::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}
/* Vertical bar */
.faq-icon::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}

/* Rotate icon when open */
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after {
  background-color: var(--accent-orange);
}

.faq-answer {
  padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(13, 31, 61, 0.03);
  animation: expandAnswer 0.3s ease-out;
}

@keyframes expandAnswer {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding-top: var(--spacing-xl);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-desc {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: 6px;
}
.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 4px;
}

.footer-contact p {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.footer-contact strong {
  color: var(--text-light);
}

.footer-bottom {
  padding: var(--spacing-sm) 0;
  background-color: #081426;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Up to Tablet */
@media (max-width: 992px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3.5rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .hero-text-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-action-buttons {
    justify-content: center;
  }
  
  .pillars-grid {
    text-align: left;
  }
  
  .hero-image-wrapper {
    margin-top: var(--spacing-sm);
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

/* Up to Mobile Navigation breakpoint */
@media (max-width: 768px) {
  /* Hamburger menu functionality */
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-blue);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem;
    font-size: 1.1rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-cta .btn {
    display: none; /* Hide WhatsApp button in header on mobile to conserve space */
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-action-buttons {
    flex-direction: column;
  }
  
  .floating-stat-card {
    left: 0;
  }
  .floating-stat-card-2 {
    right: 0;
  }
}

/* Coarse touch pointer enhancements for mobile access */
@media (pointer: coarse) {
  .btn, .form-group input, .form-group select {
    min-height: 52px;
  }
  
  .nav-link, .faq-question {
    padding: 0.85rem;
  }
}

/* Narrow mobile screens calculator layout fix to prevent overflow */
@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .glass-panel {
    padding: 0.85rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .calculator-grid {
    max-width: 100% !important;
    overflow: hidden !important;
    gap: var(--spacing-sm) !important;
  }

  .dimensions-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .form-live-preview {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    font-size: 0.8rem !important;
  }
  
  .room-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    padding: 10px !important;
  }
  
  .room-item-pricing {
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(13, 31, 61, 0.08);
    padding-top: 8px;
  }
  
  .total-value-huge {
    font-size: 1.75rem !important;
    word-break: break-word;
  }

  .payment-terms {
    font-size: 0.7rem !important;
  }

  .payment-methods-logos {
    gap: 6px !important;
  }

  .payment-logo {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  .floating-stat-card {
    position: relative !important;
    left: unset !important;
    bottom: unset !important;
    margin: 15px auto 0 auto !important;
    animation: none !important;
    width: fit-content;
  }
  
  .floating-stat-card-2 {
    position: relative !important;
    right: unset !important;
    top: unset !important;
    margin: 10px auto 0 auto !important;
    animation: none !important;
    width: fit-content;
  }
  
  .hero-image-wrapper {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .image-glass-frame {
    max-width: 100% !important;
    padding: 8px !important;
  }
}

/* ==========================================================================
   COOKIE BANNER & PRIVACY POLICY MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 31, 61, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--secondary-blue);
  color: var(--text-light);
  padding: 1.25rem 0;
  z-index: 1000;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
  animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  max-width: 850px;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-orange);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition-fast);
}
.cookie-text a:hover {
  color: var(--text-light);
}

@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner.hiding {
  animation: slideDownBanner 0.3s ease-in forwards;
}

@keyframes slideDownBanner {
  to { transform: translateY(100%); opacity: 0; }
}

/* Privacy Modal (<dialog> styling) */
.privacy-modal {
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  background: var(--bg-white);
  color: var(--text-primary);
  max-width: 600px;
  width: 90%;
  margin: auto;
  padding: 0;
  box-shadow: var(--shadow-large);
  overflow: hidden;
}

/* Backdrop styling */
.privacy-modal::backdrop {
  background-color: rgba(13, 31, 61, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Header style inside modal */
.modal-header {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--secondary-blue);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-light-muted);
  font-size: 1.85rem;
  cursor: pointer;
  line-height: 1;
  padding: var(--spacing-xs);
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.btn-close:hover {
  color: var(--accent-orange);
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: var(--spacing-md);
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.modal-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: var(--spacing-md);
  margin-bottom: 6px;
  color: var(--secondary-blue);
}

.modal-body p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-muted);
}

.modal-body code {
  background-color: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.modal-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 1px solid rgba(13, 31, 61, 0.08);
  display: flex;
  justify-content: flex-end;
  background-color: var(--bg-light);
}

/* Animations for Dialog Open */
.privacy-modal[open] {
  animation: scaleUpDialog 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUpDialog {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .cookie-container {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem var(--spacing-xs);
    gap: var(--spacing-xs);
  }
}
