/* ================================================================
   BASE — Reset, Utilities, Shared Components, Animations
   ================================================================ */

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    transition-duration: 200ms;
    animation-iteration-count: 1;
  }
  .reveal { transform: none; }
}


/* ----------------------------------------------------------------
   UTILITIES & SHARED COMPONENTS
   ---------------------------------------------------------------- */

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Section heading elements */
.section-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--heading-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-title--sm { font-size: clamp(20px, 2vw, 28px); margin-bottom: 12px; }

.section-rule {
  width: 60px;
  height: 2px;
  background: var(--olive);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 600ms var(--ease-out) 300ms;
  margin-bottom: 24px;
}
.section-rule--center { margin-left: auto; margin-right: auto; transform-origin: center; }
.section-rule--sm { margin-bottom: 16px; }
.section-rule--lg { margin-bottom: 40px; }
.section-rule--48 { margin-bottom: 48px; }
.section-rule.revealed { transform: scaleX(1); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Bird dot bullets - only inside sections */
section ul li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url(../images/LIMH-birddot.svg);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
}

/* CTA box - reusable component */
.cta-box {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  cursor: pointer;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
  max-width: 800px;
}
.cta-box:hover { background: var(--olive); border-color: var(--olive); }
.cta-box:hover .cta-box-title,
.cta-box:hover .cta-box-sub,
.cta-box:hover .cta-contact-line,
.cta-box:hover .cta-contact-icon { color: white; }
.cta-box--full { max-width: 100%; }
.cta-box--mt { margin-top: 48px; }
.cta-box--sm-title .cta-box-title { font-size: 16px; }

.cta-box-text { flex: 1; }
.cta-box-title { font-weight: 600; font-size: 18px; color: var(--heading-dark); margin-bottom: 8px; transition: color 300ms ease; }
.cta-box-sub { font-weight: 300; font-size: 14px; color: var(--muted); transition: color 300ms ease; }

.cta-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cta-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 15px;
  color: var(--heading-dark);
  text-decoration: none;
  min-height: 44px;
  transition: color 300ms ease;
}
.cta-contact-icon { color: var(--olive); transition: color 300ms ease; width: 18px; height: 18px; flex-shrink: 0; }

/* Background tree watermark - reusable */
.bg-tree::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../images/LIMH-LogoTree.svg);
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* FAQ Accordion */
.faq-section { max-width: 800px; margin-top: 56px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.faq-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%; padding: 16px 0 12px; cursor: pointer;
  text-align: left; background: none; border: none; min-height: 44px;
  font-family: var(--font-ui);
}
.faq-header:hover .faq-q { color: var(--olive); }
.faq-q { font-weight: 600; font-size: 15px; color: var(--heading-dark); transition: color 200ms ease; flex: 1; }
.faq-icon {
  font-size: 20px; font-weight: 300; color: var(--olive); flex-shrink: 0;
  line-height: 1; transition: transform 300ms var(--ease-out);
  width: 20px; text-align: center; display: inline-block;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease-out); }
.faq-item.open .faq-body { max-height: 800px; }
.faq-body p { font-weight: 300; font-size: 14px; color: var(--muted); line-height: 1.75; padding-bottom: 16px; padding-right: 40px; }
/* Dark variant */
.faq-section--dark .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
.faq-section--dark .faq-item:first-child { border-top-color: rgba(255,255,255,0.1); }
.faq-section--dark .faq-q { color: rgba(255,255,255,0.85); }
.faq-section--dark .faq-header:hover .faq-q { color: var(--olive-light); }
.faq-section--dark .faq-body p { color: rgba(255,255,255,0.55); }
.faq-section--dark .faq-icon { color: var(--olive-light); }

/* FAQ section headings */
.faq-section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,2vw,24px); color: var(--heading-dark); margin-bottom: 6px; }
.faq-section-sub { font-weight: 300; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.faq-section--dark .faq-section-title { color: white; }
.faq-section--dark .faq-section-sub { color: rgba(255,255,255,0.5); }

/* Override global bird-bullet inside FAQ lists */
.faq-body ul { padding-left: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.faq-body ul li { padding-left: 16px; position: relative; font-weight: 300; font-size: 14px; line-height: 1.7; color: var(--muted); }
.faq-body ul li::before { content: ''; background-image: none; display: block; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); margin: 0; }


/* ----------------------------------------------------------------
   ANIMATIONS & KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes bgDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-10px) scale(1.02); }
  66% { transform: translate(-10px,15px) scale(0.98); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.6); opacity: 1; }
}
@keyframes imgReveal { to { opacity: 1; } }
@keyframes birdDrift {
  0% { left: -160px; opacity: 0; }
  6% { opacity: 0.18; }
  92% { opacity: 0.18; }
  100% { left: calc(100vw + 160px); opacity: 0; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ----------------------------------------------------------------
   RESPONSIVE BASE
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .cta-contacts { align-items: flex-start; }
}
