/* ============================================
   Neuville Homes — Landing Page
   ============================================ */

:root{
  --color-cream: #F7F3EC;
  --color-ink: #1A1712;
  --color-gold: #B98D4F;
  --color-overlay-top: rgba(10, 14, 20, 0.15);
  --color-overlay-bottom: rgba(10, 8, 6, 0.55);

  --font-display: 'Baloo 2', 'Quicksand', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 96px;
  --container-pad: 64px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-ink);
  color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration: none; color: inherit; }

img, video{ max-width: 100%; display: block; }

button{ font-family: inherit; }

/* ============================================
   HEADER
   ============================================ */

.site-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

.header-inner{
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  flex-shrink: 0;
}

.logo-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a{
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.main-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.main-nav a:hover{ color: #ffffff; }
.main-nav a:hover::after{ width: 100%; }

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero{
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-overlay-top) 0%, rgba(10,10,10,0.05) 40%, var(--color-overlay-bottom) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.25) 100%);
}

.hero-content{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

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

.hero-heading{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 6.8vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  color: #ffffff;
  text-wrap: balance;
}

.hero-heading-thin{
  font-weight: 600;
  opacity: 0.94;
}

.hero-sub{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px){
  :root{ --container-pad: 32px; --header-h: 84px; }

  .main-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100svh;
    width: min(78vw, 340px);
    background: rgba(20, 17, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }

  .main-nav.is-open{ transform: translateX(0); }

  .main-nav a{ font-size: 1.15rem; }

  .nav-toggle{ display: flex; }

  .hero-content{ padding-bottom: 12vh; }
}

@media (max-width: 560px){
  :root{ --container-pad: 22px; --header-h: 76px; }

  .logo-mark{ width: 38px; height: 38px; border-radius: 10px; }
  .logo-text{ font-size: 1.05rem; }

  .hero-heading{ margin-bottom: 20px; }
  .hero-sub{ font-size: 0.98rem; }

  .hero-content{ padding-bottom: 10vh; }
}

@media (max-width: 380px){
  .hero-heading{ font-size: clamp(2rem, 8vw, 2.4rem); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-content{ animation: none; }
  html{ scroll-behavior: auto; }
  .main-nav, .nav-toggle span, .main-nav a::after{ transition: none; }
}
