/* ============================================================
   Nordic Spa — Design tokens
   Palette: deep forest, warm sand, muted sage, copper accent.
   Deliberately not the generic AI cream+terracotta or dark+neon look.
   ============================================================ */
:root {
  --forest: #2B2622;
  --forest-2: #3A332C;
  --sand: #FAF6F2;
  --sand-light: #FFFFFF;
  --sage: #93A588;
  --sage-light: #E9E2DC;
  --copper: #B17E68;
  --copper-dark: #8F6350;
  --ink: #2B2622;
  --ink-soft: #6E655D;
  --line: rgba(43, 38, 34, 0.1);

  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;

  --radius: 6px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--copper-dark);
  display: block;
  margin-bottom: 0.6em;
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--copper);
  color: var(--sand-light);
}
.btn-primary:hover { background: var(--copper-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--sand-light); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--sand-light);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.logo span { color: var(--copper); font-style: italic; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--copper);
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: flex; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.lang-toggle a { padding: 2px 4px; }
.lang-toggle a.active { color: var(--copper-dark); }

@media (max-width: 860px) {
  .main-nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--sand);
  color: var(--ink);
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage-light), var(--sand));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper-dark);
  font-size: 1.1rem;
  text-align: center;
  padding: 40px;
}
.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 22px;
}
.call-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); display: inline-block; }
.hero h1 {
  color: var(--forest);
  font-style: italic;
  font-weight: 400;
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
}

/* ---- Stats counter strip (mirrors the reference site's "3 locations / 15 doctors" band) ---- */
.stats-strip {
  background: var(--forest);
  color: var(--sand-light);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--copper); font-style: italic; }
.stats-grid .label { font-size: 0.85rem; color: var(--sage-light); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---- Signature element: the reception "schedule ticket" booking card ---- */
.ticket {
  background: var(--sand-light);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(43, 38, 34, 0.1);
  position: relative;
}
.ticket::before {
  content: "";
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
}
.ticket h3 { margin-bottom: 4px; }
.ticket .ticket-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--copper);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   Availability ribbon (signature element, reused on booking page)
   ============================================================ */
.availability {
  padding: 60px 0;
  background: var(--sand);
}
.availability-header { margin-bottom: 28px; }
.slot-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.slot-card {
  flex: 0 0 auto;
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 150px;
}
.slot-card .slot-day { font-weight: 700; font-size: 0.85rem; color: var(--forest); }
.slot-card .slot-time { font-family: var(--font-display); font-size: 1.3rem; color: var(--copper-dark); }
.slot-card .slot-service { font-size: 0.78rem; color: var(--ink-soft); }

/* ============================================================
   Sections / generic
   ============================================================ */
section { padding: 80px 0; }
.section-header { max-width: 680px; margin-bottom: 44px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* USPs */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.usp-grid h3 { font-size: 1.1rem; }
@media (max-width: 800px) { .usp-grid { grid-template-columns: 1fr; } }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.service-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--copper-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p { flex-grow: 1; }
.service-card .price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest);
  margin: 10px 0 16px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* Therapists */
.therapist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.therapist-card { text-align: center; }
.therapist-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage-light), var(--sand));
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--copper-dark);
}
@media (max-width: 800px) { .therapist-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial-strip {
  background: var(--forest);
  color: var(--sand-light);
}
.testimonial-strip h2 { color: var(--sand-light); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.testimonial-card {
  background: var(--forest-2);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card p { color: var(--sage-light); font-style: italic; font-family: var(--font-display); font-size: 1.05rem; }
.testimonial-card .name { color: var(--sand-light); font-weight: 700; font-size: 0.85rem; font-style: normal; }
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--sage-light);
  text-align: center;
  padding: 70px 0;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--copper-dark); margin-bottom: 4px; }
.contact-info-card .row { margin-bottom: 22px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.alert-success { background: #E4EEE0; color: #2C4D22; border: 1px solid #B9D3AE; }
.alert-error { background: #F6E3DE; color: #7A2E1A; border: 1px solid #E3B4A5; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--forest);
  color: var(--sage-light);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--sand-light); }
.footer-brand .logo span { color: var(--copper); }
.footer-col h4 { color: var(--sand-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.footer-col p, .footer-brand p { color: var(--sage-light); font-size: 0.9rem; }
.footer-bottom { padding: 20px 0; font-size: 0.8rem; color: var(--sage); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Admin panel
   ============================================================ */
.admin-body { background: var(--sand); min-height: 100vh; }
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-card {
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--forest);
  color: var(--sand-light);
  padding: 28px 20px;
  flex-shrink: 0;
}
.admin-sidebar .logo { color: var(--sand-light); font-size: 1.2rem; margin-bottom: 30px; display: block; }
.admin-sidebar nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--sage-light);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: var(--forest-2);
  color: var(--sand-light);
}
.admin-main { flex-grow: 1; padding: 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--sand-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--forest); }
.stat-card .label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.admin-table { width: 100%; border-collapse: collapse; background: var(--sand-light); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { background: var(--sand); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ink-soft); }
.admin-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.badge-pending { background: #F6E9D4; color: #8A5A1D; }
.badge-confirmed { background: #E4EEE0; color: #2C4D22; }
.badge-cancelled { background: #F6E3DE; color: #7A2E1A; }

.admin-form-card { background: var(--sand-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 560px; }
.action-link { font-size: 0.82rem; font-weight: 700; margin-right: 10px; }
.action-link.danger { color: #A5402A; }
