/* ==========================================================================
   AUREUS Barbershop & Men's Club — stylesheet
   Mobile-first. Dark, matte, premium palette.
   ========================================================================== */

:root {
  --color-bg: #0d0d0c;
  --color-bg-alt: #131312;
  --color-graphite: #1c1c1a;
  --color-graphite-2: #232320;
  --color-border: #2c2c28;

  --color-text: #ece8e0;
  --color-text-muted: #a8a29a;
  --color-text-faint: #75726c;

  --color-gold: #c8a35c;
  --color-gold-light: #ddc189;
  --color-gold-dark: #9c7b3f;
  --color-leather: #6e4a30;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1180px;
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

/* Long words/links wrap instead of forcing horizontal scroll.
   overflow-wrap: break-word only breaks when a word truly can't fit,
   unlike word-break: break-word, which breaks more aggressively. */
h1, h2, h3, h4, p, a, span, li, blockquote, label {
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

::selection { background: var(--color-gold); color: #17140d; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--center { display: block; text-align: center; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-title--center { text-align: center; }

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1rem;
}

.lead { font-size: 1.1rem; color: var(--color-text); }

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-top: 14px;
  color: var(--color-text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 4px; height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: normal;
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  color: #1a1509;
  box-shadow: 0 8px 24px -8px rgba(200, 163, 92, 0.55);
}
.btn--gold:hover { filter: brightness(1.08); }

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover { border-color: var(--color-gold); color: var(--color-gold-light); }

.btn--ghost { color: var(--color-text-muted); }
.btn--ghost:hover { color: var(--color-gold); }

.btn--lg { padding: 16px 32px; font-size: 1rem; min-height: 52px; }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; min-height: 48px; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: var(--color-gold); }

/* ---------- Media placeholders (until real photography is added) ---------- */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(200,163,92,0.08), transparent 60%),
    repeating-linear-gradient(135deg, #1a1a17 0 2px, #1e1e1a 2px 4px),
    linear-gradient(180deg, #201f1c, #131211);
  border: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  isolation: isolate;
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 55%);
  z-index: -1;
}
.media-placeholder span { padding: 0 16px; }
.media-placeholder--tall { min-height: 420px; }
.media-placeholder--gold {
  background:
    linear-gradient(160deg, rgba(200,163,92,0.18), transparent 65%),
    linear-gradient(180deg, #262017, #16130d);
  border-color: var(--color-gold-dark);
  color: var(--color-gold-light);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(13,13,12,0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color 0.3s var(--ease);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
}

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.logo__mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold-light);
}
.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo__text em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: none;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  display: flex;
  align-items: center;
  padding: 14px 4px;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
  min-height: 48px;
}
.nav a:hover { color: var(--color-gold-light); }

.header__actions { display: flex; align-items: center; gap: clamp(8px, 2vw, 14px); flex-shrink: 0; }
.header__phone { display: none; font-size: 0.85rem; white-space: nowrap; }
.header__actions .btn { white-space: nowrap; }

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px; height: 48px;
  flex-shrink: 0;
  margin: -7px;
}
.burger span {
  display: block; height: 2px; width: 22px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__phone { display: inline-flex; }
  .burger { display: none; }
}

/* Tighter nav spacing for laptops/tablets in landscape to avoid overflow */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: 14px; font-size: 0.82rem; }
  .header__actions { gap: 8px; }
  .header__phone { font-size: 0.78rem; padding-inline: 14px; }
}

/* Hide the subtitle line on very narrow phones to prevent header overflow */
@media (max-width: 380px) {
  .logo__text em { display: none; }
  .header__actions .btn--gold { padding: 10px 14px; font-size: 0.8rem; }
}

/* Mobile nav drawer */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: rgba(11,11,10,0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { display: flex; transform: translateX(0); }
  .nav a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; /* fallback for browsers without svh support */
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(200,163,92,0.10), transparent 45%),
    repeating-linear-gradient(120deg, #17160f 0 3px, #1c1a12 3px 6px),
    linear-gradient(180deg, #1a1916, #0d0d0c 70%);
  display: flex; align-items: center; justify-content: center;
}
.hero__placeholder-label {
  color: var(--color-text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px dashed var(--color-border);
  padding: 10px 18px;
  border-radius: var(--radius);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,0.35) 0%, rgba(13,13,12,0.55) 45%, rgba(13,13,12,0.96) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
  padding-top: 80px;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 3.6rem);
  max-width: 15ch;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__cta-row .btn { flex: 1 1 auto; }

@media (max-width: 480px) {
  .hero__cta-row { flex-direction: column; }
  .hero__cta-row .btn { width: 100%; }
}

.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (min-width: 700px) {
  .hero__facts { flex-direction: row; flex-wrap: wrap; gap: 32px; }
}

.hero__scroll {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  z-index: 1;
  display: none;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--color-gold);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}
@media (min-width: 700px) { .hero__scroll { display: block; } }

/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */
.philosophy { padding: clamp(56px, 10vw, 88px) 0; background: var(--color-bg-alt); }
.philosophy__inner { display: grid; gap: 40px; }
.philosophy__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-graphite);
}
.philosophy__text p { color: var(--color-text-muted); margin-top: 16px; }
.philosophy__text h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 18px; }

@media (min-width: 900px) {
  .philosophy__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .philosophy__media { order: 2; }
  .philosophy__text { order: 1; }
}

/* ==========================================================================
   SERVICES / PRICE LIST
   ========================================================================== */
.services { padding: clamp(56px, 10vw, 96px) 0; }

.price-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-inline: auto; }

.price-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite);
  overflow: hidden;
}

.price-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  text-align: left;
}

.price-item__name { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 1.05rem; color: #fff; }

.price-item__meta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; font-size: 0.82rem; }
.price-item__time { color: var(--color-text-faint); white-space: nowrap; }
.price-item__price { color: var(--color-gold-light); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

.price-item__chevron {
  width: 18px; height: 18px;
  fill: none; stroke: var(--color-text-muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.price-item[data-open] .price-item__chevron { transform: rotate(180deg); }

.price-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  padding: 0 22px;
}
.price-item__body p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.price-item[data-open] .price-item__body { padding-bottom: 22px; }

@media (min-width: 640px) {
  .price-item__head { padding: 22px 28px; }
  .price-item__meta { flex-direction: row; align-items: center; gap: 20px; }
  .price-item__body { padding: 0 28px; }
  .price-item[data-open] .price-item__body { padding-bottom: 26px; }
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { padding: clamp(56px, 10vw, 96px) 0; background: var(--color-bg-alt); }
.team__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.barber-card {
  background: var(--color-graphite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.barber-card:hover { transform: translateY(-4px); border-color: var(--color-gold-dark); }

.barber-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  border: none;
  background: var(--color-graphite-2);
}
.barber-card__body { padding: 22px; }
.barber-card__body h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.barber-card__spec { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 4px; }
.barber-card__exp { color: var(--color-text-faint); font-size: 0.8rem; margin-bottom: 16px; }

.barber-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
}
.barber-card__badge--top { background: rgba(200,163,92,0.15); color: var(--color-gold-light); }
.barber-card__badge--ambassador { background: rgba(110,74,48,0.35); color: #e2b98d; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { padding: clamp(56px, 10vw, 96px) 0; }
.gallery__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 359px) { .gallery__grid { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-graphite);
}
.gallery__before, .gallery__after {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; border: none;
  min-height: 0;
}
.gallery__after {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.5s var(--ease);
}
.gallery__item:hover .gallery__after,
.gallery__item:focus-visible .gallery__after,
.gallery__item.is-flipped .gallery__after {
  clip-path: inset(0 0 0 0%);
}

/* ==========================================================================
   COSMETICS
   ========================================================================== */
.cosmetics { padding: clamp(56px, 10vw, 96px) 0; background: var(--color-bg-alt); }
.cosmetics__inner { display: grid; gap: 40px; align-items: center; }
.cosmetics__text p { color: var(--color-text-muted); margin-top: 14px; margin-bottom: 22px; }

.cosmetics__brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-gold-light);
  background: var(--color-graphite);
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .cosmetics__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews { padding: clamp(56px, 10vw, 96px) 0; }

.rating-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.rating-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-graphite);
}
.rating-badge__score { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-gold-light); }
.rating-badge__stars { display: block; color: var(--color-gold); letter-spacing: 2px; font-size: 0.9rem; }
.rating-badge__source { display: block; color: var(--color-text-faint); font-size: 0.78rem; margin-top: 2px; }

.testimonials { max-width: 720px; margin-inline: auto; position: relative; overflow: hidden; width: 100%; }
.testimonials__track {
  display: flex;
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.testimonial {
  min-width: 100%;
  text-align: center;
  padding: 0 12px;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #f1eee7;
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial footer { color: var(--color-text-faint); font-size: 0.85rem; }

.testimonials__dots { display: flex; justify-content: center; align-items: center; margin-top: 28px; }
.testimonials__dots button {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonials__dots button::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color 0.3s, transform 0.3s;
}
.testimonials__dots button.is-active::before { background: var(--color-gold); transform: scale(1.3); }

/* ==========================================================================
   CONTACTS
   ========================================================================== */
.contacts { padding: clamp(56px, 10vw, 96px) 0; background: var(--color-bg-alt); }
.contacts__inner { display: grid; gap: 40px; }
.contacts__info h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 28px; }

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-list li > div { min-width: 0; }
.contact-list strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 2px; }
.contact-list span { color: var(--color-text-muted); font-size: 0.9rem; }
.contact-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 4px 0; }
.contact-list a:hover { color: var(--color-gold-light); }

.contact-messengers { display: flex; gap: 12px; flex-wrap: wrap; }

.contacts__map { min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); filter: grayscale(0.3) invert(0.92) contrast(0.9); }
.map-frame { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (min-width: 900px) {
  .contacts__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .contacts__map { min-height: 100%; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: clamp(32px, 6vw, 48px) 0; border-top: 1px solid var(--color-border); }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__copy { color: var(--color-text-faint); font-size: 0.82rem; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer__social a:hover { color: var(--color-gold-light); }

@media (min-width: 700px) {
  .footer__social { justify-content: flex-end; }
}

@media (min-width: 700px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   FLOATING ACTION BUTTON
   ========================================================================== */
.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.fab.is-open .fab__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }

.fab__item {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-graphite-2);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.fab__item svg { width: 22px; height: 22px; fill: var(--color-text); }
.fab__item--gold { background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark)); }
.fab__item--gold svg { fill: #1a1509; }

.fab__toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark));
  box-shadow: 0 10px 28px -6px rgba(200,163,92,0.6);
  transition: transform 0.3s var(--ease);
}
.fab__toggle svg { width: 24px; height: 24px; fill: none; stroke: #1a1509; stroke-width: 2.2; stroke-linecap: round; transition: transform 0.3s var(--ease); }
.fab.is-open .fab__toggle svg { transform: rotate(45deg); }

/* ==========================================================================
   BOOKING MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,5,0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 92vh; /* fallback for browsers without svh support */
  max-height: 92svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-graphite);
  border: 1px solid var(--color-border);
  border-radius: 18px 18px 0 0;
  padding: 64px 20px max(32px, env(safe-area-inset-bottom));
  transform: translateY(24px);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__dialog { transform: translateY(0); }

@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal__dialog { border-radius: 18px; padding: 64px 36px 36px; }
}

.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  border-radius: 50%;
  z-index: 2;
}
.modal__close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.modal__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.72rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.modal__step { padding-bottom: 8px; border-bottom: 2px solid var(--color-border); flex: 1; }
.modal__step.is-active { color: var(--color-gold-light); border-color: var(--color-gold); }

.modal__title { font-size: 1.4rem; margin-bottom: 20px; }

.booking-step { display: none; }
.booking-step.is-active { display: block; }

.booking-step__title { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 14px; }

.booking-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-height: 46vh; overflow-y: auto; }
.booking-option {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  font-size: 0.92rem;
}
.booking-option:hover { border-color: var(--color-gold-dark); }
.booking-option input { accent-color: var(--color-gold); width: 16px; height: 16px; flex-shrink: 0; }
.booking-option:has(input:checked) { border-color: var(--color-gold); background: rgba(200,163,92,0.08); }

.booking-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--color-text-muted); min-width: 0; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
}
.field input:focus { outline: none; border-color: var(--color-gold); }

@media (min-width: 500px) {
  .booking-fields { flex-direction: row; }
  .field { flex: 1; }
}

.booking-summary { color: var(--color-text-faint); font-size: 0.85rem; margin-bottom: 18px; }

.booking-step__actions { display: flex; gap: 12px; justify-content: flex-end; }
.booking-step__actions .btn { flex: 1; justify-content: center; }
@media (min-width: 420px) { .booking-step__actions .btn { flex: none; } }

.booking-success { text-align: center; padding: 20px 0; }
.booking-success svg { width: 52px; height: 52px; fill: var(--color-gold); margin-bottom: 16px; }
.booking-success h4 { font-size: 1.25rem; margin-bottom: 10px; }
.booking-success p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
