body {
  background-color: #f4fbfa;
  color: #161d1d;
  -webkit-font-smoothing: antialiased;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.soft-shadow {
  box-shadow: 0px 10px 30px rgba(74, 103, 65, 0.05);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  /* დამალვა, სანამ აიქონების ფონტი ჩაიტვირთება (თორემ ligature ტექსტად ჩანს) */
  visibility: hidden;
}

html.icons-ready .material-symbols-outlined {
  visibility: visible;
}

/* ===== Scroll-reveal სისტემა ===== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal        { transform: translateY(28px); }
.reveal-left   { transform: translateX(-36px); }
.reveal-right  { transform: translateX(36px); }
.reveal-scale  { transform: scale(0.92); }

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: none;
}

/* ===== გვერდის ჩატვირთვის ანიმაცია (hero) ===== */
.load-anim {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.load-anim-right {
  opacity: 0;
  animation: slide-in-right 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}

/* ===== მოტივტივე დეკორი ===== */
.anim-float {
  animation: float-y 7s ease-in-out infinite;
}

.anim-spin-slow {
  animation: spin-slow 50s linear infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ===== ჰედერის CTA ღილაკი ===== */
.cta-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 2px 12px rgba(51, 79, 43, 0.25);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

/* პერიოდული ბზინვარება — ყოველ ~6 წამში ერთხელ გადაუვლის */
.cta-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  transform: translateX(-180%) skewX(-18deg);
  animation: cta-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shine {
  0%, 78% { transform: translateX(-180%) skewX(-18deg); }
  92%, 100% { transform: translateX(420%) skewX(-18deg); }
}

.cta-btn:hover {
  transform: translateY(-2px);
  background-color: #4a6741;
  box-shadow: 0 10px 28px rgba(51, 79, 43, 0.35);
}

.cta-btn:hover::after {
  animation-duration: 1.6s;
}

.cta-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 10px rgba(51, 79, 43, 0.3);
}

/* FAQ პასუხის გამოჩენა */
.faq details[open] > p,
.faq details[open] > div {
  animation: rise-in 0.35s ease-out;
}

/* ===== დაბალი ეკრანები: hero იკუმშება, რომ 100vh-ში ჩაეტიოს ===== */
@media (min-width: 768px) and (max-height: 1000px) {
  main > section:first-of-type h1 {
    font-size: 38px;
    line-height: 46px;
  }

  main > section:first-of-type .aspect-\[4\/5\] {
    max-width: 350px;
  }

  main > section:first-of-type p.text-body-lg {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 1.25rem;
  }

  main > section:first-of-type span.mb-6 {
    margin-bottom: 1rem;
  }

  main > section:first-of-type div.mb-10 {
    margin-bottom: 1.5rem;
  }

  main > section:first-of-type dl {
    padding-top: 1rem;
  }

  main > section:first-of-type dl dd.font-display {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  main > section:first-of-type h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 1rem;
  }

  main > section:first-of-type .aspect-\[4\/5\] {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #4a6741;
  outline-offset: 2px;
  border-radius: 4px;
}

/* FAQ accordion */
.faq details summary { list-style: none; cursor: pointer; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary .chev { transition: transform 0.25s ease-out; }
.faq details[open] summary .chev { transform: rotate(180deg); }
