/* ====== Base ====== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-size: 18px; line-height: 1.6; }
::selection { background: #1c5346; color: #fff; }

/* Display face for all headings (serif carries the institution's character) */
h1, h2, h3, .font-display { font-family: 'Lora', ui-serif, Georgia, serif; }

/* Signature: gold plus-mark before eyebrows */
.eyebrow::before {
  content: "+";
  color: #c08a2e;
  font-weight: 700;
  margin-right: .5rem;
}

/* Signature: faint medical-cross grid, fades toward one corner */
.cross-field {
  background-image:
    linear-gradient(rgba(28,83,70,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,83,70,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 18%, #000 28%, transparent 74%);
          mask-image: radial-gradient(120% 90% at 80% 18%, #000 28%, transparent 74%);
}

/* Photo frame: one squared corner echoes the institutional mark */
.photo-frame { border-radius: 24px 24px 24px 4px; }

/* Card hover: soft shadow only, no movement */
.lift { transition: box-shadow .25s ease, border-color .25s ease; }
.lift:hover { box-shadow: 0 14px 34px -22px rgba(16,32,27,.3); }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid #c08a2e;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ====== Preloader state ====== */
#preloader { transition: opacity .5s ease; }
#preloader.is-hidden { opacity: 0; pointer-events: none; }

/* ====== Floating label inputs ====== */
.float-label { position: relative; }
.float-label input,
.float-label textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 16px 8px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #0f172a;
  transition: border-color .2s, box-shadow .2s;
}
.float-label textarea { min-height: 130px; resize: vertical; }
.float-label input:focus,
.float-label textarea:focus {
  border-color: #1c5346;
  box-shadow: 0 0 0 3px rgba(28,83,70,.12);
}
.float-label label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: all .2s;
  background: transparent;
}
.float-label textarea ~ label { top: 22px; transform: none; }
.float-label input:focus ~ label,
.float-label input:not(:placeholder-shown) ~ label,
.float-label textarea:focus ~ label,
.float-label textarea:not(:placeholder-shown) ~ label {
  top: 7px;
  transform: none;
  font-size: 12px;
  color: #1c5346;
  font-weight: 600;
}
.float-label.is-invalid input,
.float-label.is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.10);
}

/* ====== Navbar (sticky bar) ====== */
#navbar.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 4px 16px -8px rgba(15,23,42,.10);
}
#navbar.is-scrolled .nav-logo-name { color: #1c5346; }
#navbar.is-scrolled .nav-logo-sub  { color: #667a72; }
#navbar.is-scrolled .nav-link      { color: #35463f; }
#navbar.is-scrolled .nav-link:hover{ color: #1c5346; background: rgba(28,83,70,.08); }
#navbar.is-scrolled .menu-toggle {
  background: rgba(28,83,70,.10);
  color: #1c5346;
  box-shadow: inset 0 0 0 1px rgba(28,83,70,.18);
}
#navbar.is-scrolled .nav-cta { background: #1c5346; color: #fff; }
#navbar.is-scrolled .nav-cta:hover { background: #0f3830; }

/* ====== Mobile menu (simple display toggle, no visibility tricks) ====== */
.mobile-menu {
  display: none;
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: block;
}
body.is-menu-open {
  overflow: hidden;
}

/* ====== Burger animation ====== */
.menu-toggle.is-active .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .burger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== FAQ accordion ====== */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); background: #1c5346; color: #fff; }

/* ====== Back-to-top ====== */
#goTop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
#goTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ====== Utilities ====== */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
