/* ════════════════════════════════════════════
   Wishmash — Начална страница
   Темплейт: front-page.php
   (header/nav/footer идват от Elementor темплейта)
   Версия: 2026-06-a
════════════════════════════════════════════ */

:root {
  --bg:           #F8F4EE;
  --surface:      #FFFFFF;
  --surface-warm: #F1EAE0;
  --border:       #DDD4C6;
  --border-dark:  #C4B8A8;
  --text:         #2C2C2C;
  --text-mid:     #7A6555;
  --text-light:   #A89880;
  --accent:       #8C6420;
  --accent-light: #F0E4CC;
  --wood-dark:    #2E1C0A;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --sans:         'Inter', system-ui, sans-serif;
  --serif:        'Lora', Georgia, serif;
  --transition:   0.22s ease;
}

/* Universal reset — specificity (0,1,0) = равна на class-only правила,
   т.е. всяко .wm-home-* с margin/padding идващо СЛЕД ще печели по cascade. */
.wm-home-page *,
.wm-home-page *::before,
.wm-home-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.wm-home-page { font-family: var(--sans); color: var(--text); background: var(--bg); }
.wm-home-page img { display: block; height: auto; }
.wm-home-page a { color: inherit; text-decoration: none; }

/* ─────────────────────────────
   HERO — SPLIT
───────────────────────────── */
.wm-home-hero {
  display: flex;
  height: calc(100vh - 58px);
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.wm-home-hero-left {
  flex: 0 0 38%;
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  transition: background-color 1s ease;
  background-color: #F8F4EE;
  border-right: 4px solid var(--bg);
}

.wm-home-hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 52px 80px;
  opacity: 0; transition: opacity 1.1s ease;
  pointer-events: none;
  visibility: hidden;
}
.wm-home-hero-text.active { opacity: 1; pointer-events: auto; visibility: visible; }

.wm-home-hero-label { font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
.wm-home-hero-title { font-size: clamp(1.6rem, 2.6vw, 2.5rem); color: var(--text); line-height: 1.2; }
.wm-home-hero-sub { font-size: 0.84rem; color: var(--text-mid); line-height: 1.65; max-width: 320px; }

/* Специфичност (0,2,0) — бие (0,1,1) от parent темата без !important */
.wm-home-hero-text .wm-home-hero-label { margin-bottom: 14px; }
.wm-home-hero-text .wm-home-hero-title { font-family: var(--serif); font-weight: 400; margin-bottom: 22px; }
.wm-home-hero-text .wm-home-hero-sub   { font-family: var(--serif); font-style: italic; margin-bottom: 36px; }
.wm-home-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.wm-home-hero-dots {
  position: absolute; bottom: 32px; left: 52px;
  display: flex; gap: 7px; z-index: 10;
}
.wm-home-hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-dark); cursor: pointer; transition: all 0.3s ease; border: none; padding: 0; }
.wm-home-hero-dot.active { background: var(--accent); transform: scale(1.25); }

/* Тъмен ляв панел (slide 2 / 3) */
.wm-home-hero-left.wm-home-dark .wm-home-hero-label { color: rgba(255,255,255,0.55); }
.wm-home-hero-left.wm-home-dark .wm-home-hero-title { color: #fff; }
.wm-home-hero-left.wm-home-dark .wm-home-hero-sub   { color: rgba(255,255,255,0.75); }
.wm-home-hero-left.wm-home-dark .wm-home-hero-dot   { background: rgba(255,255,255,0.35); }
.wm-home-hero-left.wm-home-dark .wm-home-hero-dot.active { background: #fff; }
.wm-home-hero-left.wm-home-dark .wm-home-btn-light { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
.wm-home-hero-left.wm-home-dark .wm-home-btn-light:hover { color: #fff; border-color: rgba(255,255,255,0.8); }

.wm-home-hero-right { flex: 0 0 62%; position: relative; overflow: hidden; background: var(--wood-dark); }
.wm-home-hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}
.wm-home-hero-photo.active { opacity: 1; transform: scale(1); }

/* ─────────────────────────────
   BUTTONS — само рамка
───────────────────────────── */
.wm-home-btn-dark, .wm-home-btn-light, .wm-home-btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 22px;
  background: transparent; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  border-width: 1.5px; border-style: solid;
}
.wm-home-btn-dark svg, .wm-home-btn-light svg, .wm-home-btn-ghost-dark svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.wm-home-btn-dark { border-color: var(--text); color: var(--text); }
.wm-home-btn-dark:hover { border-color: var(--accent); color: var(--accent); }

.wm-home-btn-light { border-color: rgba(255,255,255,0.65); color: rgba(255,255,255,0.9); }
.wm-home-btn-light:hover { border-color: #fff; color: #fff; }

.wm-home-btn-ghost-dark { height: 40px; padding: 0 20px; font-size: 0.76rem; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.35); }
.wm-home-btn-ghost-dark:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* На светъл фон (картите "Направи го твое") бутонът е тъмна рамка */
.wm-home-personal-card-content .wm-home-btn-light {
  border-color: var(--border-dark); color: var(--text-mid);
}
.wm-home-personal-card-content .wm-home-btn-light:hover {
  border-color: var(--accent); color: var(--accent);
}

/* ─────────────────────────────
   SECTION
───────────────────────────── */
.wm-home-section { padding: 64px 20px; max-width: 1600px; width: 100%; margin: 0 auto; }
.wm-home-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.wm-home-section-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--text); line-height: 1.2; }
.wm-home-section-tagline { font-size: 0.82rem; color: var(--text-mid); font-style: italic; font-family: var(--serif); margin-top: 4px; }
.wm-home-section-link { font-size: 0.76rem; font-weight: 500; color: var(--accent); display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: gap var(--transition); }
.wm-home-section-link:hover { gap: 8px; }
.wm-home-section-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wm-home-divider { border: none; border-top: 1px solid var(--border); margin: 0 20px; }

/* ─────────────────────────────
   ТОП КАТЕГОРИИ
───────────────────────────── */
.wm-home-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wm-home-cat-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition); }
.wm-home-cat-card:hover { box-shadow: 0 8px 32px rgba(44,28,10,0.10); transform: translateY(-3px); }
.wm-home-cat-card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--surface-warm); }
.wm-home-cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.wm-home-cat-card:hover .wm-home-cat-card-img img { transform: scale(1.04); }
.wm-home-cat-card-body { padding: 16px 18px 18px; }
.wm-home-cat-card-name { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.wm-home-cat-card-desc {
  font-size: 0.75rem; color: var(--text-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wm-home-cats-empty { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-mid); font-style: italic; font-family: var(--serif); }

/* ─────────────────────────────
   ПЕРСОНАЛИЗАЦИЯ
───────────────────────────── */
.wm-home-personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wm-home-personal-card {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition);
}
.wm-home-personal-card:hover { box-shadow: 0 8px 32px rgba(44,28,10,0.10); transform: translateY(-3px); }
.wm-home-personal-card-bg {
  height: 260px; flex-shrink: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.wm-home-personal-card:hover .wm-home-personal-card-bg { transform: scale(1.03); }
.wm-home-personal-card-content {
  position: relative; z-index: 1;
  padding: 24px 28px 28px;
  background: var(--surface);
  color: var(--text);
  display: flex; flex-direction: column; flex: 1;
}
.wm-home-personal-card-label { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.wm-home-personal-card-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--text); margin-bottom: 16px; line-height: 1.25; }
.wm-home-personal-card-desc { font-size: 0.77rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 20px; }
.wm-home-personal-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; align-self: flex-start; }

/* ─────────────────────────────
   SEASONAL — 50/50
───────────────────────────── */
.wm-home-seasonal-wrap { background: var(--surface-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wm-home-seasonal-inner {
  max-width: 1600px; margin: 0 auto; padding: 64px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.wm-home-seasonal-label { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.wm-home-seasonal-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--text); line-height: 1.2; margin-bottom: 28px; }
.wm-home-seasonal-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 42px; font-family: var(--serif); font-style: italic; }
.wm-home-seasonal-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wm-home-seasonal-photos img { width: 100%; aspect-ratio: 9/16; border-radius: var(--radius); object-fit: cover; }

/* ─────────────────────────────
   FIND US — 50/50
───────────────────────────── */
.wm-home-findus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wm-home-findus-info { display: flex; flex-direction: column; }
.wm-home-findus-address { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.wm-home-findus-address svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.wm-home-findus-address-name { font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 3px; }
.wm-home-findus-address-detail { font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; }
.wm-home-findus-address-detail a { color: var(--accent); }
.wm-home-findus-stands-title { font-size: 0.65rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.wm-home-stand-item { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.wm-home-stand-item:last-child { border-bottom: none; }
.wm-home-stand-date { flex-shrink: 0; width: 44px; text-align: center; background: var(--accent-light); border-radius: var(--radius-sm); padding: 6px 4px; }
.wm-home-stand-date-day { font-size: 1.1rem; font-weight: 600; color: var(--accent); line-height: 1; }
.wm-home-stand-date-month { font-size: 0.58rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.wm-home-stand-name { font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.wm-home-stand-place { font-size: 0.73rem; color: var(--text-mid); }
.wm-home-stand-time { font-size: 0.7rem; color: var(--text-light); margin-top: 2px; }
.wm-home-findus-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wm-home-findus-photos img { width: 100%; aspect-ratio: 9/16; border-radius: var(--radius); object-fit: cover; }

/* ─────────────────────────────
   ЗА НАС
───────────────────────────── */
.wm-home-about-wrap { position: relative; overflow: hidden; }
.wm-home-about-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://wishmash.com/wp-content/uploads/2024/05/chatgpt-image-may-15-2026-06_56_49-pm1.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.2) sepia(0.15);
}
.wm-home-about-inner {
  position: relative; z-index: 1;
  max-width: 1600px; margin: 0 auto; padding: 72px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.wm-home-about-label { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.wm-home-about-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: #fff; line-height: 1.25; margin-bottom: 30px; }
.wm-home-about-desc { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.7; font-family: var(--serif); font-style: italic; margin-bottom: 42px; }

/* Бутонът "Научи повече за нас" е на тъмен фон — текст бял */
.wm-home-btn-ghost-dark { color: #fff !important; border-color: rgba(255,255,255,0.55) !important; }
.wm-home-btn-ghost-dark:hover { border-color: rgba(255,255,255,0.85) !important; }

.wm-home-about-logos { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; justify-content: center; }
/* Текстовото лого е тъмно — инвертираме го за да стане бяло на тъмния фон */
.wm-home-about-logo-text { max-width: 120px; width: 100%; height: auto; display: block; opacity: 0.9; filter: brightness(0) invert(1); }
.wm-home-about-logo-icon { max-width: 120px; width: 100%; height: auto; display: block; opacity: 0.9; margin-top: 8px; }

.wm-home-about-mobile-brand { display: none; }
.wm-home-about-mobile-brand .wm-home-logo-text-img { filter: brightness(0) invert(1); opacity: 0.8; }

/* ─────────────────────────────
   PAGE FOOTER
───────────────────────────── */
.wm-shop-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wm-shop-footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-mid);
  font-style: italic;
  white-space: nowrap;
}
.wm-shop-footer-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wm-shop-footer-meta a {
  color: var(--text-light);
  transition: color var(--transition);
}
.wm-shop-footer-meta a:hover { color: var(--text-mid); }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 1024px) {
  .wm-home-hero-left { flex: 0 0 42%; }
  .wm-home-hero-right { flex: 0 0 58%; }
  .wm-home-hero-text { padding: 40px 36px 72px; }
  .wm-home-hero-dots { left: 36px; }
  .wm-home-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .wm-home-seasonal-inner { padding: 48px 24px; gap: 28px; }
  .wm-home-section { padding: 48px 24px; }
  .wm-home-divider { margin: 0 24px; }
  .wm-home-about-inner { padding: 48px 24px; gap: 40px; }
}

@media (max-width: 768px) {
  /* Hero — стек, фиксирана височина на левия панел */
  .wm-home-hero { flex-direction: column; height: auto; border-right: none; }
  .wm-home-hero-left {
    flex: none; order: 2;
    height: 260px;
    border-right: none;
    border-bottom: none;
    border-top: 4px solid var(--bg);
  }
  .wm-home-hero-text { padding: 28px 24px 52px; }
  .wm-home-hero-title { font-size: 1.5rem; }
  .wm-home-hero-sub { font-size: 0.78rem; margin-bottom: 20px; max-width: 100%; }
  .wm-home-hero-btns { flex-wrap: nowrap; }
  .wm-home-hero-btns .wm-home-btn-dark, .wm-home-hero-btns .wm-home-btn-light { padding: 0 14px; font-size: 0.72rem; height: 38px; white-space: nowrap; }
  .wm-home-hero-dots { display: none; }
  .wm-home-hero-right { order: 1; flex: none; height: 260px; }

  /* Personal cards */
  .wm-home-personal-grid { grid-template-columns: 1fr; gap: 16px; }
  .wm-home-personal-card-bg { height: 200px; }

  /* Seasonal, About, FindUs */
  .wm-home-seasonal-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .wm-home-about-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .wm-home-findus-grid { grid-template-columns: 1fr; }

  /* За нас — лога до бутона на мобилно */
  .wm-home-about-logos { display: none; }
  .wm-home-about-btn-desktop { display: none; }
  .wm-home-about-mobile-brand {
    display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap;
    justify-content: space-between;
  }
  .wm-home-about-mobile-brand a { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .wm-home-section { padding: 40px 20px; }
  .wm-home-divider { margin: 0 20px; }
  .wm-home-cats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
}
