/* ===== La Casa Eduardo's Event Center — theme ===== */
:root {
  --gold: #fbca59;
  --amber: #e1881a;
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --surface: #1f1f1f;
  --text: #f3ead9;
  --muted: #b9ab93;
  --line: rgba(251, 202, 89, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --maxw: 1140px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #121212; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1200; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; padding: .85rem 1.7rem; border: 0; border-radius: 50px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: #1a1200; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 136, 26, .35); }
.btn--ghost {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--ghost:hover { background: rgba(251, 202, 89, .1); color: var(--gold); }
.btn--sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--full { width: 100%; text-align: center; }

.eyebrow {
  color: var(--amber); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; margin: 0 0 .6rem;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.nav__brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.nav__brand img { border-radius: 50%; }
.nav__brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1; }
.nav__brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav__menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: var(--text); font-size: .92rem; font-weight: 400; }
.nav__menu a:hover { color: var(--gold); }
.nav__menu .btn { color: #1a1200; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 26px; height: 2px; background: var(--gold); transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: url("/assets/photos/background.jpg") center/cover no-repeat fixed;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,.78), rgba(18,18,18,.62) 40%, rgba(18,18,18,.9));
}
.hero__inner { position: relative; padding: 6rem 0; }
.hero__logo { margin: 0 auto 1.2rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.hero__eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.5rem); margin: .2em 0 .1em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero__tagline { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.3rem); font-style: italic; font-family: var(--serif); margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 1.5rem; color: var(--gold); animation: bob 2s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Countdown ===== */
.countdown { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.countdown__unit {
  min-width: 92px; padding: 1rem .8rem;
  background: rgba(31, 31, 31, .7); border: 1px solid var(--line); border-radius: var(--radius);
}
.countdown__num { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.countdown__label { display: block; margin-top: .35rem; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.countdown--open { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section__sub { color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about__points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.about__points li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--text); }
.about__points li::before { content: "\2726"; position: absolute; left: 0; color: var(--amber); }
.about__frame {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: url("/assets/photos/background.jpg") center/cover;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card__title { color: var(--gold); font-size: 1.4rem; }
.card__text { color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 1rem; font-size: 1.6rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { margin: 0; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #232323, #1a1a1a); display: flex; align-items: center; justify-content: center; }
.gallery__placeholder { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact__list li { margin-bottom: .7rem; color: var(--muted); }
.contact__list strong { color: var(--text); }
.contact__map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact__map iframe { display: block; }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .85rem; color: var(--text); }
.field__opt { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; background: #171717; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form__status { margin: 1rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--gold); }
.form__status.is-error { color: #ff8f6b; }

/* ===== Footer ===== */
.site-footer { background: #0d0d0d; border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand img { border-radius: 50%; margin-bottom: .8rem; }
.footer__name { font-family: var(--serif); font-size: 1.25rem; margin: 0; color: var(--text); }
.footer__muted { color: var(--muted); font-size: .9rem; }
.footer__col h3 { font-size: 1.05rem; color: var(--gold); font-family: var(--sans); font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { color: var(--muted); }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: inline-block; margin-top: .6rem; }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.3rem 0; text-align: center; }
.footer__bottom p { margin: .2rem 0; font-size: .85rem; color: var(--muted); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Send-status popup ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .78); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; width: min(90%, 360px); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; box-shadow: var(--shadow);
}
.modal__spinner {
  width: 54px; height: 54px; margin: 0 auto 1.2rem;
  border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal__icon { font-size: 2.6rem; line-height: 1; margin-bottom: .8rem; }
.modal__icon.is-ok { color: var(--gold); }
.modal__icon.is-error { color: #ff8f6b; }
.modal__text { margin: 0; color: var(--text); font-size: 1.05rem; }
.modal__close { margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal__spinner { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about__media { order: -1; }
  .about__frame { aspect-ratio: 16/10; }
  .hero { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; position: relative; z-index: 60; }
  /* Hamburger morphs into an X when the menu is open */
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed; top: 0; left: 0; z-index: 40;
    width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
    padding: 5rem 2rem; margin: 0;
    background: rgba(18, 18, 18, .98); backdrop-filter: blur(6px);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 1.25rem; }

  .cards, .features, .gallery { grid-template-columns: 1fr; }
  .countdown__unit { min-width: 68px; padding: .7rem .5rem; }
  .countdown__num { font-size: 1.8rem; }
  .section { padding: 3.5rem 0; }
}
