/* ============================================================
   APEX NORTH BUILDERS — Home Page Styles
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(8,31,65,0.92) 0%, rgba(8,31,65,0.75) 48%, rgba(8,31,65,0.38) 100%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--section-px) 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: flex-end;
}

/* Hero left */
.hero__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero__eyebrow-bar { width: 32px; height: 1px; background: var(--amber); }
.hero__eyebrow span { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.hero__heading {
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 90px);
  font-weight: 400; line-height: 1.04;
  color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.hero__heading em { font-style: italic; color: var(--amber-light); display: block; }

.hero__tagline { font-family: var(--serif); font-size: clamp(14px,1.4vw,18px); font-style: italic; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.hero__body { font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 480px; margin-bottom: 36px; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Hero right stats */
.hero__right { display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stats-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 32px 28px;
}
.hero__stats-panel-title { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero__stat { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero__stat:last-child { border-bottom: none; }
.hero__stat-num { font-family: var(--serif); font-size: 36px; color: var(--white); line-height: 1; }
.hero__stat-label { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,0.48); text-align: right; max-width: 120px; line-height: 1.4; }

/* Scroll hint */
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.hero__scroll span { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.32); }
.hero__scroll-line { width: 1px; height: 36px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--amber); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -100%; } 100% { top: 100%; } }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--border); margin-top: 52px; }
.service-card {
  background: var(--white); padding: 40px 32px 36px;
  position: relative; overflow: hidden;
  transition: background var(--transition);
  display: flex; flex-direction: column;
  border-bottom: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover { background: var(--warm-white); border-bottom-color: var(--amber); }
.service-card__num { position: absolute; top: 18px; right: 24px; font-family: var(--serif); font-size: 52px; color: rgba(8,31,65,0.04); line-height: 1; font-style: italic; }
.service-card__icon { width: 44px; height: 44px; border: 1.5px solid var(--border-med); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; flex-shrink: 0; }
.service-card__icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--serif); font-size: 21px; color: var(--text-dark); margin-bottom: 10px; }
.service-card p { font-family: var(--sans); font-size: 14px; line-height: 1.72; color: var(--text-body); margin-bottom: 18px; flex: 1; }
.service-card__list li { font-family: var(--sans); font-size: 13px; color: var(--text-body); padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.service-card__list li:last-child { border-bottom: none; }
.service-card__list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); transition: gap var(--transition); }
.service-card__link svg { width: 14px; height: 14px; stroke: var(--navy); fill: none; stroke-width: 2; transition: transform var(--transition); }
.service-card:hover .service-card__link { gap: 12px; }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ── ABOUT STRIP ── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.about-strip__img { position: relative; overflow: hidden; }
.about-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__badge { position: absolute; bottom: 0; right: 0; background: var(--navy); padding: 28px 32px; text-align: center; border-top: 3px solid var(--amber); }
.about-strip__badge-num { font-family: var(--serif); font-size: 56px; color: var(--white); line-height: 1; }
.about-strip__badge-text { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 6px; }
.about-strip__content { background: var(--cream); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.about-strip__content .t-body { margin-top: 20px; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); margin-top: 32px; }
.about-pillar { background: var(--white); padding: 20px 18px; border-left: 3px solid var(--amber); }
.about-pillar__title { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 5px; }
.about-pillar p { font-family: var(--sans); font-size: 13px; color: var(--text-body); line-height: 1.55; }

/* ── PROCESS ── */
.process-section { background: var(--navy); padding: var(--section-py) var(--section-px); }
.process-section .t-h2 { color: var(--white) !important; }
.process-section .t-h2 em { color: var(--amber) !important; }
.process-section .process-header > p { font-family: var(--sans); font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.65); }

.process-steps { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); }
.process-step { padding: 44px 44px 44px 0; border-right: 1px solid rgba(255,255,255,0.07); }
.process-step:not(:first-child) { padding-left: 44px; }
.process-step:last-child { border-right: none; }
.process-step__num { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--amber); opacity: 0.7; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.process-step__num::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--amber); opacity: 0.5; }
.process-step h3 { font-family: var(--serif); font-size: 25px; color: var(--white); margin-bottom: 14px; }
.process-step p { font-family: var(--sans); font-size: 14.5px; line-height: 1.8; color: rgba(255,255,255,0.68); }

/* ── PROJECT TILES ── */
.project-tile { position: relative; overflow: hidden; background: #1a2a3a; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.5s ease; filter: brightness(0.75); }
.project-tile:hover img { transform: scale(1.04); filter: brightness(0.9); }
.project-tile__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,31,65,0.92) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px; }
.project-tile__cat { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); opacity: 0.9; margin-bottom: 5px; }
.project-tile__name { font-family: var(--serif); font-size: 21px; color: var(--white); line-height: 1.2; }
.project-tile--large .project-tile__name { font-size: 28px; }

/* ── CTA Band ── */
.cta-band__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--section-px); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__img { height: 340px; }
  .about-strip__content { padding: 52px var(--section-px); }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 36px 0 !important; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero__heading { font-size: clamp(42px,10vw,68px); }
  .hero__content { padding-bottom: 60px; }
  .about-pillars { grid-template-columns: 1fr; }
  /* Home project grid — stack on mobile */
  .home-projects-grid { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .home-projects-grid > div { grid-row: auto !important; height: 260px !important; }
}
