/* === Lenka Lavičková — masaze-terapie.cz === */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Nunito:wght@300;400;600&display=swap');

/* ── Tokens ── */
:root {
  --bg:          #F6F1E8;
  --bg-card:     #EDE7D9;
  --bg-surface:  #FFFFFF;
  --border:      #C8BAA4;
  --txt:         #2C2416;
  --txt-muted:   #6B5F4E;
  --primary:     #3D5732;
  --primary-h:   #4D7040;
  --accent:      #7A9B64;
  --heading:     #1E1A10;
  --nav-bg:      #2A3124;
  --hero-from:   #253322;
  --hero-to:     #4D7040;
  --shadow:      0 2px 16px rgba(30,24,16,.10);
  --r:           8px;
  --font-disp:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Nunito', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #2E3829;
    --bg-card:    #384432;
    --bg-surface: #3D4A36;
    --border:     #526046;
    --txt:        #EBE5D4;
    --txt-muted:  #B4AA98;
    --primary:    #8FBF76;
    --primary-h:  #A8D48E;
    --accent:     #8FBF76;
    --heading:    #F4EED8;
    --nav-bg:     #1E2819;
    --hero-from:  #253322;
    --hero-to:    #4D7040;
    --shadow:     0 2px 16px rgba(0,0,0,.22);
  }
}
:root[data-theme="dark"] {
  --bg:         #2E3829;
  --bg-card:    #384432;
  --bg-surface: #3D4A36;
  --border:     #526046;
  --txt:        #EBE5D4;
  --txt-muted:  #B4AA98;
  --primary:    #8FBF76;
  --primary-h:  #A8D48E;
  --accent:     #8FBF76;
  --heading:    #F4EED8;
  --nav-bg:     #1E2819;
  --hero-from:  #253322;
  --hero-to:    #4D7040;
  --shadow:     0 2px 16px rgba(0,0,0,.22);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  color: var(--heading);
  text-wrap: balance;
  line-height: 1.2;
}

p { max-width: 68ch; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
}

.section-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--txt-muted);
  margin-bottom: 2.5rem;
  max-width: 56ch;
}

/* ── Nav ── */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.nav-brand {
  font-family: var(--font-disp);
  font-size: 1.35rem;
  font-weight: 500;
  color: #F0EAD8;
  letter-spacing: .02em;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: #C8C0AE;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #F0EAD8; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #C8C0AE;
  border-radius: 2px;
  transition: all .25s;
}

/* mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
}

/* ── Hero ── */
.hero {
  background:
    linear-gradient(160deg, rgba(24,30,18,.83) 0%, rgba(42,68,30,.72) 45%, rgba(58,88,44,.56) 100%),
    url(../img/hero_opt.jpg) center 40%/cover no-repeat;
  color: #F0EAD8;
  padding-block: 110px 92px;
  position: relative;
  overflow: hidden;
}

/* subtle leaf texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 65% 42%, rgba(122,155,100,.32) 0%, transparent 58%),
                    radial-gradient(circle at 18% 78%, rgba(122,155,100,.14) 0%, transparent 48%);
}

.hero-inner {
  position: relative;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding: 5px 12px;
  border: 1px solid rgba(122,155,100,.4);
  border-radius: 20px;
}

.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  color: #F5EED8;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: italic;
  color: #C8D8A8;
}

.hero-lead {
  font-size: 1.1rem;
  color: #C0B89A;
  margin-bottom: 2.4rem;
  max-width: 54ch;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 28px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #8FB874;
  border-color: #8FB874;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #C8D8A8;
  border-color: rgba(200,216,168,.45);
}
.btn-outline:hover {
  background: rgba(200,216,168,.12);
  border-color: rgba(200,216,168,.7);
  color: #D8EAB8;
}

.hero-contact {
  margin-top: 2.8rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #A09880;
}
.hero-contact a { color: #B8C898; }
.hero-contact a:hover { color: #C8D8A8; }
.hero-contact-item { display: flex; align-items: center; gap: .45rem; }

/* ── Section alternating bg ── */
.section-alt { background: var(--bg-card); }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.about-visual {
  position: relative;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  /* placeholder until real photo */
  background: linear-gradient(145deg, #3D5732, #5A7A48);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait svg { opacity: .25; }

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--nav-bg);
  color: #C8D8A8;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-disp);
  font-size: .95rem;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.about-text p { margin-bottom: 1rem; color: var(--txt-muted); }
.about-text p:first-of-type { color: var(--txt); font-size: 1.05rem; }

.about-signature {
  font-family: var(--font-disp);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 1.5rem;
}

/* ── Service cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(30,24,16,.14);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .92rem;
  color: var(--txt-muted);
  margin-bottom: 1.2rem;
}

.service-card .card-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.card-link svg { transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

/* ── Accordion (service pages) ── */
.accordion { display: flex; flex-direction: column; gap: .5rem; }

.acc-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30,24,16,.06);
}

.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.acc-trigger:hover { background: rgba(122,155,100,.06); }
.acc-item.open .acc-trigger { background: rgba(122,155,100,.08); }

.acc-title {
  font-family: var(--font-disp);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--heading);
}

.acc-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .25s;
}
.acc-item.open .acc-arrow { transform: rotate(180deg); background: var(--accent); color: #fff; }

.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.acc-item.open .acc-body { max-height: 9999px; }

.acc-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.acc-content p {
  color: var(--txt-muted);
  margin-top: 1rem;
  max-width: 72ch;
  font-size: .97rem;
}
.acc-content p + p { margin-top: .65rem; }

/* ── News / aktuality ── */
.news-item {
  border-left: 3px solid var(--accent);
  padding: .8rem 1.2rem;
  background: var(--bg-surface);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--shadow);
}
.news-date {
  font-size: .8rem;
  color: var(--txt-muted);
  letter-spacing: .04em;
  margin-bottom: .3rem;
}
.news-text { font-size: 1rem; color: var(--txt); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dt {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.4rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  font-size: 1.05rem;
  color: var(--txt);
  margin-top: .2rem;
}
.contact-info dd a { color: var(--primary); }
.contact-info dd a:hover { color: var(--primary-h); }

.map-embed {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #F0EAD8;
  padding-block: 56px 44px;
}
.page-hero-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.page-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: #F5EED8;
}
.page-hero p {
  margin-top: .8rem;
  color: #A09880;
  font-size: 1rem;
  max-width: 52ch;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .82rem;
  color: var(--txt-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--txt-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ── Footer ── */
.site-footer {
  background: var(--nav-bg);
  color: #A09880;
  padding-block: 40px 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--font-disp);
  font-size: 1.2rem;
  color: #E0D9C8;
  margin-bottom: .5rem;
}
.footer-desc { font-size: .88rem; max-width: 38ch; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: right;
}
@media (max-width: 600px) {
  .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: .8rem; }
}
.footer-links a { color: #A09880; font-size: .88rem; }
.footer-links a:hover { color: #D0C8B0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  font-size: .8rem;
  color: #6B6050;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Logo ── */
.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.hero-logo img { width: 74px; height: 74px; object-fit: contain; }
