/* ==========================================================================
   La Belleza Banquet — Coming Soon
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --gold: #D4AF37;
  --gold-light: #FFE5AD;
  --gold-dark: #B8860B;
  --bg-dark: #1A120C;
  --cream: #FFF8EF;
  --white: #FFFFFF;

  --gold-rgb: 212, 175, 55;
  --bg-dark-rgb: 26, 18, 12;

  --gradient-gold: linear-gradient(135deg, #FFE5AD 0%, #E9C979 35%, #D4AF37 65%, #B8860B 100%);
  --gradient-gold-text: linear-gradient(180deg, #FFF4D6 0%, #FFE5AD 28%, #EBCB7C 52%, #D4AF37 74%, #B8860B 100%);
  --gradient-button: linear-gradient(180deg, #FFEBC0 0%, #EED08A 45%, #D9B455 100%);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --border-gold: 1px solid rgba(var(--gold-rgb), .55);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --transition: .35s var(--ease-out);

  /* Fluid vertical rhythm: scales with the shorter of width / height */
  --space-xs: clamp(.4rem, 1.1vh, .8rem);
  --space-sm: clamp(.75rem, 2vh, 1.4rem);
  --space-md: clamp(1rem, 3vh, 2.1rem);

  /* Footer / flourish geometry */
  --footer-pad: clamp(1.4rem, 5vh, 3.6rem);
  --social-size: 44px;
  --flourish-w: min(clamp(200px, 27vw, 440px), calc(50vw - 140px));

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--cream);
  --bs-body-bg: var(--bg-dark);
  --bs-link-color-rgb: var(--gold-rgb);
}

/* ---------- Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--cream);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(var(--gold-rgb), .35);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Page shell & background ---------- */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* TEMPORARY background — replace assets/images/banquet-hall-bg.jpg with real venue photography */
  background: var(--bg-dark) url("../images/banquet-hall-bg.jpg") center / cover no-repeat;
}

/* Dark overlay: deep in the centre for readability, lighter at the edges */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 70% at 50% 48%, rgba(var(--bg-dark-rgb), .7) 0%, rgba(var(--bg-dark-rgb), .55) 50%, rgba(var(--bg-dark-rgb), .18) 80%, rgba(var(--bg-dark-rgb), 0) 100%),
    linear-gradient(180deg, rgba(var(--bg-dark-rgb), .35) 0%, rgba(var(--bg-dark-rgb), 0) 22%, rgba(var(--bg-dark-rgb), 0) 70%, rgba(var(--bg-dark-rgb), .55) 100%);
}

/* Soft golden light behind the heading */
.page::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(70vw, 900px);
  height: min(40vh, 380px);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), .12), rgba(var(--gold-rgb), 0));
}

.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(1.25rem, 3vh, 2.5rem);
  padding-bottom: var(--space-sm);
}

/* ---------- Brand ---------- */
.brand {
  margin-bottom: clamp(.75rem, 3.5vh, 2.6rem);
}

.brand-emblem {
  display: block;
  width: clamp(92px, 14vh, 150px);
  height: auto;
  margin: 0 auto clamp(.2rem, 1vh, .6rem);
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), .25));
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, min(10vw, 7.2vh), 4.9rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.brand-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin-top: clamp(.45rem, 1.4vh, .9rem);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(.8rem, min(3vw, 2.15vh), 1.35rem);
  letter-spacing: .62em;
  /* compensate trailing letter-spacing so text stays optically centred */
  text-indent: .62em;
  text-transform: uppercase;
  color: var(--cream);
}

.brand-sub::before,
.brand-sub::after {
  content: "";
  flex: 0 0 clamp(36px, 7vw, 66px);
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0), var(--gold));
}

.brand-sub::after {
  background: linear-gradient(90deg, var(--gold), rgba(var(--gold-rgb), 0));
}

/* ---------- Coming Soon ---------- */
.coming-soon {
  margin: 0;
  padding: 0 .08em .06em; /* room for italic overhang & descenders when clipped */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, min(15vw, 13.6vh), 9.5rem);
  line-height: 1.05;
  letter-spacing: -.005em;
  color: var(--gold-light); /* fallback */
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(var(--gold-rgb), .22));
}

.ornament-divider {
  width: min(400px, 78%);
  margin: clamp(.35rem, 1.2vh, .8rem) auto clamp(.9rem, 3.2vh, 2.1rem);
}

.ornament-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, min(4.4vw, 2.75vh), 1.8rem);
  line-height: 1.4;
  letter-spacing: .045em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* ---------- Event categories ---------- */
.events {
  margin-top: clamp(1.25rem, 3.4vh, 2.5rem);
}

.events-list {
  max-width: 720px;
  margin-inline: auto;
  row-gap: 1.5rem;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.4rem, 1.3vh, .8rem);
  padding-inline: .25rem;
  cursor: default;
}

.event-icon {
  display: grid;
  place-items: center;
  width: clamp(46px, 6.6vh, 62px);
  height: clamp(46px, 6.6vh, 62px);
  color: var(--gold);
  transition: transform var(--transition), filter var(--transition), color var(--transition);
}

.event-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.event-label {
  font-size: clamp(.92rem, min(3.6vw, 1.9vh), 1.15rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--white);
  transition: color var(--transition);
}

.event-item:hover .event-icon {
  transform: translateY(-4px);
  color: var(--gold-light);
  filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), .55));
}

.event-item:hover .event-label {
  color: var(--gold-light);
}

/* ---------- Subscribe ---------- */
.subscribe {
  position: relative;
  max-width: 700px;
  margin: clamp(1.4rem, 4.4vh, 3rem) auto 0;
}

.subscribe-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 -.62em;
  padding-inline: 2.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, min(6vw, 3.4vh), 2.05rem);
  line-height: 1.2;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.subscribe-title::before,
.subscribe-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0), rgba(var(--gold-rgb), .75));
}

.subscribe-title::after {
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .75), rgba(var(--gold-rgb), 0));
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: clamp(1.6rem, 4vh, 2.1rem) clamp(1rem, 4vw, 2.5rem) clamp(1.1rem, 3.2vh, 1.7rem);
  border: var(--border-gold);
  border-top-color: transparent; /* the title's lines form the top edge */
  border-radius: 56px;
  background: linear-gradient(180deg, rgba(var(--bg-dark-rgb), .2), rgba(var(--bg-dark-rgb), .55));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  position: relative;
}

/* Rounded upper corners joined to the title lines */
.subscribe-form::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 56px;
  border: var(--border-gold);
  border-bottom: 0;
  border-radius: 56px 56px 0 0;
  -webkit-mask: linear-gradient(90deg, #000 0 64px, transparent 64px calc(100% - 64px), #000 calc(100% - 64px));
  mask: linear-gradient(90deg, #000 0 64px, transparent 64px calc(100% - 64px), #000 calc(100% - 64px));
  pointer-events: none;
}

.subscribe-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.subscribe-field-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: .85;
  pointer-events: none;
  transition: color var(--transition), opacity var(--transition);
}

.subscribe-input {
  width: 100%;
  height: 52px;
  padding: 0 1rem 0 3.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--cream);
  background: rgba(var(--bg-dark-rgb), .45);
  border: 1px solid rgba(var(--gold-rgb), .35);
  border-radius: 10px 0 0 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.subscribe-input::placeholder {
  color: rgba(255, 248, 239, .72);
  opacity: 1;
}

.subscribe-input:hover {
  border-color: rgba(var(--gold-rgb), .6);
}

.subscribe-input:focus {
  border-color: var(--gold);
  background: rgba(var(--bg-dark-rgb), .7);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .18);
}

.subscribe-field:focus-within .subscribe-field-icon {
  opacity: 1;
  color: var(--gold);
}

.subscribe-input[aria-invalid="true"] {
  border-color: #E3896F;
  box-shadow: 0 0 0 3px rgba(227, 137, 111, .18);
}

/* Gold button */
.btn-gold {
  flex: 0 0 auto;
  min-width: 172px;
  height: 52px;
  margin-left: -.25rem;
  padding: 0 1.9rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #2A1C0E;
  background: var(--gradient-button);
  background-size: 100% 200%;
  border: 1px solid rgba(255, 229, 173, .7);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

/* light sweep on hover */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4), 0 0 22px rgba(var(--gold-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn-gold[disabled] {
  cursor: progress;
  opacity: .8;
}

/* Positioned below the form so messages never shift the layout */
.subscribe-status {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: .45rem 0 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--gold-light);
}

.subscribe-status.is-error {
  color: #F2A48C;
}

/* ---------- Footer / social ---------- */
.page-footer {
  flex: 0 0 auto;
  padding: clamp(1.9rem, 3vh, 2.4rem) 1rem var(--footer-pad);
  text-align: center;
  position: relative;
  z-index: 1;
}

.social-link {
  display: grid;
  place-items: center;
  width: var(--social-size);
  height: var(--social-size);
  font-size: 1.2rem;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: rgba(var(--bg-dark-rgb), .35);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--bg-dark);
  background: var(--gradient-gold);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(var(--gold-rgb), .4);
}

.social-link:active {
  transform: translateY(0);
}

/* ---------- Corner flourishes ---------- */
/* The leafy tips line up with the social icons */
.flourish {
  position: absolute;
  bottom: calc(var(--footer-pad) + var(--social-size) / 2 - var(--flourish-w) * .113);
  width: var(--flourish-w);
  height: auto;
  pointer-events: none;
  opacity: .9;
  z-index: 0;
}

.flourish-left {
  right: calc(50% + 125px);
}

.flourish-right {
  left: calc(50% + 125px);
  transform: scaleX(-1);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes goldGlow {
  0%, 100% { filter: drop-shadow(0 4px 22px rgba(var(--gold-rgb), .18)); }
  50%      { filter: drop-shadow(0 4px 30px rgba(var(--gold-rgb), .38)); }
}

.anim {
  animation-duration: 1s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
}

.anim-fade { animation-name: fadeIn; animation-duration: 1.4s; }
.anim-rise { animation-name: riseIn; }

.coming-soon.anim-rise {
  animation: riseIn 1.1s var(--ease-out) .35s both, goldGlow 6s ease-in-out 1.6s infinite;
}

.anim-delay-2 { animation-delay: .7s; }
.anim-delay-3 { animation-delay: .85s; }
.anim-delay-5 { animation-delay: 1.55s; }
.anim-delay-6 { animation-delay: 1.8s; }

.event-item.anim:nth-child(1) { animation-delay: 1.05s; }
.event-item.anim:nth-child(2) { animation-delay: 1.17s; }
.event-item.anim:nth-child(3) { animation-delay: 1.29s; }
.event-item.anim:nth-child(4) { animation-delay: 1.41s; }

.flourish {
  animation: fadeIn 2s var(--ease-out) 1.8s both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large desktops: let the hall breathe */
@media (min-width: 1800px) {
  .events-list { max-width: 780px; }
  .subscribe { max-width: 740px; }
}

/* Shorter landscape screens (e.g. 1366x768, 1280x720 laptops) */
@media (min-width: 576px) and (max-height: 860px) {
  :root { --footer-pad: clamp(1.1rem, 3.4vh, 1.75rem); }
  .page-main { padding-top: clamp(1rem, 2.6vh, 1.6rem); }
  .brand-emblem { width: clamp(80px, 12.5vh, 120px); }
  .brand { margin-bottom: clamp(.6rem, 2.4vh, 1.4rem); }
  .event-icon { width: clamp(40px, 6vh, 52px); height: clamp(40px, 6vh, 52px); }
  .subscribe { margin-top: clamp(1.2rem, 3.4vh, 2rem); }
  .subscribe-form { padding-top: 1.45rem; padding-bottom: 1rem; }
  .subscribe-input,
  .btn-gold { height: 46px; }
  .page-footer { padding-top: 1.7rem; }
}

/* Small tablets and landscape phones: keep labels on one line */
@media (min-width: 576px) {
  .event-label { white-space: nowrap; }
}

/* Portrait screens: shift the photo so the curtains, flowers and tables stay in view */
@media (orientation: portrait) {
  .page { background-position: 16% center; }
}

/* Tablets and below */
@media (max-width: 991.98px) {
  .page::before {
    background:
      radial-gradient(ellipse 70% 60% at 50% 45%, rgba(var(--bg-dark-rgb), .74) 0%, rgba(var(--bg-dark-rgb), .55) 60%, rgba(var(--bg-dark-rgb), .25) 100%),
      linear-gradient(180deg, rgba(var(--bg-dark-rgb), .35) 0%, rgba(var(--bg-dark-rgb), 0) 25%, rgba(var(--bg-dark-rgb), 0) 70%, rgba(var(--bg-dark-rgb), .6) 100%);
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .page::before {
    background:
      linear-gradient(180deg, rgba(var(--bg-dark-rgb), .55) 0%, rgba(var(--bg-dark-rgb), .72) 30%, rgba(var(--bg-dark-rgb), .72) 70%, rgba(var(--bg-dark-rgb), .85) 100%);
  }

  .page-main {
    padding-top: 2.25rem;
    padding-bottom: 1.25rem;
  }

  .events-list {
    max-width: 340px;
    row-gap: 1.6rem;
  }

  .subscribe-title {
    padding-inline: 1.25rem;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: 1.75rem 1.1rem 1.25rem;
    border-radius: 28px;
  }

  .subscribe-form::before {
    height: 28px;
    border-radius: 28px 28px 0 0;
    -webkit-mask: linear-gradient(90deg, #000 0 32px, transparent 32px calc(100% - 32px), #000 calc(100% - 32px));
    mask: linear-gradient(90deg, #000 0 32px, transparent 32px calc(100% - 32px), #000 calc(100% - 32px));
  }

  .subscribe-input {
    border-radius: 999px;
  }

  .btn-gold {
    width: 100%;
    margin-left: 0;
  }

  .flourish {
    display: none;
  }
}

@media (max-width: 359.98px) {
  .brand-sub { letter-spacing: .45em; text-indent: .45em; }
  .event-label { font-size: .85rem; }
}
