/* ============================================
   DESATASCOS DEL MAR MENOR - DESIGN SYSTEM
   Modern, Conversion-Optimized Stylesheet
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* ============================================
      PREMIUM DESIGN SYSTEM (WordPress Style)
      ============================================ */

  /* Brand Colors */
  --color-primary: #1A3E72;
  --color-primary-light: #2a5a9e;
  --color-primary-dark: #122b50;
  --color-secondary: #0056b3;

  /* ACTION COLOR (RED) - Critical for conversion */
  --color-action: #EA2429;
  --color-action-dark: #c11217;
  --color-action-light: #ff3d42;

  /* Text Colors */
  --color-text: #2c3e50;
  --color-text-light: #546e7a;
  --color-white: #FFFFFF;

  /* Backgrounds */
  --color-light: #F8F9FA;
  --color-bg-light: #F0F4F8;
  --color-dark-bg: #0f1419;
  --color-border: #E1E8ED;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1A3E72 0%, #2a5a9e 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(26, 62, 114, 0.95) 0%, rgba(42, 90, 158, 0.9) 100%);
  --gradient-action: linear-gradient(135deg, #EA2429 0%, #ff3d42 100%);

  /* Typography - Premium Fonts */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Layout - Más Generoso */
  --container-width: 1200px;
  --header-height: 80px;

  /* UI Elements - Premium */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px; /* Hidraxis radius */
  --border-radius-xl: 32px;

  /* Sombras Neutras y Superpuestas (Hidraxis Boxed) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);

  /* Font Sizes - Más Legibles */
  --text-xs: 0.875rem;
  --text-sm: 0.95rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: clamp(2.5rem, 5vw, 3.5rem);

  /* Spacing - Premium Breathing Room */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Typography Reset */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: #fff;
}





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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #e2e8f0; /* Outer frame logic for Boxed Layout */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: #fff;
  max-width: 1440px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08); /* Lift from frame */
  position: relative;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

/* === TYPOGRAPHY PREMIUM === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: none;
  /* NO uppercase - más moderno */
  letter-spacing: -0.02em;
  /* Tighter spacing */
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* === LAYOUT === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: 100px 0;
  /* Espaciado premium generoso */
}

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

/* === HEADER === */
/* === TOP BAR (New) === */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 8px 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

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

.top-info {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.separator {
  color: rgba(255, 255, 255, 0.3);
}

/* === HEADER (Sticky) === */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
  width: 100%; /* Ensures header matches body max-width */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo img {
  display: block;
  max-height: 50px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  position: relative;
  font-family: var(--font-heading);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-action);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-action);
}

/* Header Buttons */
.top-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
  z-index: 1001; /* Ensure above header elements */
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === BUTTONS & CTA PREMIUM === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: none;
  /* Sin uppercase */
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  /* 12px - más suave */
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-action);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(234, 36, 41, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(234, 36, 41, 0.45);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

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

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-large,
.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-lg);
  font-weight: 600;
}

/* === HERO TECHNICAL (Unclog Style) === */
.hero-technical {
  position: relative;
  background: url('../images/hero-truck.webp') no-repeat center center/cover;
  padding: 80px 0;
  color: white;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 34, 61, 0.85) 0%, rgba(26, 62, 114, 0.6) 60%, rgba(26, 62, 114, 0.2) 100%);
  z-index: 1;
}

/* === HERO SPLIT LAYOUT (UnclogNYC Style) === */
.hero-section-split {
  background: url('../images/hero-truck.webp') no-repeat center center/cover;
  padding: var(--space-2xl) 0 var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Más transparencia para ver el camión */
  background: linear-gradient(90deg, rgba(230, 235, 240, 0.85) 0%, rgba(230, 235, 240, 0.75) 60%, rgba(230, 235, 240, 0.5) 100%);
  z-index: 0;
}

.hero-section-split .container {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-content-split {
  padding-right: var(--space-lg);
}

.hero-title-split {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.text-highlight-split {
  color: var(--color-action);
}

.hero-description-split {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  max-width: 90%;
}

.hero-benefits-split {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.hero-benefits-split li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.check-icon-split {
  color: var(--color-action);
  font-weight: 900;
  font-size: 1.2rem;
}

.hero-actions-split {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-shadow {
  box-shadow: 0 4px 14px rgba(234, 36, 41, 0.4);
}


/* === HERO FLOATING FORM === */
.hero-form-floating {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: var(--space-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
  max-width: 400px;
  margin: 0 auto;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.form-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.hero-form .form-group {
  margin-bottom: var(--space-md);
}

.form-input-hero,
.form-select-hero {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #F9F9F9;
}

.form-input-hero:focus,
.form-select-hero:focus {
  outline: none;
  border-color: var(--color-action);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(234, 36, 41, 0.1);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: var(--space-sm);
}

.form-footer-note {
  text-align: center;
  margin-top: var(--space-md);
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.form-footer-note small {
  color: #4CAF50;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero-content-split {
    padding-right: 0;
  }

  .hero-description-split {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-benefits-split li {
    justify-content: center;
  }

  .hero-actions-split {
    justify-content: center;
  }

  .hero-visual-split {
    margin-top: var(--space-md);
    background-image: url('../images/hero-bg-2.webp');
    /* New Branded Hero Image */
    background-size: cover;
    background-position: center top;
    border-radius: 12px;
    position: relative;
    min-height: 500px;
    /* Ensure height if form is small */
  }

  .hero-form-floating {
    max-width: 100%;
    padding: var(--space-lg);
  }
}

/* === EXPERT SERVICES SECTION === */
.expert-services-split {
  background-color: var(--color-primary);
  background-image: url('../images/expert-bg.webp');
  /* New Technical Background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  /* Azul Corporativo */
  padding: var(--space-2xl) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Background Texture Overlay (Optional) */
.expert-services-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 71, 149, 0.9), rgba(0, 51, 102, 0.95));
  z-index: 1;
}

.expert-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.expert-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-action);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.expert-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.expert-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  max-width: 90%;
}

.expert-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.expert-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.btn-outline-white {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid white;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-heading);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--color-primary);
}

.expert-image-placeholder {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .expert-split-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .expert-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .expert-list li {
    justify-content: center;
  }
}

/* Badges */
.hero-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.badge-tech {
  background-color: var(--color-action);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Typography */
.hero-content h1 {
  font-size: var(--text-4xl);
  line-height: 1;
  margin-bottom: var(--space-md);
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.text-highlight {
  color: var(--color-action);
  /* Rojo para destacar (Feedback usuario) */
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-description strong {
  color: var(--color-action);
  /* Rojo para contraste sobre fondo oscuro */
  font-weight: 700;
}

/* Benefits List */
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
}

.hero-benefits strong {
  color: white;
  font-weight: 700;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-action);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

/* Actions */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges,
  .hero-actions,
  .hero-benefits li {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto var(--space-lg);
  }

  .hero-technical {
    padding: 60px 0;
    min-height: auto;
  }
}



/* === GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === CARD PREMIUM === */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  /* 16px */
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  /* Sombra visible */
  transition: var(--transition);
  border: none;
  /* Sin borde */
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  /* Sombra más profunda */
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}


/* === SERVICES GRID (Technical) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Technical Card (Premium Glass & Shadow) */
.card-tech {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  z-index: 1;
}

.card-tech::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.card-tech:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(220, 38, 38, 0.1);
}

.card-tech:hover::before {
  opacity: 1;
}

.card-tech::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-action);
  transition: width 0.4s ease;
}

.card-tech:hover::after {
  width: 100%;
}

.card-icon-wrapper {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.05);
  transition: transform 0.4s ease, background 0.4s ease;
}

.card-tech:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: rgba(220, 38, 38, 0.1);
}

.card-icon-tech {
  font-size: 3rem;
  line-height: 1;
  display: block;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.card-content p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  flex-grow: 1;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-tech:hover .card-cta {
  color: #a00;
}
/* === FORM === */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* === FAQ === */
/* === TESTIMONIAL === */
.testimonial {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 60px;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: var(--space-md);
  font-style: italic;
  color: var(--color-text-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-location {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.testimonial-rating {
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

/* === GOOGLE REVIEWS === */
.google-rating-badge-wrapper {
  display: inline-block;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-lg);
}

.google-rating-badge {
  display: flex;
  align-items: center;
  gap: 15px;
}

.g-letter {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #4285F4;
}

.rating-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rating-score {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.rating-stars,
.review-stars-card {
  color: #FBC02D;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-count {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.review-card {
  background: white;
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
  position: relative;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.g-icon-small {
  position: absolute;
  top: 0;
  right: 0;
  color: #4285F4;
  font-weight: bold;
  opacity: 0.5;
}

.review-stars-card {
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-text);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

/* === STICKY CTA (MOBILE) === */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-sm);
  z-index: 99999;
  display: none;
}

.sticky-cta .btn {
  width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-info span:first-child,
  .top-info .separator {
    display: none; /* Hide location pointer and separator to save space */
  }

  .header-container {
    flex-wrap: wrap;
    position: relative; /* Fixed overlap for mobiles */
  }

  .nav {
    flex-direction: column;
    width: 100%;
    gap: var(--space-xs);
    display: none; /* Hide menu by default on mobile, handled later by JS if needed, or static if layout refactor requires */
    padding-bottom: 1rem;
  }
  
  .nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-md);
    box-shadow: 0 15px 20px rgba(0,0,0,0.15);
    z-index: 9990;
    border-top: 1px solid #eee;
  }

  .mobile-menu-btn {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 10px;
    border-radius: var(--border-radius-sm);
  }

  /* Make sure top-cta doesn't overlap logo */
  .top-cta { 
    display: none !important; /* Hide to prevent overlapping the 404 text or hero, use sticky-cta instead */
  }

  .hero-cta {
    flex-direction: column;
  }

  .sticky-cta {
    display: block;
  }

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

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* === ULTRA NARROW DEVICES (Fold 6, etc) === */
@media (max-width: 400px) {
  /* Scale down the inline styled logo */
  a.logo div span { font-size: 15px !important; }
  a.logo div span + span { font-size: 21px !important; }
  
  /* Compact header buttons */
  .lang-switcher { font-size: 0.85rem; margin-left: 2px !important; }
  .mobile-menu-btn { right: 10px; padding: 6px; }

  /* Shrink hero fonts and images slightly to fit narrow viewports */
  .hero-title-split { font-size: 2.2rem; }
  h1 { font-size: 2.2rem; }
  .hero-visual-split { min-height: 250px; }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

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

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

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* === PREMIUM LAYOUT ADDITIONS === */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.feature-text {
  order: 1;
}

.feature-image {
  order: 2;
}

.img-premium {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.img-premium:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-image {
    order: 1;
  }

  .feature-text {
    order: 2;
  }
}

/* === MASONRY GALLERY === */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.masonry-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.item-large {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}

.masonry-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.masonry-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.masonry-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f4f8;
  color: var(--color-text-light);
  font-weight: 600;
  height: 100%;
  width: 100%;
  text-align: center;
  border: 2px dashed #cbd5e0;
}

.masonry-placeholder span {
  display: block;
  padding: 20px;
}

.masonry-placeholder small {
  display: block;
  font-weight: 400;
  margin-top: 5px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive Masonry */
@media (max-width: 900px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .masonry-item {
    height: 300px;
  }

  .item-large,
  .item-wide {
    height: 300px;
  }
}

/* === PROBLEM CARDS (Luxury) === */
.problem-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.problem-title {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.problem-desc {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* === FOOTER CLEANUP & LUXURY === */
.footer {
  background-color: #0F172A;
  /* Slate 900 */
  color: #E2E8F0;
  /* Slate 200 */
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  position: relative;
  z-index: 10;
}

.footer h4 {
  color: white;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--color-action);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94A3B8;
  /* Slate 400 */
  display: block;
  padding: 4px 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
  color: var(--color-action);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.9rem;
  color: #64748B;
  /* Slate 500 */
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.footer-hours {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Carousel Styles */
.carousel-container {
  padding: var(--space-md) 0;
  overflow: hidden;
}

.image-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.image-carousel::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.carousel-item {
  flex: 0 0 300px;
  /* Fixed width cards */
  max-width: 80vw;
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-5px);
}

.carousel-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  display: block;
}

/* Color Reveal Effect */
.carousel-item.color-reveal img,
.carousel-item:active img {
  filter: grayscale(0%);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}


/* === ENHANCED ZONE CARDS (Photographic Overlays) === */
.card-zone {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 320px; /* Taller, more premium */
  padding: 2.5rem 2rem;
  text-decoration: none;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
}

.card-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(16, 34, 61, 0.95) 0%, rgba(16, 34, 61, 0.4) 60%, rgba(16, 34, 61, 0) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

.card-zone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-zone:hover::before {
  background: linear-gradient(to top, rgba(220, 38, 38, 0.95) 0%, rgba(220, 38, 38, 0.6) 60%, rgba(220, 38, 38, 0.2) 100%);
}

.card-zone > * {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.card-zone:hover > * {
  transform: translateY(0);
}

.card-zone h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.card-zone p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.card-zone:hover p {
  opacity: 1;
}





/* === FAQ ACCORDION === */
.faq-item {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.faq-item[open] {
  border-left: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
  color: var(--color-secondary);
}

/* Prevent text highlighting when clicking rapidly */
.faq-question {
  user-select: none;
  -webkit-user-select: none;
}

/* Add a smooth open animation using CSS padding instead of full height calculation */
details[open] .faq-answer {
  animation: sweep .3s ease-in-out;
}
@keyframes sweep {
  0%    {opacity: 0; transform: translateY(-10px)}
  100%  {opacity: 1; transform: translateY(0)}
}

.faq-answer {
  color: var(--color-text-light);
  margin-top: var(--space-md);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Expert Stats Grid (Replacing Image) */
.expert-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-action, #EA2429);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-background);
}
@media (max-width: 768px) {
  .expert-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number { font-size: 2rem; }
}
