/* ============================================================
   MAM Homes — Homepage Styles
   ============================================================ */

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
  /* Stronger grid lines + radial fade so the grid glows where the photo
     shows through and dissolves into the dark edges */
  background-image:
    linear-gradient(rgba(13, 113, 186, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 113, 186, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 95% 85% at 63% 42%,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.2) 58%,
    transparent     80%
  );
  mask-image: radial-gradient(
    ellipse 95% 85% at 63% 42%,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.2) 58%,
    transparent     80%
  );
}
.hero-accent {
  position: absolute;
  right: 0; top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(13,113,186,0.12) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-overline { margin-bottom: 20px; display: block; }
.hero-title {
  color: white;
  margin-bottom: 28px;
}
.hero-line {
  display: block;
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }
.hero-line:nth-child(3) { animation-delay: 0.7s; }
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
.hero-desc {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  animation: fadeInUp 0.8s 0.9s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeInUp 0.8s 1.1s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.hero-accreditations {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeInUp 0.8s 1.3s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.acc-badge {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 11px;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero visual (stat cards) ───────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 420px;
}

/* ── Hero Photo Background ──────────────────────────────────── */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background: url('../Assets/Imgs/crane-construction-site.jpg') center 35% / cover no-repeat;
  z-index: 0;
}

/* Multi-layer overlay:
   – left side is deep dark so text stays crisp
   – middle-right opens up to reveal the photo
   – bottom fade grounds the section into the page */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10, 12, 15, 0.94) 0%,
      rgba(10, 12, 15, 0.80) 35%,
      rgba(10, 12, 15, 0.52) 62%,
      rgba(10, 12, 15, 0.64) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 12, 15, 0.60) 0%,
      transparent 38%
    );
  z-index: 0;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(13,113,186,0.8), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Stats Band ────────────────────────────────────────────── */
.stats-band {
  background: var(--crimson);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ─── Services ──────────────────────────────────────────────── */
.services-section { background: var(--light-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: white;
  padding: 40px 36px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--crimson);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--crimson-faint);
  border: 1px solid rgba(13,113,186,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
}
.service-title {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-tags span {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--light);
  color: var(--mid);
  padding: 4px 10px;
}
.service-card-cta {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-cta-text {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.service-cta-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  line-height: 1.1;
}
.service-card-cta::before { display: none; }

/* ─── Featured Projects ─────────────────────────────────────── */
.featured-section { position: relative; }
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
/* Slightly shorter image on the 3-column homepage grid */
.featured-section .work-card-img { height: 240px; }

/* ─── Why Section ───────────────────────────────────────────── */
.why-section { background: white; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.why-left h2 { margin-top: 12px; }
.why-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.why-item:first-child { border-top: 1px solid var(--border); }
.why-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--crimson);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.why-content h4 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.why-content p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ─── CTA Band ──────────────────────────────────────────────── */
/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-content   { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(even) { border-right: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .featured-header { flex-direction: column; align-items: flex-start; }
}
