/* ==========================================================================
   Home page (templates/page/home.html.twig) + gallery cards shared with gallery
   pages (partials/_gallery_card.html.twig). Uses the tokens from header.css.
   ========================================================================== */

.path-frontpage { color: var(--ink); }

/* ---- Shared bits -------------------------------------------------------- */
.home-eyebrow {
  margin: 0 0 10px;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.home-eyebrow--light { color: #bff3ea; }

.home-title {
  margin: 0 0 20px;
  font-family: Poppins, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}
.home-title span { font: inherit; color: var(--brand-ink); }

.home-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.home-section-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }

.home-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-btn:hover { transform: translateY(-1px); }
.home-btn--primary { background: var(--btn-bg); color: var(--btn-ink) !important; }
.home-btn--primary:hover { background: var(--btn-bg-hover); }
.home-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.home-btn--ghost:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }
.home-btn:focus-visible,
.home-link:focus-visible,
.home-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.home-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  color: var(--brand-ink) !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.home-link span { transition: transform .2s ease; }
.home-link:hover span { transform: translateX(4px); }

/* ---- Hero --------------------------------------------------------------- */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100vh - var(--header-h)), 860px);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding: 120px 0 110px;
  background-color: #2b3a36;
  color: #fff;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 28, 25, .05) 0%, rgba(16, 28, 25, .25) 45%, rgba(16, 28, 25, .82) 100%),
    linear-gradient(90deg, rgba(16, 28, 25, .45) 0%, rgba(16, 28, 25, 0) 65%);
}
.home-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.home-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.home-hero-inner { max-width: 1140px; }
.home-hero-title {
  margin: 0 0 18px;
  font-family: Poppins, sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.home-hero-title span { font: inherit; letter-spacing: inherit; color: #5fe0cc; }
.home-hero-lead {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.home-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff !important;
  animation: home-bob 2.2s ease-in-out infinite;
}
.home-hero-scroll:hover { background: rgba(255, 255, 255, .15); }
@keyframes home-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- About + facts ------------------------------------------------------ */
.home-about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 991.98px) { .home-about-grid { grid-template-columns: 1fr; gap: 40px; } }
.home-about { padding: 110px 0; background: var(--surface); scroll-margin-top: var(--header-h); }
.home-about-body { font-size: 17px; line-height: 1.8; color: var(--ink-muted); }
.home-about-body p { font-size: inherit; line-height: inherit; color: inherit; margin-bottom: 18px; }
.home-about-body strong { color: var(--ink); }
.home-about-body a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: rgba(0, 186, 162, .4); text-underline-offset: 3px; }
.home-about-body a:hover { text-decoration-color: currentColor; }

.home-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--brand-tint);
}
.home-facts li:nth-child(2),
.home-facts li:nth-child(3) { background: var(--surface-alt); }
.home-facts strong {
  font-family: Poppins, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ink);
}
.home-facts span { font-size: 15px; line-height: 1.4; color: var(--ink-muted); }

/* ---- Gallery cards ------------------------------------------------------ */
.home-galleries { padding: 110px 0; background: var(--surface-alt); scroll-margin-top: var(--header-h); }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-raised);
  color: var(--ink) !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgb(var(--shadow) / .06), 0 8px 24px rgb(var(--shadow) / .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(var(--shadow) / .06), 0 18px 40px rgb(var(--shadow) / .14); }
.home-card--wide { grid-column: span 2; }

.home-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder); }
.home-card--wide .home-card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
.home-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.home-card:hover .home-card-media img { transform: scale(1.05); }
.home-card-count {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 28, 25, .72);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.home-card-body { padding: 22px 24px 24px; }
.home-card-title {
  margin: 0 0 6px;
  font-family: Poppins, sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease;
}
.home-card:hover .home-card-title { color: var(--brand-ink); }
.home-card-text { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.home-card-meta { margin: 0; font-size: 13px; color: var(--ink-muted); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .home-about, .home-galleries { padding: 80px 0; }
  .home-title { font-size: 34px; }
}
@media (max-width: 575.98px) {
  .home-hero { padding: 90px 0 96px; }
  .home-hero-actions .home-btn { flex: 1 1 100%; justify-content: center; }
  .home-cards { grid-template-columns: 1fr; }
  .home-card--wide { grid-column: auto; }
  .home-card--wide .home-card-media { aspect-ratio: 4 / 3; min-height: 0; }
  .home-about, .home-galleries { padding: 64px 0; }
  .home-title { font-size: 30px; }
  .home-facts strong { font-size: 30px; }
  .home-facts li { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-scroll { animation: none; }
  .home-btn, .home-card, .home-card-media img, .home-link span { transition: none; }
  .home-card:hover, .home-btn:hover { transform: none; }
  .home-card:hover .home-card-media img { transform: none; }
}
