/*
/* Full-page background image */
body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  font-family: "Avenir", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Default (lighter) overlay */
  background:
    linear-gradient(#44291333, #44291333),
    url("res/img/background.jpeg") no-repeat center center fixed;
  background-size: cover;
  transition: 0.7s ease;
}

/* Background video (use a <video class="bg-video"> element in the HTML) */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(#44291333, #44291333);
  pointer-events: none;
}

/* Ensure page content stays above the background video/overlay */
.container-fluid {
  position: relative;
  z-index: 2;
}

/* Global link color */
a {
  color: #442913;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #633c1c;
}

/* Darker overlay used on the password page before login */
body.password-overlay-dark {
  background:
    linear-gradient(#000000aa, #000000aa),
    url("res/img/background.jpeg") no-repeat center center fixed;
  background-size: cover;
}

body.password-overlay-dark .bg-video-overlay {
  background: linear-gradient(#000000aa, #000000aa);
}

/* Centered content wrapper */
.circle-wrapper {
  text-shadow: 0 .1rem .3rem rgba(0, 0, 0, .8);
}

/* Home page: push the circular menu slightly lower */
.home-circle-offset {
  transform: translateY(10vh);
  will-change: transform;
}

@media (max-width: 576px) {
  .home-circle-offset {
    transform: translateY(6vh);
  }
}

/* Near-square screens (e.g. iPad in some orientations, resized desktop windows) */
@media (min-width: 577px) and (max-aspect-ratio: 5/4) {
  .home-circle-offset {
    transform: translateY(16vh);
  }
}

/* Custom primary button color */
.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #442913;
  --bs-btn-border-color: #442913;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #633c1c;
  --bs-btn-hover-border-color: #633c1c;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #2f1b0d;
  --bs-btn-active-border-color: #2f1b0d;
  --bs-btn-focus-shadow-rgb: 68, 41, 19;

  background-color: #442913;
  border-color: #442913;
  border-radius: 20px;
  box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .5);
}
.btn-primary:hover {
  background-color: #633c1c;
  border-color: #633c1c;
}

/* Remove Bootstrap's default blue focus ring and use site palette */
.btn-primary:focus,
.btn-primary:focus-visible {
  outline: 0;
  box-shadow:
    0 .2rem .5rem rgba(0, 0, 0, .5),
    0 0 0 0.25rem rgba(68, 41, 19, 0.35);
}

/* Pressed/active state (mouse click) */
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
  background-color: #2f1b0d;
  border-color: #2f1b0d;
}

.btn-primary:active:focus,
.btn-primary.active:focus,
.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-primary:active:focus-visible,
.btn-primary.active:focus-visible,
.btn-check:checked + .btn-primary:focus-visible,
.btn-check:active + .btn-primary:focus-visible {
  box-shadow:
    0 .2rem .5rem rgba(0, 0, 0, .5),
    0 0 0 0.25rem rgba(47, 27, 13, 0.35);
}

/* Form fields focus shadow */
.form-control:focus,
.form-select:focus,
textarea:focus {
	border-color: #442913;
	box-shadow: 0 0 0 0.25rem rgba(68, 41, 19, 0.35);
}

/* Circle container */
.circle {
  /* Responsive size: max 500px, but shrink on small screens */
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  border-radius: 50%;

  /* Centered logo inside the circle */
  background-image: url("res/img/logo.png");
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: clamp(70px, 14vmin, 140px) auto;
}

.circle-logo {
  width: clamp(70px, 14vmin, 140px);
  height: auto;
}

.circle-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 1rem 1.8rem;
  font-size: 1.3rem;
}

/* Buttons around the circle (configured for 5 items: 1,3,4,5,6) */
.circle-btn-1 { /* top */
  top: 4%;
  left: 50%;
}

.circle-btn-2 { /* upper-right */
  top: 32%;
  left: 85%;
}

.circle-btn-3 { /* lower-right */
  top: 76%;
  left: 75%;
}

.circle-btn-4 { /* lower-left */
  top: 76%;
  left: 25%;
}

.circle-btn-5 { /* upper-left */
  top: 32%;
  left: 15%;
}

/* Extra tweaks for very small screens */
@media (max-width: 576px) {
  .circle {
    width: min(320px, 80vw);
    height: min(320px, 80vw);
  }

  .circle {
    background-position: center 45%;
    background-size: clamp(56px, 16vmin, 110px) auto;
  }

  .circle-logo {
    width: clamp(56px, 16vmin, 110px);
  }

  .circle-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Generic details page (Cerimonia, Location, etc.) */
.details-body {
  background: #f6f5ee;
  color: #222;
}

.details-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.details-title {
  font-size: 3.5rem;
  letter-spacing: 0.12em;
}

.details-subtitle {
  font-size: 1.6rem;
  letter-spacing: 0.25em;
}

.details-label {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.details-value {
  font-size: 1.4rem;
}

.details-note {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.details-map {
  background: #6b6669;
  color: #e9e6ea;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin: 2.5rem 0 3rem;
}

.details-section + .details-section {
  margin-top: 2.5rem;
}

.text-justify {
  text-align: justify;
}

/* RSVP page layout tweaks */
.rsvp-body {
  display: flex;
  align-items: center;
  justify-content: center;
}