:root{
  --bg:#efe6db;
  --panel:#faf6f0;
  --panel-elevated:#fffdf8;
  --text:#2a231c;
  --muted:#6d5f52;
  --brand:#8a6b42;
  --brand-soft:rgba(138,107,66,.14);
  --accent:rgba(196,165,116,.35);
  --border:rgba(42,35,28,.12);
  --danger:#b54a3c;
  --shadow-sm:0 2px 8px rgba(42,35,28,.06);
  --shadow-md:0 8px 28px rgba(42,35,28,.1);
  --shadow-inset:0 1px 0 rgba(255,255,255,.75) inset;
  --radius-lg:18px;
  --radius-pill:999px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(212,184,138,.2), transparent 58%),
    radial-gradient(720px 480px at 100% 0%, rgba(180,150,120,.12), transparent 52%),
    radial-gradient(ellipse 140% 80% at 50% 100%, rgba(232,223,211,.9), transparent 45%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 42%, #e5dcd0 100%);
  color:var(--text);
  line-height:1.55;
}
::selection{
  background:rgba(196,165,116,.35);
  color:var(--text);
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1100px,92vw);margin:0 auto}
.siteHeader{
  position:sticky;top:0;
  background:linear-gradient(180deg, rgba(255,253,249,.97) 0%, rgba(250,246,239,.93) 55%, rgba(247,241,232,.9) 100%);
  backdrop-filter:blur(14px) saturate(1.15);
  border-bottom:1px solid rgba(138,107,66,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 8px 32px rgba(42,35,28,.07);
  z-index:10;
}
.headerRow{
  display:flex;
  align-items:center;
  gap:clamp(12px,2.5vw,22px);
  min-height:72px;
  flex-wrap:wrap;
  padding:4px 0;
}
.brand{font-weight:700;letter-spacing:.3px;color:var(--text);flex-shrink:0}
.siteHeader .headerRow > a.brand{
  padding:10px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(138,107,66,.12);
  box-shadow:0 2px 12px rgba(42,35,28,.06);
  transition:box-shadow .2s ease,border-color .2s ease;
}
.siteHeader .headerRow > a.brand:hover{
  text-decoration:none;
  border-color:rgba(138,107,66,.22);
  box-shadow:0 5px 18px rgba(42,35,28,.09);
}
.brandLogo{
  display:inline-flex;
  align-items:center;
  line-height:0;
  text-decoration:none !important;
  padding:6px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(138,107,66,.12);
  box-shadow:0 2px 14px rgba(42,35,28,.07), inset 0 1px 0 rgba(255,255,255,.95);
  transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease;
}
.brandLogo:hover{
  text-decoration:none !important;
  border-color:rgba(138,107,66,.2);
  box-shadow:0 6px 22px rgba(42,35,28,.1), inset 0 1px 0 rgba(255,255,255,.95);
  transform:translateY(-1px);
}
.brandLogo img{
  display:block;
  height:clamp(40px,8vw,52px);
  width:auto;
  max-width:min(260px,42vw);
  object-fit:contain;
  object-position:left center;
}
@media (max-width:720px){
  .brandLogo img{
    max-width:min(200px,55vw);
    height:clamp(36px,10vw,48px);
  }
}
.nav{
  display:flex;
  gap:4px;
  flex:1;
  justify-content:center;
  flex-wrap:wrap;
  min-width:0;
  padding:5px;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.62);
  border:1px solid rgba(138,107,66,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 2px 12px rgba(42,35,28,.05);
}
.nav a{
  color:var(--text);
  opacity:.94;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.01em;
  transition:background .18s ease,color .18s ease,opacity .18s ease,box-shadow .18s ease;
}
.nav a:hover{
  text-decoration:none;
  background:linear-gradient(180deg, rgba(212,184,138,.28), rgba(196,165,116,.18));
  opacity:1;
  box-shadow:0 2px 10px rgba(138,107,66,.12);
}
.headerEnd{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  flex-shrink:0;
  margin-left:auto;
  padding:10px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(138,107,66,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 2px 14px rgba(42,35,28,.05);
}
.lang{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:flex-end;
}
.lang a{
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.06em;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.lang a:hover{
  text-decoration:none;
  color:var(--text);
  background:rgba(255,255,255,.85);
  border-color:rgba(138,107,66,.14);
}
.headerAuth{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.headerAuthBtn{
  padding:9px 16px !important;
  border-radius:12px !important;
  font-size:.86rem !important;
  font-weight:600 !important;
  text-decoration:none !important;
  box-shadow:0 2px 10px rgba(42,35,28,.08) !important;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease !important;
}
.headerAuthBtn:hover{
  text-decoration:none !important;
  filter:brightness(1.03);
  box-shadow:0 5px 18px rgba(42,35,28,.12) !important;
  transform:translateY(-2px);
}
.headerAuthBtn:active{transform:translateY(0)}

/** Admin header: lang+logout cluster (no .headerEnd) */
.siteHeader .headerRow > .lang{
  flex-wrap:wrap;
  margin-left:auto;
  justify-content:flex-end;
  padding:10px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(138,107,66,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 2px 14px rgba(42,35,28,.05);
  gap:8px;
}
.siteHeader .headerRow > .lang a[href*="logout"]{
  font-weight:600;
  letter-spacing:.02em;
  padding:8px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(138,107,66,.14);
  color:var(--text);
}
.siteHeader .headerRow > .lang a[href*="logout"]:hover{
  background:rgba(212,184,138,.22);
}

@media (max-width:720px){
  .headerRow{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    min-height:0;
  }
  .nav{width:100%;justify-content:center}
  .headerEnd{
    width:100%;
    margin-left:0;
    align-items:center;
  }
  .headerEnd .lang{justify-content:center}
  .headerEnd .headerAuth{justify-content:center}
  .brandLogo{align-self:center}
  .siteHeader .headerRow > a.brand{align-self:center}
  .siteHeader .headerRow > .lang{
    width:100%;
    margin-left:0;
    justify-content:center;
  }
}
.hero{
  position:relative;
  padding:clamp(48px,8vw,72px) 0 clamp(36px,5vw,48px);
  margin-bottom:8px;
  overflow:hidden;
}
.heroGlow{
  position:absolute;
  right:-8%;
  top:10%;
  width:min(520px,70vw);
  height:min(380px,50vh);
  background:radial-gradient(ellipse at 40% 40%, rgba(212,184,138,.28), transparent 72%);
  pointer-events:none;
  z-index:0;
}
.heroInner{
  position:relative;
  z-index:1;
  max-width:min(52rem,100%);
}
.hero h1{
  font-size:clamp(1.75rem,4vw,2.65rem);
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.12;
  margin:0 0 14px;
  max-width:min(36ch,100%);
  background:linear-gradient(135deg, var(--text) 0%, #4a3d32 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
@supports not (background-clip:text){
  .hero h1{color:var(--text);background:none}
}
.hero h1::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin-top:16px;
  border-radius:2px;
  background:linear-gradient(90deg, var(--brand), rgba(196,165,116,.5));
}
.lead{
  color:var(--muted);
  max-width:42rem;
  margin:0 0 22px;
  font-size:clamp(1rem,1.35vw,1.12rem);
  line-height:1.6;
}
.heroActions{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 20px;border-radius:var(--radius-lg);border:1px solid var(--border);
  background:rgba(255,255,255,.82);color:var(--text);cursor:pointer;
  font-weight:600;
  font-size:.95rem;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease;
}
.button:hover{
  text-decoration:none;
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
  border-color:rgba(138,107,66,.22);
}
.button:active{transform:translateY(0)}
.button:focus-visible{
  outline:2px solid rgba(138,107,66,.45);
  outline-offset:3px;
}
.button.primary{
  background:linear-gradient(165deg, rgba(222,198,150,.75) 0%, rgba(196,165,116,.55) 50%, rgba(180,155,115,.5) 100%);
  border-color:rgba(138,107,66,.38);
  box-shadow:var(--shadow-sm), 0 1px 0 rgba(255,255,255,.5) inset;
}
.button.primary:hover{
  filter:brightness(1.03);
  border-color:rgba(138,107,66,.45);
}
.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,2.5vw,22px);
  padding:28px 0 48px;
}
@media (max-width:900px){.grid3{grid-template-columns:1fr}}
.servicePreview .card h2{
  padding-bottom:10px;
  border-bottom:1px solid rgba(138,107,66,.15);
}
.card{
  border:1px solid var(--border);
  background:linear-gradient(165deg, var(--panel-elevated) 0%, var(--panel) 100%);
  border-radius:var(--radius-lg);
  padding:clamp(18px,2.5vw,22px);
  box-shadow:var(--shadow-sm), 0 1px 0 rgba(255,255,255,.55) inset;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  position:relative;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  border-color:rgba(138,107,66,.18);
}
.card h2{
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:-.02em;
  margin:0 0 10px;
  color:var(--text);
}
.card > p{
  margin:0;
  font-size:.94rem;
  line-height:1.58;
  color:var(--muted);
}
.muted{color:var(--muted)}
.siteFooter{
  border-top:1px solid var(--border);
  padding:22px 0;
  margin-top:40px;
  background:linear-gradient(180deg, rgba(245,239,230,.45), rgba(235,226,215,.55));
}
.footerRow{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.footerRow .muted{font-size:.9rem;opacity:.9}
.footerFacebook{font-size:.9rem;font-weight:600}
.form .field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
label,legend{font-weight:600}
input{
  padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  background:#fff;color:var(--text);
  box-shadow:0 1px 2px rgba(42,35,28,.04) inset;
}
input:focus{outline:2px solid rgba(138,107,66,.35);outline-offset:2px}
.check{display:flex;align-items:center;gap:10px;margin:6px 0}
.error{min-height:18px;color:var(--danger);font-size:.92rem}
.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.contactRow{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
@media (max-width:900px){.contactRow{grid-template-columns:1fr}}
.contactPerson{margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}

.weekCalWrap{max-width:100%}
.weekGrid{
  display:grid;
  width:100%;
  grid-template-columns:72px repeat(7,minmax(0,1fr));
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  position:relative;
  min-width:min(100%,720px);
}
.weekGrid > .wg-corner,
.weekGrid > .wg-dayhead,
.weekGrid > .wg-time,
.weekGrid > .wg-cell{
  background:var(--panel);
  padding:6px 8px;
  font-size:.88rem;
  min-width:0;
}
.wg-dayhead{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;line-height:1.25;text-align:center;
}
.wg-dayhead-date{font-weight:700;font-variant-numeric:tabular-nums}
.wg-dayhead-weekday{font-weight:500;font-size:.78rem;opacity:.88}
.wg-time{color:var(--muted);font-variant-numeric:tabular-nums}
.wg-cell{position:relative;min-height:36px;padding:0 !important}
.wg-holiday{background:rgba(180,74,60,.08) !important}
.wg-free{
  position:absolute;inset:1px;border:0;border-radius:8px;
  background:rgba(138,107,66,.06);cursor:pointer;width:calc(100% - 2px);height:calc(100% - 2px);
}
.wg-free:hover{background:rgba(138,107,66,.14)}
.wg-appt{
  z-index:2;
  margin:2px;
  pointer-events:auto;
  min-width:0;
}
.wg-appt-inner{
  height:100%;
  min-height:100%;
  background:linear-gradient(180deg,rgba(212,184,138,.45),rgba(196,165,116,.32));
  border:1px solid rgba(138,107,66,.35);
  border-radius:10px;
  padding:4px 6px;
  font-size:.78rem;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow:hidden;
  min-width:0;
}
.wg-appt-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;
  min-width:0;
  width:100%;
  flex:1 1 auto;
  min-height:0;
}
.wg-appt-title{
  font-weight:600;
  line-height:1.25;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.wg-appt-toolbar{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  justify-content:flex-end;
  align-items:center;
  gap:4px;
  flex-shrink:0;
}
.wg-appt-inline-form{
  margin:0;
  flex:0 0 auto;
  display:inline-flex;
}
.wg-appt-inline-form .button{margin:0}
.wg-appt-btn{
  padding:3px 8px !important;
  font-size:.72rem !important;
  line-height:1.2;
  flex:0 0 auto;
  white-space:nowrap;
}
.wg-appt-btn.wg-appt-btn--icon{
  display:inline-flex !important;
  padding:3px !important;
  min-width:26px;
  min-height:26px;
  width:26px;
  height:26px;
  align-items:center;
  justify-content:center;
}
.wg-appt-btn.wg-appt-btn--icon svg{
  width:14px;
  height:14px;
  display:block;
  flex-shrink:0;
}
a.wg-appt-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
select{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--text)}

.patientListRow:hover{background:rgba(138,107,66,.07)}
.patientListLink{
  display:block;
  color:inherit;
  text-decoration:none;
  padding:8px;
}
.patientListLink:hover{text-decoration:underline;color:var(--brand)}

/** Patient booking: date/time only set from calendar grid (script), not typed manually */
.inputCalendarPickOnly{
  pointer-events:none;
  cursor:default;
  background:rgba(42,35,28,.06) !important;
  color:var(--text);
}

@media (prefers-reduced-motion:reduce){
  .button,.headerAuthBtn,.card,.brandLogo,.nav a{transition:none}
  .button:hover,.headerAuthBtn:hover,.brandLogo:hover{transform:none}
  .card:hover{transform:none}
}
