/* ============================================================
   ZAKORZENIENI — style.css
   Paleta: primary #090909 | text #414141 | accent #4C886C
           accent-hover #2A6B4D | secondary #AEAEAE | white #FFFFFF
           surface-light #F2F7F8 | border #E2E2E2
   Font: Poppins (300, 400, 500, 600)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  --color-primary: #090909;
  --color-text: #414141;
  --color-accent: #4C886C;
  --color-accent-hover: #2A6B4D;
  --color-secondary: #AEAEAE;
  --color-white: #FFFFFF;
  --color-surface-light: #F2F7F8;
  --color-border: #E2E2E2;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.5em;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography helpers ---------- */
.font-display {
  font-family: "Poppins", sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", sans-serif;
  color: var(--color-primary);
  font-weight: 600;
}

h6 {
  font-family: "Poppins", sans-serif;
  color: var(--color-accent);
}

/* ---------- Section divider (leaf motif) ---------- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 2.25rem;
  max-width: 200px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-secondary);
  opacity: 0.45;
}

.section-divider--left {
  justify-content: flex-start;
  max-width: none;
  margin-left: 0;
}

/* ---------- Nav link underline ---------- */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent);
}

/* ---------- Card lift effect ---------- */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(76, 136, 108, 0.11);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.28s ease;
}

#mobile-menu.open {
  max-height: 520px;
  opacity: 1;
}

/* Burger lines */
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

#burger-btn.is-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 4px);
}

#burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#burger-btn.is-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -4px);
}

/* ---------- Age tabs ---------- */
.age-tab {
  cursor: pointer;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid rgba(76, 136, 108, 0.3);
  color: var(--color-accent);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.age-tab:hover {
  background: rgba(76, 136, 108, 0.07);
}

.age-tab.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.age-panel {
  display: none;
  animation: fadeInUp 0.3s ease both;
}

.age-panel.active {
  display: block;
}

/* ---------- TUS info accordion ---------- */
.tus-accordion-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--color-surface-light);
  border: 1.5px solid rgba(174, 174, 174, 0.3);
  transition: background 0.18s ease, border-color 0.2s ease;
}

.tus-accordion-header:hover {
  background: var(--color-surface-light);
  border-color: rgba(174, 174, 174, 0.6);
}

.tus-accordion-header.is-open {
  background: var(--color-surface-light);
  border-color: rgba(76, 136, 108, 0.3);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.tus-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  background: var(--color-surface-light);
  border: 1.5px solid rgba(174, 174, 174, 0.3);
  border-top: none;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.tus-accordion-body.is-open {
  opacity: 1;
}

.tus-accordion-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-secondary);
  transition: transform 0.25s ease;
}

.tus-accordion-header.is-open .tus-accordion-icon {
  transform: rotate(45deg);
}

/* ---------- Form inputs ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea {
  font-family: "Poppins", sans-serif;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 20px;
  color: var(--color-primary);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(65, 65, 65, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(76, 136, 108, 0.14);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(200, 80, 60, 0.4);
}

/* Select arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234C886C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox accent */
input[type="checkbox"].form-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1.5px solid var(--color-border);
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* ---------- Slot picker (consultation booking) ---------- */
.slot-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slot-day-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: capitalize;
  margin-bottom: 8px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.slot-btn {
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 6px;
  padding: 9px 6px;
  font-family: "Poppins", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
}

.slot-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.slot-btn.taken {
  border-color: var(--color-border);
  background: var(--color-surface-light);
  color: var(--color-secondary);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Pricing featured card ---------- */
.pricing-featured {
  background: linear-gradient(140deg, var(--color-accent) 0%, #5a9679 55%, #6aa389 100%);
}

/* ---------- Sticky header scroll shadow ---------- */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(9, 9, 9, 0.08);
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for child elements */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

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

/* ---------- Hero decorative bg shape ---------- */
.hero-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(225deg, rgba(242, 247, 248, 0.8) 0%, transparent 70%);
  border-bottom-left-radius: 80px;
  pointer-events: none;
}

/* ---------- CTA button variants ----------
   :where() keeps these at zero specificity so per-instance Tailwind
   utilities (e.g. px-5 py-2.5, text-sm on the compact header CTA)
   still win over these defaults regardless of stylesheet order. */
:where(button[type="submit"], input[type="submit"], .btn, .btn-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 17px 35px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
.btn:hover,
.btn:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
}

.btn-primary {
  font-weight: 600;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-accent);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 17px 35px;
  border-radius: 6px;
  border: 1.5px solid rgba(76, 136, 108, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-accent-hover);
  color: var(--color-accent-hover);
  background: var(--color-surface-light);
}

/* ---------- Reusable typography roles (available, not auto-applied) ---------- */
.hero-title {
  font-size: 35px;
  text-transform: capitalize;
  line-height: 1.3em;
  font-weight: 600;
}

.subtitle {
  font-size: 32px;
  font-weight: 400;
  text-transform: capitalize;
}

.quote-text {
  font-style: italic;
  font-size: 19px;
  line-height: 1.6em;
}

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

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 639px) {
  .section-divider {
    margin-bottom: 1.5rem;
  }
}
