/* ============================================================
   SPLASH.CSS · Brebu Nou landing portal
   ------------------------------------------------------------
   The entry point of brebunou.ro. Visitor lands here and
   picks one of two paths:

     1. Pagina Primăriei   · administrative subsite
     2. Descoperă comuna   · tourism subsite

   Visual concept · sober institutional elegance:
     • full-bleed mountain photo with darkening gradient
     • centered brand identity (eyebrow → title → tagline)
     • 2 equal-weight portal cards · transparent fill, subtle
       border, hover lifts and brightens
     • minimal footer with legal links and lang switcher
     • floating dock (cookies + a11y) handled by widgets.css

   No main nav, no full topbar, no admin chrome · the splash
   IS the brand. Everything is purposely restrained.
   ============================================================ */


/* ----- No-JS notice · displayed only when JavaScript is disabled ----- */

.noscript-notice {
  background: var(--chantilly-pure);
  color: var(--essex);
  border-bottom: 1px solid var(--stone-hearth);
  padding: 16px 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}
.noscript-notice strong {
  margin-right: 6px;
}
.noscript-notice a {
  color: var(--essex);
  text-decoration: underline;
}
.noscript-notice a:hover {
  text-decoration: none;
}


/* ----- Page base · vertical flex column ----- */

.splash-body {
  background: var(--essex-deep);
  min-height: 100vh;          /* fallback for older browsers */
  min-height: 100svh;         /* iOS Safari fix · uses small viewport (stable on scroll) */
  display: flex;
  flex-direction: column;
  color: var(--chantilly);
}


/* ----- Hero · full-bleed image + overlay + centered content ----- */

.splash {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 48px 60px;
  min-height: calc(100vh - 128px);    /* fallback for older browsers */
  min-height: calc(100svh - 128px);   /* iOS Safari fix · stable on scroll */
  overflow: hidden;
  color: var(--chantilly);
}

/* ----- Slides container · 3 background images crossfading (identical to comuna hero) ----- */

.splash-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.splash-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--essex-deep);   /* fallback before image loads */
  opacity: 0;
  transform: scale(1);
  animation: splashSlideCycle 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: opacity, transform;
}

/* ============================================================
   Splash slides · 3 background images, fade carousel
   ------------------------------------------------------------
   IMPORTANT · CACHE BUSTING FOR IMAGES:
   When you replace splash1/2/3.jpeg on the server keeping the
   same filename, browsers will serve the cached old version.
   Bump the ?v= value below (e.g. v=2026-05-23-41) any time you
   replace an image, and the browser will fetch the new file.
   ============================================================ */

.splash-slide-1 {
  background-image: url('../assets/img/hero/splash1.jpeg?v=2026-05-29-43');
  animation-delay: 0s;
}
.splash-slide-2 {
  background-image: url('../assets/img/hero/splash2.jpeg?v=2026-05-29-43');
  animation-delay: 8s;
}
.splash-slide-3 {
  background-image: url('../assets/img/hero/splash3.jpeg?v=2026-05-29-43');
  animation-delay: 16s;
}


/* Keyframes · 24s cycle = 8s per slide, with Ken Burns */
@keyframes splashSlideCycle {
  0%   { opacity: 0; transform: scale(1.0); }
  6%   { opacity: 1; }
  33%  { opacity: 1; transform: scale(1.03); }
  39%  { opacity: 0; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.0); }
}


/* Honor user preference · no animations for those who request reduced motion */
@media (prefers-reduced-motion: reduce) {
  .splash-slide {
    animation: none;
    opacity: 1;
  }
  .splash-slide-2,
  .splash-slide-3 {
    display: none;   /* keep only the first slide static */
  }
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Layer 1 · warm brown diagonal gradient (replaces cold essex) */
    linear-gradient(135deg, rgba(60, 38, 22, 0.38) 0%, rgba(75, 50, 28, 0.20) 50%, rgba(40, 25, 14, 0.58) 100%),
    /* Layer 2 · dark amber vignette at bottom-left */
    radial-gradient(ellipse at 20% 95%, rgba(45, 28, 12, 0.55), transparent 65%),
    /* Layer 3 · subtle warm sepia wash overall */
    linear-gradient(180deg, rgba(60, 38, 22, 0.15) 0%, rgba(40, 25, 14, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ----- Brand block · eyebrow + title + lead + tagline ----- */

.splash-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  color: var(--amber-light);
  text-shadow: 0 1px 6px rgba(15, 23, 28, 0.5);
}
.splash-eyebrow::before,
.splash-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--amber-warm);
  opacity: 0.85;
  transform: translateZ(0);
}

.splash-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--chantilly);
  text-shadow: 0 2px 16px rgba(15, 23, 28, 0.45);
}
.splash-title em {
  font-style: normal;
  font-weight: 500;
}

/* Tagline lead · large sober line just under the title */
.splash-tagline-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--amber-light);
  opacity: 1;
  margin: 0 0 18px;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(15, 23, 28, 0.5);
}

.splash-tagline {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 0 44px;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(15, 23, 28, 0.5);
}


/* ----- Two portal CTAs (unchanged · keep TLP-style centerpiece intact) ----- */

.splash-portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 920px;
}

.splash-portal {
  position: relative;
  display: block;
  padding: 28px 28px 26px;
  background: rgba(35, 22, 12, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--amber-soft);
  text-align: left;
  color: var(--chantilly);
  text-decoration: none;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.splash-portal:hover {
  background: rgba(35, 22, 12, 0.55);
  border-color: var(--amber-light);
  transform: translateY(-4px);
}
.splash-portal:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 4px;
}

/* NEW · portal header row · icon + eyebrow inline on the same row */
.splash-portal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* NEW · portal icon · warm amber, line-stroke style */
.splash-portal-icon {
  width: 38px;
  height: 38px;
  color: var(--amber-warm);
  flex-shrink: 0;
}
.splash-portal-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splash-portal-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber-light);
  opacity: 1;
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(15, 23, 28, 0.5);
}

.splash-portal-title {
  font-size: clamp(1.2rem, 1.85vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--chantilly);
  text-shadow: 0 1px 12px rgba(15, 23, 28, 0.55);
}
.splash-portal-title-arrow {
  display: inline-block;
  font-size: 0.85em;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.splash-portal:hover .splash-portal-title-arrow {
  transform: translateX(8px);
}

.splash-portal-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--chantilly);
  opacity: 0.95;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 320px;
  text-shadow: 0 1px 8px rgba(15, 23, 28, 0.6);
}


/* Portal CTA · minimal text + arrow with underline that draws on hover */

.splash-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-light);
  padding-bottom: 6px;
  position: relative;
  text-shadow: 0 1px 8px rgba(15, 23, 28, 0.55);
}
.splash-portal-cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber-warm);
  opacity: 1;
  transform: scaleX(0) translateZ(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.splash-portal:hover .splash-portal-cta::after {
  transform: scaleX(1) translateZ(0);
}
.splash-portal-cta-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.splash-portal:hover .splash-portal-cta-arrow {
  transform: translateX(6px);
}


/* ----- Editorial interlude · chantilly-pure section between hero and footer ----- */
/*
   A breathing space between the dark hero and the dark footer · brings the
   page back to chantilly-pure (the lightest brand surface) so the reader
   has a calm beat before the dense legal footer arrives. Two columns: a
   narrative paragraph on the left, a tight list of highlights on the right.
*/

.splash-interlude {
  background: var(--chantilly-pure);
  color: var(--essex);
  padding: 120px 48px 96px;
}

.splash-interlude-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 88px;
  align-items: start;
}


/* Left column · narrative paragraph */

.splash-interlude-narrative {
  max-width: 560px;
}
.splash-interlude-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  margin-bottom: 28px;
}
.splash-interlude-text {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--essex);
  margin: 0;
  opacity: 0.92;
}


/* Right column · highlights list */

.splash-interlude-highlights {
  border-left: 1px solid var(--stone-hearth-soft);
  padding-left: 44px;
}
.splash-interlude-highlights-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rustic-taupe);
  margin-bottom: 22px;
}
.splash-interlude-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.splash-interlude-list li {
  margin: 0 0 14px;
}
.splash-interlude-list a {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--essex);
  text-decoration: none;
  position: relative;
  padding-left: 22px;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
  line-height: 1.5;
}
.splash-interlude-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--rustic-taupe);
  opacity: 1;
  transform: translateZ(0);
  transition: width 0.25s ease;
}
.splash-interlude-list a:hover {
  color: var(--rustic-taupe);
  padding-left: 28px;
}
.splash-interlude-list a:hover::before {
  width: 18px;
}


/* Footnote · two-line sober block at bottom of interlude */

.splash-interlude-footnote {
  max-width: var(--container);
  margin: 80px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--stone-hearth-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--essex);
  opacity: 0.7;
  line-height: 1.6;
  text-align: center;
}
.splash-interlude-footnote-sep {
  opacity: 0.4;
}


/* ----- Extended footer · 5 columns balanced · all legal duties covered ----- */
/*
   Footer is the second legal compliance surface. The chrome above
   handles "vizibil din landing". The footer handles "complet și
   detaliat". Together they satisfy art. 5 L 544/2001 + HG 478/2016
   + GDPR art. 13 + OUG 112/2018 + L 506/2004.

   Five columns of EQUAL width · each column is one topic with one
   short list. No nested sub-blocks stacked vertically. The columns
   read across the page like a single horizontal band of information,
   not as four uneven verticals.
*/

.splash-footer {
  position: relative;
  z-index: 5;
  background: var(--essex);
  color: var(--chantilly);
  padding: 64px 48px 28px;
  border-top: 1px solid rgba(242, 241, 235, 0.12);
}

.splash-footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.splash-footer-col h2 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rustic-taupe-light);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(242, 241, 235, 0.12);
}

.splash-footer-col p,
.splash-footer-col li {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.78;
  margin: 0 0 4px;
}
.splash-footer-col strong {
  font-weight: 500;
  opacity: 1;
  display: block;
  font-size: 0.84rem;
  margin-bottom: 4px;
}
.splash-footer-col strong + p {
  margin-top: 0;
}
.splash-footer-col a {
  color: var(--chantilly);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}
.splash-footer-col a:hover {
  opacity: 1;
}

.splash-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.splash-footer-col ul li {
  padding-left: 0;
}

/* Sub-label inside a column · for Program sub-titles, Responsabili etc. */
.splash-footer-sublabel {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 18px 0 6px;
}
.splash-footer-col > .splash-footer-sublabel:first-child {
  margin-top: 0;
}


/* (no inner-grid · 5 separate cols means Contact/Program live alone) */


/* Footer bottom bar · copyright + small links */

.splash-footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 241, 235, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 0.68rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.splash-footer-bottom a {
  color: var(--chantilly);
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.splash-footer-bottom a:hover {
  opacity: 0.7;
}


/* ----- Mobile · stack everything, hide chrome density gracefully ----- */

@media (max-width: 900px) {
  .splash {
    padding: 40px 24px 70px;
  }
  .splash-eyebrow {
    margin-bottom: 28px;
  }
  .splash-eyebrow::before,
  .splash-eyebrow::after {
    width: 28px;
  }
  .splash-title {
    margin-bottom: 28px;
  }
  .splash-tagline {
    margin-bottom: 56px;
  }
  .splash-portals {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
  }
  .splash-portal {
    padding: 28px 24px 26px;
  }

  /* Footer on mobile · single column, generous breathing */
  .splash-footer {
    padding: 48px 24px 24px;
  }
  .splash-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .splash-footer-bottom {
    margin-top: 32px;
    justify-content: center;
    text-align: center;
  }

  /* Hero text · tighter on mobile */
  .splash-tagline-lead {
    font-size: 1rem;
    margin: 0 0 14px;
  }
  .splash-tagline {
    font-size: 0.92rem;
    margin: 0 0 36px;
  }

  /* Interlude · stack to one column on mobile */
  .splash-interlude {
    padding: 72px 24px 56px;
  }
  .splash-interlude-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .splash-interlude-highlights {
    border-left: none;
    border-top: 1px solid var(--stone-hearth-soft);
    padding-left: 0;
    padding-top: 36px;
  }
  .splash-interlude-footnote {
    margin-top: 56px;
    padding-top: 28px;
    font-size: 0.78rem;
  }
}


/* Short laptop screens · 768/800px viewport height (e.g. 1366×768) ·
   compress hero further so the two portals stay fully visible above the fold */
@media (max-height: 820px) {
  .splash {
    padding: 24px 48px 32px;
    min-height: calc(100vh - 128px);
    min-height: calc(100svh - 128px);   /* iOS Safari fix */
  }
  .splash-eyebrow {
    margin-bottom: 14px;
    font-size: 0.62rem;
  }
  .splash-title {
    font-size: clamp(1.85rem, 4.5vw, 3.2rem);
    margin: 0 0 14px;
  }
  .splash-tagline-lead {
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    margin: 0 0 10px;
  }
  .splash-tagline {
    margin: 0 0 26px;
    font-size: 0.88rem;
    max-width: 580px;
  }
  .splash-portal {
    padding: 20px 22px 20px;
  }
  .splash-portal-label {
    margin-bottom: 8px;
    font-size: 0.6rem;
  }
  .splash-portal-title {
    margin: 0 0 8px;
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  }
  .splash-portal-desc {
    font-size: 0.82rem;
    margin: 0 0 16px;
    line-height: 1.55;
  }
  .splash-portal-cta {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
  }
}


/* Intermediate breakpoint · 3 columns on tablet for footer */
@media (max-width: 1180px) and (min-width: 901px) {
  .splash-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
  .splash-footer-grid > .splash-footer-col:first-child {
    grid-column: 1 / -1;
  }
}