/* ===== Nature Mind Therapy – global theme (logo palette + glass UI) ===== */
:root{
  --nm-bg: #E5E4DA;
  --nm-green: #6C834F;
  --nm-green-2: #657C46;
  --nm-brown: #7A5E32;
  --nm-brown-2: #8B724E;

  --nm-text: #1f2a18;
  --nm-muted: rgba(31,42,24,.72);

  --glass: rgba(255,255,255,.76);
  --glass-2: rgba(255,255,255,.66);
  --stroke: rgba(108,131,79,.25);
  --shadow: 0 18px 50px rgba(0,0,0,.10);

  --radius: 22px;
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--nm-text);
  background: var(--nm-bg);
  overflow-x:hidden;
  position: relative;
  min-height: 100vh;
}

/* ===== Background image + soft overlays ===== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(180deg, rgba(229,228,218,.78), rgba(229,228,218,.92)),
    radial-gradient(1200px 900px at 10% 0%, rgba(108,131,79,.22), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(122,94,50,.18), transparent 55%),
    radial-gradient(900px 900px at 40% 120%, rgba(101,124,70,.18), transparent 55%),
    url("/images/bg-hero.jpg") center / cover no-repeat;
  filter: saturate(1.05);
}

body > *{ position: relative; z-index: 1; }

/* ===== Layout ===== */
.wrap, .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.section{
  padding: 18px;
  margin: 14px 0;
}

.grid-2{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* ===== Glass panels ===== */
.card, .panel, .box, .glass{
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===== Typography ===== */
h1,h2,h3{ letter-spacing:.2px; margin:0 0 10px; }
h1{ color: var(--nm-green-2); font-weight:900; font-size: 40px; }
h2{ color: var(--nm-brown); font-weight:900; font-size: 26px; }
h3{ color: var(--nm-green-2); font-weight:900; font-size: 18px; }
p{ margin:0 0 10px; color: var(--nm-text); line-height: 1.55; }
.small{ font-size: 13px; }
.muted{ color: var(--nm-muted); }

/* ===== Links ===== */
a{ color: var(--nm-green-2); text-decoration:none; }
a:hover{ color: var(--nm-green); text-decoration:underline; }

/* ===== Buttons ===== */
.btn, button, input[type="submit"]{
  appearance:none;
  border:0;
  cursor:pointer;
  font-weight:900;
  border-radius: 16px;
  padding: 12px 16px;
  color:#fff;
  background: linear-gradient(135deg, var(--nm-green), var(--nm-green-2));
  box-shadow: 0 10px 28px rgba(108,131,79,.28);
  transition: transform .12s ease, filter .12s ease;
  text-decoration:none;
  display:inline-block;
}

.btn:hover, button:hover, input[type="submit"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  text-decoration:none;
}

.btn.secondary{
  background: linear-gradient(135deg, var(--nm-brown-2), var(--nm-brown));
  box-shadow: 0 10px 28px rgba(122,94,50,.22);
}

.btn.ghost{
  background: rgba(255,255,255,.88);
  color: var(--nm-text);
  border: 1px solid rgba(108,131,79,.25);
  box-shadow: none;
}

.btn.ghost:hover{ filter:none; }

/* ===== Inputs ===== */
input, select, textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(108,131,79,.28);
  background: rgba(255,255,255,.72);
  color: var(--nm-text);
  outline:none;
  font-family: inherit;
}

textarea{ min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus{
  border-color: rgba(108,131,79,.55);
  box-shadow: 0 0 0 4px rgba(108,131,79,.14);
}

/* ===== Header / Nav ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, rgba(108,131,79,.22), rgba(122,94,50,.14));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108,131,79,.18);
}

.header-row{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 950;
  text-decoration:none;
  color: var(--nm-text);
  min-width: 220px;
}

.brand:hover{ text-decoration:none; }

.brand-mark{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(108,131,79,.95), rgba(122,94,50,.85));
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.brand-text{ font-size: 16px; letter-spacing:.2px; }

.site-nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a{
  font-weight: 900;
  color: rgba(31,42,24,.88);
  opacity: .9;
  padding: 8px 10px;
  border-radius: 12px;
}

.site-nav a:hover{
  opacity: 1;
  text-decoration:none;
  background: rgba(255,255,255,.55);
}

.site-nav a.active{
  opacity: 1;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(108,131,79,.20);
}

.header-cta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width: 150px;
}

.nav-toggle{
  display:none;
  border: 1px solid rgba(108,131,79,.25);
  background: rgba(255,255,255,.74);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor:pointer;
}

@media (max-width: 900px){
  .brand{ min-width: auto; }
  .header-cta{ display:none; }
  .nav-toggle{ display:inline-block; margin-left:auto; }
  .site-nav{
    display:none;
    width: 100%;
    justify-content:flex-start;
    padding-bottom: 12px;
  }
  html.nav-open .site-nav{ display:flex; }
  .header-row{ flex-wrap: wrap; }
}

/* ===== Hero ===== */
.hero{
  padding: 20px;
}

.hero-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(108,131,79,.22);
  font-weight: 900;
  color: rgba(31,42,24,.86);
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* ===== Service cards ===== */
.service-card{
  padding: 16px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(108,131,79,.22);
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
}

.service-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 8px;
}

.service-meta span{
  font-size: 13px;
  font-weight: 900;
  color: rgba(31,42,24,.72);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(108,131,79,.18);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== Blog cards ===== */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.blog-card{
  padding: 16px;
}

.blog-meta{
  font-size: 13px;
  color: var(--nm-muted);
  margin-bottom: 6px;
}

.blog-card h3{ margin-bottom: 8px; }
.blog-card p{ margin-bottom: 12px; }

/* ===== Alerts ===== */
.alert{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(108,131,79,.25);
  background: rgba(255,255,255,.78);
  font-weight: 900;
}

.alert.ok{ border-color: rgba(101,124,70,.35); }
.alert.err{ border-color: rgba(122,94,50,.35); }

/* ===== Footer ===== */
.site-footer{
  margin-top: 18px;
  padding: 14px 0 26px;
  opacity: .95;
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.footer-brand{ font-weight: 950; }

@media (max-width: 700px){
  .footer-row{ flex-direction:column; align-items:flex-start; }
  h1{ font-size: 30px; }
}

/* ===== Booking page additions ===== */
.lead{
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.booking-card{
  padding: 22px;
}

.card-title{
  margin: 0 0 14px;
  color: var(--nm-brown);
  font-weight: 900;
  font-size: 24px;
}

.field{
  margin-bottom: 14px;
}

.slots-wrap{
  margin-top: 12px;
  min-height: 56px;
}

#slots{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* override за slot бутоните, защото глобално всички button са зелени */
#slots .slot{
  all: unset;
  box-sizing: border-box;
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(108,131,79,.25);
  background: rgba(255,255,255,.88);
  color: var(--nm-text);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: background .15s ease, border-color .15s ease, transform .12s ease, opacity .15s ease;
}

#slots .slot:hover{
  background:#fff;
  border-color: rgba(108,131,79,.45);
  transform: translateY(-1px);
}

#slots .slot.selected{
  background: linear-gradient(135deg, var(--nm-green), var(--nm-green-2));
  color:#fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(108,131,79,.24);
}

#slots .slot[disabled]{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.help{
  font-size: 14px;
  line-height: 1.55;
}

.policy-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 8px 0 14px;
}

.policy-row input[type="checkbox"]{
  width:18px;
  height:18px;
  min-width:18px;
  margin-top:4px;
  padding:0;
  box-shadow:none;
  accent-color: var(--nm-green);
}

.policy-row label{
  margin:0;
  font-weight:700;
  line-height:1.5;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:10px;
}

#status{
  min-height: 22px;
  font-weight: 700;
}

.foot-note{
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.back-link{
  display:inline-block;
  margin-top: 16px;
  font-weight: 800;
}

@media(max-width:768px){
  .lead{
    font-size:16px;
  }

  .card-title{
    font-size:21px;
  }

  .booking-card{
    padding: 18px;
  }

  .actions{
    flex-direction:column;
    align-items:stretch;
  }

  .actions .btn,
  .actions button{
    width:100%;
    text-align:center;
  }
}