/* ============================================
   home.css — styles specific to index.html
   ============================================ */

.hero{
  position: relative;
  padding: 64px 0 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,20,18,.88) 0%, rgba(10,20,18,.72) 40%, rgba(10,20,18,.45) 100%);
  z-index: -1;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy h1{
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 18px;
  color: var(--white);
}
.hero-copy .eyebrow{ color: var(--gold-light); }
.hero-copy h1 em{ color: var(--gold-light); font-style: normal; }
.hero-sub{ font-size: 17px; max-width: 480px; color: rgba(255,255,255,.85); }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 14px; }
.hero-note{ font-size: 13px; color: var(--grey); margin: 0; }
.hero-copy .hero-note{ color: rgba(255,255,255,.7); }

.hero-media{ position: relative; }

.hero-badge{
  display: inline-flex;
  flex-direction: column;
  background: var(--forest);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.hero-badge strong{ display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold-light); }
.hero-badge span{ font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; }

.hero-form-card{
  position: relative;
  background: linear-gradient(160deg, var(--terracotta) 0%, #0a4a46 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}
.hero-form-card .eyebrow{ color: var(--gold-light); }
.hero-form-card h3{ color: var(--white); font-size: 26px; margin: 6px 0 6px; }
.hero-form-card > p{ color: rgba(255,255,255,.8); margin-bottom: 20px; }
.hero-form-card .hero-note{ color: rgba(255,255,255,.7); text-align: center; margin-top: 14px; }
.hero-form-card .form-success{
  display: none;
  margin: 10px 0 0;
  font-size: 13px;
  color: #c9f2d8;
}
.hero-form-card .form-success.show{ display: block; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Services ---------- */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-photo{ position: relative; overflow: hidden; }
.service-photo img{ height: 190px; object-fit: cover; width: 100%; display: block; transition: transform .45s ease; }
.service-card:hover .service-photo img{ transform: scale(1.07); }
.photo-actions{
  display: flex; gap: 10px;
  margin-top: 16px;
}
.pill-btn{
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pill-btn:hover{ transform: translateY(-2px); filter: brightness(1.05); }
.pill-chat{ background: #25D366; color: #fff; }
.pill-call{ background: var(--terracotta); color: #fff; }
.service-body{ padding: 22px 22px 26px; }
.service-body h3{ font-size: 20px; margin-bottom: 10px; }
.chip-row{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-row span{
  font-size: 11px; font-weight: 700;
  background: var(--forest-pale); color: var(--forest);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Auto-changing gallery ---------- */
.auto-gallery{
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.auto-gallery figure{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: gallery-fade 18s infinite;
}
.auto-gallery figure img{ width: 100%; height: 100%; object-fit: cover; }
.auto-gallery figure:nth-child(1){ animation-delay: 0s; }
.auto-gallery figure:nth-child(2){ animation-delay: 3s; }
.auto-gallery figure:nth-child(3){ animation-delay: 6s; }
.auto-gallery figure:nth-child(4){ animation-delay: 9s; }
.auto-gallery figure:nth-child(5){ animation-delay: 12s; }
.auto-gallery figure:nth-child(6){ animation-delay: 15s; }
@keyframes gallery-fade{
  0%{ opacity: 0; }
  3%{ opacity: 1; }
  15%{ opacity: 1; }
  19%{ opacity: 0; }
  100%{ opacity: 0; }
}
@media (max-width: 700px){ .auto-gallery{ height: 300px; } }

/* ---------- Book Free Demo modal ---------- */
.demo-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 25, 45, .6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demo-modal-overlay.open{ display: flex; }
.demo-modal{
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--terracotta) 0%, #0a4a46 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}
.demo-modal .eyebrow{ color: var(--gold-light); }
.demo-modal h3{ color: var(--white); font-size: 26px; margin-bottom: 6px; }
.demo-modal > p{ color: rgba(255,255,255,.8); margin-bottom: 20px; }
.demo-modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}
.demo-modal-close:hover{ background: rgba(255,255,255,.3); }
.demo-form{ display: flex; flex-direction: column; gap: 14px; }
.demo-form .field{ position: relative; }
.demo-form input,
.demo-form textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
}
.demo-form .field.invalid input,
.demo-form .field.invalid textarea{ outline: 2px solid #e0664f; }
.demo-form .error-msg{ display: block; font-size: 12px; color: #ffd7cf; margin-top: 4px; min-height: 14px; }
.demo-submit-btn{ width: 100%; justify-content: center; }
.demo-modal .hero-note{ color: rgba(255,255,255,.7); text-align: center; margin-top: 14px; }
.demo-modal .form-success{
  display: none;
  margin: 10px 0 0;
  font-size: 13px;
  color: #c9f2d8;
}
.demo-modal .form-success.show{ display: block; }

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

/* ---------- Why strip ---------- */
.why-strip{ background: var(--cream-dark); }
.why-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.why-cards{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card{
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 44px 22px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s ease, transform .3s ease;
}
.why-card:hover{ box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.why-card span{ font-family: var(--font-display); font-size: 22px; color: var(--gold); font-weight: 700; }
.why-card h4{ margin: 8px 0 6px; font-size: 16px; }
.why-card p{ font-size: 13px; margin: 0; }

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

/* ---------- Locations ---------- */
.map-wrap{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.map-wrap iframe{ width: 100%; height: 380px; border: 0; display: block; }

/* ---------- CTA strip ---------- */
.cta-strip{ background: var(--forest); padding: 60px 0; }
.cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2{ color: var(--white); margin-bottom: 6px; font-size: clamp(24px,3vw,32px); }
.cta-inner p{ color: rgba(255,255,255,.75); margin: 0; }
