:root {
  --black: #0e0e0e;
  --white: #ffffff;
  --gray: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

/* NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: white;
  transition: background 0.4s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  font-size: 0.8rem;
}

/* ✅ Uniformidad: links y botón iguales (DESKTOP) */
nav > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin: 0; /* 🔥 clave: nada de margin-left */
}

/* ===== DESKTOP SUBMENU ===== */
.nav-item {
  position: relative;
}

/* ✅ Hover bridge SIN afectar layout */
.nav-item::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px; /* puente para no perder el hover */
}

.nav-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* ✅ Dropdown normal (no gigante, no mueve header) */
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  background: rgba(0, 0, 0, 0.95);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 210px;
  text-align: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

/* ✅ Área clickeable estable */
.submenu a {
  display: block;
  padding: 8px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ✅ Se mantiene abierto si estás encima de Galleries o encima del dropdown */
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("../img/LakeLand WEB/Highlights/201A1283.jpg") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* SECTION */
section {
  padding: 100px 80px;
  scroll-margin-top: 120px;
}

.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy img {
  width: 100%;
  height: auto;
}

.philosophy-text h5 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray);
}

.philosophy-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 30px;
}

.philosophy-text p {
  max-width: 420px;
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 30px;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h5 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray);
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 30px;
}

.about-text p {
  max-width: 460px;
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--black);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

/* GALLERY */
.gallery h3 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTACT */
.contact {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact h5 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray);
}

.contact h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 30px;
}

.contact p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 40px;
}

/* FOOTER */
footer {
  padding: 80px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gray);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .philosophy {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    text-align: center;
  }

  nav.open {
    transform: translateY(0);
  }

  /* ✅ En mobile todos los items iguales */
  nav > a,
  .nav-link {
    font-size: 14px;
    letter-spacing: 4px;
    padding: 10px 0;
  }

  .nav-item::after {
    display: none; /* hover bridge no aplica en mobile */
  }

  /* ✅ Mobile submenu: estable, centrado, NO se mueve */
  .submenu {
    position: static;
    top: auto;
    left: auto;
    transform: none;

    background: none;
    padding: 0;
    min-width: 0;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;

    margin-top: 14px;
  }

  .submenu a {
    width: auto; /* 🔥 clave: evita “corrimiento” */
    margin: 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: 4px;
    opacity: 0.75;
    padding: 8px 0;
  }

  /* 🔥 evita que el tap/focus haga reflow raro */
  .submenu a:focus,
  .submenu a:active {
    outline: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px 30px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  section {
    padding: 100px 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
