/* =====================================================================
   Multi-page additions: preloader, page hero, footer, reviews, etc.
   (loaded after style.css)
   ===================================================================== */
:root {
  --bg-dark-b:  url("../public/images/backgrounds/bg-9.jpg");  /* dark (teal) */
  --bg-light-b: url("../public/images/backgrounds/bg-5.jpg");  /* light */
}
.section--bg-dark-b  { background: var(--bg-dark-b) center / cover no-repeat; }
.section--bg-light-b { background: var(--bg-light-b) center / cover no-repeat; }
.section--bg-quote   { background: var(--bg-quote) center / cover no-repeat; }
.section--bg-hero    { background: var(--bg-hero) center / cover no-repeat; }

/* ---------- Preloader (name slides up, lines draw, curtain lifts) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 111, 154, .22), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(233, 168, 160, .3), transparent 40%),
    linear-gradient(145deg, #fffaf2 0%, #e9eef5 100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.preloader--exit { transform: translateY(-100%); }
.preloader__line-top, .preloader__line-bottom {
  width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.preloader__line-top { margin-bottom: 30px; animation: pl-expand .7s ease .2s forwards; }
.preloader__line-bottom { margin-top: 30px; animation: pl-expand .7s ease 1.1s forwards; }
.preloader__name { text-align: center; line-height: 1.05; overflow: hidden; padding: 0 20px .1em; }
.preloader__name-first, .preloader__name-last {
  display: block; font-family: var(--serif); font-weight: 600; opacity: 0; transform: translateY(40px);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
}
.preloader__name-first { color: var(--navy); animation: pl-rise .8s cubic-bezier(.16, 1, .3, 1) .4s forwards; }
.preloader__name-first em { color: var(--gold); font-weight: 500; }
.preloader__name-last { color: var(--blue); font-style: italic; animation: pl-rise .8s cubic-bezier(.16, 1, .3, 1) .6s forwards; }
.preloader__subtitle {
  margin: 18px 0 0; opacity: 0; letter-spacing: .32em; text-transform: uppercase; text-align: center; padding: 0 1rem;
  font-size: clamp(.7rem, 1.8vw, .9rem); color: var(--muted); animation: pl-fade .7s ease 1s forwards;
}
.preloader__dots { display: flex; gap: 8px; margin-top: 40px; opacity: 0; animation: pl-fade .5s ease 1.3s forwards; }
.preloader__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: pl-pulse 1.2s ease infinite; }
.preloader__dot:nth-child(2) { background: var(--blue); animation-delay: .2s; }
.preloader__dot:nth-child(3) { background: var(--gold); animation-delay: .4s; }
@keyframes pl-expand { to { width: min(280px, 60vw); } }
@keyframes pl-rise { to { opacity: 1; transform: none; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
body.is-loading { overflow: hidden; }
/* already shown once this session → never flash it again */
.preloader-seen .preloader { display: none; }

/* ---------- Dark-section fixes ---------- */
.section--dark .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.section--dark .form, .section--dark .empty { background: rgba(255, 250, 242, .94); }
.section--dark .form__status { color: var(--blue); }
/* light cards sitting inside dark sections keep dark-on-light buttons */
.section--dark .form .btn, .section--dark .empty .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--dark .form .btn:hover, .section--dark .empty .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.section--dark .empty .btn--ghost { background: transparent; color: var(--navy); }
.section--dark .empty .btn--ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Header: active link ---------- */
.nav__links a.is-active:not(.btn)::after { width: 100%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(8rem, 16vw, 11rem) 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero h1 span { font-style: italic; color: var(--blue); }
.page-hero p.lead { max-width: 640px; margin: 0 auto; font-size: 1.2rem; color: var(--muted); }
.page-hero--split { text-align: left; }
.page-hero--split .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.page-hero--split p.lead { margin: 0 0 1.6rem; }
.page-hero__img img { margin-inline: auto; max-height: 460px; width: auto; filter: drop-shadow(0 30px 40px rgba(31, 63, 92, .25)); }
.crumbs { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--navy); }

/* ---------- Generic blocks ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.section--dark .section__head p:last-child { color: #cbd7e4; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.theme {
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 2rem 1.6rem;
}
.theme h3 { color: #fff; font-size: 1.7rem; }
.theme p { margin: 0; color: #d7e2ee; font-size: .98rem; line-height: 1.65; }
.cta-band { text-align: center; max-width: 640px; margin-inline: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Reviews ---------- */
.empty {
  background: var(--glass); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius); padding: 3rem 2rem; text-align: center; max-width: 680px; margin-inline: auto;
  box-shadow: 0 16px 44px rgba(31, 63, 92, .12); color: var(--ink);
}
.empty h3 { font-size: 2rem; }
.empty p { color: var(--muted); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .2rem; font-size: 2rem; line-height: 1; justify-self: start; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: #cdbf9f; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.form--narrow { max-width: 640px; margin-inline: auto; }
.stars-label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; color: var(--navy); }

/* ---------- Contact info ---------- */
.info-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: .65rem; }

/* ---------- Footer (multi column) ---------- */
.footer { padding: 3.5rem 0 1.6rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #c9d6e4; margin: .6rem 0 0; max-width: 320px; }
.footer h4 { font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer ul a { font-size: .95rem; color: #c9d6e4; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.4rem; }
.footer__bottom p { margin: 0; font-size: .88rem; }

@media (max-width: 1000px) {
  .themes { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .page-hero--split { text-align: center; }
  .page-hero--split .container, .two-col { grid-template-columns: 1fr; }
  .page-hero--split .btn-row { justify-content: center; }
  .page-hero__img { order: -1; }
  .page-hero__img img { max-height: 320px; }
  .footer__top { grid-template-columns: 1fr; text-align: center; }
  .footer__tag { margin-inline: auto; }
  .footer__bottom { justify-content: center; text-align: center; }
  .stars { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader__name-first, .preloader__name-last, .preloader__subtitle, .preloader__dots { animation-duration: .01s; animation-delay: 0s; }
}
