/* ================================================================
   JABAL INN — Design System
   Hotel Boutique · Campeche, México
   ================================================================ */

/* === 1. VARIABLES ============================================== */
:root {
  /* Colors */
  --c-dark:        #1a1814;
  --c-dark-2:      #24221f;
  --c-dark-3:      #302d28;
  --c-sand:        #f0ebe3;
  --c-sand-dark:   #e5ddd0;
  --c-cream:       #faf6f0;
  --c-white:       #ffffff;
  --c-accent:      #C3922E;
  --c-accent-dark: #a87a22;
  --c-text:        #2a2520;

  /* Typography */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Cormorant Garamond', Georgia, serif;
  --ff-ui:      'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --radius-sm:     4px;
  --radius-md:     10px;
  --radius-lg:     20px;
  --nav-h:         80px;

  /* Animation */
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
  --ease-luxury:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* === 2. RESET & BASE =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-ui);
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
button{ cursor: pointer; border: none; background: none; font-family: inherit; }
ul    { list-style: none; }


/* === 3. TYPOGRAPHY ============================================= */
.t-label {
  font-family: var(--ff-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.t-display           { font-family: var(--ff-display); font-weight: 400; line-height: 1.1; }
.t-display--lg       { font-size: clamp(2.5rem, 5vw, 4rem); }
.t-display--md       { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.t-accent {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--c-accent);
}

.t-body    { font-family: var(--ff-body); font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 400; line-height: 1.75; }
.t-body--sm{ font-size: 0.9rem; }


/* === 4. LAYOUT ================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section        { padding: var(--space-3xl) 0; }
.section--sand  { background: var(--c-sand); }
.section--dark  { background: var(--c-dark-2); color: var(--c-sand); }
.section--cream { background: var(--c-cream); }


/* === 5. NAVIGATION ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  height: var(--nav-h);
  transition:
    background      var(--duration-base) ease,
    backdrop-filter var(--duration-base) ease,
    box-shadow      var(--duration-base) ease,
    color           var(--duration-base) ease;
}

.nav--transparent { background: transparent; color: var(--c-sand); }

.nav--scrolled {
  background: rgba(26, 24, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  color: var(--c-sand);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* fallback text style (shown if img fails) */
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* Keep logo visible on dark and light navs */
  filter: brightness(1.05);
  transition: opacity var(--duration-fast) ease;
}
.nav__logo-img:hover { opacity: 0.85; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity var(--duration-fast) ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--duration-base) var(--ease-luxury);
}
.nav__link:hover,
.nav__link--active        { opacity: 1; }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav__cta {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7em 1.8em;
  border: 1px solid rgba(240,235,227,0.3);
  border-radius: 2px;
  color: inherit;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.nav__cta:hover {
  background: rgba(240,235,227,0.12);
  border-color: rgba(240,235,227,0.6);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: currentColor;
  transition:
    transform var(--duration-base) var(--ease-luxury),
    opacity   var(--duration-fast) ease,
    width     var(--duration-base) var(--ease-luxury);
}
.nav__burger span:nth-child(2) { width: 70%; margin-left: auto; }
.nav__burger:hover span:nth-child(2) { width: 100%; }

/* Burger open state */
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* === 6. MOBILE MENU ============================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__link {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--c-sand);
  opacity: 0.65;
  transition: opacity var(--duration-fast) ease;
}
.mobile-menu__link:hover { opacity: 1; }


/* === 7. HERO =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,18,14,0.15) 0%,
    rgba(20,18,14,0.05) 35%,
    rgba(20,18,14,0.65) 100%
  );
}

/* Hero logo — centered overlay, independent of nav */
.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 3;
  pointer-events: none;
  animation: heroLogoFade 1.2s var(--ease-luxury) 0.4s both;
}
.hero__logo-img {
  display: block;
  /* Drop-shadow so white/cream parts pop against any background */
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.5));
}
@keyframes heroLogoFade {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to   { opacity: 1; transform: translate(-50%, -55%); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-pad) var(--space-3xl);
  color: var(--c-sand);
  max-width: 900px;
}

.hero__tag  { display: inline-block; color: var(--c-accent); margin-bottom: var(--space-md); }

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__line {
  width: 40px; height: 1px;
  background: var(--c-accent);
  margin-top: var(--space-lg);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--container-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(240,235,227,0.45);
}
.hero__scroll span {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: rgba(240,235,227,0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--c-accent);
  animation: scrollLine 2.2s ease infinite;
}
@keyframes scrollLine { to { top: 100%; } }


/* === 8. SECTION HEADER ========================================= */
.section-header { margin-bottom: var(--space-xl); }

.section-header__label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-md);
}

.section-header__title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.section-header__subtitle {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.55;
  margin-top: var(--space-md);
  display: block;
}


/* === 9. BUTTONS ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1em 2.5em;
  border-radius: 2px;
  transition:
    background     var(--duration-fast) ease,
    color          var(--duration-fast) ease,
    border-color   var(--duration-fast) ease,
    transform      var(--duration-fast) ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-dark);
  border: 1px solid var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(42,37,32,0.3);
}
.btn--outline:hover {
  background: var(--c-text);
  color: var(--c-cream);
  border-color: var(--c-text);
}

.btn--wa {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
  width: 100%;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}
.btn--wa:hover { background: #1fba59; border-color: #1fba59; }
.btn--wa:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}


/* === 10. MARQUEE =============================================== */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__inner {
  display: inline-flex;
  gap: var(--space-lg);
  animation: marquee 28s linear infinite;
  color: rgba(240,235,227,0.25);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.marquee__inner span { padding: 0 var(--space-sm); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* === 11. GALLERY =============================================== */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item:first-child {
  grid-row: span 2;
  min-height: 500px;
}
.gallery__item:not(:first-child) { aspect-ratio: 4/3; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}
.gallery__item:hover img { transform: scale(1.06); }


/* === 12. SUITE CARDS =========================================== */
.suite-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform    var(--duration-base) var(--ease-luxury),
    box-shadow   var(--duration-base) ease;
}
.suite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.suite-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.suite-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-luxury); }
.suite-card:hover .suite-card__img { transform: scale(1.06); }

.suite-card__badge {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: var(--c-dark);
  padding: 0.4em 0.9em;
  border-radius: 2px;
}

.suite-card__body     { padding: var(--space-lg); }
.suite-card__name     { font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: var(--space-sm); }
.suite-card__features { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.suite-card__feature  { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.4; }
.suite-card__feature:not(:last-child)::after { content: '·'; margin-left: var(--space-sm); opacity: 0.3; }

.suite-card__price { font-family: var(--ff-display); font-size: 1.4rem; color: var(--c-accent); }
.suite-card__price span { font-family: var(--ff-ui); font-size: 0.65rem; color: var(--c-text); opacity: 0.4; font-weight: 400; letter-spacing: 0; }


/* === 13. AMENITIES ============================================= */
.amenity {
  padding: var(--space-xl) var(--space-lg);
  background: var(--c-white);
  border-radius: var(--radius-md);
  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}
.amenity:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.amenity__icon  { width: 38px; height: 38px; color: var(--c-accent); margin-bottom: var(--space-md); }
.amenity__title { font-family: var(--ff-display); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.amenity__text  { font-size: 0.8rem; font-weight: 300; line-height: 1.7; opacity: 0.55; }


/* === 14. TESTIMONIAL =========================================== */
.testimonial { text-align: center; max-width: 680px; margin: 0 auto; }

.testimonial__quote {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.65;
  color: var(--c-sand);
  margin-bottom: var(--space-lg);
}
.testimonial__quote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--c-accent);
  opacity: 0.35;
  line-height: 0;
  vertical-align: -0.42em;
  margin-right: 0.08em;
}

.testimonial__author { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); }
.testimonial__source { font-size: 0.6rem; opacity: 0.3; margin-top: 0.3em; color: var(--c-sand); letter-spacing: 0.1em; }


/* === 15. FOOTER ================================================ */
.footer {
  position: relative;
  background: var(--c-dark);
  color: rgba(240,235,227,0.5);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: var(--space-md);
}
.footer__text    { font-family: var(--ff-body); font-size: 0.9rem; line-height: 1.85; }
.footer__heading { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--space-md); }
.footer__link    { display: block; font-size: 0.8rem; margin-bottom: 0.65rem; line-height: 1.6; transition: color var(--duration-fast) ease; }
.footer__link:hover { color: var(--c-sand); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(240,235,227,0.08);
  font-size: 0.65rem;
  opacity: 0.3;
}


/* === 16. GRAIN OVERLAY ========================================= */
.grain-overlay { position: relative; }
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
}


/* === 17. WHATSAPP FAB ========================================== */
.wa-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 50;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition:
    transform    var(--duration-fast) var(--ease-bounce),
    box-shadow   var(--duration-fast) ease;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-fab svg   { width: 26px; height: 26px; }


/* === 18. INSTALL BANNER ======================================== */
.install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--c-dark-2);
  color: var(--c-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--container-pad);
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-luxury);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.install-banner.is-visible { transform: translateY(0); }

.install-banner__text { font-size: 0.8rem; line-height: 1.5; flex: 1; }
.install-banner__text strong { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2em; }
.install-banner__actions { display: flex; gap: var(--space-sm); flex-shrink: 0; }

.install-banner__btn {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.7em 1.5em;
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}
.install-banner__btn--install { background: var(--c-accent); color: var(--c-dark); border: 1px solid var(--c-accent); }
.install-banner__btn--install:hover { background: var(--c-accent-dark); }
.install-banner__btn--dismiss { color: rgba(240,235,227,0.4); border: 1px solid rgba(240,235,227,0.15); background: transparent; }
.install-banner__btn--dismiss:hover { color: var(--c-sand); border-color: rgba(240,235,227,0.35); }


/* === 19. SPLASH SCREEN ========================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__logo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-sand);
}

.splash__bar {
  width: 120px; height: 1px;
  background: rgba(240,235,227,0.12);
  position: relative;
  overflow: hidden;
}
.splash__bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--c-accent);
  animation: splashBar 1.2s var(--ease-luxury) forwards;
}
@keyframes splashBar { to { left: 0; } }


/* === 20. PAGE TRANSITION ======================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--c-dark);
  pointer-events: none;
  opacity: 0;
}
.page-transition--enter { pointer-events: all; animation: transIn  var(--duration-base) var(--ease-luxury) forwards; }
.page-transition--exit  {                      animation: transOut 0.6s              var(--ease-luxury) forwards; }
@keyframes transIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes transOut { from { opacity: 1; } to { opacity: 0; } }


/* === 21. RESERVATION MODAL / BOTTOM-SHEET ====================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20,18,14,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: var(--c-cream);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-luxury);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.is-open .modal { transform: translateY(0); }

/* Drag handle — visible on mobile */
.modal__handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.15);
  margin: 0 auto var(--space-md);
  cursor: grab;
}

.modal__close {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.35;
  transition: opacity var(--duration-fast) ease;
  z-index: 2;
}
.modal__close:hover { opacity: 1; }
.modal__close::before,
.modal__close::after { content: ''; position: absolute; width: 16px; height: 1px; background: var(--c-text); }
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }

.modal__title {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}
.modal__subtitle {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  opacity: 0.45;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* ---- Form ---- */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__row {
  display: flex;
  gap: var(--space-sm);
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.modal__field--grow { flex: 1.6; }
.modal__field--sm   { flex: 0.8; }

.modal__label {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
  opacity: 0.55;
}

.modal__input,
.modal__select,
.modal__textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--c-text);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 0.7em 0.85em;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.modal__input:focus,
.modal__select:focus,
.modal__textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(195,146,46,0.12);
}
.modal__input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(0,0,0,0.03);
}

.modal__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1814' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  padding-right: 2.2em;
}

.modal__textarea {
  resize: vertical;
  min-height: 56px;
}

/* ---- Message preview ---- */
.modal__preview {
  background: var(--c-sand);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 8px 8px 0;
  padding: var(--space-sm) var(--space-md);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s ease, padding 0.3s ease, margin 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.modal__preview.is-visible {
  opacity: 1;
  max-height: 260px;
  padding: var(--space-sm) var(--space-md);
}
.modal__preview-label {
  font-family: var(--ff-ui);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}
.modal__preview-text {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-line;
  color: var(--c-text);
  opacity: 0.7;
}

/* ---- Submit ---- */
.modal__submit {
  margin-top: var(--space-xs);
  max-width: none;
  font-size: 0.7rem;
  padding: 1.1em 2em;
}

/* ---- Alt contacts ---- */
.modal__or  { text-align: center; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.28; margin: var(--space-sm) 0; }
.modal__alt { display: flex; gap: var(--space-sm); justify-content: center; margin-bottom: var(--space-xs); }
.modal__alt a { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.35; transition: opacity var(--duration-fast) ease; }
.modal__alt a:hover { opacity: 1; }

/* ---- Mobile bottom-sheet ---- */
@media (max-width: 768px) {
  .modal-overlay { align-items: flex-end; padding: 0; }

  .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    transform: translateY(100%);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    max-height: 92vh;
    max-height: 92dvh;
  }
  .modal-overlay.is-open .modal { transform: translateY(0); }

  .modal__handle { display: block; }
  .modal__close { top: var(--space-sm); right: var(--space-sm); }
  .modal__title { font-size: 1.5rem; }

  .modal__row { flex-direction: column; gap: var(--space-sm); }
}


/* === 22. RESPONSIVE ============================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl) var(--space-lg); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__title { font-size: clamp(3rem, 13vw, 5.5rem); }
  .hero__scroll { display: none; }

  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:first-child { grid-row: auto; grid-column: span 2; min-height: auto; aspect-ratio: 16/9; }

  .footer__grid  { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__bottom{ flex-direction: column; gap: var(--space-sm); text-align: center; }

  .install-banner { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }

  .wa-fab { bottom: var(--space-lg); right: var(--space-lg); }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 5rem;
    --space-xl:  2.5rem;
  }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: auto; aspect-ratio: 4/3; }
}
