/* ============================================
   La Flor De Atlixco — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-active .reveal {
  opacity: 0;
  transform: translateY(32px);
}

.js-active .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-active .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.js-active .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-active .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.js-active .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-active .reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}

.js-active .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f0f4f8;
  letter-spacing: -0.01em;
}

.nav__logo-icon {
  color: #5eead4;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #bcccdc;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: #f0f4f8;
  background: rgba(94, 234, 212, 0.08);
}

.nav__link--cta {
  background: #14b8a6;
  color: #0a1628;
  font-weight: 600;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: #2dd4bf;
  color: #0a1628;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #d9e2ec;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
}

.mobile-nav.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.mobile-nav__link {
  padding: 16px 20px;
  font-size: 1.125rem;
  font-weight: 500;
  color: #d9e2ec;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.08);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.06);
  border-color: rgba(94, 234, 212, 0.2);
}

.mobile-nav__link--cta {
  background: #14b8a6;
  color: #0a1628;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
  border-color: transparent;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0a1628;
  padding: 72px 0 0;
}

.hero__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text {
  max-width: 560px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 24px;
}

.hero__eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: #5eead4;
  border-radius: 2px;
  flex-shrink: 0;
}

.hero__headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f0f4f8;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__headline em {
  color: #5eead4;
  font-style: italic;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #9fb3c8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: #14b8a6;
  color: #0a1628;
}

.btn--primary:hover {
  background: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

.btn--ghost {
  background: transparent;
  color: #d9e2ec;
  border: 1.5px solid rgba(188, 204, 220, 0.25);
}

.btn--ghost:hover {
  border-color: #5eead4;
  color: #5eead4;
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f4f8;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #627d98;
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(94, 234, 212, 0.2);
}

/* Hero Visual */
.hero__visual {
  position: relative;
}

.hero__image-stack {
  position: relative;
}

.hero__img--main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.hero__img--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__img--accent {
  position: absolute;
  bottom: -24px;
  left: -40px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border: 4px solid #0a1628;
}

.hero__img--accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #14b8a6;
  color: #0a1628;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.hero__badge svg {
  flex-shrink: 0;
}

/* Hero Pattern */
.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(20, 184, 166, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Section Shared --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #5eead4;
  border-radius: 2px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f0f4f8;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title--light {
  color: #f0f4f8;
}

/* --- About --- */
.about {
  padding: 120px 24px;
  background: #0f1d32;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.15), transparent);
}

.about__container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.about__image-col {
  position: relative;
}

.about__image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #627d98;
  font-style: italic;
  text-align: center;
}

.about__content {
  max-width: 520px;
}

.about__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #9fb3c8;
  margin-bottom: 20px;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5eead4;
}

.pillar__label {
  font-weight: 600;
  font-size: 1rem;
  color: #f0f4f8;
  margin-bottom: 2px;
}

.pillar__desc {
  font-size: 0.875rem;
  color: #627d98;
}

/* --- Menu --- */
.menu {
  padding: 120px 24px;
  background: #0a1628;
  position: relative;
}

.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.15), transparent);
}

.menu__container {
  max-width: 1280px;
  margin: 0 auto;
}

.menu__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.menu__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #627d98;
  margin-top: 12px;
}

.menu__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.menu__cat {
  background: rgba(15, 29, 50, 0.7);
  border: 1px solid rgba(94, 234, 212, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu__cat:hover {
  border-color: rgba(94, 234, 212, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.menu__cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.08);
}

.menu__cat-header svg {
  color: #5eead4;
  flex-shrink: 0;
}

.menu__cat-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0f4f8;
}

.menu__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu__item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(188, 204, 220, 0.06);
}

.menu__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.menu__item-info {
  padding-left: 0;
}

.menu__item-name {
  font-weight: 600;
  font-size: 1rem;
  color: #d9e2ec;
  margin-bottom: 4px;
}

.menu__item-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #627d98;
}

.menu__note {
  text-align: center;
}

.menu__note p {
  font-size: 0.8125rem;
  color: #486581;
  font-style: italic;
}

/* --- Story --- */
.story {
  padding: 120px 24px;
  background: #0f1d32;
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.15), transparent);
}

.story__container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.story__image-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.story__image-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.story__image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story__image-mini {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  border: 3px solid #0f1d32;
}

.story__image-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story__content {
  max-width: 520px;
}

.story__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #9fb3c8;
  margin-bottom: 20px;
}

.story__quote {
  margin-top: 36px;
  padding: 24px 28px;
  background: rgba(94, 234, 212, 0.05);
  border-left: 3px solid #14b8a6;
  border-radius: 0 12px 12px 0;
}

.story__quote-mark {
  color: #14b8a6;
  margin-bottom: 12px;
  opacity: 0.5;
}

.story__quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: #d9e2ec;
}

/* --- Visit --- */
.visit {
  padding: 120px 24px;
  background: #0a1628;
  position: relative;
}

.visit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.15), transparent);
}

.visit__container {
  max-width: 1280px;
  margin: 0 auto;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit__info {
  max-width: 520px;
}

.visit__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #9fb3c8;
  margin-bottom: 36px;
}

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visit__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.visit__detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5eead4;
}

.visit__detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #627d98;
  margin-bottom: 4px;
}

.visit__detail-value {
  font-size: 0.9375rem;
  color: #d9e2ec;
  line-height: 1.6;
}

.visit__detail-link {
  font-size: 0.9375rem;
  color: #5eead4;
  transition: color 0.2s ease;
}

.visit__detail-link:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

.visit__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  min-height: 480px;
}

/* --- Footer --- */
.footer {
  background: #070f1c;
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(188, 204, 220, 0.06);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f0f4f8;
  margin-bottom: 12px;
}

.footer__logo-icon {
  color: #5eead4;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #627d98;
  line-height: 1.6;
  max-width: 280px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: 0.9375rem;
  color: #9fb3c8;
  transition: color 0.2s ease;
}

.footer__nav-link:hover {
  color: #5eead4;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-link {
  font-size: 0.9375rem;
  color: #5eead4;
  transition: color 0.2s ease;
}

.footer__contact-link:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

.footer__address {
  font-size: 0.875rem;
  color: #627d98;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: #486581;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__container {
    gap: 32px;
  }
  
  .about__grid,
  .story__grid,
  .visit__grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .hero {
    min-height: auto;
    padding-top: 72px;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    padding: 40px 24px 64px;
    gap: 40px;
  }
  
  .hero__text {
    max-width: 100%;
  }
  
  .hero__visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .hero__img--accent {
    left: -16px;
    bottom: -16px;
  }
  
  .hero__badge {
    right: -8px;
    top: -8px;
  }
  
  .hero__stats {
    gap: 16px;
  }
  
  .about,
  .menu,
  .story,
  .visit {
    padding: 80px 24px;
  }
  
  .about__grid,
  .story__grid,
  .visit__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about__image-col {
    order: -1;
    max-width: 480px;
  }
  
  .menu__categories {
    grid-template-columns: 1fr;
  }
  
  .menu__cat {
    padding: 24px;
  }
  
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .visit__map {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
    width: 100%;
  }
  
  .hero__stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .hero__stat-divider {
    display: none;
  }
  
  .hero__img--accent {
    display: none;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
