/* Sheer One components */

/* ===== Buttons — magnetic / modern =====
   JS eases the button toward the cursor (see main.js); a soft light-ring follows
   the pointer and the button gains a deep glow-shadow on hover. Brand green ↔ ivory. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 12px;
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  --gx: 50%; --gy: 50%;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              background .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
  will-change: transform;
}
/* cursor-following light ring */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; border-radius: inherit;
  background: radial-gradient(140px circle at var(--gx) var(--gy), rgba(239, 238, 226, .30), transparent 62%);
  transition: opacity .4s var(--ease-out);
}
.btn:hover::before { opacity: 1; }
.btn__icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }
.btn:active { transform: scale(.97); transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background .2s, color .2s, border-color .2s; transform: none !important; }
  .btn::before { display: none; }
}

/* Primary: light ivory, deep-green text (subtle shadow + hairline keeps it defined on cream) */
.btn--primary { background: var(--c-primary); color: var(--c-green-deep); border-color: rgba(62, 71, 58, .12); box-shadow: 0 6px 18px -6px rgba(62, 71, 58, .28); }
.btn--primary::before { background: radial-gradient(140px circle at var(--gx) var(--gy), rgba(62, 71, 58, .13), transparent 62%); }

/* Secondary (light bg): outlined green */
.btn--ghost-dark { background: transparent; color: var(--c-green); border-color: rgba(62, 71, 58, .45); }
.btn--ghost-dark::before { background: radial-gradient(140px circle at var(--gx) var(--gy), rgba(62, 71, 58, .12), transparent 62%); }
.btn--ghost-dark:hover { border-color: var(--c-green); }

/* Ghost (over imagery / dark): frosted ivory outline */
.btn--ghost { background: rgba(250, 245, 236, .07); color: var(--c-cream); border-color: rgba(243, 231, 217, .55); backdrop-filter: blur(3px); }
.btn--ghost::before { background: radial-gradient(140px circle at var(--gx) var(--gy), rgba(243, 231, 217, .26), transparent 62%); }
.btn--ghost:hover { border-color: var(--c-cream); }

/* WhatsApp keeps its brand green */
.btn--whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn--whatsapp::before { background: radial-gradient(140px circle at var(--gx) var(--gy), rgba(255, 255, 255, .32), transparent 62%); }

/* Header — solid bar slides DOWN from the top edge on scroll (modern, not a fade) */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; color: var(--c-sage);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-bg); box-shadow: var(--shadow-soft);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
}
.site-header.is-solid::before { transform: translateY(0); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-4); max-width: var(--container-wide);
  margin-inline: auto; padding: 22px var(--sp-3);
  transition: padding-block .55s var(--ease-out);
}
.site-header.is-solid .site-header__inner { padding-block: 16px; } /* condense when solid */
@media (prefers-reduced-motion: reduce) {
  .site-header::before, .site-header__inner { transition: none; }
}
.site-header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1.2; }
.logo-mark { height: 46px; width: auto; flex-shrink: 0; }
.logo-wordmark { height: 42px; width: auto; }
.footer-logo { height: 110px; width: auto; color: var(--c-sage); }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.site-nav__list a {
  position: relative;
  font-size: .85rem; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px;
  transition: color .5s var(--ease-out);
}
/* underline draws in left→right on hover, retracts to the right on leave */
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .site-nav__list a::after { transition: none; } }
/* colours morph in sync with the sliding bar */
.site-header__logo { transition: color .5s var(--ease-out); }
.site-header__logo, .site-nav__list a { color: var(--c-sage); }
.site-header.is-solid { color: var(--c-green); }
.site-header.is-solid .site-header__logo, .site-header.is-solid .site-nav__list a { color: var(--c-green); }

/* Burger / mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform var(--dur-md) var(--ease-out), opacity var(--dur-md); }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; color: inherit; }
  /* Keep the reservation CTA reachable on mobile — compact variant */
  .site-header__inner .btn { margin-left: auto; padding: 10px 14px; font-size: .65rem; }
}
@media (max-width: 420px) {
  .logo-wordmark { display: none; }
}
@media (max-width: 900px) {
  body.nav-open .site-nav {
    display: flex; position: fixed; inset: 0; background: var(--c-cream);
    align-items: center; justify-content: center; z-index: 40;
  }
  body.nav-open .site-nav__list { flex-direction: column; text-align: center; gap: var(--sp-4); }
  body.nav-open .site-nav__list a { color: var(--c-ink-deep); font-size: 1.1rem; }
  body.nav-open .nav-toggle { position: relative; z-index: 41; color: var(--c-ink-deep); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }
}

/* Reservation modal */
.rezerv-modal {
  margin: auto; /* the global `* { margin: 0 }` reset kills the UA centering — restore it */
  border: 0; border-top: 3px solid var(--c-green); border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  max-width: 560px; width: calc(100vw - 32px); background: var(--c-bg); color: var(--c-ink);
  max-height: 90vh; overflow-y: auto;
}
.rezerv-modal[open] { animation: modal-in .45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(.985); } }
.rezerv-modal::backdrop { background: rgba(47, 54, 41, .65); backdrop-filter: blur(3px); }
.rezerv-modal h2 { font-size: 1.9rem; }
.rezerv-modal h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--c-green); opacity: .5; margin-top: 10px; }
.rezerv-modal__close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 1.8rem; line-height: 1; color: var(--c-ink); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.rezerv-modal__close:hover { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .rezerv-modal[open] { animation: none; } }

/* Reservation form */
.rezerv-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.rezerv-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-green);
}
.rezerv-form input, .rezerv-form select, .rezerv-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px;
  border: 1px solid rgba(62, 71, 58, .45); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-ink); width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.rezerv-form input:hover, .rezerv-form select:hover, .rezerv-form textarea:hover { border-color: var(--c-green); }
.rezerv-form input:focus, .rezerv-form select:focus, .rezerv-form textarea:focus {
  outline: 0; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(62, 71, 58, .18);
}
.rezerv-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
@media (max-width: 600px) { .rezerv-form__row { grid-template-columns: 1fr; } }
.form-error { color: var(--c-accent); font-size: .8rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.form-error--global { padding: 10px 14px; border: 1px solid var(--c-accent); border-radius: var(--radius); }
.rezerv-ok { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px solid rgba(62, 71, 58, .25); border-radius: var(--radius); background: var(--c-white); }
.rezerv-ok h3 { color: var(--c-green); }
.rezerv-ok .btn { margin-top: var(--sp-3); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: var(--shadow-soft); transition: transform var(--dur-fast) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }

/* Footer — floating rounded panel, centered (Marina Village inspired) */
.site-footer {
  position: relative; overflow: hidden;
  margin: var(--sp-4); margin-top: var(--sp-7);
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  background: var(--c-green); color: var(--c-cream); border-radius: 14px;
}
@media (max-width: 600px) { .site-footer { margin: var(--sp-2); margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-3) var(--sp-3); } }
.site-footer .watermark { right: -130px; bottom: -90px; opacity: .07; }

.site-footer a { color: var(--c-cream); }

/* Scroll-to-top circle, top-right */
.footer-top {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--c-sage); border: 1px solid rgba(215, 217, 167, .35);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-top:hover { background: rgba(215, 217, 167, .12); transform: translateY(-3px); }
@media (max-width: 600px) { .footer-top { top: var(--sp-3); right: var(--sp-3); width: 38px; height: 38px; } }

.footer-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); }
.footer-brand { display: inline-block; }
.footer-logo { height: 96px; width: auto; color: var(--c-sage); }
@media (max-width: 600px) { .footer-logo { height: 72px; } }

.footer-nav .site-nav__list { flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); }
.footer-nav .site-nav__list a {
  font-size: .75rem; font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase;
  text-decoration: none; padding-bottom: 3px;
}
/* inherits the animated left→right underline from .site-nav__list a::after (currentColor = cream) */

.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--c-sage); border: 1px solid rgba(215, 217, 167, .35);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--c-sage); color: var(--c-green); transform: translateY(-3px); }

.footer-addr { font-size: .85rem; color: var(--c-sage); opacity: .85; }

.footer-base {
  position: relative; display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid rgba(215, 217, 167, .18);
  font-size: .72rem; letter-spacing: .04em; color: var(--c-cream); opacity: .55;
}
@media (max-width: 600px) { .footer-base { justify-content: center; text-align: center; } }

/* Marquee band */
.marquee { overflow: hidden; background: var(--c-green-deep); color: var(--c-sage); padding: 34px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 65s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 32px; padding-right: 32px;
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .22em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__item svg { height: 20px; width: auto; opacity: .65; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Decorative brand watermark */
.has-watermark { position: relative; overflow: hidden; }
.watermark { position: absolute; pointer-events: none; color: var(--c-green); opacity: .05; width: clamp(320px, 40vw, 560px); height: auto; }
.section--dark .watermark, .cta-band .watermark, .site-footer .watermark { color: var(--c-sage); opacity: .06; }

/* Hero scroll hint */
.scroll-hint { position: absolute; bottom: 80px; left: 50%; z-index: 4; width: 1px; height: 50px; background: rgba(239, 238, 226, .3); overflow: hidden; }
.scroll-hint::after { content: ""; position: absolute; inset: 0; background: var(--c-sage); transform: translateY(-100%); animation: scrollhint 2.4s var(--ease-out) infinite; }
@keyframes scrollhint { 45% { transform: translateY(0); } 100% { transform: translateY(101%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .scroll-hint::after { animation: none; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(43, 33, 26, .85);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; border-radius: var(--radius-img); }
.lightbox__close {
  position: absolute; top: 16px; right: 24px; background: none; border: 0;
  font-size: 2.4rem; color: var(--c-cream); cursor: pointer;
}
