/* ============================================================
   CALI HOME CONSTRUCTORS — Main Stylesheet
   Font: Playfair Display (headings) + DM Sans (body)
   Palette: Warm cream, deep charcoal, terra cotta accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── E6E3D2 736449*/
:root {
  --cream:       #E6E3D2;
  --cream-dark:  #dcd2bb;
  --charcoal:    #13110f;
  --charcoal-mid:#2E2E2E;
  --charcoal-lt: #4A4A4A;
  --terra:       #9b5744;
  --terra-light: #c87041;
  --terra-dark:  #894a20;
  --sand:        #C9B89A;
  --sand-light:  #C9B89A; 
  --white:       #E0D4C0;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.13);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.18);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:  76px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--charcoal-lt); }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.text-center { text-align: center; }
.accent { color: var(--terra); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--charcoal);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: #2a2419;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: calc(var(--nav-height) * 1.2); height: var(--nav-height);
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; fill: var(--white); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .logo-sub:last-child {
  margin-top: 6px;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1rem;
  color: var(--white); letter-spacing: 0.02em;
}
.logo-sub { font-size: 0.65rem; color: var(--sand); letter-spacing: 0.12em; text-transform: uppercase; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links button {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links button:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--terra-light); }

/* Contact button */
.nav-contact-btn {
  background: var(--terra) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-contact-btn:hover { background: var(--terra-light) !important; transform: translateY(-1px); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; }
.dropdown-toggle::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.6);
  transition: transform var(--transition);
}
.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--charcoal-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: rgba(181,98,42,0.2); color: var(--terra-light) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--charcoal);
  padding: 20px 24px 32px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; }
.mobile-nav a, .mobile-nav button {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1rem; font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  width: 100%;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--terra-light); }
.mobile-nav .mobile-sub { padding-left: 16px; }
.mobile-nav .mobile-sub a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.mobile-contact-btn {
  margin-top: 16px;
  background: var(--terra) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 0 !important;
  text-align: center !important;
  border: none !important;
  width: 100% !important;
  font-weight: 600 !important;
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  width: 100vw;
  height: 92vh;
  min-height: 540px;
  max-height: 900px;
  margin-top: var(--nav-height);
  overflow: hidden;
}
.carousel-track {
  display: flex;
  height: 100%;
  flex-wrap: nowrap;
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1);
  width: 100%;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

/* Gradient overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,28,28,0.82) 0%,
    rgba(28,28,28,0.55) 50%,
    rgba(28,28,28,0.1) 100%
  );
}

/* Hero text */
.hero-text {
  position: absolute;
  top: 50%; left: 8%;
  transform: translateY(-50%);
  max-width: 580px;
  max-height: 80%;
  color: var(--white);
  overflow: hidden;
  z-index: 2;
}
.hero-text .hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-text .hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--terra-light);
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 440px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terra);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(181,98,42,0.35);
}
.btn-primary:hover {
  background: var(--terra-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181,98,42,0.4);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--terra);
  border: 2px solid var(--terra);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: var(--white);
}
.carousel-btn:hover { background: rgba(181,98,42,0.6); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }
.carousel-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.dot.active { background: var(--terra-light); transform: scale(1.4); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(181,98,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.why-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -40px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(181,98,42,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.why-section h2 { color: var(--white); margin-bottom: 20px; }
.why-section > .container > p { color: rgba(255,255,255,0.65); max-width: 640px; margin: 0 auto 64px; font-size: 1.05rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.why-card {
  background: rgba(128, 75, 19, 0.213);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: left;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  background: rgba(181, 98, 42, 0.322);
  border-color: rgba(181,98,42,0.3);
  transform: translateY(-4px);
}
.why-icon {
  width: 52px; height: 52px;
  background: rgba(181,98,42,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-icon svg { width: 26px; height: 26px; stroke: var(--terra-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.15rem; }
.why-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   ALTERNATING FEATURE SECTIONS
   ============================================================ */
.features-wrapper { background: var(--cream); }
.feature-section { padding: 80px 0; }
.feature-section:nth-child(even) { background: var(--cream-dark); }
.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-inner.reversed .feature-img { order: -1; }

.feature-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-img img {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.feature-img:hover img { transform: scale(1.04); }
.feature-img-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-text .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.feature-text .eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--terra);
}
.feature-text h2 { margin-bottom: 20px; color: var(--charcoal); }
.feature-text p { margin-bottom: 32px; font-size: 1rem; }
.feature-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--charcoal-lt);
}
.feature-list li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5622A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================================
   SERVICES CAROUSEL SECTION
   ============================================================ */
.services-section {
  background: var(--charcoal);
  padding: 96px 0;
  overflow: hidden;
}
.services-section .section-header { text-align: center; margin-bottom: 56px; }
.services-section .section-header h2 { color: var(--white); margin-bottom: 12px; }
.services-section .section-header p { color: rgba(255,255,255,0.55); max-width: 500px; margin: 0 auto; }

.services-carousel-wrap { position: relative; }
.services-viewport { overflow: hidden; padding: 0; }
.services-track {
  display: flex;
  gap: 24px;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.service-card {
  flex: 0 0 calc(33.333% - 16px);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 440px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.95) 0%, rgba(28,28,28,0.4) 50%, rgba(28,28,28,0.05) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.service-card-overlay h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.service-card-overlay p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.5; }
.btn-see-more {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--terra);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: flex-start;
  transition: background var(--transition), transform var(--transition);
}
.btn-see-more:hover { background: var(--terra-light); transform: translateX(3px); }
.btn-see-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.services-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 40px;
}
.svc-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}
.svc-btn:hover { background: var(--terra); border-color: var(--terra); }
.svc-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-dots { display: flex; gap: 8px; }
.svc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.svc-dot.active { background: var(--terra-light); transform: scale(1.4); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #111111;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; margin-bottom: 28px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--terra); color: var(--white); transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--terra-light); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--terra); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--terra-light); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%; max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--cream-dark); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--charcoal); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.modal h3 { font-size: 1.6rem; margin-bottom: 6px; color: var(--charcoal); }
.modal .modal-sub { font-size: 0.9rem; color: var(--charcoal-lt); margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.04em; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(181,98,42,0.12);
}
.form-group textarea { min-height: 120px; }
.modal .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   SERVICE PAGE — HERO TEXT SECTION
   ============================================================ */
.service-intro {
  background: var(--cream);
  padding: 80px 0;
  border-bottom: 1px solid var(--sand-light);
}
.service-intro-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.service-intro h2 { margin-bottom: 20px; }
.service-intro p { font-size: 1.05rem; color: var(--charcoal-lt); }

/* ============================================================
   SERVICE PAGE — IMAGE GALLERY
   ============================================================ */
.gallery-section { background: var(--cream-dark); padding: 96px 0; }
.gallery-section .section-header { text-align: center; margin-bottom: 48px; }
.gallery-section .section-header h2 { margin-bottom: 10px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:nth-child(4) img { height: 280px; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(28,28,28,0.0);
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { background: rgba(28,28,28,0.35); }
.gallery-overlay svg {
  width: 44px; height: 44px;
  stroke: var(--white); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-overlay svg { opacity: 1; transform: scale(1); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { gap: 40px; }
  .service-card {
    flex: 0 0 calc(50% - 24px);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  nav .logo-text {
    display: none;
  }

  nav .logo-mark {
    width: var(--nav-height);
    height: var(--nav-height);
  }

  nav .nav-logo {
    gap: 0;
  }

  .hero-carousel { height: 100vh; min-height: 480px; }
  .hero-text { left: 5%; right: 5%; max-width: 100%; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 0.92rem; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: 12px; }
  .carousel-btn.next { right: 12px; }

  .why-grid { grid-template-columns: 1fr; }

  .feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-inner.reversed .feature-img { order: 0; }
  .feature-img img { height: 280px; }

  .service-card { min-width: calc(100% - 0px); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(4) { grid-column: span 1; }

  .modal { padding: 36px 24px; }

  .section-pad { padding: 64px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
}

/* ============================================================
   SERVICE PAGE SPECIFIC — Feature badges
   ============================================================ */
.service-features { background: var(--cream); }
.service-features .feature-inner { padding: 80px 0; }

/* Stats bar */
.stats-bar {
  background: var(--terra);
  padding: 40px 0;
  color: var(--white);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}