/* ============================================
   HOME PAGE — Sections & Overrides
   Only loaded on the home page (home.njk)
   Shared design system lives in style.css
   ============================================ */

/* Home page overrides */
.home-page main.container { max-width: none; padding: 0; }

/* Home navbar starts transparent, becomes solid on scroll */
.home-page .nav-float {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-color: transparent; box-shadow: none;
}
.home-page .nav-float.scrolled {
  background: rgba(13, 13, 18, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: rgba(201, 168, 76, 0.15); box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ─── HERO ─── */
.hero-cinematic {
  position: relative; min-height: 100dvh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--obsidian) 0%, rgba(13,13,18,0.7) 40%, rgba(13,13,18,0.3) 70%, rgba(13,13,18,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 5vw 8vh;
  max-width: 900px;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500;
  color: var(--champagne); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.5rem; opacity: 0;
}
.hero-title-line1 {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ivory); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 0.25rem; opacity: 0;
}
.hero-title-line2 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem); color: var(--ivory); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 2rem; opacity: 0;
}
.hero-title-line2 em { color: var(--champagne); font-style: italic; }
.hero-cta {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
  background: var(--champagne); color: var(--obsidian); padding: 0.9rem 2.5rem;
  border-radius: 100px; text-decoration: none; letter-spacing: 0.03em;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  opacity: 0;
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
  color: var(--obsidian);
}

/* ─── SECTION COMMON ─── */
.section-dark { background: var(--obsidian); padding: 6rem 5vw; text-align: center; }
.section-dark .services-grid,
.section-dark .portfolio-grid,
.section-dark .matterport-section,
.section-dark .quote-section { text-align: left; }
.section-slate { background: var(--slate); padding: 6rem 5vw; border-radius: var(--radius); margin: 2rem 1rem; }

.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--champagne); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: var(--ivory);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-subtitle {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 1.05rem; color: var(--ivory-dim); max-width: 600px;
  line-height: 1.6; margin-bottom: 3rem; margin-left: auto; margin-right: auto;
}

/* ─── SERVICES / FEATURES ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin-left: auto; margin-right: auto;
  align-items: start;
}
.service-card { display: flex; flex-direction: column; }
.service-card {
  background: rgba(42, 42, 53, 0.5); border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius); padding: 2.5rem 2rem; position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.service-img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 1.5rem;
}
.service-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-card h3 {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.2rem;
  color: var(--ivory); margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.service-card p {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.9rem;
  color: var(--ivory-dim); line-height: 1.7;
}
.service-card .service-mono {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--champagne);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.25rem; display: block;
}

/* ─── HOME PORTFOLIO GRID (larger cards) ─── */
.home-page .portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

.portfolio-view-all {
  display: inline-block; font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.9rem; color: var(--champagne); text-decoration: none;
  margin-top: 2.5rem; letter-spacing: 0.03em;
  transition: transform 0.25s ease;
}
.portfolio-view-all:hover { transform: translateX(4px); }

/* ─── PHILOSOPHY / MANIFESTO ─── */
.philosophy-section {
  position: relative; padding: 8rem 5vw; overflow: hidden;
  background: var(--slate); border-radius: var(--radius); margin: 2rem 1rem;
}
.philosophy-bg {
  position: absolute; inset: 0; opacity: 0.08;
}
.philosophy-bg img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-content { position: relative; z-index: 2; max-width: 900px; }
.philosophy-small {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1.1rem;
  color: var(--ivory-muted); line-height: 1.6; margin-bottom: 2rem;
}
.philosophy-big {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem); color: var(--ivory); line-height: 1.3;
}
.philosophy-big em { color: var(--champagne); font-style: italic; }

/* ─── HOME QUOTE / CONTACT FORM ─── */
.quote-section { max-width: 600px; margin-left: auto; margin-right: auto; }
.home-page .contact-form { max-width: 100%; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-content { padding: 0 1.5rem 6vh; }
  .section-dark, .section-slate { padding: 4rem 1.5rem; }
  .philosophy-section { padding: 5rem 1.5rem; margin: 1rem 0.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .home-page .portfolio-grid { grid-template-columns: 1fr; }
}
