@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors - Deep Royal Navy Blue (#1f3c88) & Matching Architectural Gold Theme */
  --bg-primary: #1f3c88;
  --bg-secondary: #162c64;
  --bg-card: rgba(16, 33, 77, 0.75);
  --bg-card-hover: rgba(22, 45, 105, 0.9);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(243, 196, 98, 0.45);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --gold-primary: #e5a93b;
  --gold-light: #f3c462;
  --gold-dark: #b88220;
  --gold-glow: rgba(229, 169, 59, 0.35);
  
  --accent-blue: #38bdf8;
  --accent-green: #22c55e;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd5b;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Transitions */
  --nav-height: 94px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Elevation Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px -10px var(--gold-glow);
}

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

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

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

/* Background Glowing Orbs */
.bg-glow-1, .bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.bg-glow-1 {
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}
.bg-glow-2 {
  top: 40%;
  right: -200px;
  background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-title span {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #0b1320;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(229, 169, 59, 0.5);
  background: linear-gradient(135deg, #fce196, var(--gold-light));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(22, 44, 100, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: 78px;
  box-shadow: var(--shadow-md);
}
.navbar.scrolled .nav-logo {
  height: 56px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 72px;
  max-width: 340px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.logo-text span {
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-only-cta {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "content visual"
    "stats visual";
  gap: 20px 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
  grid-area: content;
}

.hero-visual {
  grid-area: visual;
}

.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(229, 169, 59, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}
.hero-title span {
  color: var(--gold-primary);
  background: linear-gradient(135deg, #ffe08a, var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}
.hero-card-stack:hover .hero-img {
  transform: scale(1.08);
}

.hero-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(22, 44, 100, 0.85);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overlay-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 4px;
}
.overlay-info p {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* Catalog / Products Section */
.products-section {
  padding: 100px 0;
  position: relative;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  background: var(--bg-secondary);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.filter-tab.active {
  background: var(--gold-primary);
  color: #0b1320;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.35);
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 8px;
  background: rgba(22, 44, 100, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.25);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px var(--gold-glow);
  background: var(--bg-card-hover);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #11214d;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(22, 44, 100, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  border: 1px solid rgba(229, 169, 59, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-quote {
  background: var(--whatsapp-green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.btn-card-quote:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-card-view {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-card-view:hover {
  background: var(--gold-primary);
  color: #0b1320;
  font-weight: 700;
}

/* Estimator Section */
.estimator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
}

.estimator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-select, .form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(22, 44, 100, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}
.form-select:focus, .form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.25);
}

.estimate-result {
  background: rgba(22, 44, 100, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.estimate-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estimate-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(229, 169, 59, 0.4);
}

.estimate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Why Choose Us Section */
.why-section {
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: 16px;
  transition: var(--transition-normal);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(229, 169, 59, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 20px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(229, 169, 59, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-text p, .contact-text a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.contact-text a:hover {
  color: var(--gold-primary);
}

/* Footer */
.footer {
  background: #10204a;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 72px;
  max-width: 340px;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal (Product Detail & CAD Viewer) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background: var(--gold-primary);
  color: #0b1320;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.modal-visual-panel {
  background: #11214d;
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
}

.modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.modal-tab-btn {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-tab-btn.active {
  color: var(--gold-light);
  background: rgba(229, 169, 59, 0.15);
  border-bottom: 2px solid var(--gold-light);
}

.modal-view-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.modal-img, .modal-cad-svg {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.modal-cad-svg svg {
  width: 100%;
  height: 350px;
}

.modal-info-panel {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.modal-spec-list {
  list-style: none;
  margin-bottom: 32px;
}
.modal-spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.modal-spec-list li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: 800;
}

.modal-actions {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
}

.whatsapp-float-btn {
  width: 64px;
  height: 64px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  border: none;
  position: relative;
  transition: var(--transition-normal);
}
.whatsapp-float-btn:hover {
  transform: scale(1.1);
  background: var(--whatsapp-hover);
}

/* Floating Call Button Above WhatsApp */
.call-float-btn {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  bottom: 78px;
  right: 6px;
  z-index: 1400;
  transition: var(--transition-normal);
}
.call-float-btn:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.65);
}

.whatsapp-float-btn::before, .whatsapp-float-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp-green);
  opacity: 0.6;
  z-index: -1;
  animation: ripple 2.5s infinite;
}
.whatsapp-float-btn::after {
  animation-delay: 1.2s;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.whatsapp-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
  transform-origin: bottom right;
}

.whatsapp-popup.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
  background: #075e54;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-popup-header h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.whatsapp-popup-body {
  padding: 20px;
  background: #0b141a;
}

.whatsapp-chat-bubble {
  background: #054740;
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.whatsapp-input-group {
  display: flex;
  gap: 8px;
}

.whatsapp-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  background: #2a3942;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.whatsapp-send-btn {
  background: var(--whatsapp-green);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.whatsapp-send-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "visual"
      "stats";
    gap: 40px;
  }
  
  .estimator-grid, .contact-grid, .modal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .products-grid, .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .modal-visual-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll globally */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 16px;
  }

  /* Navbar fixes */
  .nav-container {
    padding: 8px 16px;
  }
  .nav-actions .btn-whatsapp span {
    display: none;
  }
  .nav-actions .btn-whatsapp {
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-logo {
    height: 46px;
    max-width: 180px;
  }
  .navbar.scrolled .nav-logo {
    height: 40px;
  }
  
  /* Mobile Menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #162c64;
    border-bottom: 2px solid var(--gold-primary);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
  }
  .nav-link::after {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-only-cta {
    display: block !important;
    width: 100%;
    margin-top: 12px;
  }

  /* Hero Section fixes */
  .hero {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 50px;
    min-height: auto;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 0.72rem;
    padding: 6px 12px;
    line-height: 1.4;
    border-radius: 20px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }
  .hero-btn-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 20px;
  }
  .stat-item h3 {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }
  .stat-item p {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .hero-card-stack {
    height: 320px;
    width: 100%;
  }
  .hero-overlay-badge {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 14px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .hero-overlay-badge .btn {
    width: 100%;
    justify-content: center;
  }

  /* Catalog / Products fixes */
  .products-section {
    padding: 60px 0;
  }
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }
  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .search-box {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .product-img-wrapper {
    height: 200px;
  }

  /* Why Us, Estimator, Contact, Footer fixes */
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .facility-card {
    padding: 24px !important;
    min-height: 300px !important;
  }
  .estimator-box, .contact-info-card {
    padding: 20px 16px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Modals on Mobile */
  .modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }
  .modal-info-panel {
    padding: 20px 16px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .stat-item h3 {
    font-size: 1.15rem;
  }
  .stat-item p {
    font-size: 0.65rem;
  }
  .whatsapp-popup {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 70px;
  }
}
