/* EasyAI: the approved evening treatment, scoped to the homepage. */
.home-evening {
  position: relative;
  isolation: isolate;
  background: #281311;
  color: #fff0df;
}

.home-evening::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 6% 32%, rgba(121, 55, 33, .17), transparent 35%),
    radial-gradient(ellipse at 94% 42%, rgba(145, 67, 38, .14), transparent 32%),
    linear-gradient(180deg, #301713 0%, #281311 58%, #21100e 100%);
}

.home-evening main,
.home-evening .site-footer {
  position: relative;
  z-index: 1;
}

.home-evening .site-header {
  background: rgba(40, 19, 17, .86);
  border-bottom-color: rgba(244, 207, 172, .10);
  box-shadow: 0 5px 28px rgba(12, 3, 2, .09);
}

/* Preserve the original wordmark; only lighten its chocolate lettering. */
.home-evening .logo {
  position: relative;
}

.home-evening .logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff0df;
  -webkit-mask: url('/assets/logo.png') center / contain no-repeat;
  mask: url('/assets/logo.png') center / contain no-repeat;
  clip-path: polygon(0 0, 66% 0, 66% 79%, 100% 79%, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-evening .main-nav a {
  color: #f6e5d5;
}

.home-evening .main-nav a:hover,
.home-evening .main-nav a.active {
  color: #f58a6f;
}

.home-evening .header-contact {
  color: #3d2019;
  border-color: rgba(255, 191, 157, .32);
  background: #f08062;
  box-shadow: 0 5px 18px rgba(11, 3, 1, .12);
}

.home-evening .header-contact:hover {
  background: #fa967b;
}

.home-evening .menu-toggle span {
  background: #fff0df;
}

.home-evening .hero-home {
  padding: 80px 0 66px;
}

.home-evening .hero-home h1 {
  max-width: 1020px;
  margin: 10px auto 20px;
  color: #fff0df;
  font-size: clamp(34px, 3.45vw, 58px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.045em;
}

.home-evening .hero-home > .container > p {
  max-width: 990px;
  color: #ead6c6;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.home-evening .hero-home .choice-grid {
  width: min(820px, 100%);
  gap: 24px;
  margin-top: 42px;
}

.home-evening .choice-card {
  min-height: 208px;
  padding: 28px 65px 28px 28px;
  border: 1px solid rgba(255, 232, 205, .26);
  border-radius: 25px;
  box-shadow: 0 16px 36px rgba(9, 2, 0, .18);
}

.home-evening .choice-card.classic {
  color: #513427;
  background: linear-gradient(145deg, #f8ead9, #efdbc3);
}

.home-evening .choice-card.guide {
  color: #fff8f1;
  background: linear-gradient(135deg, #f18062, #df6b51);
}

.home-evening .choice-card h2 {
  max-width: none;
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 800;
}

.home-evening .choice-card p {
  max-width: 290px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.home-evening .choice-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
}

.home-evening .choice-arrow {
  right: 26px;
  bottom: 25px;
  width: 37px;
  height: 37px;
  color: #df7056;
  background: rgba(255, 250, 243, .94);
}

@media (hover: hover) and (pointer: fine) {
  .home-evening .choice-card:hover {
    border-color: rgba(255, 235, 211, .70);
    box-shadow: 0 23px 45px rgba(9, 2, 0, .25);
    transform: translateY(-4px);
  }
}

.home-evening .about {
  padding: 8px 0 82px;
}

.home-evening .about h2 {
  margin-bottom: 27px;
  color: #fff0df;
  font-weight: 600;
}

.home-evening .about-copy {
  color: #dbc3b1;
}

.home-evening .stats {
  padding: 25px 28px;
  border-color: rgba(236, 191, 150, .20);
  background: rgba(87, 43, 30, .19);
  box-shadow: 0 15px 40px rgba(10, 3, 1, .09);
}

.home-evening .stat strong {
  color: #ffedda;
}

.home-evening .stat-icon {
  color: #ed9c76;
}

.home-evening .stat span:last-child {
  color: #d9c1ae;
}

.home-evening .site-footer {
  border-top: 1px solid rgba(244, 207, 172, .10);
  background: #1d0d0b;
  color: #d5bdab;
}

.home-evening .footer-document-button {
  color: #d5bdab;
  border-color: rgba(225, 186, 154, .28);
}

.home-evening .modal {
  color: #52382b;
}

.home-evening a:focus-visible,
.home-evening button:focus-visible {
  outline: 2px solid #ffc79b;
  outline-offset: 5px;
}

/* Non-interactive decorations leave text and navigation unobstructed. */
.night-atmosphere {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: min(1120px, 100%);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.night-garland {
  position: absolute;
  top: 48px;
  width: min(31vw, 400px);
  height: 150px;
  overflow: visible;
}

.night-garland-left { left: -10px; }
.night-garland-right { right: -10px; transform: scaleX(-1); }

.night-wire {
  fill: none;
  stroke: #a36b45;
  stroke-width: 1.25;
  opacity: .5;
}

.night-bulb {
  fill: #ffd39c;
  filter: drop-shadow(0 0 4px rgba(255, 179, 97, .80))
    drop-shadow(0 0 12px rgba(242, 132, 61, .35));
  animation: night-twinkle 6s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

/* A separate viewport layer lets hearts rise from below the screen. */
.night-particles {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  user-select: none;
}

.night-particle {
  position: absolute;
  left: var(--x);
  bottom: -75px;
  width: var(--size);
  height: var(--size);
  opacity: 0;
  will-change: transform, opacity;
  animation-duration: var(--duration);
  animation-delay: var(--delay, 0s);
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.night-heart {
  overflow: visible;
  filter: blur(var(--softness, 0px)) drop-shadow(0 0 4px rgba(227, 137, 93, .20));
  animation-name: night-rise;
}

.night-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.night-heart.is-filled path {
  fill: currentColor;
  stroke-width: .65;
}

.night-bokeh {
  border-radius: 50%;
  background: currentColor;
  filter: blur(var(--softness, 10px));
  animation-name: night-light-float;
  animation-timing-function: ease-in-out;
}

.night-particles.is-paused .night-particle { animation-play-state: paused; }

@keyframes night-twinkle {
  from { opacity: .57; }
  to { opacity: 1; }
}

@keyframes night-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--turn-start)) scale(.85);
  }
  8% { opacity: var(--alpha); }
  45% {
    transform: translate3d(var(--sway), calc((100vh + 160px) * -.45), 0) rotate(var(--turn-end)) scale(1);
  }
  84% { opacity: var(--alpha); }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), calc(-100vh - 160px), 0) rotate(var(--turn-start)) scale(.95);
  }
}

@keyframes night-light-float {
  0% { opacity: 0; transform: translate3d(0, 35px, 0) scale(.85); }
  22% { opacity: var(--alpha); }
  68% { opacity: var(--alpha); }
  100% { opacity: 0; transform: translate3d(var(--drift), -160px, 0) scale(1.14); }
}

@media (max-width: 900px) {
  .home-evening .main-nav {
    background: rgba(35, 16, 14, .98);
  }

  .home-evening .main-nav a {
    border-bottom-color: rgba(244, 207, 172, .12);
  }

  .night-garland { width: 32vw; height: 125px; }
}

@media (max-width: 640px) {
  .home-evening .site-header { height: 72px; }
  .home-evening .hero-home { padding: 50px 0 45px; }
  .home-evening .hero-home h1 { font-size: clamp(29px, 7.7vw, 39px); line-height: 1.18; }
  .home-evening .hero-home > .container > p { font-size: 15px; line-height: 1.65; }
  .home-evening .hero-home > .container > p br { display: none; }
  .home-evening .hero-home .choice-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 29px; }
  .home-evening .choice-card { min-height: 184px; padding: 24px 64px 26px 25px; }
  .home-evening .choice-card h2 { font-size: clamp(18px, 4.5vw, 22px); }
  .home-evening .choice-card p { max-width: 290px; font-size: 14px; }
  .home-evening .choice-icon { margin-bottom: 12px; }
  .home-evening .about { padding: 0 0 55px; }
  .home-evening .about h2 { margin-bottom: 22px; font-size: 28px; }
  .home-evening .about-copy { font-size: 15px; }
  .home-evening .stats { padding: 24px 18px; }
  .night-garland { width: 39vw; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .night-bulb,
  .night-particle { animation: none; }
  .home-evening .choice-card,
  .home-evening .choice-arrow { transition: none; }
}
