/* =========================================================
   TICA Bulgaria / Estheticat — Design System
   ========================================================= */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f1e6d8;
  --color-surface: #ffffff;
  --color-text: #2a2420;
  --color-text-muted: #6b6058;
  --color-text-soft: #8a8078;
  --color-primary: #a8562f;
  --color-primary-dark: #833f20;
  --color-primary-light: #f3ded2;
  --color-accent: #45644f;
  --color-accent-light: #dfe8dd;
  --color-border: #e8dccb;
  --color-focus: #2f6fed;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.08), 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 36, 32, 0.1);
  --shadow-lg: 0 20px 45px rgba(42, 36, 32, 0.16);

  --max-width: 1180px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--color-text); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75em;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }
.btn-ghost-light { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--color-primary-dark); }
.btn-sm { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.topbar {
  background: var(--color-text);
  color: #f4ede3;
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 1em; flex-wrap: wrap; }
.topbar a { color: #f4ede3; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contacts { display: flex; gap: 1.25em; flex-wrap: wrap; }
.topbar-contacts a { color: #cfc3b4; font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }

.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; color: #cfc3b4; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--color-primary); color: #fff; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}
.brand img { height: 42px; width: auto; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }

.main-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.main-nav a[aria-current="page"] { background: var(--color-primary); color: #fff; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    background: var(--color-surface);
    height: 100vh;
    padding: 90px 24px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0; background: rgba(20,16,12,0.4); z-index: 90;
  }
  .nav-backdrop[data-open="true"] { display: block; }
}

/* -------------------- Hero slider -------------------- */
.hero {
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: var(--color-text);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide[data-active="true"] { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.35) 0%, rgba(20,16,12,0.55) 60%, rgba(20,16,12,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.hero-content .eyebrow { color: #f3ded2; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; }
.hero-content p { color: #f0e9df; font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }

.hero-nav {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot[aria-current="true"] { background: #fff; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
@media (min-width: 700px) { .hero-arrow { display: flex; } }

/* Simple page header (non-slider pages) */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(160deg, var(--color-primary-light), var(--color-bg) 70%);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1em; }
.breadcrumb a { color: var(--color-text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-primary); }

/* -------------------- Cards -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.card-body p { color: var(--color-text-muted); font-size: 0.95rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.6em;
}
.tag--primary { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* -------------------- Cat / Kitten profile cards -------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profile-media {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.profile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.profile-media:hover img { transform: scale(1.06); }
.profile-media::after {
  content: "\1F50D  Виж по-голяма снимка";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.profile-media:hover::after { opacity: 1; }
html[lang="en"] .profile-media::after { content: "\1F50D  View larger photo"; }
.profile-body { padding: 20px 22px 24px; }
.profile-body h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.profile-meta { list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.9rem; color: var(--color-text-muted); display: grid; gap: 4px; }
.profile-meta b { color: var(--color-text); }

/* -------------------- Team -------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.team-card { text-align: left; }
.team-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 16px;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-photo:hover img { transform: scale(1.05); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.team-role { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6em; display: block; }
.team-card p { color: var(--color-text-muted); font-size: 0.92rem; }

/* -------------------- Quote / motto -------------------- */
.quote-block {
  position: relative;
  background: var(--color-text);
  color: #f4ede3;
  border-radius: var(--radius-lg);
  padding: 48px clamp(24px, 6vw, 64px);
  margin: 8px 0;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}
.quote-block cite { display: block; margin-top: 1em; font-size: 0.85rem; color: #cabca9; font-style: normal; }

/* -------------------- Two column layouts -------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.15rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.5em; }
.prose p { color: var(--color-text); }
.prose .lead { color: var(--color-text-muted); }

/* -------------------- Tables / listings -------------------- */
.listing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.listing-table th, .listing-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
  vertical-align: top;
}
.listing-table th { background: var(--color-bg-alt); font-family: var(--font-display); font-weight: 600; }
.listing-table tr:last-child td { border-bottom: none; }
.listing-table td a { font-weight: 600; }

/* -------------------- Forms -------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field .hint { font-size: 0.8rem; color: var(--color-text-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--color-primary); }
.form-field textarea { resize: vertical; min-height: 120px; }
.required-mark { color: var(--color-primary); }

.form-note {
  background: var(--color-accent-light);
  color: #274830;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status[data-state="success"] { display: block; background: #e4f2e6; color: #1f5c30; }
.form-status[data-state="error"] { display: block; background: #fbe6df; color: #8a2f14; }
.form-status[data-state="sending"] { display: block; background: var(--color-bg-alt); color: var(--color-text-muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------- Contact info blocks -------------------- */
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.05rem; }
.info-list { display: grid; gap: 10px; font-size: 0.95rem; }
.info-list dt { font-weight: 700; color: var(--color-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.8em; }
.info-list dd { margin: 0; }
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* -------------------- Alert / notice -------------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-primary-light);
  border: 1px solid #e3bfa3;
  color: #6d3417;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-size: 0.92rem;
}
.notice strong { display: block; margin-bottom: 2px; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 45%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px clamp(24px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.2em; }
.cta-band p { color: #fde9dc; margin: 0; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-text);
  color: #cabca9;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand img { height: 32px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: #cabca9; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #9c8f80; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--color-primary); }

/* -------------------- Lightbox -------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 12, 10, 0.88);
  padding: 24px;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #f4ede3; text-align: center; margin-top: 14px; font-size: 0.9rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* -------------------- Utility -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }
.divider { height: 1px; background: var(--color-border); border: 0; margin: 48px 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
