/* =============================================================
   Mira Vita Spa & Wellness — QR Menu site
   Brand: warm-white + bronze + Playfair Display + Inter
   Mobile-first, editorial vibe
   ============================================================= */

:root {
  --warm-white: #FFFDF8;
  --ivory:      #FAF7F2;
  --ivory-2:    #F4EFE6;
  --champagne:  #F0E2C5;
  --sand:       #DCC79E;
  --bronze:     #A87946;
  --bronze-deep:#6E4628;
  --charcoal:   #1B1A18;
  --charcoal-2: #423F3A;
  --muted:      #7A7268;
  --line:       #E7E0D1;
  --line-soft:  #EFEAE0;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --t-fast: 180ms;
  --t-med:  280ms;
  --ease:   cubic-bezier(.4, 0, .2, 1);

  --gutter: clamp(20px, 4vw, 40px);
  --container-w: 1180px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Mobile-only experience — content max-width clamped to mobile ----------
 * This is a QR menu, designed for phones. On larger screens we simply center
 * the same layout at mobile width — no decorative phone-frame, no bezel.
 */
.device {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--warm-white);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--charcoal); }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--bronze-deep); }

.container {
  width: 100%;
  max-width: var(--container-w);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 12px 18px;
  background: var(--bronze); color: var(--warm-white);
  border-radius: var(--r-md); z-index: 9999;
  font-weight: 600;
}

/* ---------- Brand logo (header + footer) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--t-fast) var(--ease);
}
.brand:hover { opacity: 0.8; }
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(255, 253, 248, 0.97);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.nav-main {
  display: none;
  gap: 8px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal-2);
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--bronze-deep); background: var(--ivory); }
.nav-link.is-active {
  color: var(--bronze-deep);
  background: var(--ivory-2);
}
.menu-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  border-radius: var(--r-md);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  transition: border-color var(--t-fast) var(--ease);
}
.menu-toggle:hover { border-color: var(--bronze); }
.menu-toggle span {
  display: block;
  width: 18px; height: 1.4px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

/* This is a mobile-only experience — hamburger always visible, no desktop nav. */
.nav-main { display: none; }
.menu-toggle { display: inline-flex; }

/* ---------- Mobile nav — bottom sheet (slides up from below) ---------- */
.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--warm-white);
  z-index: 1100; /* above Leaflet (max ~700) and any other overlay */
  transform: translate(-50%, 100%);
  transition: transform var(--t-med) var(--ease);
  overflow-y: auto;
  padding: 28px 28px max(28px, env(safe-area-inset-bottom, 0));
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(20, 14, 6, .35);
}
body.menu-open .mobile-nav { transform: translate(-50%, 0); }

/* Grip handle at top of sheet — visual cue it's swipeable */
.mobile-nav::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 auto 18px;
  background: var(--line);
  border-radius: 2px;
}

.mobile-nav-inner {
  display: flex; flex-direction: column;
}
.mobile-nav-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* 2x2 tile grid */
.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.mnav-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  color: var(--charcoal);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mnav-tile:active { transform: scale(0.98); }
.mnav-tile:hover {
  background: var(--ivory-2);
  border-color: var(--sand);
}
.mnav-tile-icon {
  width: 36px;
  height: 36px;
  color: var(--bronze);
  transition: color var(--t-fast) var(--ease);
}
.mnav-tile-icon svg { width: 100%; height: 100%; }
.mnav-tile-label {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.mnav-tile.is-active {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--warm-white);
}
.mnav-tile.is-active .mnav-tile-icon { color: var(--warm-white); }

body.menu-open { overflow: hidden; }
body.menu-open::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(20, 14, 6, .45);
  z-index: 1099; /* just under the sheet (1100), above Leaflet (~700) */
  animation: fade-in var(--t-med) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--charcoal);
  transition: all var(--t-med) var(--ease);
}
.btn .arrow {
  display: inline-block;
  width: 16px; height: 1.4px;
  background: currentColor;
  position: relative;
  transition: width var(--t-med) var(--ease);
}
.btn .arrow::after {
  content: ''; position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }
.btn-primary {
  background: var(--bronze);
  color: var(--warm-white);
  border-color: var(--bronze);
}
.btn-primary:hover {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--charcoal);
}
.btn-ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-deep);
}

/* ---------- Eyebrow / micro labels ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '— '; opacity: 0.5;
}

/* ---------- Section / page hero ---------- */
.section {
  padding: clamp(56px, 8vw, 110px) 0;
}
.section--ivory { background: var(--ivory); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-wrap: balance;
}
.section-foot {
  margin-top: 40px;
  text-align: center;
}

.page-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--warm-white) 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}
.page-hero-lede {
  max-width: 52ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}
.page-hero--detail { text-align: left; }
.page-hero--detail h1 { margin-left: 0; }
.page-hero--detail .page-hero-lede { margin-left: 0; margin-right: 0; }
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--bronze-deep); }
.detail-meta {
  display: flex; gap: 32px;
  margin-top: 28px;
}
.detail-meta-item {
  display: flex; flex-direction: column;
  gap: 2px;
}
.detail-meta-item .label {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.detail-meta-item .value {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--charcoal);
}

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 64px;
  overflow: hidden;
  isolation: isolate;
  color: var(--warm-white);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(14, 9, 4, 0.78) 0%,
      rgba(14, 9, 4, 0.62) 40%,
      rgba(14, 9, 4, 0.70) 75%,
      rgba(14, 9, 4, 0.88) 100%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: '— '; opacity: 0.6; }
.hero-title {
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--warm-white);
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero-title em {
  color: var(--sand);
  font-style: italic;
  font-weight: 500;
}
.hero-lede {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 48ch;
  color: rgba(255, 253, 248, 0.82);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}
/* Hero is dark → ghost button needs light text. Scope to .hero only;
   the CTA section reuses .hero-actions but on a light bg. */
.hero .hero-actions .btn-ghost {
  color: var(--warm-white);
  border-color: rgba(255, 253, 248, 0.35);
}
.hero .hero-actions .btn-ghost:hover {
  border-color: var(--sand);
  color: var(--sand);
}
/* ---------- Category tiles (home) — horizontal snap carousel ---------- */
.cat-tiles {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--gutter);
  padding: 4px var(--gutter);
  margin-inline: calc(var(--gutter) * -1); /* break out of section container */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tiles::-webkit-scrollbar { display: none; }

.cat-tile {
  position: relative;
  flex: 0 0 78%;
  max-width: 360px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
}
.cat-tile-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  color: var(--warm-white);
}
.cat-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 600ms var(--ease);
}
.cat-tile:hover .cat-tile-bg,
.cat-tile-link:focus-visible .cat-tile-bg { transform: scale(1.05); }

.cat-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(20, 14, 6, 0.25) 0%,
      rgba(20, 14, 6, 0.45) 55%,
      rgba(20, 14, 6, 0.78) 100%);
  pointer-events: none;
}

.cat-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-tile-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--sand);
  text-transform: uppercase;
}
.cat-tile-rule {
  flex: 0 0 32px;
  height: 1px;
  background: var(--sand);
  opacity: 0.6;
}

.cat-tile-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--warm-white);
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 4px 0 6px;
}

.cat-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.cat-tile-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.78);
}
.cat-tile-arrow {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--warm-white);
  flex-shrink: 0;
  transition: background var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.cat-tile-arrow::before,
.cat-tile-arrow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--charcoal);
  transition: background var(--t-med) var(--ease);
}
.cat-tile-arrow::before {
  width: 14px; height: 1.4px;
  margin-left: -7px; margin-top: -1px;
}
.cat-tile-arrow::after {
  width: 7px; height: 7px;
  border-top: 1.4px solid var(--charcoal);
  border-right: 1.4px solid var(--charcoal);
  background: transparent;
  margin-left: 0; margin-top: -3.5px;
  transform: rotate(45deg);
  transition: border-color var(--t-med) var(--ease);
}
.cat-tile:hover .cat-tile-arrow {
  background: var(--bronze);
  transform: translateX(4px);
}
.cat-tile:hover .cat-tile-arrow::before { background: var(--warm-white); }
.cat-tile:hover .cat-tile-arrow::after { border-color: var(--warm-white); }
.cat-num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--bronze);
  display: block;
  margin-bottom: 16px;
}
.cat-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 18px;
}
.cat-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.cat-link .arrow {
  display: inline-block;
  width: 18px; height: 1.4px;
  background: currentColor;
  position: relative;
  transition: width var(--t-med) var(--ease);
}
.cat-link .arrow::after {
  content: ''; position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
}
.cat-link:hover .arrow { width: 26px; }

/* ---------- Category chips (services list page) ---------- */
.cat-chips {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(255, 253, 248, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.cat-chips-inner {
  display: flex; gap: 8px;
  padding: 14px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--gutter);
}
.cat-chips-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm-white);
  scroll-snap-align: start;
  transition: all var(--t-fast) var(--ease);
}
.cat-chip:hover { border-color: var(--bronze); color: var(--bronze-deep); }
.cat-chip.is-active {
  background: var(--bronze);
  color: var(--warm-white);
  border-color: var(--bronze);
}

/* ---------- Service grid (2-column, image-bg with overlay text) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.svc-card {
  position: relative;
}
.svc-card-inner {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  color: var(--warm-white);
  background: var(--ivory-2);
}

.svc-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 600ms var(--ease);
}
.svc-card:hover .svc-card-bg,
.svc-card-inner:focus-visible .svc-card-bg { transform: scale(1.06); }

.svc-card-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 14, 6, 0.05) 0%,
    rgba(20, 14, 6, 0.30) 45%,
    rgba(20, 14, 6, 0.78) 100%);
  pointer-events: none;
}

.svc-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-card-cat {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.4;
  margin-bottom: 2px;
}

.svc-card-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--warm-white);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.svc-card-meta {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: rgba(255, 253, 248, 0.78);
  margin-top: 4px;
}
/* ---------- Service group (services list, all by category) ---------- */
.svc-group { margin-bottom: clamp(48px, 6vw, 80px); }
.svc-group:last-child { margin-bottom: 0; }
.svc-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
  flex-wrap: wrap;
}
.svc-group-head h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}
.svc-group-count {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Values — editorial numbered list (home) ---------- */
.values-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.value-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}
.value-row:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.value-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 500;
  line-height: 1;
  color: var(--bronze);
  letter-spacing: -0.01em;
  align-self: start;
  margin-top: 4px;
  min-width: 1.6ch;
}

.value-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.value-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.005em;
}

.value-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.value-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--bronze-deep);
  opacity: 0.85;
  align-self: start;
  margin-top: 6px;
}
.value-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Detail body (service-detail) ---------- */
.detail-body { max-width: 760px; margin: 0 auto; }
.prose p {
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.8;
  margin-bottom: 1.4em;
  color: var(--charcoal-2);
}
.prose p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.2em;
  font-style: italic;
  color: var(--bronze);
  float: left;
  line-height: 0.9;
  margin-right: 10px;
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  padding: clamp(28px, 2.6vw, 36px);
  background: var(--warm-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-align: center;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.contact-card:hover { border-color: var(--bronze); transform: translateY(-3px); }
.contact-icon {
  display: block;
  font-size: 28px;
  color: var(--bronze);
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.contact-card p {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 6px;
}
.contact-card p a:hover { color: var(--bronze-deep); }
.contact-card-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-address {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}
.contact-address p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--charcoal);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
}
/* Layout: number column (fixed) · question (flex) · toggle (fixed)
   Answer is indented to align with the question column. */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-item summary {
  display: grid;
  grid-template-columns: 32px 1fr 22px;
  align-items: start;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--charcoal);
  transition: color var(--t-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--bronze-deep); }

.faq-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--bronze);
  padding-top: 4px;
}

.faq-q {
  text-wrap: balance;
  font-size: 16px;
  line-height: 1.35;
}

.faq-toggle {
  width: 22px; height: 22px;
  position: relative;
  margin-top: 3px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  background: var(--bronze);
  transition: transform var(--t-med) var(--ease);
}
.faq-toggle::before { width: 14px; height: 1.4px; margin-left: -7px; margin-top: -0.7px; }
.faq-toggle::after  { width: 1.4px; height: 14px; margin-left: -0.7px; margin-top: -7px; }
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); }

/* Answer indented to match question column (32 number + 16 gap = 48px) */
.faq-answer {
  padding: 0 38px 24px 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 60ch;
  overflow: hidden;
  transition: height 320ms cubic-bezier(.4, 0, .2, 1);
}
.faq-answer p { margin-bottom: 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-foot {
  margin-top: 56px;
  text-align: center;
}
.faq-foot p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(70px, 9vw, 130px) 0;
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 121, 70, .08), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-wrap: balance;
  margin-bottom: 18px;
}
.cta-inner p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 28px;
}
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-style: italic;
}

/* ---------- Error pages ---------- */
.error-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 0;
}
.error-inner {
  max-width: 600px;
  text-align: center;
}
.error-inner h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 20px 0 24px;
}
.error-inner p {
  color: var(--muted);
  margin-bottom: 32px;
}
.error-inner .hero-actions { justify-content: center; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Service detail hero image (portrait to match card aspect) ---------- */
.detail-image-section {
  padding: clamp(20px, 3vw, 32px) 0 0;
}
.detail-image {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ivory-2);
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile-only experience: contact grid stays 1 column on narrow screens */
.contact-grid { grid-template-columns: 1fr; }
@media (min-width: 380px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile App Bar — fixed bottom nav (4 tabs) ---------- */
.app-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 253, 248, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 40;
}

.app-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 4px 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-align: center;
  transition: color var(--t-fast) var(--ease);
  min-width: 0;
}

.app-bar-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  line-height: 0;
  transition: transform var(--t-med) var(--ease);
}
.app-bar-icon svg { width: 100%; height: 100%; }
.app-bar-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.app-bar-item:hover {
  color: var(--bronze-deep);
}
.app-bar-item:hover .app-bar-icon {
  transform: translateY(-1px);
}

.app-bar-item.is-active {
  color: var(--bronze-deep);
  font-weight: 600;
}
.app-bar-item.is-active .app-bar-icon { color: var(--bronze); }

/* Center primary CTA — raised bronze disc.
   Disc is absolutely positioned so it doesn't affect flow → the primary item's
   label aligns naturally with the other tabs' labels. A spacer element keeps
   the regular icon slot height so vertical rhythm matches. */
.app-bar-item--primary {
  position: relative;
  color: var(--bronze-deep);
}
.app-bar-item--primary .app-bar-icon-spacer {
  width: 24px;
  height: 24px;
  display: inline-block;
}
.app-bar-primary-disc {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 4px var(--warm-white),
    0 10px 24px -8px rgba(110, 70, 40, 0.45);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.app-bar-primary-disc svg {
  width: 22px;
  height: 22px;
}
.app-bar-item--primary:hover .app-bar-primary-disc {
  background: var(--bronze-deep);
  transform: translateX(-50%) translateY(-2px);
}

/* App-bar is fixed at the bottom (~96px). Last visible section needs enough
   bottom padding to (a) extend its own bg beyond the app-bar coverage (no
   visible warm-white gap) and (b) keep content well above the app-bar.
   Using :last-of-type because some pages have trailing <script> nodes after
   the last <section> (e.g. contact loads Leaflet), which would defeat :last-child. */
main > section:last-of-type,
main > div:last-of-type {
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0)) !important;
}
.cta { padding-bottom: 0; }

/* ---------- Mobile nav — bottom CTA + meta info ---------- */
.mnav-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.mnav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.mnav-cta-btn:hover {
  border-color: var(--bronze);
  color: var(--bronze-deep);
}
.mnav-cta-btn--primary {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--warm-white);
}
.mnav-cta-btn--primary:hover {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
  color: var(--warm-white);
}

.mnav-meta {
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.mnav-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.mnav-meta li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--bronze);
  margin-top: 1px;
}
.mnav-meta a {
  color: var(--charcoal-2);
  transition: color var(--t-fast) var(--ease);
}
.mnav-meta a:hover { color: var(--bronze-deep); }

/* ---------- Contact map (Leaflet) ---------- */
.contact-map-section {
  width: 100%;
}
.contact-map {
  width: 100%;
  height: 380px;
  background: var(--ivory-2);
  /* Leaflet sets its own bg as content loads */
}
.contact-map.is-empty::before {
  content: 'Konum bilgisi henüz eklenmemiş';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-style: italic;
}

/* Leaflet overrides — brand-aligned */
.leaflet-container {
  font-family: var(--font-sans);
  background: var(--ivory) !important;
}
.leaflet-control-zoom a {
  background: var(--warm-white) !important;
  color: var(--charcoal) !important;
  border-color: var(--line-soft) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--ivory) !important;
  color: var(--bronze-deep) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--warm-white) !important;
  color: var(--charcoal) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  box-shadow: 0 18px 36px -12px rgba(20, 14, 6, 0.28) !important;
}
.leaflet-popup-tip { background: var(--warm-white) !important; }
.leaflet-popup-content { margin: 18px 22px !important; }

/* Close button: pull it just outside the content padding, top-right corner */
.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 20px !important;
  line-height: 26px !important;
  color: var(--muted) !important;
  text-align: center !important;
  padding: 0 !important;
}
.leaflet-popup-close-button:hover { color: var(--charcoal) !important; background: transparent !important; }

/* Popup content — leave room on the right for the close button */
.map-popup-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
  padding-right: 24px; /* clear the close button */
}
.map-popup-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  padding-right: 12px;
}
.map-popup-sep {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0 0 12px;
}
.map-popup-addr {
  font-size: 13.5px;
  color: var(--charcoal-2);
  margin: 0 0 14px;
  line-height: 1.55;
}
/* Specificity: scoped under .leaflet-popup-content so we beat the global `a` rule
   and Leaflet's default link color. */
.leaflet-popup-content .map-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--bronze-deep) !important;
  text-decoration: none !important;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.leaflet-popup-content .map-popup-link:hover { color: var(--bronze) !important; gap: 12px; }
.leaflet-popup-content .map-popup-link .arrow {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-sans);
}

/* Custom marker: pin SVG + city badge to the right */
.mira-map-pin {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.mira-pin-shape {
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(20, 14, 6, 0.25));
}
.mira-pin-shape svg { display: block; }
.mira-pin-label {
  flex: 0 0 auto;
  display: inline-block;
  padding: 5px 10px;
  background: var(--bronze);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: 0 4px 10px -2px rgba(110, 70, 40, 0.4);
  /* Lift label to align with pin's center, not bottom */
  margin-bottom: 16px;
}

/* ---------- Editorial contact rows (contact page) ---------- */
.contact-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.contact-rows li {
  border-bottom: 1px solid var(--line-soft);
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 4px;
  color: var(--charcoal);
  text-decoration: none;
  transition: padding-left var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.contact-row:hover,
.contact-row:focus-visible {
  color: var(--bronze-deep);
  padding-left: 12px;
}
.contact-row--info { cursor: default; }
.contact-row--info:hover { color: var(--charcoal); padding-left: 4px; }

.contact-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-row-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.contact-row-arrow {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--bronze);
  transition: transform var(--t-med) var(--ease);
}
.contact-row:hover .contact-row-arrow { transform: translate(2px, -2px); }
.contact-row-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--charcoal) !important; /* override iOS auto-link blue */
  word-break: break-word;
}

/* iOS Safari linkifies tel:/mailto: with default blue — force brand color.
   Exclude buttons (.btn, .mnav-cta-btn, .app-bar-item) which set their own color. */
a[href^="tel:"]:not(.btn):not(.mnav-cta-btn):not(.app-bar-item):not(.app-bar-item--primary),
a[href^="mailto:"]:not(.btn):not(.mnav-cta-btn):not(.app-bar-item):not(.app-bar-item--primary) {
  color: inherit;
}

/* ---------- Branch cards — single image-bg with all content overlaid ---------- */
.branch-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.branch-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--warm-white);
}
.branch-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 600ms var(--ease);
}
.branch-card:hover .branch-card-bg { transform: scale(1.04); }
.branch-card-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 14, 6, 0.30) 0%,
    rgba(20, 14, 6, 0.05) 30%,
    rgba(20, 14, 6, 0.60) 70%,
    rgba(20, 14, 6, 0.85) 100%);
  pointer-events: none;
}

/* Top-left index badge */
.branch-card-index {
  position: absolute;
  top: 20px;
  left: 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 253, 248, 0.85);
}

/* Top-right circular action button */
.branch-card-action {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--warm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(110, 70, 40, 0.55);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.branch-card-action:hover {
  background: var(--bronze-deep);
  transform: translate(2px, -2px);
}
.branch-card-action svg { width: 18px; height: 18px; }

/* Bottom content stack (city title, hotel, address, phone) */
.branch-card-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.branch-card-city {
  font-family: var(--font-serif);
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--warm-white);
}
.branch-card-hotel {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

/* Address + phone — small overlay text */
.branch-card-meta {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.branch-card-meta li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 253, 248, 0.88);
}
.branch-card-meta li svg {
  color: var(--sand);
  margin-top: 2px;
}
.branch-card-meta li a { color: inherit; }
.branch-card-meta li a:hover { color: var(--sand); }
