/* =========================================================
   Ordinacija EndoSam — Dr Vladimir Samardžić
   Specijalistička endokrinološka ordinacija
   Shared stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --teal-900: #0c413e;
  --teal-800: #0e514d;
  --teal-700: #13615c;   /* primary */
  --teal-600: #177a73;
  --teal-500: #1f938b;
  --teal-100: #d6e8e5;
  --teal-50:  #ecf5f3;

  --clay-700: #a9573a;
  --clay-500: #c97b5a;   /* warm accent */
  --clay-300: #e4b59f;
  --clay-100: #f5e3d9;

  /* Neutrals */
  --sand:  #fbf8f3;      /* page background */
  --cream: #ffffff;
  --ink:   #232a2c;
  --body:  #46545a;
  --muted: #768289;
  --line:  #e8e1d6;
  --line-soft: #f0ebe2;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 40, 38, .05), 0 1px 3px rgba(20, 40, 38, .07);
  --shadow-md: 0 8px 24px rgba(18, 70, 66, .08), 0 2px 6px rgba(18, 70, 66, .06);
  --shadow-lg: 0 24px 60px rgba(12, 65, 62, .14);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);

  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--clay-500); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600; }
p  { margin: 0 0 1rem; }

::selection { background: var(--clay-300); color: var(--teal-900); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--cream); }
.section--teal { background: var(--teal-700); color: #dbeeeb; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--clay-300);
  border-radius: 2px;
}
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal-700);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .92rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--accent { --bg: var(--clay-500); }
.btn--accent:hover { background: var(--clay-700); }
.btn--ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-100);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-800); border-color: var(--teal-500); }
.btn--light { background: #fff; color: var(--teal-800); }
.btn--light:hover { color: var(--teal-900); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--teal-900);
  color: #bfe0db;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
}
.topbar a { color: #e6f4f1; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 15px; height: 15px; opacity: .8; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .9rem;
  padding-block: .7rem;
}
.nav .brand { justify-self: start; }
.nav .primary-nav { justify-self: center; }
.nav .nav__cta { justify-self: end; }
/* The "Pozovite" button is redundant with the top bar phone on tighter widths */
@media (max-width: 1200px) { .nav__cta .btn--ghost { display: none; } }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 12px;
  padding: 6px;
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__name b { color: var(--teal-700); font-weight: 600; }
.brand__sub {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: var(--radius-pill);
  color: var(--body);
  font-weight: 500;
  font-size: .98rem;
}
.nav__links a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav__links a[aria-current="page"] { color: var(--teal-800); background: var(--teal-50); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }

/* Theme & language toggle buttons */
.icon-btn {
  display: inline-grid;
  place-items: center;
  height: 42px;
  min-width: 42px;
  padding: 0 .55rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--body);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { background: var(--teal-50); color: var(--teal-800); border-color: var(--teal-100); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn { grid-auto-flow: column; gap: .35rem; font-weight: 600; font-size: .9rem; padding: 0 .7rem; }
.lang-btn .lang-code { line-height: 1; letter-spacing: .03em; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }

/* Mobile drawer hidden on desktop; tools row inside drawer */
.site-nav-mobile { display: none; }
.drawer-tools { display: flex; gap: .6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.drawer-tools .icon-btn { height: 48px; flex: 1; }
.drawer-tools .lang-switch { height: 48px; flex: 1; }
.drawer-tools .lang-switch__opt { flex: 1; }

/* Segmented SR / EN language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.lang-switch__opt {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  line-height: 1;
  padding: .42rem .62rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch__opt:hover { color: var(--ink); }
.lang-switch__opt[aria-pressed="true"] { background: var(--teal-700); color: #fff; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: rotate(-45deg) translateY(-1.5px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(201,123,90,.12), transparent 60%),
    radial-gradient(55% 60% at 5% 90%, rgba(19,97,92,.10), transparent 60%),
    var(--sand);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--teal-700); font-style: italic; }
.hero__lead { font-size: 1.2rem; max-width: 34rem; margin-bottom: 1.7rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.8rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.hero__trust div { line-height: 1.2; }
.hero__trust b { font-family: var(--font-serif); font-size: 1.5rem; color: var(--teal-800); display: block; }
.hero__trust span { font-size: .85rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--teal-50);
  rotate: 1.4deg;
}
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  rotate: -2deg;
  max-width: 16rem;
}
.hero__badge .dot {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.hero__badge .dot svg { width: 20px; height: 20px; }
.hero__badge b { color: var(--ink); font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card--clay .card__icon { background: var(--clay-100); color: var(--clay-700); }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 6;
  background: var(--teal-50);
}
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg {
  flex: 0 0 auto; width: 22px; height: 22px;
  color: var(--teal-600);
  margin-top: .15rem;
}
.checklist b { color: var(--ink); }

.credentials {
  display: grid;
  gap: .9rem;
  margin-top: 1.4rem;
}
.credentials li {
  display: flex; gap: .85rem; align-items: flex-start;
  list-style: none;
}
.credentials .yr {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--clay-500);
  width: 4.2rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption {
  text-align: left;
  padding: 1.6rem 1.8rem .2rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.price-table th, .price-table td {
  padding: 1.15rem 1.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.price-table thead th {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--teal-50);
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr { transition: background .18s var(--ease); }
.price-table tbody tr:hover { background: var(--sand); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .svc { color: var(--ink); font-weight: 600; }
.price-table .svc small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.price-table .amt {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal-800);
}
.price-table .amt span { font-size: .8rem; color: var(--muted); font-family: var(--font-sans); font-weight: 600; }
.price-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--clay-100);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--clay-700);
}
.price-note svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: .1rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 12.5rem;
  gap: 1rem;
  grid-auto-flow: dense;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal-50);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem .9rem .8rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  background: linear-gradient(to top, rgba(12,65,62,.78), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
/* mosaic spans */
.g-wide  { grid-column: span 8; grid-row: span 2; }
.g-tall  { grid-column: span 4; grid-row: span 2; }
.g-std   { grid-column: span 4; }
.g-half  { grid-column: span 6; }
.g-full  { grid-column: 1 / -1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 30, 28, .9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.3rem; left: 0; right: 0; text-align: center; color: #e8f4f1; font-size: .95rem; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav.prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}
@media (max-width: 960px) { .booking-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1.1rem; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.info-item__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h3 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; }
.info-item p { margin: 0; color: var(--ink); font-weight: 500; }
.info-item a { font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.hours td { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours .closed { color: var(--clay-500); }
.badge-open {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--teal-50); color: var(--teal-700);
}
.badge-open .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fb37f; box-shadow: 0 0 0 0 rgba(47,179,127,.5); animation: pulse 1.8s infinite; }
.badge-open.closed { background: var(--clay-100); color: var(--clay-700); }
.badge-open.closed .pulse { background: var(--clay-500); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,179,127,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,127,0); } }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  background: var(--teal-50);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field label .req { color: var(--clay-500); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--teal-50);
}
.field input:user-invalid, .field select:user-invalid {
  border-color: #d9785e;
  box-shadow: 0 0 0 4px rgba(217,120,94,.12);
}
.field--check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.field--check input { width: auto; margin-top: .25rem; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.form-success {
  display: none;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.3rem;
  color: var(--teal-800);
}
.form-success.show { display: flex; gap: .9rem; align-items: flex-start; }
.form-success svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--teal-600); }
.form-success b { color: var(--teal-900); display: block; margin-bottom: .15rem; }

/* Booking aside */
.booking-aside { display: grid; gap: 1.2rem; align-content: start; }
.aside-card {
  background: var(--teal-700);
  color: #d7eae7;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.aside-card h3 { color: #fff; }
.aside-card a { color: #fff; }
.aside-card .big-phone {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: .3rem 0 1rem;
}
.aside-card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; font-size: .95rem; }
.aside-card li { display: flex; gap: .6rem; align-items: flex-start; }
.aside-card li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .25rem; opacity: .85; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 80% at 90% 20%, rgba(201,123,90,.25), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(255,255,255,.08), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-inner h2 { color: #fff; margin: 0; max-width: 30rem; }
.cta-inner p { color: #cfe8e4; margin: .5rem 0 0; }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(201,123,90,.12), transparent 55%),
    var(--teal-50);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2.4rem, 6vw, 4rem);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumb a { color: var(--teal-700); font-weight: 500; }
.breadcrumb span { margin-inline: .4rem; opacity: .6; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { max-width: 40rem; margin: 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #aecdc8;
  padding-block: clamp(2.6rem, 6vw, 4rem) 1.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer a { color: #cfe6e2; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name b { color: var(--clay-300); }
.footer-brand .brand__sub { color: #7fb0aa; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: #9cc2bc; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-contact { display: grid; gap: .7rem; }
.footer-contact div { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2rem; opacity: .7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: #7fa8a2;
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.footer-social a:hover { background: rgba(255,255,255,.18); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--teal-700);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 30rem; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 32rem; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav__links, .nav__cta .btn--ghost, .nav__cta .icon-btn, .nav__cta .lang-switch { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-nav-mobile {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    z-index: 80;
    padding: 5.5rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    overflow-y: auto;
  }
  body.nav-open .site-nav-mobile { transform: translateX(0); }
  .site-nav-mobile a {
    padding: .9rem 1rem;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 500;
    font-size: 1.05rem;
  }
  .site-nav-mobile a:hover, .site-nav-mobile a[aria-current="page"] { background: var(--teal-50); color: var(--teal-800); }
  .site-nav-mobile .btn { margin-top: 1rem; }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(15,40,38,.4);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
    z-index: 70;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
}

@media (max-width: 680px) {
  .grid--3, .grid--4, .grid--2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: .95rem 1.1rem; }
  .price-table caption { padding: 1.2rem 1.1rem .2rem; }
  /* gallery -> simpler 2-col */
  .gallery { grid-auto-rows: 10rem; }
  .g-wide, .g-half, .g-std { grid-column: span 6; }
  .g-tall { grid-column: span 6; grid-row: span 2; }
  .topbar__group:first-child .topbar__item:not(:first-child) { display: none; }
  .hero__badge { display: none; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 12rem; }
  .g-wide, .g-half, .g-std, .g-tall { grid-column: 1 / -1; grid-row: auto; }
}

/* Keep the header tidy on small phones */
@media (max-width: 560px) {
  .nav__cta .btn--accent { padding: .62rem 1rem; font-size: .9rem; }
}
@media (max-width: 400px) {
  .brand__sub { display: none; }
}

/* =========================================================
   Color scheme / Dark mode
   ========================================================= */
:root { color-scheme: light; }

[data-theme="dark"] {
  color-scheme: dark;

  --sand:  #0f1715;
  --cream: #15201d;
  --ink:   #eef4f2;
  --body:  #bdcac6;
  --muted: #8a9a95;
  --line:  #27332f;
  --line-soft: #1d2723;

  --teal-50:  #13302c;
  --teal-100: #1d453f;

  --clay-100: #382820;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .5);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .6);
}

[data-theme="dark"] body { background: var(--sand); }
[data-theme="dark"] a { color: #6fc8be; }
[data-theme="dark"] a:hover { color: var(--clay-300); }
[data-theme="dark"] ::selection { background: #2c5f58; color: #eef4f2; }

[data-theme="dark"] .site-header { background: rgba(15, 23, 21, .85); border-bottom-color: var(--line-soft); }
[data-theme="dark"] .brand__name b { color: #6fc8be; }
[data-theme="dark"] .brand__mark { color: #7fd0c7; }

[data-theme="dark"] .nav__links a:hover,
[data-theme="dark"] .nav__links a[aria-current="page"] { background: var(--teal-50); color: #a7e0d9; }

[data-theme="dark"] .btn--ghost { color: #88d4cb; border-color: rgba(136, 212, 203, .28); }
[data-theme="dark"] .btn--ghost:hover { background: var(--teal-50); color: #ade3dc; border-color: var(--teal-500); }
[data-theme="dark"] .icon-btn:hover { color: #a7e0d9; }

[data-theme="dark"] .price-table .amt { color: #88d4cb; }
[data-theme="dark"] .price-note { color: #e6b89e; }
[data-theme="dark"] .card--clay .card__icon { color: #e6b89e; }
[data-theme="dark"] .badge-open { background: var(--teal-50); color: #88d4cb; }

[data-theme="dark"] .map-wrap { background: var(--cream); }
[data-theme="dark"] .map-wrap iframe { filter: invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9); }

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(201, 123, 90, .10), transparent 60%),
    radial-gradient(55% 60% at 5% 90%, rgba(31, 147, 139, .12), transparent 60%),
    var(--sand);
}
