/*
 Theme Name:   soundandhealing-bg-theme
 Theme URI:    https://soundandhealing.bg
 Description:  Тема за Sound & Healing — звукова терапия и биоенергийно лечение
 Template:     astra
 Version:      1.0.2
 Text Domain:  soundandhealing-bg-theme
*/

:root {
  --font-display:     'Cormorant Garamond', serif;
  --font-body:        'Source Sans 3', sans-serif;
  --transition:       all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:           12px;
  --radius-lg:        20px;
  --max-width:        1200px;
}

/* ===== FONTS ===== */
@font-face {
  font-family: 'BlackJack';
  src: url('fonts/BlackJack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== 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);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Override Astra defaults */
body,
.ast-separate-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-plain-container {
  background-color: var(--color-bg) !important;
}

.site-content .ast-container,
.entry-content {
  background: transparent !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Hide Astra header/footer — we use our own */
.ast-header-break-point .ast-mobile-header-wrap,
#ast-desktop-header,
.ast-above-header-wrap,
.ast-below-header-wrap,
.site-header,
.ast-footer-overlay,
.site-footer,
.ast-small-footer {
  display: none !important;
}

.entry-header,
.ast-breadcrumbs-wrapper {
  display: none !important;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1.2em;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold);
}

strong {
  color: var(--color-text);
}

/* ===== SITE LOGO ===== */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0;
}

.site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

.site-logo-text {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--color-teal);
  line-height: 1;
  margin-top: 10px;
  white-space: nowrap;
  letter-spacing: 2px;
  margin-left: 12px;
}

/* ===== PAGE IMAGES ===== */
.page-img {
  border-radius: 12px;
  display: block;
  width: 100%;
  object-fit: cover;
}

.img-shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.img-grid-3 img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.img-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.img-grid-2 img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.img-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.img-grid-2x2 img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.two-col-reverse {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wide-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .img-grid-3 {
    grid-template-columns: 1fr;
  }
  .img-grid-2,
  .img-grid-2x2 {
    grid-template-columns: 1fr;
  }
  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
  }
  .site-logo img {
    height: 50px;
  }
  .site-logo-text {
    font-size: 1.2rem;
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
  color: var(--color-bg);
}

.btn-secondary {
  border: 1.5px solid var(--color-teal);
  color: var(--color-teal);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(78, 205, 196, 0.1);
  transform: translateY(-2px);
  color: var(--color-teal);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== CUSTOM HEADER ===== */
.sh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: var(--color-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.sh-header.scrolled {
  background: var(--color-header-scrolled);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
}

.sh-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sh-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.sh-logo span {
  color: var(--color-gold);
}

.sh-footer-brand .site-logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.sh-footer-brand .site-logo img {
  height: 60px;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.sh-nav a {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.sh-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width 0.3s ease;
}

.sh-nav a:hover,
.sh-nav .current-menu-item a,
.sh-nav .current_page_item a {
  color: var(--color-teal);
}

.sh-nav a:hover::after,
.sh-nav .current-menu-item a::after,
.sh-nav .current_page_item a::after {
  width: 100%;
}

/* Hamburger */
.sh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.sh-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}

.sh-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sh-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.sh-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero h1 .highlight {
  color: var(--color-gold);
  font-weight: 600;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-hero-subtitle);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* WebP hero backgrounds */
@supports (background-image: url('x.webp')) {
  .hero-home     { background-image: url('/uploads/sound-healing-setting-room.webp'); }
  .hero-sound    { background-image: url('/uploads/sound-healing-gong-black-background.webp'); }
  .hero-bio      { background-image: url('/uploads/activate-your-healing-qi_hero.webp'); }
  .hero-kontakti { background-image: url('/uploads/sound-healing-room1.webp'); }
  .hero-uslugi   { background-image: url('/uploads/sound-healing-setting-room.webp'); }
}

/* Page hero (smaller) */
.hero-page {
  min-height: 50vh;
  padding: 10rem 2rem 4rem;
}

.hero-page .hero-inner {
  min-height: 50vh;
}

.hero-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

/* ===== FOOTER ===== */
.sh-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 0;
}

.sh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.sh-footer-brand .sh-logo {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.sh-footer-brand p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 320px;
}

.sh-footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  margin-left: 3.4em;
  font-weight: 600;
}

.sh-footer-links {
  list-style: none;
}

.sh-footer-links li {
  margin-bottom: 0.6rem;
}

.sh-footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.sh-footer-links a:hover {
  color: var(--color-teal);
}

.sh-footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
}

.sh-footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.sh-footer-disclaimer {
  font-size: 0.8rem !important;
  font-style: italic;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sh-hamburger {
    display: flex;
  }

  .sh-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--color-border);
  }

  .sh-nav.open {
    right: 0;
  }

  .sh-nav a {
    font-size: 1.2rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-page {
    padding: 8rem 1.5rem 3rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .sh-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sh-footer-brand p {
    max-width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }
}
