/* ============================================
   The Host With The Most – Global Styles
   Palette matched to logo: bubblegum pink circle, marigold gold glow, black script
   ============================================ */

/* --- Design tokens (logo-derived) --- */
:root {
  /* Primary: vibrant bubblegum pink (logo circle) */
  --color-pink: #ff5e9e;
  --color-pink-deep: #e03078;
  --color-pink-light: #ffb3d4;
  --color-pink-wash: #fff5f9;
  /* RGB for shadows / translucent UI (pairs with --color-pink-deep) */
  --color-pink-deep-rgb: 224, 48, 120;
  /* Accent: marigold / warm gold (logo text glow & dress) */
  --color-yellow: #f5cc3e;
  --color-yellow-deep: #d4a812;
  --color-yellow-soft: #fff8e0;
  /* Dress pattern accents (use in gradients / borders sparingly) */
  --color-coral: #ff8577;
  --color-mint: #52c4af;
  /* Neutrals: clean ground like logo canvas */
  --color-cream: #fffeff;
  --color-cream-warm: #fffbf7;
  --color-text: #141414;
  --color-text-soft: #2a2a2a;
  /* Spacing & layout */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --max-width: 1100px;
  --header-height: 72px;
  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --fw-body: 500;
  --fw-strong: 600;
  --fw-heading: 700;
  --fw-display: 800;
  /* Transitions */
  --ease: 0.2s ease;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream-warm);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-pink-deep);
}

a:focus-visible {
  outline: 2px solid var(--color-yellow-deep);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: var(--fw-strong);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Home hero: larger headline, tagline, intro, buttons */
.section--hero h1.hero-title {
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  margin-bottom: var(--space-lg);
  line-height: 1.08;
}

.section--hero .hero-tagline {
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  margin-bottom: var(--space-md);
}

.section--hero .hero-intro {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: var(--fw-strong);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.55;
}

.section--hero .btn {
  font-size: 1.125rem;
  padding: var(--space-md) var(--space-xl);
}

.section--hero .btn-group {
  margin-top: var(--space-md);
  gap: var(--space-md);
}

/* 3D block title on home hero */
.hero-title {
  margin-bottom: var(--space-md);
}

.hero-title--3d {
  display: inline-block;
  position: relative;
  color: var(--color-text);
  font-weight: var(--fw-display);
  letter-spacing: 0.02em;
  transform: perspective(400px) rotateX(8deg) rotateY(-4deg);
  transform-style: preserve-3d;
  text-shadow:
    1px 1px 0 var(--color-pink-deep),
    2px 2px 0 var(--color-pink-deep),
    3px 3px 0 var(--color-pink-deep),
    4px 4px 0 var(--color-pink-deep),
    5px 5px 0 var(--color-pink-deep),
    6px 6px 0 rgba(var(--color-pink-deep-rgb), 0.9),
    7px 7px 0 rgba(var(--color-pink-deep-rgb), 0.8),
    8px 8px 0 rgba(var(--color-pink-deep-rgb), 0.6),
    9px 9px 0 rgba(var(--color-pink-deep-rgb), 0.4),
    10px 10px 0 rgba(var(--color-pink-deep-rgb), 0.2),
    2px 2px 4px rgba(0, 0, 0, 0.15),
    4px 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(22deg) rotateY(-12deg) translateY(1.5rem) scale(0.92);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(8deg) rotateY(-4deg) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTitleShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.section--hero h1.hero-title.hero-title--3d {
  animation:
    heroTitleReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
    heroTitleShine 4s ease-in-out 1.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .section--hero h1.hero-title.hero-title--3d {
    animation: none;
    opacity: 1;
    filter: none;
    transform: perspective(400px) rotateX(8deg) rotateY(-4deg);
  }
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-cream) 100%);
  border-bottom: 2px solid var(--color-pink-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: var(--space-sm) var(--space-lg);
}

.site-header .site-header__inner {
  position: relative;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-height) - var(--space-sm) * 2);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-heading);
  color: var(--color-text);
}

.site-logo a {
  color: inherit;
  display: flex;
  align-items: center;
}

.site-logo a:hover {
  color: var(--color-pink-deep);
}

.site-logo__img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.nav__link {
  font-weight: var(--fw-strong);
  padding: var(--space-xs) var(--space-sm);
}

.nav__link--cta {
  background: var(--color-yellow);
  color: var(--color-text);
  border-radius: 4px;
}

.nav__link--cta:hover {
  background: var(--color-yellow-deep);
  color: var(--color-text);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-yellow-deep);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .site-header {
    padding-left: var(--space-sm);
    padding-right: 0;
  }

  .site-header .site-header__inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: var(--space-md);
    font-size: 2rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 2px solid var(--color-yellow-deep);
    padding: var(--space-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    max-height: min(420px, 85vh);
    opacity: 1;
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--color-pink-light);
  }

  .nav__item:last-child {
    border-bottom: none;
  }

  .nav__link {
    display: block;
    padding: var(--space-md);
  }
}

/* --- Main content --- */
main {
  min-height: 60vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: var(--space-lg) 0;
  box-sizing: border-box;
  background: linear-gradient(160deg, var(--color-yellow) 0%, var(--color-cream) 42%, var(--color-pink-light) 100%);
  background-attachment: scroll;
}

.section--hero .container {
  width: 100%;
  max-width: var(--max-width);
}

.section--alt {
  background: var(--color-cream);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-display);
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-yellow-deep);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-yellow);
  color: var(--color-text);
}

.btn--primary:hover {
  background: var(--color-yellow-deep);
}

.btn--secondary {
  background: var(--color-pink);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--color-pink-deep);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-group--center {
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--color-yellow) 0%, var(--color-cream) 100%);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  border-top: 3px solid var(--color-pink-deep);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-heading);
  margin-bottom: var(--space-sm);
}

.site-footer__contact {
  margin-bottom: var(--space-md);
}

.site-footer__contact a {
  white-space: nowrap;
  font-weight: var(--fw-strong);
  color: var(--color-text);
}

.site-footer__sub {
  font-size: 0.9rem;
  font-weight: var(--fw-strong);
  color: var(--color-text);
  margin-top: var(--space-md);
}

.site-footer__powered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  font-size: 0.85rem;
  font-weight: var(--fw-strong);
  color: var(--color-text-soft);
}

.site-footer__powered-text {
  letter-spacing: 0.02em;
}

.site-footer__powered-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity var(--ease), transform var(--ease);
}

.site-footer__powered-link:hover {
  opacity: 0.88;
}

.site-footer__powered-link:focus-visible {
  outline: 2px solid var(--color-pink-deep);
  outline-offset: 3px;
}

.site-footer__powered-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 8px;
  overflow: hidden;
}

/* --- Home: Services snapshot --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  background: var(--color-cream-warm);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 2px solid var(--color-yellow-deep);
  box-shadow: 0 4px 12px rgba(var(--color-pink-deep-rgb), 0.12);
  text-align: center;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-display);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.service-card p {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: var(--fw-strong);
  color: var(--color-text);
  line-height: 1.55;
}

/* --- About page --- */
.about-intro {
  margin-bottom: var(--space-xl);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content .section {
  padding-top: var(--space-md);
}

.about-photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto var(--space-lg);
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--color-yellow);
}

.about-photo + .about-photo {
  margin-top: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* --- Packages page --- */
.packages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.package-card {
  background: var(--color-cream);
  border: 2px solid var(--color-yellow-deep);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-pink-deep);
  border-radius: 8px 8px 0 0;
}

.package-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-heading);
  margin-bottom: var(--space-xs);
}

.package-card__price {
  font-size: 1.5rem;
  font-weight: var(--fw-display);
  color: var(--color-pink-deep);
  margin-bottom: var(--space-md);
}

.package-card__includes {
  margin: 0;
  padding-left: 1.25rem;
}

.package-card__includes li {
  margin-bottom: var(--space-xs);
}

.packages-notes {
  background: var(--color-pink-light);
  padding: var(--space-lg);
  border-radius: 8px;
  border-left: 4px solid var(--color-pink-deep);
  border-top: 1px solid var(--color-yellow);
  margin-top: var(--space-xl);
}

.packages-notes h3 {
  margin-top: 0;
  font-weight: var(--fw-heading);
}

.package-card strong,
.packages-notes strong {
  font-weight: var(--fw-display);
}

.packages-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- Gallery --- */
/* --- Gallery grid (fallback / unused when slideshow present) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--color-yellow-deep);
  background: var(--color-cream);
}

.gallery-item__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: top center;
  background: var(--color-pink-light);
}

.gallery-item__caption {
  padding: var(--space-sm);
  font-size: 0.9rem;
  text-align: center;
  background: var(--color-cream-warm);
  color: var(--color-text-soft);
}

/* --- Gallery slideshow (one image per screen) --- */
.gallery-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-pink-light) 55%, var(--color-cream-warm) 100%);
}

.gallery-section .container {
  max-width: 960px;
}

.gallery-page-header {
  padding: var(--space-md) var(--space-lg) var(--space-md);
  background: var(--color-yellow);
  border-radius: 12px;
  border: 2px solid var(--color-pink-deep);
  margin-bottom: var(--space-md);
}

.gallery-page-header h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

.gallery-page-header p {
  font-size: 1.05rem;
  font-weight: var(--fw-strong);
  color: var(--color-text);
  margin-bottom: 0;
}

.gallery-slideshow {
  position: relative;
  margin-top: var(--space-lg);
}

.gallery-view {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--color-pink-deep);
  background: var(--color-cream);
  aspect-ratio: 4 / 3;
  max-height: 70vh;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease-out;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-slide-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Video thumb: no <video> src — avoids downloading the MOV for a tiny preview */
.gallery-thumb-video-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  position: relative;
}

.gallery-thumb-video-ph::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  margin-left: 6px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.gallery-lightbox-video {
  display: none;
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
}

.gallery-lightbox-inner.is-video .gallery-lightbox-img {
  display: none;
}

.gallery-lightbox-inner.is-video .gallery-lightbox-video {
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-btn:hover {
  background: var(--color-pink-deep);
  color: #fff;
}

.gallery-btn:focus-visible {
  outline: 2px solid var(--color-yellow-deep);
  outline-offset: 2px;
}

.gallery-prev {
  left: var(--space-sm);
}

.gallery-next {
  right: var(--space-sm);
}

@media (max-width: 768px) {
  .gallery-view {
    display: none;
  }

  .gallery-slideshow {
    padding: 0;
  }

  .gallery-btn {
    display: none;
  }

  .gallery-thumb {
    width: 110px;
    height: 110px;
  }

  .gallery-thumbs {
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-sm);
  }
}

.gallery-counter {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 2;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  background: var(--color-yellow);
  border-radius: 12px;
  border: 2px solid var(--color-pink-light);
}

.gallery-thumb {
  width: 88px;
  height: 88px;
  padding: 0;
  border: 2px solid var(--color-pink-light);
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.gallery-thumb:hover {
  border-color: var(--color-pink-deep);
}

.gallery-thumb.active {
  border-color: var(--color-yellow-deep);
  box-shadow: 0 0 0 2px var(--color-yellow);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--color-yellow-deep);
  outline-offset: 2px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Book Now page --- */
.book-cta {
  margin-bottom: var(--space-2xl);
}

.book-cta .btn-group {
  margin-top: var(--space-md);
}

.consult-form-wrap {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-pink-light);
  border-radius: 12px;
  border: 2px solid var(--color-yellow-deep);
  max-width: 640px;
  width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

.consult-form-wrap h2 {
  margin-bottom: var(--space-sm);
}

.consult-form-intro {
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.form-success {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--color-yellow-soft);
  border: 2px solid var(--color-yellow-deep);
  border-radius: 8px;
  font-weight: var(--fw-strong);
  color: var(--color-text);
}

.form-error {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  background: #fff0f0;
  border: 2px solid var(--color-pink-deep);
  border-radius: 8px;
  font-weight: var(--fw-strong);
  color: var(--color-text);
}

.consult-form {
  text-align: left;
  min-width: 0;
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  min-width: 0;
}

@media (max-width: 600px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }

  .consult-form-wrap {
    padding: var(--space-md);
  }
}

.form-field {
  min-width: 0;
}

.form-label {
  display: block;
  font-weight: var(--fw-strong);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-required {
  color: var(--color-pink-deep);
}

.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-pink-light);
  border-radius: 6px;
  background: var(--color-cream);
  color: var(--color-text);
  transition: border-color var(--ease), box-shadow var(--ease);
  box-sizing: border-box;
}

/* Native date/time pickers often enforce a min-width (especially Safari) */
input[type='time'].form-input,
input[type='datetime-local'].form-input {
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
}

/* Safari / WebKit: clip overflow + reset appearance so width:100% is respected */
.form-input-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--color-pink-light);
  background: var(--color-cream);
  box-sizing: border-box;
}

.form-input-shell:hover {
  border-color: var(--color-yellow-deep);
}

.form-input-shell:focus-within {
  border-color: var(--color-pink-deep);
  box-shadow: 0 0 0 3px rgba(var(--color-pink-deep-rgb), 0.2);
}

.form-input.form-input--date {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  /* iOS Safari: avoid intrinsic min-width larger than container */
  box-sizing: border-box;
  font-size: 1rem;
  min-height: 2.75rem;
}

.form-input--date:focus {
  box-shadow: none;
}

/* WebKit date control internals — prevent extra horizontal overflow */
.form-input--date::-webkit-date-and-time-value {
  text-align: left;
}

.form-input--date::-webkit-calendar-picker-indicator {
  margin-left: 0;
  padding-right: var(--space-xs);
}

.form-input::placeholder {
  color: var(--color-text-soft);
  opacity: 0.7;
}

.form-input:hover {
  border-color: var(--color-yellow-deep);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-pink-deep);
  box-shadow: 0 0 0 3px rgba(var(--color-pink-deep-rgb), 0.2);
}

.form-select {
  cursor: pointer;
  appearance: auto;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: var(--space-lg);
  text-align: center;
}

.form-actions .btn {
  min-width: 200px;
}

/* --- Gallery full-screen lightbox --- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 301;
  transition: background var(--ease);
}

.gallery-lightbox-close:hover {
  background: var(--color-pink-deep);
}

.gallery-lightbox-close:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

.gallery-lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--color-pink);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 301;
  transition: background var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: var(--color-pink-deep);
}

.gallery-lightbox-prev:focus-visible,
.gallery-lightbox-next:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

.gallery-lightbox-prev {
  left: var(--space-lg);
  right: auto;
}

.gallery-lightbox-next {
  right: var(--space-lg);
  left: auto;
}

@media (max-width: 768px) {
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .gallery-lightbox-prev {
    left: var(--space-md);
    right: auto;
  }

  .gallery-lightbox-next {
    right: var(--space-md);
    left: auto;
  }
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
