/* ============================================================
   DESERT SAGE DRAFTING — Home Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(540px, 76vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  padding-top: 76px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-home.png') center/cover no-repeat;
  opacity: 0.72;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }

/* Subtle grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* Clean, crisp edge where the dark hero meets the cream section below. */
.hero::after { content: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Frosted light panel behind the hero text & buttons ── */
.hero-card {
  max-width: 640px;
  background: rgba(250, 248, 244, 0.30);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 24px 70px rgba(42, 42, 40, 0.28);
}
/* Dark text so it reads on the light card (extra .hero raises specificity
   above the default light hero text rules defined later in this file). */
.hero .hero-card .hero-eyebrow { color: var(--sage-dark); }
.hero .hero-card .hero-eyebrow::before { background: var(--sand-dark); }
.hero .hero-card h1 { color: var(--charcoal); }
.hero .hero-card h1 em { color: var(--terracotta); }
.hero .hero-card .hero-sub { color: var(--charcoal-mid); }
/* Add-on banner on the light card */
.hero .hero-card .hero-banner {
  background: var(--sage-mist);
  border-color: var(--sage-light);
  color: var(--charcoal-mid);
}
.hero .hero-card .hero-banner strong { color: var(--terracotta); }
.hero .hero-card .hero-banner svg { color: var(--sage-dark); }

@media (max-width: 640px) {
  .hero-card { padding: 1.75rem 1.5rem; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sand);
}

.hero h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--sand-light);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 0.6rem 1rem;
  background: rgba(196, 168, 130, 0.15);
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--sand-light);
  letter-spacing: 0.04em;
}
.hero-banner strong { color: var(--sand); font-weight: 600; }
.hero-banner svg { width: 14px; height: 14px; color: var(--sand); flex-shrink: 0; }

/* ── Services Overview ── */
.services-strip { padding: 5rem 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.11);
  border-color: var(--sage-light);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card-img { transform: scale(1.04); }

.service-card-img-wrap { overflow: hidden; }

.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-card-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.service-card-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--trans);
}
.service-card-links a:hover { color: var(--sage-dark); }
.service-card-links a svg { width: 12px; height: 12px; }

/* Featured badge on card */
.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

/* ── Differentiator Banner ── */
.diff-banner {
  background: var(--sage);
  padding: 2.5rem 0;
}
.diff-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.diff-banner-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.diff-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff-banner-icon svg { width: 22px; height: 22px; color: white; }
.diff-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  font-weight: 400;
}
.diff-banner p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.diff-banner .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.diff-banner .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

/* ── Why Us ── */
.why-section { padding: 6rem 0; background: var(--cream-dark); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--trans);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--sage-light);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--sage-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.why-icon svg { width: 26px; height: 26px; color: var(--sage); }

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.why-card p { font-size: 0.88rem; color: var(--charcoal-light); }

/* ── Process Steps ── */
.process-section { padding: 6rem 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: var(--border);
}

.process-step { text-align: center; padding: 0 1rem; }

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-dark);
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.process-step p { font-size: 0.82rem; color: var(--charcoal-light); }

/* ── Team Preview ── */
.team-section { padding: 6rem 0; background: var(--cream-dark); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--sage-mist);
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.team-card .role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.85rem;
  display: block;
}
.team-card p { font-size: 0.87rem; color: var(--charcoal-light); }

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 0; background: var(--charcoal); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.stars svg { width: 16px; height: 16px; color: var(--sand); fill: var(--sand); }

.testimonial-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sand-light);
  text-transform: uppercase;
}
.testimonial-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
}

/* ── CTA Strip ── */
.cta-strip {
  padding: 6rem 0;
  background: var(--sage-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-strip h2 { color: white; margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 2.5rem; }
.cta-strip-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-strip .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cta-strip .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .team-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid, .team-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .diff-banner-inner { flex-direction: column; align-items: flex-start; }
  /* Keep the eyebrow on one tidy line on small screens */
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.12em; gap: 0; }
  .hero-eyebrow::before { display: none; }
}
