/* ============================================================
   HOME.CSS
   ============================================================ */

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,46,26,0.18) 0%,
    rgba(26,46,26,0.32) 40%,
    rgba(26,46,26,0.62) 100%
  );
  z-index: 1;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 820px;
  padding: 0 24px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.13;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.56s forwards;
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.82s forwards;
}

.hero__actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 1.05s forwards;
}

.hero__secondary-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}
.hero__secondary-link:hover { color: #fff; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── About Teaser ─── */
.about-teaser {
  padding: 110px 0;
}

.about-teaser .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-teaser__image {
  position: relative;
}
.about-teaser__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: block;
}
.about-teaser__image::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  right: 20px; bottom: 20px;
  border: 2px solid var(--sage);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.35;
}

.about-teaser__text h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  color: var(--green-deep);
  margin-bottom: 20px;
  line-height: 1.25;
}
.about-teaser__text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-teaser__text .btn { margin-top: 12px; }

/* ─── Services Preview ─── */
.services-preview {
  background: var(--parchment);
  padding: 110px 0;
}

.services-preview__header {
  text-align: center;
  margin-bottom: 60px;
}
.services-preview__header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--green-deep);
  margin-bottom: 12px;
}
.services-preview__header p {
  color: var(--text-mid);
  max-width: 460px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
  border-left: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 44px rgba(26,46,26,0.16);
  border-left-color: var(--terracotta);
}

.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.service-card__body {
  padding: 24px 20px;
}
.service-card__icon {
  width: 30px; height: 30px;
  fill: var(--sage);
  margin-bottom: 12px;
}
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.service-card__body p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.68;
  margin-bottom: 16px;
}
.service-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.service-card__link:hover { color: #a84e24; }

/* ─── Projects Teaser ─── */
.projects-teaser {
  background: var(--green-deep);
  padding: 110px 0;
}

.projects-teaser__header {
  text-align: center;
  margin-bottom: 56px;
}
.projects-teaser__header .section-tag { color: var(--sage); }
.projects-teaser__header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
}

.projects-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}
.project-thumb:hover img { transform: scale(1.06); }

.project-thumb__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(to top, rgba(26,46,26,0.88), transparent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.projects-teaser__footer { text-align: center; }

/* ─── Reviews ─── */
.reviews {
  background: var(--cream);
  padding: 110px 0;
}
.reviews__header {
  text-align: center;
  margin-bottom: 58px;
}
.reviews__header h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  color: var(--green-deep);
  margin-bottom: 6px;
}
.reviews__google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 10px;
}
.reviews__google-badge svg { width: 20px; height: 20px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.review-card {
  background: #fff;
  padding: 18px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--sage);
  /* reset <a> defaults */
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,46,26,0.14);
}
.review-card__stars {
  color: #f4b500;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.review-card__text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
  font-style: italic;
  flex: 1;
}
.review-card__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(26,46,26,0.07);
}
.review-card__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.review-card__author {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green-deep);
  line-height: 1.3;
}
.review-card__location {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Summary line */
.reviews__summary {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.reviews__overall-stars { color: #f4b500; letter-spacing: 1px; }
.reviews__total { color: var(--text-light); }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-teaser .container { grid-template-columns: 1fr; gap: 40px; }
  .about-teaser__image::before { display: none; }
  .about-teaser__img { height: 300px; }

  .services-grid          { grid-template-columns: 1fr; }
  .projects-teaser-grid   { grid-template-columns: 1fr; }
  .reviews-grid           { grid-template-columns: 1fr; }
}
