/* Design Tokens */
:root {
  --primary: #C0392B;
  --primary-dark: #A93226;
  --primary-light: #E8D5D2;
  --secondary: #2C2C2C;
  --secondary-light: #3D3D3D;
  --accent: #E74C3C;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F5F3F0;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #27AE60;
  --warning: #F39C12;
  --error: #E74C3C;
  --focus: #C0392B;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Scale */
  --fs-display: 3.5rem;
  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
}

@media (max-width: 767px) {
  :root {
    --fs-display: 2.5rem;
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.125rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--primary);
  color: white;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.2;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform var(--transition), opacity var(--transition);
}
.skip-link:focus {
  opacity: 1;
  transform: translateY(0);
}

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 50;
  transition: all var(--transition);
}

.site-header.scrolled {
  background-color: rgba(24, 24, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.03);
}

.logo-text {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
}

.menu-toggle {
  display: flex;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 1.75rem;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform var(--transition);
}

.header-cta {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 84vw;
  height: 100vh;
  background: rgba(18, 18, 18, 0.76);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 100;
  padding: 5rem 2rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.mobile-menu .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  list-style: none;
}

.mobile-menu .nav-links a {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition), padding var(--transition), border-color var(--transition);
}

.mobile-menu .nav-links a:hover,
.mobile-menu .nav-links a.active {
  color: #FFFFFF;
  padding-left: 0.5rem;
  border-bottom-color: var(--primary);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .site-header.scrolled {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .logo img {
    height: 56px;
  }
  .header-inner {
    padding: 0.6rem 1rem;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
  }
  
  .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-small);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
  }
  
  .nav-links a:hover, 
  .nav-links a.active {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
  }
  .header-cta:hover {
    background-color: var(--primary-dark);
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: var(--secondary) url('../images/hero-carpet-cleaning.jpg') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,18,18,0.84) 0%, rgba(18,18,18,0.62) 50%, rgba(18,18,18,0.78) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-title .highlight {
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
  display: block;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-image {
  position: relative;
}

/* Hero Form Card */
.hero-form {
  background-color: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-form-glow {
  display: none;
}

.hero-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-form-subtitle {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-form .form-label {
  color: #FFFFFF;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-form .form-input,
.hero-form .form-select,
.hero-form .form-textarea {
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.hero-form .form-input:focus,
.hero-form .form-select:focus,
.hero-form .form-textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-form {
    padding: 2.5rem;
  }
}

/* Contact Cards Row (horizontal layout below gallery) */
.contact-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .contact-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .contact-cards-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

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

.btn-secondary {
  background-color: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background-color: #1DA851;
}

.btn-dark {
  background-color: var(--secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
  background-color: var(--secondary-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--fs-body);
}

.btn svg, .btn iconify-icon {
  font-size: 1.125rem;
}

/* Section Layout */
.section {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-alt {
  background-color: var(--surface-alt);
}

.section-dark {
  background-color: var(--secondary);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: white;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--surface-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: white;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(192, 57, 43, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--secondary);
}

.step-number.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-content h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.process-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.process-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

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

/* Gallery / Our Work Section */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-pair {
  position: relative;
}

.gallery-pair-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 500;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem;
}

.before-after-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.before-after-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.before-after-item:hover img {
  transform: scale(1.05);
}

.before-after-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background-color: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  color: var(--text);
  transition: all var(--transition);
  appearance: none;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--error);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: 0.25rem;
  display: none;
}

.form-error.visible {
  display: block;
}

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

.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.visible {
  display: block;
}
.form-success h3 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(192, 57, 43, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.125rem;
}

.contact-card p, .contact-card a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--primary);
}

/* Final CTA Section */
.cta-section {
  padding: 5rem 0;
  background-color: var(--surface);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: white;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-heading {
  font-size: var(--fs-small);
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

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

.footer-legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-legal a:hover {
  color: white;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   GALLERY PAGE STYLES
============================================= */
.gallery-hero {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--secondary) url('../images/hero-carpet-cleaning.jpg') center center / cover no-repeat;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,18,18,0.88) 20%, rgba(18,18,18,0.72) 100%);
  pointer-events: none;
}

.gallery-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.gallery-hero-title .highlight {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
}

.gallery-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: var(--fs-xs);
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.gallery-stat-pill iconify-icon {
  color: var(--primary);
  font-size: 1rem;
}

/* Filter Controls */
.gallery-filter-wrap {
  margin-bottom: 3rem;
  text-align: center;
}

.gallery-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--surface);
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter-btn:hover {
  color: var(--secondary);
  background-color: var(--surface-alt);
}

.gallery-filter-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.filter-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.gallery-filter-btn.active .filter-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Gallery Grid */
.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 860px) {
  .gallery-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1140px) {
  .gallery-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Gallery Card */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-card-inner {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--surface-alt);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.92) 0%, rgba(15,15,15,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-within .gallery-card-overlay {
  opacity: 1;
}

.gallery-category-pill {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.gallery-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition);
  align-self: flex-start;
}

.gallery-zoom-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Facebook Social Banner */
.gallery-social-banner {
  margin-top: 4.5rem;
  background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.gallery-social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-social-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.gallery-social-text {
  flex: 1;
  min-width: 260px;
}

.gallery-social-text h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.gallery-social-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
}

/* ============================================
   INTERACTIVE LIGHTBOX MODAL
============================================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  width: 92vw;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0.25rem;
}

.lightbox-close-btn:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 20;
}

.lightbox-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: -1rem;
}

.lightbox-next {
  right: -1rem;
}

@media (max-width: 767px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

.lightbox-media-wrap {
  width: 100%;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background-color: rgba(0, 0, 0, 0.4);
}

.lightbox-img {
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.25s ease;
}

.lightbox-caption-bar {
  margin-top: 1.25rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.lightbox-caption-info {
  flex: 1;
  min-width: 250px;
}

.lightbox-category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.lightbox-caption-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lightbox-counter {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE MOBILE OPTIMIZATIONS (GALLERY)
============================================= */
@media (max-width: 767px) {
  /* Gallery Hero */
  .gallery-hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .gallery-hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }

  .gallery-hero-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .gallery-stats {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .gallery-stat-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }

  /* Sticky Horizontal Scrolling Filter Bar */
  .gallery-filter-wrap {
    margin-bottom: 1.25rem;
    position: sticky;
    top: 56px;
    z-index: 35;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.55rem 0;
    margin-left: -1rem;
    margin-right: -1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }

  .gallery-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding: 0.15rem 1rem;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .gallery-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .gallery-filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
  }

  /* 2-Column Mobile Gallery Grid */
  .gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .gallery-card {
    border-radius: var(--radius-sm);
  }

  .gallery-card-inner {
    aspect-ratio: 1 / 1;
  }

  .gallery-card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.25) 45%, transparent 70%);
    padding: 0.55rem;
    pointer-events: none;
    justify-content: flex-end;
  }

  .gallery-category-pill {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    margin-bottom: 0;
    font-size: 0.55rem;
    padding: 0.15rem 0.45rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 3;
  }

  .gallery-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }

  .gallery-card-desc,
  .gallery-zoom-btn {
    display: none;
  }

  /* Mobile Full-Screen Lightbox */
  .lightbox-container {
    width: 100vw;
    height: 100dvh;
    max-width: 100%;
    padding: 0.75rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .lightbox-close-btn {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 100;
    width: 42px;
    height: 42px;
    background: rgba(25, 25, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .lightbox-media-wrap {
    flex: 1;
    min-height: 200px;
    max-height: 52dvh;
    margin: 3.25rem 0 0.5rem;
    border-radius: var(--radius-sm);
    background-color: rgba(0, 0, 0, 0.6);
  }

  .lightbox-img {
    max-height: 52dvh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .lightbox-nav-btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.15rem;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-caption-bar {
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    background: rgba(20, 20, 20, 0.9);
    border-radius: var(--radius-md);
  }

  .lightbox-caption-info {
    min-width: 0;
  }

  .lightbox-title {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }

  .lightbox-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lightbox-caption-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .lightbox-counter {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
  }

  .lightbox-caption-actions .btn-whatsapp {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Social Banner on Mobile */
  .gallery-social-banner {
    margin-top: 2.5rem;
    padding: 1.5rem 1.25rem;
  }

  .gallery-social-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .gallery-social-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .gallery-social-text h3 {
    font-size: 1.15rem;
  }

  .gallery-social-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

