/* ===================================
   HEKTA Platform — Main Stylesheet
   Design: Natural Forest + Modern Clean
   =================================== */

/* Agrandir Tight (litsentseeritud Pangram Pangram Foundry) — kasuta kui
   fail on lisatud asukohta /assets/fonts/agrandir-tight.woff2. Kuni siis
   font-stack fallbackib Playfair Display'le ja browseri 404 viga ei teki. */

:root {
  /* Color Palette */
  --forest:      #1a3d2b;
  --forest-deep: #0f2419;
  --forest-mid:  #2a5940;
  --moss:        #3d7a52;
  --leaf:        #5a9e6f;
  --sage:        #7ab893;
  --mint:        #a8d5b5;
  --pale:        #e8f5ed;
  --cream:       #f4f9f6;
  --white:       #ffffff;

  /* Accents */
  --gold:        #c8a84b;
  --gold-light:  #e8c96d;
  --red:         #d94f4f;
  --orange:      #e07b39;

  /* Text */
  --text-dark:   #1a2e22;
  --text-mid:    #3d5a46;
  --text-light:  #6b8f76;
  --text-muted:  #9bbda8;

  /* UI */
  --border:      #d0e6d8;
  --border-dark: #a8c9b4;
  --shadow-sm:   0 2px 8px rgba(26,61,43,0.08);
  --shadow-md:   0 8px 24px rgba(26,61,43,0.12);
  --shadow-lg:   0 20px 60px rgba(26,61,43,0.18);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Typography */
  --font-display: 'Agrandir Tight', 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.25s;

  /* Blogi postituse pealkirja+lõikude suurused.
     Algselt H1=clamp(2rem,5vw,4rem), H2=1.55rem — nüüd ligikaudu pooleks.
     Suurusi saab siit tuunida ilma blog.php-d puutumata. */
  --blog-title-size:    clamp(1.25rem, 2.6vw, 2rem);
  --blog-h2-size:       clamp(0.95rem, 1.6vw, 1.18rem);
  --blog-h3-size:       clamp(0.88rem, 1.3vw, 1rem);
  --blog-hero-opacity:  0.65;
  --blog-hero-height:   clamp(140px, 22vw, 240px);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--moss); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--forest); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-primary:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* Nav button sizes */
.btn-primary-sm {
  display: inline-flex; align-items: center;
  padding: 9px 22px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--forest);
  transition: all var(--duration) var(--ease);
}
.btn-primary-sm:hover { background: var(--forest-mid); color: var(--white); }

.btn-outline-sm {
  display: inline-flex; align-items: center;
  padding: 9px 22px;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border-dark);
  transition: all var(--duration) var(--ease);
}
.btn-outline-sm:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--forest-deep);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(15,36,25,0.97);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 40px;
}

/* Pikenda navbar serva-servani: jäta logo viseelauast vasakule */
.navbar .nav-inner.container {
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.logo-text {
  font-family: 'Agrandir Tight', 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.logo-text-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.logo-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 1200px) {
  .logo-tagline { display: none; }
}

.nav-link-mobile-auth { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-user-menu { position: relative; }

.nav-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  z-index: 100;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: background var(--duration);
}
.user-dropdown a:hover { background: var(--pale); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.user-dropdown .text-red { color: var(--red); }
.user-dropdown .text-red:hover { background: #fff5f5; }

/* Avalikud nav-lingid kuvame avatari-menüüs ainult mobiilis (kus hamburger on peidetud) */
.user-dropdown-mobile-nav { display: none; }
@media (max-width: 640px) {
  .user-dropdown-mobile-nav { display: block; }
  /* Kelluke ja avatari paneel — fikseeri viewport'i, et mahuks alati kogu ekraanile */
  #hektaBellPanel { position: fixed !important; top: 64px !important; right: 8px !important; left: 8px !important; width: auto !important; max-width: none !important; }
  .user-dropdown { position: fixed; top: 64px; right: 8px; left: auto; min-width: 0; width: 240px; max-width: calc(100vw - 16px); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--forest-deep);
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(90,158,111,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(61,122,82,0.14) 0%, transparent 50%),
    linear-gradient(135deg, #0f2419 0%, #1a3d2b 40%, #0f2419 100%);
}

/* Hero slideshow — 4 hooaja pilti vahelduvad ühe-haaval taustal */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideFade 32s infinite;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }

@keyframes heroSlideFade {
  0%   { opacity: 0; transform: scale(1.04); }
  6%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.10); }
  31%  { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.04); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(15,36,25,0.25) 0%, rgba(15,36,25,0.45) 75%),
    linear-gradient(180deg, rgba(15,36,25,0.3) 0%, rgba(15,36,25,0.15) 40%, rgba(15,36,25,0.4) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; }
  .hero-slide:nth-child(n+2) { display: none; }
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-banner-link {
  position: relative;
  z-index: 2;
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.45);
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: fill;
}
@media (max-width: 768px) {
  .hero-banner-img { height: 140px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 80px;
}

.hero-text {
  text-align: center;
  margin: 0 auto;
  max-width: 820px;
}

.hero-text .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-text .hero-cta,
.hero-text .hero-stats {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(90,158,111,0.18);
  border: 1px solid rgba(90,158,111,0.4);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  animation: fadeInUp 0.6s var(--ease) both;
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s var(--ease) both;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.35);
}

.hero-title .highlight {
  color: var(--sage);
  position: relative;
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s var(--ease) both;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s var(--ease) both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeInUp 0.6s 0.4s var(--ease) both;
}

.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s 0.2s var(--ease) both;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 0.8s 0.5s var(--ease) both;
}

.hero-gallery.hero-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
}

.hero-gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
  transition: transform 0.4s var(--ease);
}

.hero-gallery-img:hover { transform: translateY(-6px) scale(1.03); }

@media (max-width: 900px) {
  .hero-gallery.hero-gallery-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-gallery,
  .hero-gallery.hero-gallery-4 { grid-template-columns: 1fr; gap: 16px; }
}

.hero-search-card {
  background: rgba(122,184,147,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-label {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

.hero-stats--in-card {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.hero-stats--in-card .stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats--in-card .stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--forest-deep);
  line-height: 1;
}
.hero-stats--in-card .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}

.search-field {
  position: relative;
  margin-bottom: 16px;
}

.search-field label {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.search-field select,
.search-field input {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text-dark);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration);
}

.search-field select option { background: var(--white); color: var(--text-dark); }

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--moss);
}

.hero-search-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 18px;
  background: var(--gold);
  color: var(--forest-deep);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hero-search-btn:hover {
  background: var(--gold-light);
  color: var(--forest-deep);
  transform: translateY(-1px);
}

/* ---- Categories Section ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--forest-deep); }
.section-light { background: var(--cream); }
.section-pale { background: var(--pale); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--pale);
  color: var(--moss);
  border: 1px solid var(--mint);
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.section-dark .section-tag {
  background: rgba(90,158,111,0.15);
  border-color: rgba(90,158,111,0.3);
  color: var(--sage);
}

.section-title { margin-bottom: 16px; }
.section-title-sm { font-family: 'Agrandir Tight', 'Playfair Display', Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: 0.2px; }

/* Pealkirja allakriipsu efekt — kuldne joon tõmmatakse vasakult paremale,
   kui sektsioon nähtavale tuleb (kasutab .reveal -> .visible mehhanismi). */
.title-underline {
  font-size: clamp(1.225rem, 1.9vw, 1.525rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.85s var(--ease);
}

.reveal.visible .title-underline::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .title-underline::after { transform: scaleX(1); transition: none; }
}
.section-dark .section-title { color: var(--white); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.55); }

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pale);
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.category-card:hover .category-image img { transform: scale(1.06); }

.category-card-body {
  padding: 16px 18px 22px;
}

/* Vana ikooni stiil säilib fallbackina */
.category-card > .category-icon { padding-top: 28px; }

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--moss), var(--leaf));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.category-card:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.category-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: calc(16.67% + 20px); right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--pale);
}

.step-title { font-size: 1.2rem; margin-bottom: 12px; }
.step-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.step-card h3 { margin-bottom: 20px; }

/* ---- Sidebar subcategory accordion (kategoorial alamkategooriad inline) ---- */
.category-row {
  position: relative;
  cursor: pointer;
}
.category-row .category-row-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform .2s var(--ease);
  opacity: 0.6;
}
.category-row.is-open .category-row-chevron {
  transform: rotate(180deg);
  color: var(--moss);
  opacity: 1;
}
.category-row.is-open {
  font-weight: 600;
  color: var(--forest-deep);
}

.subcategory-list {
  margin: 4px 0 12px 26px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: subcategoryOpen 0.2s var(--ease);
}

@keyframes subcategoryOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subcategory-item {
  font-size: 0.88rem;
  padding: 4px 0;
}

.subcategory-item-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ---- Service pills (alamkategooriad search.php päises) ---- */
.service-pills {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 4px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
}
.service-pills::-webkit-scrollbar { height: 6px; }
.service-pills::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 100px; }

.service-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}
.service-pill:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.service-pill.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--forest-deep);
  font-weight: 700;
}
.service-pill.is-active:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest-deep);
}

/* ---- How it works pair (Tellijale + Pakkujale 2 veergu) ---- */
.how-it-works-pair { padding: 80px 0; }

.hiw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hiw-column {
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

/* Selles sektsioonis section-tag väiksem (üldine on 2.4rem, siin tagasi sobivaks) */
.hiw-column .section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 16px;
  margin-bottom: 14px;
}

.hiw-column .section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hiw-column .section-subtitle { font-size: 0.95rem; }

.hiw-client {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15,36,25,0.05);
}

.hiw-provider {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 60%, var(--forest-mid) 100%);
  color: var(--white);
}

/* Pakkuja veerus tumedal taustal: kohanda tekstid ja tag */
.hiw-provider .section-tag {
  background: rgba(90,158,111,0.18);
  border-color: rgba(90,158,111,0.4);
  color: var(--sage);
}
.hiw-provider .section-title { color: var(--white); }
.hiw-provider .section-subtitle { color: rgba(255,255,255,0.7); }
.hiw-provider .step-title { color: var(--white); }
.hiw-provider .step-text { color: rgba(255,255,255,0.65); }
.hiw-provider .step-number { background: var(--moss); box-shadow: 0 0 0 8px rgba(255,255,255,0.04); }

/* Sammud vertikaalselt veeru sees, ilma horisontaalse jooneta */
.steps-stack {
  grid-template-columns: 1fr;
  gap: 24px;
}
.steps-stack::before { display: none; }
.steps-stack .step-card {
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
}
.steps-stack .step-card .step-number {
  margin: 0;
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgba(15,36,25,0.04);
  grid-row: 1 / span 2;
  grid-column: 1;
}
.steps-stack .step-card .step-title {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 4px;
  align-self: center;
}
.steps-stack .step-card .step-text {
  grid-column: 2;
  grid-row: 2;
}

.hiw-cta {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}

@media (max-width: 900px) {
  .hiw-grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-column { padding: 32px 24px; }
  /* Pikad CTA-tekstid (nt "Alusta juba täna — 4,99 € esimene kuu") peavad murduma */
  .hiw-cta .btn { white-space: normal; text-align: center; max-width: 100%; padding: 16px 22px; }
}

/* ---- Provider Cards ---- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Pakkujate marquee sektsioon pannakse hero-le lähemale —
   ülaserva padding vähendatud, alaserva tihedalt järgmise sektsiooniga. */
.providers-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.categories-section {
  padding-top: 32px;
}

.providers-section .section-header {
  margin-bottom: 14px;
}

.providers-section .section-header h2 {
  margin-bottom: 0;
}

/* ---- Providers marquee (auto-scroll vasakult paremale) ---- */
.providers-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.providers-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: providersMarquee 50s linear infinite;
}

.providers-marquee:hover .providers-track {
  animation-play-state: paused;
}

@keyframes providersMarquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.providers-marquee .provider-card {
  width: 280px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15,36,25,0.06);
}

.providers-marquee .provider-card-header {
  padding: 14px 18px;
  gap: 12px;
}

.providers-marquee .provider-avatar {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.providers-marquee .provider-name {
  font-size: 1rem;
}

.providers-marquee .provider-card-body { padding: 14px 18px; }
.providers-marquee .provider-card-footer { padding: 12px 18px; }

@media (prefers-reduced-motion: reduce) {
  .providers-track { animation: none; transform: none; }
}

.provider-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}

.provider-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--mint);
}

.provider-card-header {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.provider-meta { flex: 1; min-width: 0; }
.provider-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-location {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.provider-card-body { padding: 20px 24px; }

.provider-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: 0.95rem; }
.rating-count { color: var(--text-muted); font-size: 0.85rem; }

.provider-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background: var(--pale);
  color: var(--moss);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

.provider-card-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-from { font-size: 0.82rem; color: var(--text-light); }
.price-value { font-weight: 700; color: var(--forest); font-size: 1.05rem; }

/* ---- Search Page ---- */
.search-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 100px;
  min-height: 100vh;
}

.search-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.filter-section { margin-bottom: 28px; }
.filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.filter-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--duration);
}
.filter-input:focus {
  outline: none;
  border-color: var(--moss);
  background: var(--white);
}

.filter-checkbox-list { display: flex; flex-direction: column; gap: 10px; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-mid);
}
/* Custom 14x14 sisendid — natiivse OS-i checkbox/radio rendering ignoreerimine */
.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border-dark);
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-checkbox input[type="checkbox"] { border-radius: 3px; }
.filter-checkbox input[type="radio"]    { border-radius: 50%; }

.filter-checkbox input[type="checkbox"]:checked,
.filter-checkbox input[type="radio"]:checked {
  background: var(--forest);
  border-color: var(--forest);
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: none;
}
.filter-checkbox input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  background: var(--white);
  border-radius: 50%;
}

.filter-checkbox input[type="checkbox"]:focus-visible,
.filter-checkbox input[type="radio"]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.address-map-row {
  display: flex;
  gap: 10px;
}
.address-map-row .form-control { flex: 1; min-width: 0; }
.address-map-row .btn { flex: 0 0 auto; }
.address-map-panel {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
#inquiryAddressMap {
  height: 320px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #d8ead9;
}
#inquiryAddressMap .leaflet-pane,
#inquiryAddressMap .leaflet-tile,
#inquiryAddressMap .leaflet-marker-icon,
#inquiryAddressMap .leaflet-marker-shadow,
#inquiryAddressMap .leaflet-tile-container,
#inquiryAddressMap .leaflet-pane > svg,
#inquiryAddressMap .leaflet-pane > canvas,
#inquiryAddressMap .leaflet-zoom-box,
#inquiryAddressMap .leaflet-image-layer,
#inquiryAddressMap .leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
#inquiryAddressMap .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}
#inquiryAddressMap .leaflet-tile-container {
  pointer-events: none;
}
#inquiryAddressMap .leaflet-control-container .leaflet-top,
#inquiryAddressMap .leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
#inquiryAddressMap .leaflet-control {
  pointer-events: auto;
}
#inquiryAddressMap .leaflet-top { top: 0; }
#inquiryAddressMap .leaflet-right { right: 0; }
#inquiryAddressMap .leaflet-bottom { bottom: 0; }
#inquiryAddressMap .leaflet-left { left: 0; }
#inquiryAddressMap .leaflet-control-zoom {
  border: 1px solid rgba(26, 61, 43, 0.18);
  border-radius: 8px;
  overflow: hidden;
  margin: 10px;
  background: #fff;
}
#inquiryAddressMap .leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: var(--forest);
  text-decoration: none;
  font-weight: 800;
}
#inquiryAddressMap .leaflet-control-zoom a + a {
  border-top: 1px solid var(--border);
}
#inquiryAddressMap .leaflet-control-attribution {
  margin: 0;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}
#inquiryAddressMap .leaflet-control-attribution a {
  color: var(--forest);
}
.address-map-help {
  margin: 0;
  padding: 10px 12px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.address-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--text-mid);
  font-size: 0.9rem;
}
.address-confirm-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}
.address-confirm-btn.is-yes { background: var(--forest); }
.address-confirm-btn.is-no { background: var(--red); }

@media (max-width: 640px) {
  .address-map-row { flex-direction: column; }
  .address-map-row .btn { width: 100%; justify-content: center; }
  #inquiryAddressMap { height: 280px; }
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count { color: var(--text-light); font-size: 0.95rem; }

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-dark);
}

.view-toggle {
  display: flex;
  background: var(--pale);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.view-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  background: none;
  border: none;
  color: var(--text-light);
  transition: all var(--duration);
}
.view-btn.active {
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Map */
#map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  background: var(--pale);
}

/* ---- Provider Profile Page ---- */
.profile-hero {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%);
  padding: 120px 0 60px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}

.profile-avatar-large {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.25);
}

.profile-info .provider-name-lg {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.profile-info .provider-details {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile-actions { display: flex; gap: 12px; }

.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
}

.profile-main > section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.section-divider {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Services list on profile */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--pale);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.service-item-name { color: var(--text-dark); font-weight: 500; }
.service-item-price { color: var(--moss); font-weight: 600; }
.service-item-booking {
  display: flex;
  gap: 6px;
}
.booking-badge {
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.inquiry-badge {
  background: var(--pale);
  color: var(--moss);
  border: 1px solid var(--mint);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-card {
  aspect-ratio: auto;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(26, 61, 43, 0.06);
  min-width: 0;
}
.portfolio-lightbox-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--pale);
  cursor: zoom-in;
  overflow: hidden;
}
.portfolio-lightbox-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}
.portfolio-lightbox-trigger:hover img {
  transform: scale(1.025);
}
.portfolio-card-body {
  padding: 12px 14px 8px;
  min-height: 46px;
}
.portfolio-card-body p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.portfolio-card-actions {
  padding: 0 14px 14px;
}
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(8, 15, 12, 0.88);
}
.portfolio-lightbox[hidden] {
  display: none;
}
.portfolio-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}
.portfolio-lightbox p {
  max-width: min(720px, 92vw);
  margin: 0;
  color: var(--white);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
}
.portfolio-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.portfolio-lightbox-open {
  overflow: hidden;
}
.portfolio-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pale);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  padding: 20px;
  background: var(--pale);
  border-radius: var(--radius-md);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.reviewer-name { font-weight: 600; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-comment { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* Booking widget */
.booking-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--duration);
}
.form-control:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(61,122,82,0.1);
}
.form-control.error { border-color: var(--red); }

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 5px;
}

textarea.form-control { min-height: 100px; resize: vertical; }

/* Calendar */
.calendar-wrap {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}

.calendar-header {
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.cal-nav {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration);
}
.cal-nav:hover { background: rgba(255,255,255,0.15); }

.cal-title { font-weight: 600; font-size: 0.95rem; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--white);
}

.cal-day-name {
  text-align: center;
  padding: 8px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--pale);
  border-bottom: 1px solid var(--border);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50%;
  margin: 3px;
  transition: all var(--duration);
  color: var(--text-mid);
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--pale);
  color: var(--forest);
}

.cal-day.available { color: var(--forest); font-weight: 600; }
.cal-day.selected {
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
}
.cal-day.today { border: 2px solid var(--sage); }
.cal-day.disabled { color: var(--text-muted); opacity: 0.4; cursor: default; }
.cal-day.empty { cursor: default; }

/* ---- Pricing Page ---- */
.pricing-hero {
  background: var(--white);
  padding: 70px 0 40px;
  text-align: center;
}

.pricing-hero h1 {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}
.pricing-hero p { color: var(--text-mid); font-size: 1.15rem; margin-top: 16px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-content: center;
  padding: 80px 0;
}

.pricing-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

/* ---- Tellijate blokk ---- */
.tellijad-section {
  padding: 35px 20px;
  text-align: center;
  margin-top: -40px;
}

.tellijad-title {
  font-size: 30px;
  margin-bottom: 50px;
  color: #1f3d2b;
}

.tellijad-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.tellijad-item {
  max-width: 250px;
}

.tellijad-icon {
  width: 60px;
  height: 60px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: #2e7d32;
}

.tellijad-text {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .tellijad-grid { flex-direction: column; align-items: center; gap: 30px; }
}
.pricing-split-clients {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.pricing-split-clients > .clients-points {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
}
.pricing-split-clients > .clients-points li { flex: 1 1 220px; text-align: left; }

@media (max-width: 720px) {
  .pricing-split-clients > .clients-points { flex-direction: column; }
}
.pricing-split-clients,
.pricing-split-providers {
  border-radius: var(--radius-xl);
  padding: 40px;
}
.pricing-split-providers {
  background: linear-gradient(135deg, var(--pale) 0%, var(--mint) 100%);
  color: var(--forest-deep);
}
.pricing-split-providers h2 { color: var(--forest-deep); }
.pricing-split-providers > div > p { color: var(--forest-deep); opacity: 0.78; }
.pricing-split-providers .section-tag {
  background: rgba(90,158,111,0.15);
  border-color: rgba(90,158,111,0.3);
  color: var(--moss);
}

.pricing-split-clients {
  background: var(--pale);
  color: var(--forest-deep);
  border: 2px solid var(--forest-deep);
}
.pricing-split-clients h2 { color: var(--forest-deep); }
.pricing-split-clients p { color: var(--forest-deep) !important; }
.pricing-split-clients strong { color: var(--forest-deep); }
.clients-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.clients-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: calc(1.05rem + 5px);
  line-height: 1.55;
  color: var(--forest-deep);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  background: transparent;
}
.pricing-split-clients > h2 {
  margin: 0 !important;
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  background: transparent;
}
.clients-points-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}
.pricing-split-providers .pricing-cards { padding: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pricing-split-providers .pricing-card {
  padding: 32px;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 18px rgba(31,61,43,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-split-providers .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(31,61,43,0.12);
}
.pricing-split-providers .pricing-card p,
.pricing-split-providers .pricing-card .pricing-note { color: var(--text-light) !important; }

@media (max-width: 980px) {
  .pricing-split-providers .pricing-cards { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.pricing-card.featured {
  border-color: var(--forest);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest-deep);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-plan { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--moss); margin-bottom: 8px; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin: 16px 0 6px;
}
.pricing-price sup { font-size: 1.4rem; vertical-align: top; margin-top: 8px; }
.pricing-period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-note { font-size: 0.85rem; color: var(--moss); margin: 12px 0 24px; font-weight: 500; }

.pricing-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.pricing-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--pale);
  color: var(--moss);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta { display: block; text-align: center; }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.auth-visual {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(90,158,111,0.2), transparent 60%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.auth-visual-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.auth-visual-brand:focus-visible,
.auth-logo:focus-visible {
  outline: 3px solid rgba(200,168,75,0.9);
  outline-offset: 4px;
  border-radius: 8px;
}
.auth-visual-brand img { width: 52px; height: auto; }
.auth-visual h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin: 0 0 4px;
  line-height: 1.2;
}
.auth-visual-tagline {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  flex-basis: 100%;
}
@media (min-width: 900px) {
  .auth-visual-tagline { flex-basis: auto; flex: 1; text-align: right; }
}
.auth-visual p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}
.auth-visual-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.auth-visual-perks li {
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-visual-perks li span {
  color: var(--sage);
  font-weight: 700;
}

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  background: var(--white);
}

.auth-form-wrap { width: 100%; max-width: 520px; }

.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; text-decoration: none; }
.auth-logo img { width: 40px; }
.auth-logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
}

.auth-title { font-size: 1.8rem; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-light); margin-bottom: 32px; }

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.role-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--duration);
  text-align: center;
}

.role-option:hover { border-color: var(--sage); }
.role-option.selected {
  border-color: var(--forest);
  background: var(--pale);
}

.role-option .role-icon { font-size: 1.8rem; margin-bottom: 8px; }
.role-option .role-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.role-option .role-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-light); }
.auth-footer a { color: var(--forest); font-weight: 600; }

/* ---- Dashboard ---- */
.dashboard-layout {
  min-height: 100vh;
  padding-top: 70px;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: fixed;
  top: 70px;
  left: 0;
  width: 240px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--duration);
  border-left: 3px solid transparent;
}
.sidebar-menu li a:hover {
  color: var(--text-dark);
  background: var(--cream);
}
.sidebar-menu li a.active {
  color: var(--forest);
  background: var(--pale);
  border-left-color: var(--moss);
}

.sidebar-section-title {
  padding: 20px 24px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.dashboard-main {
  margin-left: 240px;
  padding: 40px;
  background: var(--cream);
  min-height: calc(100vh - 70px);
}

.dashboard-title {
  font-size: 0.95rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.dashboard-subtitle { color: var(--text-light); margin-bottom: 22px; font-size: 0.92rem; }
.dashboard-layout .dashboard-main h1 {
  font-size: 1.15rem !important;
  line-height: 1.2;
}
.dashboard-layout .dashboard-main > h2,
.dashboard-layout .dashboard-main .table-header h3 {
  font-size: 1rem !important;
  line-height: 1.25;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label { font-size: 0.85rem; color: var(--text-muted); }

/* Bookings table */
.bookings-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-pending  { background: #fef3cd; color: #856404; }
.badge-confirmed { background: #d1e7dd; color: #0a3622; }
.badge-completed { background: var(--pale); color: var(--forest); }
.badge-declined  { background: #f8d7da; color: #842029; }
.badge-cancelled { background: var(--cream); color: var(--text-muted); }

/* ---- Alerts ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin: 16px auto;
  max-width: 800px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: #d1e7dd; color: #0a3622; border-left: 4px solid var(--moss); }
.alert-error   { background: #f8d7da; color: #842029; border-left: 4px solid var(--red); }
.alert-info    { background: var(--pale); color: var(--forest); border-left: 4px solid var(--sage); }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Footer ---- */
.footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { width: 48px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--duration);
}
.social-link:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--duration);
}
.footer-col a:hover { color: var(--white); }
.footer-address { font-size: 0.9rem; margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.45); }
.footer-legal a:hover { color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .auth-visual { padding: 20px; }
  .auth-visual h2 { font-size: 1.2rem; }
  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar { position: static; }
  .profile-content { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 640px) {
  main { width: 100%; min-width: 0; }
  .container { width: 100%; padding-left: 16px; padding-right: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--forest-deep);
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline-sm,
  .nav-actions .btn-primary-sm { display: none; }
  /* Logi sisse / Alusta — mobiilis kuvame hamburger-menüü sees */
  .nav-link-mobile-auth { display: block; color: var(--white); font-weight: 600; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; }
  .nav-link-mobile-auth + .nav-link-mobile-auth { border-top: 0; padding-top: 4px; margin-top: 0; }
  .nav-actions { gap: 8px; }
  .nav-inner { gap: 8px; flex-wrap: nowrap; }
  .logo-tagline { display: none; }
  /* Vältida horisontaalset scrolli — mõned hero/hiw blokid on laiemad kui viewport,
     mis tõmbab navbar'i koos endaga ja peidab hamburgeri ekraani servast välja */
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, canvas, svg { max-width: 100%; height: auto; }
  h1, h2, h3, h4, p, td, th, label {
    overflow-wrap: break-word;
  }
  .btn,
  .btn-lg,
  .btn-sm,
  .btn-primary,
  .btn-outline,
  .btn-gold {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .form-control,
  input,
  textarea,
  select {
    max-width: 100%;
  }
  input[type="file"] {
    font-size: 0.88rem;
  }
  .provider-service-form {
    grid-template-columns: 1fr !important;
  }
  .provider-service-form > div,
  .provider-service-form > button {
    grid-column: auto !important;
  }
  .table-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .table-header > div {
    flex-wrap: wrap;
  }
  .bookings-table,
  .admin-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bookings-table table,
  .admin-container table {
    min-width: 620px;
  }
  .booking-calendar .table-header {
    align-items: flex-start !important;
  }
  .booking-calendar-nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
  }
  .booking-calendar-nav .btn {
    min-width: 0;
    padding: 10px 8px;
    white-space: nowrap;
  }
  .booking-calendar-grid {
    min-width: 560px;
  }
  .alert {
    margin-left: 16px;
    margin-right: 16px;
  }
  .hiw-tips-grid { grid-template-columns: 1fr !important; padding: 24px !important; gap: 24px !important; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .hero-slide {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-slide:nth-child(n+2) { display: none; }
  .providers-marquee {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .providers-track {
    animation: none;
    transform: none;
    width: 100%;
    flex-direction: column;
  }
  .providers-marquee .provider-card {
    width: 100%;
  }
  .providers-marquee .provider-card.is-clone {
    display: none;
  }
  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .portfolio-photo {
    aspect-ratio: auto;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }
  .portfolio-photo img {
    display: block;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .portfolio-card .portfolio-lightbox-trigger img {
    height: 100%;
    aspect-ratio: auto;
  }
  .portfolio-photo form {
    padding-bottom: 14px !important;
  }
  .availability-month-nav {
    display: grid !important;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px !important;
  }
  .availability-month-nav h3 {
    min-width: 0 !important;
    grid-column: 2;
    grid-row: 1;
  }
  .availability-month-nav .btn {
    min-width: 0;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .availability-month-nav .btn:last-child {
    grid-column: 1 / -1;
    margin-left: 0 !important;
    justify-self: center;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ---- How-it-works hero ---- */
.hiw-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
}

/* ---- Hero 3-column background ---- */
.hiw-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hiw-hero-bg-col {
  background-size: cover;
  background-position: center;
}
.hiw-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(15,36,25,0.55) 0%, rgba(15,36,25,0.75) 80%),
    linear-gradient(180deg, rgba(15,36,25,0.45) 0%, rgba(15,36,25,0.35) 40%, rgba(15,36,25,0.55) 100%);
}
.hiw-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hiw-hero-text {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 820px;
  margin: 28px auto 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}

@media (max-width: 720px) {
  .hiw-hero-bg { grid-template-columns: 1fr; }
  .hiw-hero-bg-col:nth-child(n+2) { display: none; }
  .hiw-hero-text { font-size: 1.25rem; }
}

/* ---- How-it-works hero flow diagram ---- */
.hiw-flow {
  margin: 56px auto 0;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.hiw-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.hiw-flow-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: transform 0.3s ease;
}
.hiw-flow-circle svg { width: 48px; height: 48px; }
.hiw-flow-circle--brand {
  background: rgba(90,158,111,0.22);
  border-color: rgba(90,158,111,0.55);
  color: var(--sage);
  width: 112px;
  height: 112px;
  box-shadow: 0 0 0 8px rgba(90,158,111,0.08);
  overflow: hidden;
  padding: 0;
}
.hiw-flow-circle--brand svg { width: 56px; height: 56px; }
.hiw-flow-circle--photo {
  overflow: hidden;
  padding: 0;
  background: rgba(90,158,111,0.22);
  border: 1.5px solid rgba(90,158,111,0.55);
  box-shadow: 0 0 0 8px rgba(90,158,111,0.08);
  position: relative;
}
.hiw-flow-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  transform: scale(1.6) translateX(8%);
  transform-origin: center;
}
.hiw-flow-photo[alt="Tellija"] {
  transform: scale(1.33) translate(5%, 7%);
}
.hiw-flow-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hiw-flow-node:hover .hiw-flow-circle { transform: translateY(-3px); }
.hiw-flow-label {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}
.hiw-flow-node--center .hiw-flow-label { color: var(--white); }
.hiw-flow-sub {
  color: rgba(255,255,255,0.65);
  font-size: calc(0.85rem + 2px);
  max-width: 200px;
  text-align: center;
  line-height: 1.4;
}
.hiw-flow-arrow {
  color: rgba(255,255,255,0.35);
  flex: 1 1 60px;
  max-width: 110px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
}
.hiw-flow-arrow svg { width: 100%; height: auto; max-height: 18px; }

@media (max-width: 720px) {
  .hiw-flow { flex-direction: column; gap: 8px; }
  .hiw-flow-arrow {
    margin-top: 0;
    transform: rotate(90deg);
    width: 60px;
    flex: 0 0 auto;
  }
  .hiw-flow-arrow--rev { transform: rotate(90deg); }
}

/* ---- Client dashboard ---- */
.client-dashboard-shell {
  background: var(--cream);
  padding: 28px 0;
}
.client-dashboard-head {
  margin-bottom: 16px;
}
.client-dashboard-head h1 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 4px;
}
.client-dashboard-head p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0;
}
.client-dash-hero {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%);
  color: var(--white);
  padding: 72px 0 48px;
  margin-bottom: -28px;
  position: relative;
}
.client-dash-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}
.client-dash-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 640px;
}

.client-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
.client-dash-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(31,61,43,0.06);
}
.client-dash-stat { text-decoration: none; color: inherit; cursor: pointer; }
.client-dash-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31,61,43,0.10); }
.client-dash-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--moss);
}
.client-dash-stat-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  line-height: 1;
}
.client-dash-stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: 3px;
}
.client-dash-stat-label {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 600;
}
.client-dash-stat--gold::before   { background: var(--gold); }
.client-dash-stat--info::before   { background: #3b82f6; }
.client-dash-stat--forest::before { background: var(--forest-deep); }
.client-dash-stat--sage::before   { background: var(--sage); }
.client-dash-stat--rose::before   { background: #e57373; }
.client-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.client-dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(31,61,43,0.04);
}
.client-dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.client-dash-card-head h2 { font-size: 1.25rem; margin: 0; }
.client-dash-link { font-size: 0.9rem; color: var(--moss); text-decoration: none; }
.client-dash-link:hover { text-decoration: underline; }
.client-dash-empty { color: var(--text-light); font-size: 0.95rem; padding: 12px 0; }
.client-dash-list { display: flex; flex-direction: column; gap: 12px; }
.booking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.booking-filter {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.booking-filter:hover { border-color: var(--gold); color: var(--forest-deep); }
.booking-filter.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.booking-filter-count {
  background: rgba(0,0,0,0.08);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 0.75rem;
}
.booking-filter.is-active .booking-filter-count { background: rgba(255,255,255,0.25); }
.client-dash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream);
}
.client-dash-item--link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.client-dash-item--link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.client-dash-reviews { display: flex; flex-direction: column; gap: 14px; }
.client-dash-review {
  border-left: 3px solid var(--moss);
  background: var(--cream);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-warning { background: #fff4d6; color: #8a5a00; }
.badge-info    { background: #d6ecff; color: #074a8c; }
.badge-error   { background: #ffd9d9; color: #8a1010; }
.badge-success { background: #d6f5e1; color: #0e6b32; }
.badge-muted   { background: var(--border); color: var(--text-mid); }

/* Favorite toggle button on provider page */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
}
.fav-btn:hover { border-color: var(--moss); color: var(--moss); }
.fav-btn.is-active {
  background: #fff5f6;
  border-color: #e57373;
  color: #c62828;
}
.fav-btn .fav-heart { font-size: 1.1rem; line-height: 1; }

@media (max-width: 800px) {
  .client-dashboard-shell { padding: 20px 0; }
  .client-dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .client-dash-stat { padding: 10px 6px; border-radius: var(--radius-md); }
  .client-dash-stat-value { font-size: 1.15rem; }
  .client-dash-stat-label { font-size: 0.68rem; line-height: 1.15; }
  .client-dash-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Admin layout — responsive
   ============================================ */
.admin-container {
  padding: 120px 0 60px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.admin-title-block { flex: 0 0 auto; }
.admin-title {
  font-size: 2rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.admin-nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.admin-nav-buttons .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-container { padding: 90px 0 40px; }
  .admin-header { flex-direction: column; align-items: stretch; }
  .admin-nav-buttons { justify-content: stretch; }
  .admin-nav-buttons .btn {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}
@media (max-width: 480px) {
  .admin-title { font-size: 1.6rem; }
  /* 2 nuppu reas jääb ka väiksematel telefonidel (9+ nuppu ühes veerus oleks liiga pikk) */
}

/* Admin tabelid mobiilis — horisontaalne scroll, mitte väljaspool ekraani */
.admin-container table.admin-table,
.admin-container table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 700px) {
  .admin-container { padding-left: 12px; padding-right: 12px; }
  .admin-container table { font-size: 0.88rem; }
  .admin-container table td,
  .admin-container table th { padding: 8px 10px !important; }
}

/* ---- Provider dashboard ---- */
.pdash-hero {
  margin-bottom: 28px;
}
.pdash-hero h1 {
  color: var(--text-dark);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin: 0;
}
.pdash-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 16px;
}
.pdash-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.pdash-action-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
  margin-bottom: 36px;
}
.pdash-action-calendar-layout .pdash-action-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.pdash-action-bin {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: 0 4px 12px rgba(31,61,43,0.05);
}
.pdash-action-bin::before {
  content: none;
}
.pdash-action-bin--urgent::before  { background: #e57373; }
.pdash-action-bin--upcoming::before { background: var(--gold); }
.pdash-action-bin--review::before  { background: #f4a3b1; }
.pdash-action-bin--urgent { border-color: #e57373; }
.pdash-action-bin--upcoming { border-color: var(--gold); }
.pdash-action-bin--review { border-color: #f4a3b1; }
.pdash-action-bin h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--text-dark);
}
.pdash-action-bin h3 .count {
  display: inline-block;
  background: var(--cream);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.85rem;
  margin-left: 6px;
  color: var(--text-mid);
  font-weight: 600;
}
.pdash-action-list { display: flex; flex-direction: column; gap: 10px; }
.pdash-action-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.88rem;
}
.pdash-action-item .meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 2px;
}
.pdash-action-item .name { font-weight: 600; color: var(--text-dark); }
.pdash-action-item .actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pdash-action-item .actions button {
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  border: 1px solid;
}
.pdash-btn-confirm { background: var(--pale); color: var(--forest); border-color: var(--mint); }
.pdash-btn-decline { background: #fff5f5; color: #c62828; border-color: #ffc9c9; }
.pdash-btn-complete { background: var(--pale); color: var(--forest); border-color: var(--mint); }
.pdash-action-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 18px 8px;
}
.pdash-action-empty.is-happy { color: var(--moss); }

@media (max-width: 980px) {
  .pdash-action-grid { grid-template-columns: 1fr; }
  .pdash-action-calendar-layout { grid-template-columns: 1fr; }
}

.pdash-calendar-card {
  background: #f3eefb;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: 0 4px 12px rgba(31,61,43,0.05);
}
.pdash-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.pdash-calendar-title {
  flex: 1;
  text-align: center;
}
.pdash-calendar-head h2 {
  font-size: 1.15rem;
  margin: 0;
}
.pdash-calendar-nav {
  align-items: center;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(120,100,170,0.22);
  border-radius: 10px;
  color: var(--text-dark);
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 34px;
}
.pdash-calendar-nav:hover { background: white; color: var(--forest); }
.pdash-calendar-link {
  color: var(--moss);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pdash-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.pdash-mini-dow {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.pdash-mini-empty,
.pdash-mini-day {
  min-height: 42px;
}
.pdash-mini-day {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  text-decoration: none;
}
.pdash-mini-day.is-today {
  border-color: #9b8fe8;
  background: rgba(255,255,255,0.36);
}
.pdash-mini-day.has-avail {
  color: #22202a;
}
.pdash-mini-day.has-booking {
  color: #22202a;
}
.pdash-mini-day.has-blocked {
  color: #ad2f2f;
}
.pdash-mini-day.no-work {
  color: #22202a;
}
.pdash-mini-num {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.pdash-mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.pdash-mini-day.has-booking .pdash-mini-dot,
.pdash-mini-day.has-blocked .pdash-mini-dot {
  opacity: 1;
}
.pdash-mini-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 22px;
}
.pdash-calendar-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.pdash-calendar-views a {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(120,100,170,0.22);
  border-radius: 100px;
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  text-decoration: none;
}
.pdash-calendar-views a.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.pdash-calendar-legend {
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.76rem;
  margin-top: 14px;
  padding-top: 12px;
}
.pdash-calendar-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.pdash-calendar-legend .is-work { background: #22202a; }
.pdash-calendar-legend .is-blocked { background: #cf3d3d; }

.pdash-month-stats {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -4px 0 16px;
  padding: 10px 12px;
}
.pdash-month-stats div {
  align-items: center;
  color: var(--text-mid);
  display: flex;
  font-size: 0.82rem;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.pdash-month-stats strong {
  color: var(--text-dark);
  font-size: 0.95rem;
}
.pdash-month-stats .dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}
.pdash-month-stats .is-work { background: #22202a; }
.pdash-month-stats .is-booking { background: #d88900; }
.pdash-month-stats .is-blocked { background: #cf3d3d; }

@media (max-width: 760px) {
.pdash-month-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pdash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.pdash-stat-card {
  background: var(--white);
  border: 1.5px solid var(--moss);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: left;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(31,61,43,0.05);
  overflow: hidden;
}
.pdash-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--moss);
}
.pdash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31,61,43,0.10);
}
.pdash-stat-icon {
  width: 28px; height: 28px;
  color: var(--moss);
  margin-bottom: 10px;
}
.pdash-stat-icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.pdash-stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.pdash-stat-label {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
}
.pdash-stat-sub {
  color: var(--text-light);
  font-size: 0.78rem;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .pdash-stats { grid-template-columns: repeat(2, 1fr); }
}

.pdash-recent {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 4px 12px rgba(31,61,43,0.04);
}
.pdash-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pdash-recent-head h2 { font-size: 1.15rem; margin: 0; }
.pdash-recent-link { font-size: 0.9rem; color: var(--moss); text-decoration: none; }
.pdash-recent-link:hover { text-decoration: underline; }
.pdash-recent-table { width: 100%; border-collapse: collapse; }
.pdash-recent-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.pdash-recent-table td {
  padding: 14px 12px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.pdash-recent-table tr:last-child td { border-bottom: none; }
.pdash-recent-table tr:hover { background: var(--cream); cursor: pointer; }
.pdash-recent-mobile { display: none; flex-direction: column; gap: 12px; }
.pdash-recent-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pdash-recent-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdash-recent-card .name { font-weight: 600; }
.pdash-recent-card .meta { font-size: 0.85rem; color: var(--text-light); }
.pdash-recent-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .pdash-recent-table { display: none; }
  .pdash-recent-mobile { display: flex; }
}

.pdash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pdash-quick-action {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 4px 12px rgba(31,61,43,0.04);
}
.pdash-quick-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(31,61,43,0.08);
  border-color: var(--mint);
}
.pdash-quick-action .icon {
  width: 32px; height: 32px;
  color: var(--moss);
  margin-bottom: 12px;
  transition: transform .25s;
}
.pdash-quick-action:hover .icon { transform: translateX(4px); }
.pdash-quick-action h4 { font-size: 1rem; margin: 0 0 6px; color: var(--text-dark); }
.pdash-quick-action .desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 10px;
}
.pdash-quick-action .status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss);
}

@media (max-width: 720px) {
  .pdash-quick-actions { grid-template-columns: 1fr; }
}

/* SEO accessibility: visually hidden but crawler-readable */
.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  visibility: hidden;
  pointer-events: none;
}
.sr-only * { display: none !important; }

/* SEO: kategooria-tagasilink ja sarnased pakkujad provider-lehel */
.seo-breadcrumb { padding:14px 0 0; font-size:0.85rem; color:var(--text-muted); }
.seo-breadcrumb a { color:var(--moss); text-decoration:none; }
.seo-breadcrumb a:hover { text-decoration:underline; }
.seo-breadcrumb .sep { margin:0 6px; opacity:0.5; }

.similar-providers { margin:40px 0 80px; }
.similar-providers h2 { font-size:1.4rem; margin-bottom:18px; color:var(--text-dark); }
.similar-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.similar-card { display:block; padding:14px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--white); text-decoration:none; color:inherit; transition:box-shadow .15s,border-color .15s; }
.similar-card:hover { border-color:var(--sage); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.similar-card .name { font-weight:600; color:var(--text-dark); margin-bottom:4px; }
.similar-card .meta { font-size:0.8rem; color:var(--text-muted); }

.cross-categories { margin-top:48px; padding:28px; background:var(--pale); border-radius:var(--radius-lg); }
.cross-categories h2 { font-size:1.2rem; margin-bottom:16px; color:var(--text-dark); }
.cross-categories-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.cross-categories-grid a { display:block; padding:10px 14px; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-sm); text-decoration:none; color:var(--text-mid); font-size:0.9rem; transition:all .15s; }
.cross-categories-grid a:hover { border-color:var(--forest); color:var(--forest); }

.sticky-back-cta { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:90; background:var(--forest); color:#fff; padding:10px 18px; border-radius:100px; font-size:0.88rem; text-decoration:none; box-shadow:0 6px 18px rgba(26,61,43,0.3); display:none; }
.sticky-back-cta:hover { background:var(--forest-deep); color:#fff; }
@media (max-width: 768px) { .sticky-back-cta { display:inline-block; bottom:78px; } }

/* ---- Blogi postituse pealkiri + hero-pilt ---- */
/* Pilt 65% nähtav, H1 selle peal loetav. Suurused tulevad :root muutujatest. */
.blog-post-hero {
  position: relative;
  margin: 14px 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}
.blog-post-hero.has-image {
  min-height: var(--blog-hero-height);
  padding: clamp(20px, 4vw, 36px) clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  background: var(--cream);
}
.blog-post-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--blog-hero-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--blog-hero-opacity);
  z-index: -1;
}
.blog-post-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.78) 100%);
  z-index: -1;
}
.blog-post-title {
  font-size: var(--blog-title-size);
  line-height: 1.15;
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
}
.blog-article-body h2 { font-size: var(--blog-h2-size); line-height: 1.25; margin: 1.6em 0 0.5em; color: var(--text-dark); }
.blog-article-body h3 { font-size: var(--blog-h3-size); line-height: 1.3;  margin: 1.4em 0 0.4em; color: var(--text-dark); }
.blog-article-body h4 { font-size: var(--blog-h3-size); line-height: 1.3;  margin: 1.2em 0 0.3em; color: var(--text-mid); }
