/*
 * sections-home.css - Home-only blocks moved from sections.css for smaller CSS on inner pages.
 * Blog cards, home contact strip, hero-section--new, home services grid shell, home areas grid.
 * Load after sections-surface.css; on the homepage defer with sections.css (see home.php).
 */

/* ===== Blog cards (home only; blog index uses blog-index.css) ===== */
.home-blog-section {
  background: linear-gradient(180deg, var(--light) 0%, var(--surface) 100%);
}

.home-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-main, #ffffff);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.home-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.home-blog-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--surface-light-alt);
}

.home-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-blog-card__img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, var(--surface-light-alt) 0%, var(--border) 100%);
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem;
}

.home-blog-card__img-fallback svg {
  width: 28px;
  height: 28px;
}

.home-blog-card__img-fallback-text {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.home-blog-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
}

.home-blog-card__icon svg {
  width: 18px;
  height: 18px;
}

.home-blog-card__date {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-blog-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.home-blog-card__excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.home-blog-card__footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

/* ===== Home Contact Modern ===== */
.home-contact-modern {
  background: linear-gradient(180deg, var(--light) 0%, var(--surface) 100%);
}

.home-contact-modern__info {
  background: linear-gradient(160deg, var(--surface-dark-soft) 0%, var(--surface-dark) 100%);
  color: #fff;
  border: 1px solid var(--border-on-dark-soft);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.home-contact-modern__info-title {
  color: #fff !important;
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.home-contact-modern__info-text {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
}

.home-contact-modern__feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-contact-modern__feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-on-dark-soft);
  background: rgba(255, 255, 255, 0.06);
}

.home-contact-modern__feature-item strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}

.home-contact-modern__feature-item p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.home-contact-modern__feature-item p.home-contact-modern__reply-timing {
  color: rgba(255, 255, 255, 0.92);
}

.home-contact-modern__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}

.home-contact-modern__feature-icon svg {
  display: block;
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}

.home-contact-modern__form-wrap { height: 100%; }

.home-contact-modern__form {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.home-contact-modern__textarea {
  resize: vertical;
  min-height: 140px;
}

.home-contact-modern__honeypot { display: none; }

@media (max-width: 991px) {
  .home-contact-modern__info { margin-bottom: 0.5rem; }
}

/* ===== New hero (redesign) - distinct full-bleed, centered ===== */
.hero-section--new {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(560px, 70svh, 780px);
  overflow: hidden;
}
.hero-section--new .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-section--new .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-card);
  z-index: 1;
}
.hero-section--new .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: var(--space-8, 2rem) var(--space-4, 1rem);
  text-align: center;
}

/* Home with header over hero: start hero content below the nav (uses same var as header min-height) */
.page-home .hero-section--new .hero-inner {
  padding-top: max(var(--header-min-height, 7rem), var(--space-8, 2rem));
}
.page-home .hero-section:not(.hero-section--new) .hero-inner {
  padding-top: max(var(--header-min-height, 7rem), 3rem);
}

@media (max-width: 767px) {
  .hero-section--new .hero-inner {
    padding-top: 8.5rem; /* extra top spacing on mobile so hero title clears the header */
  }
  .page-home .hero-section--new .hero-inner {
    padding-top: max(8.5rem, var(--header-min-height, 72px));
  }
}
.hero-section--new .hero-title {
  font-size: var(--heading-1);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
  line-height: var(--line-height-tight);
  text-shadow: var(--shadow-text);
  letter-spacing: 0.02em;
}
.hero-section--new .hero-divider {
  width: 80px;
  height: 4px;
  margin: 0 auto var(--space-5);
  background: var(--primary);
  border-radius: 2px;
}
.hero-section--new .hero-subtitle {
  font-size: var(--text-lg);
  line-height: var(--line-height-body);
  color: var(--text-on-dark-strong);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}
.hero-section--new .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero-section--new .hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  color: var(--text-on-dark-90);
  font-size: var(--text-sm);
}
.hero-section--new .hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-section--new .hero-trust-sep {
  width: 4px;
  height: 4px;
  background: var(--text-on-dark-faint);
  border-radius: 50%;
}
.hero-section--new .hero-trust-value { font-weight: 700; color: var(--color-text-primary); }
.hero-section--new .hero-trust-svg { width: 1rem; height: 1rem; fill: currentColor; }
.hero-section--new .btn { transition: transform 0.2s ease, opacity 0.2s ease; }
.hero-section--new .btn:hover { transform: translateY(-2px); }
/* Ensure outline button on dark hero meets contrast (Lighthouse) */
.hero-section--new .btn-outline-light {
  color: var(--text-on-dark) !important;
  border-color: var(--border-on-dark-90) !important;
}
.hero-section--new .btn-outline-light:hover {
  color: var(--text-on-light) !important;
  background: var(--surface) !important;
  border-color: var(--surface) !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero-section--new .btn:hover { transform: none; }
}

/* ===== Home services (showcase grid) ===== */
.home-services-new {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.home-services-new__intro {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto var(--space-8);
}
.home-services-new__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 var(--space-4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.home-services-new__eyebrow-square {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--primary);
  opacity: 0.85;
  transform: rotate(45deg);
}
.home-services-new__eyebrow-text {
  max-width: 28rem;
  line-height: 1.35;
}
.home-services-new__title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
}
.home-services-new__subtitle {
  margin: var(--space-4) 0 0;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  opacity: 0.95;
}
.home-services-new__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.8vw, 1.85rem);
  padding: 0;
  margin: 0 0 var(--space-8);
  list-style: none;
}

.home-services-new__grid > * {
  min-width: 0;
}
.home-services-new__cta {
  margin-top: var(--space-2);
  text-align: center;
}
@media (max-width: 991px) {
  .home-services-new__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .home-services-new__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Home areas (showcase cards) ===== */
.home-areas-new {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.home-areas-new__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-8);
}
.home-areas-new__title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
}
.home-areas-new__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  justify-content: center;
  margin: 0 auto var(--space-8);
  max-width: 900px;
}
.home-areas-new__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: var(--space-5) var(--space-4);
  background: color-mix(in srgb, var(--green-900) 40%, var(--surface-dark-soft));
  border: 1px solid var(--border-on-dark-18);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--color-text-primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}
.home-areas-new__card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}
.home-areas-new__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.home-areas-new__card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--space-3);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border: 1px solid var(--border-on-dark-18);
  transform: rotate(45deg);
  border-radius: 6px;
  color: var(--malachite, var(--primary));
}
.home-areas-new__card-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  transform: rotate(-45deg);
  fill: currentColor;
  stroke: currentColor;
}
.home-areas-new__card-label {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.home-areas-new__cta {
  text-align: center;
}
