/* 
  JB Invisible Grills - Main Style Sheet
  Theme Guidelines (60/30/10 Rule):
  - 60% Shining White background (with alternating soft silver/grey sections)
  - 30% Premium Gold highlights & gradients
  - 10% Silver/Grey accents & text colors
*/

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

:root {
  /* 60% — Primary Colour: Premium White */
  --bg-white: #FFFFFF;
  --bg-silver: #F8FAFC;
  --bg-silver-dark: #F1F5F9;
  
  /* 30% — Secondary Colour: Deep Navy Blue */
  --green-primary: #0F172A;       /* Deep Navy Blue */
  --green-dark: #111827;          /* Dark Navy Blue */
  --green-hover: #1E293B;         /* Medium Navy Blue */
  --green-light: #E2E8F0;         /* Soft Border / Muted Slate */
  --green-gradient: linear-gradient(135deg, #111827 0%, #0F172A 50%, #1E293B 100%);
  
  /* 10% — Accent Colour: Premium Gold */
  --gold-primary: #D4AF37;        /* Premium Gold */
  --gold-dark: #B8962E;           /* Gold Hover */
  --gold-light: #E2E8F0;          /* Soft border / silver border mapping */
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4C542 50%, #B8962E 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4);
  
  /* Neutrals & Text */
  --silver-accent: #E2E8F0;
  --text-dark: #0F172A;           /* Deep Navy for headings */
  --text-medium: #1F2937;         /* High-contrast body text */
  --text-muted: #64748B;          /* Muted meta text */
  --text-white: #ffffff;
  
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 28px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadow updates with navy base */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  
  /* CSS Variables from Prompt */
  --color-primary: #FFFFFF;
  --color-primary-soft: #F8FAFC;
  --color-secondary: #0F172A;
  --color-secondary-light: #1E293B;
  --color-accent: #D4AF37;
  --color-accent-hover: #B8962E;
  --color-text: #1F2937;
  --color-muted-text: #64748B;
  --color-border: #E2E8F0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 70px !important;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-medium);
  line-height: 1.6;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
}

p {
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: auto;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--bg-silver);
}

.text-center { text-align: center; }

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold-gradient);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Button & CTA Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 2px solid #FFFFFF;
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--color-secondary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1ebd59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-call {
  background-color: #0284c7;
  color: white;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-call:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--bg-silver-dark);
  transition: all 0.3s ease;
}

/* Scrolled state — applied via JS when scrollY > 50px */
header.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--silver-accent);
}

header.scrolled .header-main-content {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header.scrolled .logo {
  font-size: 1.35rem;
}

header.scrolled .logo-icon {
  width: 34px;
  height: 34px;
}

header.scrolled .logo-icon svg {
  width: 16px;
  height: 16px;
}

.header-main-content {
  /* Add explicit transition so padding shrink is smooth */
  transition: padding 0.3s ease;
}

.header-top {
  background-color: var(--text-dark);
  color: var(--bg-silver);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-info {
  display: flex;
  gap: 1.5rem;
}

.header-top-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-top-info svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-primary);
}

.header-top-links a:hover {
  color: var(--gold-primary);
}

.header-main {
  padding: 1rem 0;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
  font-size: 1rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  width: 100%;
}

/* Services Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-white);
  border: 1px solid var(--silver-accent);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  width: 280px;
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1010;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: var(--bg-silver);
  color: var(--gold-dark);
}

.dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  transform: rotate(45deg);
  margin-left: 5px;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(-135deg);
  border-color: var(--gold-primary);
}

.header-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Animate hamburger to X when active */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer (Hidden on Desktop) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;

  /* Required CSS behaviour */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-primary);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.open,
.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hero Section - Background Slider Design */
.hero {
  position: relative;
  background-color: #0c1c15; /* Dark background default */
  overflow: hidden;
  width: 100%;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-container {
  position: relative;
  z-index: 5;
  color: var(--text-white);
  width: 100%;
}

.hero-content {
  max-width: 750px;
  z-index: 5;
}

.hero-tag {
  background: var(--gold-gradient);
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(184, 144, 40, 0.25);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title span,
.hero-title .highlight {
  color: var(--gold-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-white);
}

.hero-feature-item svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-primary);
}

/* Background image slider rules */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(15, 23, 42, 0.25) 50%,
    rgba(15, 23, 42, 0.05) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Slider arrows and dots styling */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--text-dark);
  box-shadow: var(--gold-glow);
}

.slider-arrow.prev {
  left: 2rem;
}

.slider-arrow.next {
  right: 2rem;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 6;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.slider-dots .dot.active {
  width: 24px;
  border-radius: 10px;
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(184, 144, 40, 0.5);
}

/* Trust Badges */
.trust-badges {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--bg-silver-dark);
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-silver);
  border-radius: 50%;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  border: 1px solid var(--gold-light);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.trust-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Service Grid section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* =============================================
   SERVICE CARD — Mobile-First Core Styles
   ============================================= */
.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-silver-dark);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  /* Prevent card from overflowing container */
  min-width: 0;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Hover effects only on non-touch devices */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
  }
  .service-card:hover::after {
    opacity: 1;
  }
  .service-card:hover .service-card-image img {
    transform: scale(1.08);
  }
}

/* --- Image area --- */
.service-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-silver-dark);
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.service-card img,
.service-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--transition-smooth);
  max-width: 100%;
}

/* Ensure <picture> wrapper fills the image container */
.service-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Content area --- */
.service-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

/* --- Title --- */
.service-card-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: normal;
  word-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

/* --- Description --- */
.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  overflow-wrap: break-word;
}

/* --- Footer / Button row --- */
.service-card-footer {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: 100% !important;
  border-top: 1px solid var(--bg-silver-dark);
  padding-top: 1rem;
  margin-top: auto;
  grid-template-columns: unset !important;
  align-items: stretch;
}

/* Details button (outline) */
.service-card-footer .btn-outline,
.service-card-footer [class*="btn-outline"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  border-radius: var(--border-radius-sm) !important;
  border: 2px solid var(--gold-primary);
  background: transparent;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

/* WhatsApp / Quote button (green filled) */
.service-card-footer .btn-whatsapp {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  border-radius: var(--border-radius-sm) !important;
  background-color: #25d366;
  color: white;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap;
  overflow: hidden;
}

/* WhatsApp SVG icon — 20px to 24px only */
.service-card-footer .btn-whatsapp svg,
.service-card-footer .btn-whatsapp .whatsapp-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  max-width: 24px;
  max-height: 24px;
  fill: white;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

/* Constrain any SVG inside service-card footer */
.service-card .service-card-footer svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

/* Legacy selectors kept for backwards compatibility */
.service-card-link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-card-link:hover {
  color: var(--text-dark);
}

.service-card-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-silver);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--silver-accent);
}

/* Why Choose Us & Process Modules */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--gold-primary);
}

.why-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.why-badge-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
}

.why-badge-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-list {
  display: grid;
  gap: 1.75rem;
  list-style: none;
}

.why-item {
  display: flex;
  gap: 1.25rem;
}

.why-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-silver);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold-light);
}

.why-item-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.why-item-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.why-item-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 60%;
  width: 80%;
  height: 2px;
  background-color: var(--silver-accent);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.process-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Materials & Details Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.material-card {
  background-color: var(--bg-white);
  border: 1px solid var(--bg-silver-dark);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.material-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.material-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-silver);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 2px dashed var(--gold-primary);
}

.material-card-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.material-card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.material-card-specs {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-silver-dark);
  list-style: none;
  font-size: 0.9rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.material-card-specs li {
  display: flex;
  justify-content: space-between;
  color: var(--text-medium);
}

.material-card-specs li span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--bg-white);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  font-family: var(--font-title);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gallery-title {
  font-size: 1.1rem;
  color: var(--bg-white);
}

/* Location Link Matrix */
.locations-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.location-link {
  background-color: var(--bg-white);
  border: 1px solid var(--bg-silver-dark);
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.location-link:hover {
  border-color: var(--gold-primary);
  background: var(--gold-gradient);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--bg-silver-dark);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  background-color: var(--bg-silver);
  border-top: 0px solid transparent;
}

.faq-answer-content {
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.faq-item.active {
  border-color: var(--gold-primary);
}

.faq-item.active .faq-question {
  color: var(--gold-dark);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  border-top: 1px solid var(--bg-silver-dark);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition-smooth);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Testimonial Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  border: 1px solid var(--bg-silver-dark);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--bg-silver-dark);
  padding-top: 1rem;
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-silver-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
}

.testimonial-author-info h4 {
  font-size: 0.95rem;
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--gold-primary);
  display: flex;
  gap: 2px;
  margin-top: 0.25rem;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Contact Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background-color: var(--bg-silver);
  border: 1px solid var(--bg-silver-dark);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gold-light);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-info-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-info-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0.25rem;
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--silver-accent);
  padding-bottom: 0.5rem;
}

.contact-hours-row span:last-child {
  font-weight: 600;
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control {
  background-color: var(--bg-silver);
  border: 1px solid var(--silver-accent);
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  background-color: var(--bg-white);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Quote Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start; /* Changed from center to allow top alignment when scrolling */
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow-y: auto; /* Enable vertical scrolling for long modal forms */
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 2px solid var(--gold-primary);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  margin-bottom: 3rem; /* Prevents container clipping at the bottom */
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Footer styling */
footer {
  background-color: var(--text-dark);
  color: var(--bg-silver-dark);
  padding: 5rem 0 2rem 0;
  border-top: 5px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col-title {
  font-size: 1.2rem;
  color: var(--bg-white);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold-gradient);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-white);
}

.footer-logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  color: var(--text-white);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
  color: var(--gold-primary);
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* Floating Elements (Sticky Buttons) */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-btn-whatsapp {
  background-color: #25d366;
  color: white;
  border: 2px solid white;
}

.floating-btn-whatsapp:hover {
  background-color: #1ebd59;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.floating-btn-call {
  background-color: #0284c7;
  color: white;
  border: 2px solid white;
}

.floating-btn-call:hover {
  background-color: #0369a1;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Sticky Bottom Navigation for Mobile */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 1px solid var(--silver-accent);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  height: 100%;
}

.mobile-sticky-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  gap: 2px;
  border-right: 1px solid var(--bg-silver-dark);
}

.mobile-sticky-item:last-child {
  border-right: none;
}

.mobile-sticky-item-accent {
  background: var(--gold-gradient);
  color: var(--text-dark);
}

.mobile-sticky-item svg {
  width: 20px;
  height: 20px;
}

.mobile-sticky-item-accent svg {
  fill: var(--text-dark);
}

/* Area Breadcrumb */
.breadcrumb-nav {
  background-color: var(--bg-silver);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bg-silver-dark);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--gold-dark);
}

.breadcrumb-separator {
  color: var(--silver-accent);
}

/* Page Intro Header (For Service / Area Pages) */
.page-intro {
  background: linear-gradient(135deg, var(--bg-silver-dark) 0%, var(--bg-silver) 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--silver-accent);
}

.page-intro-title {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-intro-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Breadcrumb active item */
.breadcrumb-item.active {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    min-height: 580px;
    height: auto;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .grid-2, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .materials-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  /* ---- Service Cards: mobile layout fixes ---- */
  /* Prevent horizontal scroll from grid overflow */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    /* Ensure grid never forces horizontal scroll */
    width: 100%;
    overflow-x: hidden;
  }

  .service-card {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    /* Ensure card doesn't escape its column */
    overflow: hidden;
  }

  .service-card-image {
    height: 240px;
  }

  .service-card-content {
    padding: 1.25rem;
  }

  .service-card-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: normal;
    word-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 0.6rem;
  }

  .service-card-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  /* Button row on mobile */
  .service-card-footer {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    grid-template-columns: unset !important;
    padding-top: 0.875rem;
  }

  .service-card-footer .btn-outline,
  .service-card-footer [class*="btn-outline"] {
    height: 48px;
    font-size: 0.8rem !important;
    padding: 0 0.6rem !important;
  }

  .service-card-footer .btn-whatsapp {
    height: 48px;
    font-size: 0.8rem !important;
    padding: 0 0.6rem !important;
    gap: 5px !important;
  }

  /* Keep WhatsApp icon small on mobile */
  .service-card-footer .btn-whatsapp svg,
  .service-card-footer .btn-whatsapp .whatsapp-icon,
  .service-card .service-card-footer svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
  }
  /* ---- End service card mobile fixes ---- */
  .section {
    padding: 3.5rem 0;
  }
  .header-top {
    display: none; /* Hide header top on mobile */
  }
  .nav-menu {
    display: none; /* Hide desktop menu on mobile */
  }
  .header-main-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 12px 0 16px !important;
    height: 66px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  header {
    height: 66px !important;
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid var(--bg-silver-dark) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .logo {
    font-size: 16px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    color: var(--text-dark) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .logo span {
    display: inline !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .logo-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  
  /* Overrides to prevent generic image/svg rules from blowing up the header */
  header svg,
  .logo-icon svg {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
  }
  header img,
  .logo-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  header button {
    width: auto !important;
  }
  
  /* Mobile Header Action buttons styling */
  .header-ctas {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .header-ctas .btn-quote-header {
    display: inline-flex !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    background: var(--gold-gradient) !important;
    color: var(--text-dark) !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2) !important;
    flex-shrink: 0 !important;
  }
  .header-ctas .btn-call-header {
    display: inline-flex !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--green-primary) !important;
    color: var(--text-white) !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
    flex-shrink: 0 !important;
  }
  .header-ctas .btn-call-header span {
    display: none !important;
  }
  .header-ctas .btn-call-header svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: currentColor !important;
    margin: 0 !important;
    display: block !important;
  }
  .menu-toggle {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    flex-shrink: 0 !important;
    position: relative !important;
    margin: 0 !important;
  }
  .menu-toggle span {
    width: 24px !important;
    margin: 5px auto !important;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .locations-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-actions {
    display: flex;
    position: fixed;
    bottom: 5.5rem; /* Sit safely above mobile sticky bar */
    right: 1.5rem;
    z-index: 999;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
  .mobile-sticky-bar {
    display: block; /* Show bottom bar on mobile */
  }
  body {
    padding-bottom: 80px; /* Add extra spacing at bottom to prevent sticky bar overlaying content buttons */
  }
  .hero {
    min-height: 520px;
    height: auto;
    aspect-ratio: unset;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .hero-slide img {
    object-position: center center;
  }
  .hero-overlay {
    background: rgba(15, 23, 42, 0.45);
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
  }
  .hero-title {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
  }
  .hero-subtitle {
    font-size: 0.775rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
    line-height: 1.35;
  }
  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0;
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.2rem;
    font-size: 0.7rem;
    border-radius: 30px;
    white-space: nowrap;
    justify-content: center;
    gap: 0.2rem;
  }
  .hero-actions .btn svg {
    width: 11px;
    height: 11px;
  }
  .hero-actions .btn-gold span {
    display: none;
  }
  .hero-actions .btn-gold::after {
    content: "Call Now";
  }
  .hero-actions .btn-whatsapp span {
    display: none;
  }
  .hero-actions .btn-whatsapp::after {
    content: "WhatsApp";
  }
  .hero-actions .open-quote-modal span {
    display: none;
  }
  .hero-actions .open-quote-modal::after {
    content: "Free Quote";
  }
  .hero-features {
    display: none;
  }
  .slider-arrow,
  .slider-dots {
    display: none !important;
  }
  .page-intro-title {
    font-size: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  /* Mobile drawer submenu transitions */
  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold-primary);
  }
  .mobile-submenu.open {
    max-height: 400px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-ctas .btn-quote-header {
    display: none !important;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .locations-matrix {
    grid-template-columns: 1fr;
  }
  .materials-grid, .testimonials-grid, .gallery-grid, .process-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   Extra small phones: 320px – 390px
   ============================================= */
@media (max-width: 390px) {
  .service-card {
    max-width: 100%;
  }

  .service-card-image {
    height: 220px;
  }

  .service-card-content {
    padding: 1rem;
  }

  .service-card-title {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: normal;
    word-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .service-card-desc {
    font-size: 0.82rem;
  }

  .service-card-footer .btn-outline,
  .service-card-footer [class*="btn-outline"],
  .service-card-footer .btn-whatsapp {
    height: 46px;
    font-size: 0.76rem !important;
    padding: 0 0.5rem !important;
  }

  /* Prevent any SVG from being oversized */
  .service-card svg {
    max-width: 20px;
    max-height: 20px;
  }

  .service-card-footer svg,
  .service-card-footer .btn-whatsapp svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
  }
}

/* Comprehensive Mobile Optimization (320px – 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  section {
    padding: 50px 16px !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Header Optimization is handled in the main media query block above */

  /* Mobile Drawer (Menu) sits strictly below the header */
  .mobile-drawer {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: calc(100dvh - var(--header-height)) !important;
    max-height: calc(100dvh - var(--header-height)) !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    z-index: 9999 !important;
    padding: 1.5rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--bg-silver-dark);

    /* Required CSS behaviour */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-drawer.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .mobile-drawer-header {
    display: none !important; /* Hide redundant inner header on mobile */
  }

  /* Form Optimization */
  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .form-group, .form-control {
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
  }

  /* Hero Section Mobile Responsiveness */
  .hero {
    height: auto !important;
    min-height: auto !important;
    padding: 76px 16px 50px 16px !important;
    display: flex;
    align-items: center;
  }

  .hero-container {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100% !important;
    text-align: center;
    padding: 0 !important;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1rem) !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  .hero-features {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  /* Floating Safe Areas */
  .floating-actions {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(60px + max(16px, env(safe-area-inset-bottom))) !important;
    gap: 10px !important;
  }

  .floating-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .floating-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 575px) {
  .services-grid,
  .gallery-grid,
  .locations-grid,
  .testimonials-grid,
  .materials-grid,
  .process-grid,
  .footer-grid,
  .trust-grid,
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-card, .gallery-item, .material-card, .process-step {
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-card img,
  .gallery-item img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .btn {
    min-height: 48px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* =============================================
   Icon Sizes & Button Visual Balance Optimizations
   ============================================= */
/* Global Button SVG Icon constraints */
.btn svg,
.btn img {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  margin: 0;
  transition: var(--transition-smooth);
}

.btn-sm svg,
.btn-sm img {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* Maintain proper spacing inside buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px !important; /* Perfect gap between icon and text */
  text-align: center;
}

/* Floating Actions (Call & WhatsApp) */
.floating-btn svg {
  width: 24px !important; /* Within 22px-28px range */
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: block;
  margin: 0;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-item svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin-bottom: 2px;
}

/* Trust / Feature Card Icons (Shield or feature icons: max 56px) */
.trust-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

.trust-icon svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
}

/* Why Choose Us Icons */
.why-item-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

.why-item-icon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Material specifications section card icons */
.material-card-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

.material-card-icon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Contact cards & footer contact items */
.contact-info-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--border-radius-sm) !important;
}

.contact-info-icon svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.footer-contact-item svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin-right: 12px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Spec CTA cards mapping */
.cta-card,
.contact-card,
.action-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  min-height: 110px !important;
  padding: 22px 24px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

.cta-card .icon,
.contact-card .icon,
.action-card .icon,
.cta-card svg,
.contact-card svg,
.action-card svg,
.cta-card img,
.contact-card img,
.action-card img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.cta-card .shield-icon,
.feature-card .shield-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
}

.cta-card .phone-icon,
.contact-card .phone-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

.cta-card .whatsapp-icon,
.contact-card .whatsapp-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
}

.cta-card span,
.contact-card span,
.action-card span {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  text-align: center !important;
}
