/* ================================================
   LEEMI CLEANING SERVICES — Custom Stylesheet
   Design: Scandinavian Clean
   Palette: Fresh Teal / Mint (#1B8A75)
   Fonts: DM Serif Display + DM Sans
   ================================================ */

/* ---- CSS Variables (set by JS from theme) ---- */
:root {
  --primary: #1B8A75;
  --primary-dark: #156B5C;
  --primary-light: #E8F7F4;
  --secondary: #0D2B28;
  --accent: #4ECABD;
  --light: #F2FAF8;
  --text: #1A2B28;
  --text-light: #6B8B87;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; } /* JS handles smooth scroll */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   LABEL TAG (section eyebrow labels)
   ================================================ */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
}
.label-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.label-light { color: var(--accent); }
.label-light::before { background: var(--accent); }

/* ================================================
   NAVIGATION
   ================================================ */
#nav_1 {
  --nav-text: var(--secondary);
}
#nav_1.nav-transparent {
  background: transparent;
}
#nav_1.nav-solid {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Logo text colors */
.nav-logo-text {
  color: var(--secondary);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.nav-logo-tagline {
  color: var(--text-light);
  transition: color 0.3s ease;
}
#nav_1.nav-transparent .nav-logo-text { color: var(--secondary); }
#nav_1.nav-transparent .nav-logo-tagline { color: var(--text-light); }

/* Nav links */
#nav-links li a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}
#nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
#nav-links li a:hover,
#nav-links li a.active { color: var(--primary); }
#nav-links li a:hover::after,
#nav-links li a.active::after { width: 100%; }

/* Hamburger open state */
#mobile-menu-btn .ham-bar { background: var(--secondary); }
#mobile-menu-btn.open .ham-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mobile-menu-btn.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
#mobile-menu-btn.open .ham-bar:nth-child(3) { width: 24px; transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav links */
#mobile-nav-links li a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s ease;
}
#mobile-nav-links li:last-child a { border-bottom: none; }
#mobile-nav-links li a:hover { color: var(--primary); }

/* ================================================
   HERO SECTION
   ================================================ */
.hero-stat {
  padding-left: 24px;
  position: relative;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: rgba(13, 43, 40, 0.12);
}
.hero-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--secondary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.4;
  max-width: 100px;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.dots-bg {
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--light);
  border: 1px solid rgba(27,138,117,0.1);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: default;
}
.about-highlight:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}
.about-highlight-check {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================================================
   SERVICES SECTION (Zigzag)
   ================================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(27,138,117,0.07);
}
.service-row:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row-image { order: -1 !important; }
}

.service-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-row:hover .service-image-wrap img { transform: scale(1.04); }

.service-content {
  padding: 52px 56px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-row:nth-child(even) .service-content { background: var(--light); }

@media (max-width: 1024px) {
  .service-content { padding: 40px 36px; }
}
@media (max-width: 768px) {
  .service-content { padding: 32px 24px; }
}

.service-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 4px;
  user-select: none;
}
.service-icon-wrap {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 10px;
}
.service-desc {
  color: var(--text-light);
  line-height: 1.75;
  font-size: 0.9rem;
}

/* ================================================
   PRICING SECTION
   ================================================ */
.pricing-card {
  background: var(--light);
  border: 1px solid rgba(27, 138, 117, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(13, 43, 40, 0.1);
  transform: translateY(-4px);
}
.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(27, 138, 117, 0.08);
  background: white;
}
.pricing-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pricing-cat-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--secondary);
  line-height: 1.2;
}
.pricing-cat-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
  font-style: italic;
}
.pricing-items-list {
  list-style: none;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 138, 117, 0.06);
}
.pricing-item:last-child { border-bottom: none; }
.pricing-item-name {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}
.pricing-item-price-wrap {
  text-align: right;
  flex-shrink: 0;
}
.pricing-item-price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.pricing-item-unit {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Notes strip */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery-masonry {
  columns: 2;
  column-gap: 14px;
}
@media (min-width: 768px) {
  .gallery-masonry { columns: 3; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,40,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Featured gallery item — spans full width, taller */
.gallery-featured {
  column-span: all;
  border-radius: 18px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(27, 138, 117, 0.12), 0 12px 40px rgba(13, 43, 40, 0.18);
}
.gallery-featured img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}
.gallery-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.gallery-featured-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* ================================================
   FEATURES SECTION (Dark)
   ================================================ */
.feature-card {
  padding: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  transition: all 0.35s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(78,202,189,0.25);
  transform: translateY(-5px);
}
.feature-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(27,138,117,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 8px;
}
.feature-desc {
  color: rgba(255,255,255,0.48);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ================================================
   PROCESS SECTION
   ================================================ */
.process-step { position: relative; text-align: center; }

/* Dashed connecting line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% + 42px);
  width: calc(100% - 84px);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--primary) 0, var(--primary) 6px,
    transparent 6px, transparent 14px
  );
  opacity: 0.3;
}
@media (max-width: 1024px) {
  .process-step:not(:last-child)::after { display: none; }
}

.process-circle {
  width: 76px;
  height: 76px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: all 0.4s ease;
}
.process-step:hover .process-circle {
  background: var(--primary);
}
.process-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  transition: color 0.4s ease;
}
.process-step:hover .process-num { color: white; }
.process-mini-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 26px;
  height: 26px;
  background: white;
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 8px;
}
.process-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 190px;
  margin: 0 auto;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem;
}
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(27,138,117,0.1);
}
.form-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* ================================================
   FOOTER
   ================================================ */
#footer-links li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.25s ease;
}
#footer-links li a:hover { color: white; }

/* ================================================
   SCROLL TO TOP BUTTON
   ================================================ */
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ================================================ */

/* Base: hidden state */
.sa {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.sa.sa-fade-up   { opacity: 0; transform: translateY(36px); }
.sa.sa-slide-left  { opacity: 0; transform: translateX(-55px); }
.sa.sa-slide-right { opacity: 0; transform: translateX(55px); }

/* Visible state — triggered by IntersectionObserver */
.sa.sa-visible { opacity: 1; transform: none; }

/* ================================================
   PREFERS-REDUCED-MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .service-image-wrap img,
  .gallery-item img { transition: none !important; }
}
