@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom CSS specific to the designs that Tailwind utility classes can't easily handle (like specific absolute positioning from mockups, pseudo elements for flowers, etc) */

/* Global Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* === SECTION 1 === */
/* ============================================================
   Wedding Invitation — Section 01
   Tailwind utility classes are used in the HTML.
   This file contains small custom utilities/decorations.
   ============================================================ */

/* Optional production build:
   If you use Tailwind CLI / PostCSS, replace the CDN in the HTML
   and import Tailwind in your main stylesheet.

   Tailwind v4:
   @import "tailwindcss";
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #2C3424;
}

.cover-hero {
  isolation: isolate;
}

.cover-title {
  text-wrap: balance;
}

.cover-invite p {
  text-wrap: pretty;
}

.cover-photo-frame {
  overflow: hidden;
}

@media (max-width: 639px) {
  .cover-photo-frame::before {
    position: absolute;
    inset: -1.5rem;
    content: "";
    background:
      linear-gradient(rgba(44, 52, 36, 0.38), rgba(31, 33, 27, 0.58)),
      url("../aset/versidesktop.jpeg") center / cover;
    filter: blur(18px);
    opacity: 0.8;
    transform: scale(1.05);
  }

  .cover-photo {
    object-fit: contain;
  }

  .cover-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .cover-title {
    max-width: 6ch;
  }

  .cover-date {
    margin-top: 1.25rem;
    gap: 0.75rem;
  }

  .cover-invite {
    margin-top: 1.5rem;
    padding-left: 0.875rem;
  }

  .cover-action {
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
  }

  .cover-scroll {
    left: 1.25rem;
    bottom: 1.25rem;
  }

  .cover-botanical {
    transform: scale(0.8);
    transform-origin: bottom left;
  }
}

@media (max-width: 639px) and (max-height: 700px) {
  .cover-hero {
    min-height: 42rem;
  }

  .cover-scroll {
    display: none;
  }
}

/* Navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.4rem;
  font-size: 0.875rem;
  color: rgba(250, 249, 244, 0.82);
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(250, 249, 244, 0.85);
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Remove native details marker */
details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

/* Minimal botanical placeholder.
   Replace this decorative block with the actual edited SVG/PNG later. */
.leaf {
  position: absolute;
  bottom: 0;
  width: 5.5rem;
  height: 1.65rem;
  border-radius: 100% 0 100% 0;
  border: 1px solid rgba(218, 222, 216, 0.28);
  background:
    linear-gradient(
      135deg,
      rgba(218, 222, 216, 0.12),
      rgba(118, 128, 100, 0.20)
    );
  transform-origin: bottom center;
}

.leaf-1 {
  left: 0;
  transform: rotate(-32deg);
}

.leaf-2 {
  left: 2.25rem;
  bottom: 1.25rem;
  transform: rotate(-16deg);
}

.leaf-3 {
  left: 4.5rem;
  bottom: 2.2rem;
  transform: rotate(2deg);
}

.leaf-4 {
  left: 6.8rem;
  bottom: 1rem;
  transform: rotate(18deg);
}

.leaf-5 {
  left: 9rem;
  bottom: 2.2rem;
  transform: rotate(32deg);
}

@media (min-width: 768px) {
  .leaf {
    width: 7rem;
  }
}

/* Improve focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #FAF9F4;
  outline-offset: 3px;
}


/* === SECTION 2 === */
/* ============================================================
   Wedding Invitation — Section 02
   Tailwind handles layout/utilities.
   This stylesheet contains component-specific decoration only.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

/* Desktop navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 0.4rem;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.875rem;
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

/* Mobile navigation */
details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.875rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Small section label */
.section-eyebrow {
  font-size: 0.65rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: rgba(31, 33, 27, 0.58);
}

/* Photo placeholders */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  overflow: hidden;
  color: rgba(250, 249, 244, 0.72);
}

.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(44, 52, 36, 0.78),
      rgba(118, 128, 100, 0.72)
    );
}

.photo-placeholder > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.photo-placeholder p {
  margin-top: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.photo-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(250, 249, 244, 0.28);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

/* Decorative flowers */
.flower {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid rgba(218, 222, 216, 0.55);
  border-radius: 999px;
  background: rgba(243, 240, 231, 0.08);
}

.flower::before,
.flower::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border: inherit;
  border-radius: inherit;
}

.flower-a {
  left: 0.5rem;
  top: 1rem;
}

.flower-b {
  left: 2rem;
  top: 2.5rem;
}

.flower-c {
  left: 0.2rem;
  top: 4rem;
}

/* Botanical stems */
.stem {
  position: absolute;
  bottom: -1rem;
  width: 1px;
  height: 10rem;
  background: rgba(118, 128, 100, 0.55);
  transform-origin: bottom center;
}

.stem::before,
.stem::after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 1rem;
  border: 1px solid rgba(118, 128, 100, 0.5);
  border-radius: 100% 0 100% 0;
  background: rgba(118, 128, 100, 0.08);
}

.stem::before {
  left: -2.5rem;
  top: 2rem;
  transform: rotate(-28deg);
}

.stem::after {
  left: 0.2rem;
  top: 4rem;
  transform: rotate(26deg);
}

.stem-1 {
  left: 2rem;
  transform: rotate(-18deg);
}

.stem-2 {
  left: 4.5rem;
  height: 8rem;
  transform: rotate(-4deg);
}

.stem-3 {
  left: 6.5rem;
  height: 11rem;
  transform: rotate(14deg);
}

.stem-4 {
  right: 2rem;
  transform: rotate(18deg);
}

.stem-5 {
  right: 4.5rem;
  height: 8rem;
  transform: rotate(4deg);
}

.stem-6 {
  right: 6.5rem;
  height: 11rem;
  transform: rotate(-14deg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #FAF9F4;
  outline-offset: 3px;
}


/* === SECTION 3 === */
/* ============================================================
   Wedding Invitation — Section 03 / Our Story
   Tailwind handles layout and utility styling.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 0.4rem;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.875rem;
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.875rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Hero photo placeholder */
.story-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(76, 88, 62, 0.95),
      rgba(118, 128, 100, 0.70),
      rgba(44, 52, 36, 0.92)
    );
}

.story-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(250, 249, 244, 0.10),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      transparent 45%,
      rgba(250, 249, 244, 0.05) 46%,
      transparent 65%
    );
}

.story-photo-placeholder > div {
  text-align: center;
}

.photo-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(250, 249, 244, 0.28);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(250, 249, 244, 0.68);
}

.story-photo-placeholder p {
  margin-top: 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 244, 0.68);
}

/* Mini photo placeholder */
.mini-photo-placeholder,
.story-photo-small,
.mobile-timeline-photo {
  background:
    linear-gradient(
      135deg,
      #4C583E,
      #768064,
      #2C3424
    );
}

.mini-photo-placeholder::before,
.story-photo-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(250, 249, 244, 0.10),
      transparent 28%
    );
}

.mini-photo-placeholder {
  position: relative;
}

/* Small photo stack */
.story-photo-small {
  position: relative;
  overflow: hidden;
}

.photo-small-label {
  position: relative;
  z-index: 1;
  color: rgba(250, 249, 244, 0.68);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Timeline */
.timeline-dot {
  position: absolute;
  left: -2.02rem;
  top: 0.25rem;
  height: 0.9rem;
  width: 0.9rem;
  border: 2px solid #768064;
  border-radius: 999px;
  background: #F3F0E7;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 999px;
  background: #768064;
  opacity: 0.25;
}

.timeline-dot-last {
  background: #768064;
}

/* Mobile timeline image */
.mobile-timeline-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  color: rgba(250, 249, 244, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

/* Decorative branch on desktop */
.story-branch {
  position: absolute;
  left: 8rem;
  top: 12rem;
  width: 1px;
  height: 28rem;
  background: rgba(118, 128, 100, 0.45);
  transform: rotate(-18deg);
}

.story-branch::before,
.story-branch::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 1.35rem;
  border: 1px solid rgba(118, 128, 100, 0.35);
  border-radius: 100% 0 100% 0;
  background: rgba(118, 128, 100, 0.06);
}

.story-branch::before {
  left: -4rem;
  top: 5rem;
  transform: rotate(-15deg);
}

.story-branch::after {
  left: 0.2rem;
  top: 10rem;
  transform: rotate(25deg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #FAF9F4;
  outline-offset: 3px;
}


/* === SECTION 4 === */
/* ============================================================
   Wedding Invitation — Section 04 / Detail Acara
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

/* Navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 0.4rem;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.875rem;
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.875rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Hero / event image placeholder */
.photo-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(250, 249, 244, 0.25);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(250, 249, 244, 0.68);
}

/* Event cards */
.event-photo-placeholder {
  position: relative;
  display: flex;
  min-height: 19rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #2C3424,
      #4C583E 50%,
      #768064
    );
  color: rgba(250, 249, 244, 0.68);
}

.event-photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(250, 249, 244, 0.10),
      transparent 30%
    );
}

.event-photo-placeholder > div {
  z-index: 1;
  text-align: center;
}

.event-photo-placeholder p {
  margin-top: 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.event-photo-light {
  background:
    linear-gradient(
      145deg,
      #768064,
      #4C583E 55%,
      #2C3424
    );
}

.event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(118, 128, 100, 0.55);
  border-radius: 999px;
  color: #4C583E;
  font-size: 1rem;
}

.info-icon {
  flex: 0 0 1.2rem;
  color: #768064;
  font-size: 1rem;
  line-height: 1.4;
}

/* Location */
.location-bullet {
  display: inline-flex;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2C3424;
  color: #FAF9F4;
  font-size: 0.85rem;
}

/* Venue photo placeholder */
.venue-photo-placeholder {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      #4C583E,
      #768064,
      #2C3424
    );
  color: rgba(250, 249, 244, 0.7);
}

/* Map */
.map-grid {
  min-height: 24rem;
  background-color: #d7d7cf;
  background-image:
    linear-gradient(
      12deg,
      transparent 48%,
      rgba(90, 96, 87, 0.17) 49%,
      rgba(90, 96, 87, 0.17) 51%,
      transparent 52%
    ),
    linear-gradient(
      88deg,
      transparent 48%,
      rgba(90, 96, 87, 0.14) 49%,
      rgba(90, 96, 87, 0.14) 51%,
      transparent 52%
    ),
    linear-gradient(
      145deg,
      transparent 49%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 51%
    );
  background-size: 13rem 9rem, 10rem 12rem, 16rem 16rem;
}

.map-label {
  position: absolute;
  font-size: 0.7rem;
  color: rgba(31, 33, 27, 0.45);
}

.map-label-a {
  left: 20%;
  top: 44%;
}

.map-label-b {
  right: 18%;
  top: 26%;
}

.map-label-c {
  left: 15%;
  bottom: 24%;
}

/* Decorative leaves */
.leaf {
  position: absolute;
  width: 5.5rem;
  height: 1.5rem;
  border-radius: 100% 0 100% 0;
  border: 1px solid rgba(118, 128, 100, 0.65);
  background: rgba(118, 128, 100, 0.08);
  transform-origin: left center;
}

.leaf-1 {
  right: 0;
  bottom: 3rem;
  transform: rotate(-28deg);
}

.leaf-2 {
  right: 2rem;
  bottom: 6rem;
  transform: rotate(8deg);
}

.leaf-3 {
  right: 3rem;
  bottom: 1rem;
  transform: rotate(34deg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #FAF9F4;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .map-grid {
    min-height: 20rem;
  }
}


/* === SECTION 5 === */
/* ============================================================
   Wedding Invitation — Section 05 / Gallery
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

/* Navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 0.4rem;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.875rem;
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.875rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Hero */
.gallery-hero-photo {
  min-height: 18rem;
  border-top-left-radius: 5rem;
  background:
    linear-gradient(
      145deg,
      #4C583E,
      #768064 55%,
      #2C3424
    );
}

.gallery-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(250, 249, 244, 0.11),
      transparent 28%
    );
}

.photo-placeholder-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 249, 244, 0.28);
  border-radius: 999px;
  color: rgba(250, 249, 244, 0.68);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.gallery-hero-photo p,
.gallery-hero-photo .photo-placeholder-icon {
  position: relative;
  z-index: 1;
}

/* Botanical hero decorations */
.hero-leaf {
  position: absolute;
  width: 6rem;
  height: 1.4rem;
  border: 1px solid rgba(218, 222, 216, 0.35);
  border-radius: 100% 0 100% 0;
  background: rgba(218, 222, 216, 0.07);
  transform-origin: left center;
}

.leaf-a {
  bottom: 1rem;
  left: 0;
  transform: rotate(-22deg);
}

.leaf-b {
  bottom: 2.4rem;
  left: 3.2rem;
  transform: rotate(2deg);
}

.leaf-c {
  bottom: 0.3rem;
  left: 5.6rem;
  transform: rotate(24deg);
}

/* Filters */
.gallery-filter {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0 0 0.5rem;
  color: rgba(31, 33, 27, 0.62);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.gallery-filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  background: #1F211B;
  transition: transform 220ms ease;
}

.gallery-filter:hover,
.gallery-filter-active {
  color: #1F211B;
}

.gallery-filter:hover::after,
.gallery-filter-active::after {
  transform: scaleX(1);
}

.gallery-arrow {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 33, 27, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #1F211B;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.gallery-arrow:hover {
  background: #2C3424;
  color: #FAF9F4;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.gallery-item {
  min-width: 0;
}

.gallery-photo {
  position: relative;
  display: flex;
  min-height: 10rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #768064,
      #4C583E 48%,
      #2C3424
    );
}

.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(250, 249, 244, 0.04),
      transparent 40%,
      rgba(31, 33, 27, 0.08)
    );
}

.gallery-photo:nth-child(2) {
  background:
    linear-gradient(
      145deg,
      #959581,
      #768064,
      #4C583E
    );
}

.photo-placeholder-copy {
  position: relative;
  z-index: 1;
  color: rgba(250, 249, 244, 0.55);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Desktop gallery proportions */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
    grid-auto-rows: 11rem;
    gap: 0.6rem;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(2) {
    grid-column: 2;
  }

  .gallery-item:nth-child(3) {
    grid-column: 3;
  }

  .gallery-item:nth-child(4) {
    grid-column: 4;
  }

  .gallery-item:nth-child(5) {
    grid-column: 2;
  }

  .gallery-item:nth-child(6) {
    grid-column: 3;
  }

  .gallery-item:nth-child(7) {
    grid-column: 2;
  }

  .gallery-item:nth-child(8) {
    grid-column: 3;
  }

  .gallery-item:nth-child(9) {
    grid-column: 4;
    grid-row: span 2;
  }

  .gallery-photo {
    min-height: 100%;
  }
}

@media (max-width: 767px) {
  .gallery-hero-photo {
    border-top-left-radius: 3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child,
  .gallery-item:last-child {
    grid-column: span 2;
  }

  .gallery-photo {
    min-height: 9rem;
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #FAF9F4;
  outline-offset: 3px;
}


/* === SECTION 6 === */
/* ============================================================
   Wedding Invitation — Section 06 / Ucapan & RSVP
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

/* Navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 0.4rem;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.875rem;
  transition:
    color 250ms ease,
    opacity 250ms ease;
}

.nav-link:hover {
  color: #FAF9F4;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #FAF9F4;
  transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  display: none;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: rgba(250, 249, 244, 0.88);
  font-size: 0.875rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(250, 249, 244, 0.08);
  color: #FAF9F4;
}

/* Hero */
.rsvp-hero-photo {
  min-height: 18rem;
  background:
    linear-gradient(
      145deg,
      #4C583E,
      #768064 55%,
      #2C3424
    );
}

.rsvp-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(250, 249, 244, 0.10),
      transparent 28%
    );
}

.photo-placeholder-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 249, 244, 0.28);
  border-radius: 999px;
  color: rgba(250, 249, 244, 0.68);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

/* Form controls */
.form-field,
.form-textarea {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(149, 149, 129, 0.40);
  background: rgba(250, 249, 244, 0.28);
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.form-field:focus-within,
.form-textarea:focus-within {
  border-color: rgba(44, 52, 36, 0.65);
  background: rgba(250, 249, 244, 0.55);
}

.form-field input,
.form-textarea textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1F211B;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input {
  min-height: 3.4rem;
  padding: 0.8rem 1rem 0.8rem 3.2rem;
}

.form-textarea textarea {
  min-height: 8rem;
  resize: vertical;
  padding: 1rem 1rem 1rem 3.2rem;
  line-height: 1.6;
}

.form-field input::placeholder,
.form-textarea textarea::placeholder {
  color: rgba(31, 33, 27, 0.45);
}

.field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #768064;
  font-size: 0.95rem;
}

.field-icon-top {
  top: 1.15rem;
  transform: none;
}

/* Attendance options */
.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(149, 149, 129, 0.4);
}

.attendance-option {
  position: relative;
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 0.5rem;
  color: rgba(31, 33, 27, 0.78);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.attendance-option + .attendance-option {
  border-left: 1px solid rgba(149, 149, 129, 0.35);
}

.attendance-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  border: 1.5px solid rgba(31, 33, 27, 0.45);
  border-radius: 999px;
  background: transparent;
}

.attendance-option:has(input:checked) {
  background: rgba(118, 128, 100, 0.12);
  color: #1F211B;
}

.attendance-option:has(input:checked) .radio-dot {
  border-color: #2C3424;
  background:
    radial-gradient(
      circle,
      #2C3424 0 0.28rem,
      transparent 0.31rem
    );
}

.send-button {
  display: inline-flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: #2C3424;
  color: #FAF9F4;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.send-button:hover {
  background: #4C583E;
  transform: translateY(-1px);
}

/* Guest cards */
.guest-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(233, 229, 216, 0.56);
}

.guest-avatar {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #FAF9F4;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.guest-avatar-1 {
  background: #768064;
}

.guest-avatar-2 {
  background: #4C583E;
}

.guest-avatar-3 {
  background: #959581;
}

.guest-more {
  border: 0;
  background: transparent;
  color: rgba(31, 33, 27, 0.35);
  font-size: 1rem;
  cursor: pointer;
}

.guest-more:hover {
  color: #1F211B;
}

/* RSVP status */
.rsvp-status-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(218, 222, 216, 0.68);
}

.rsvp-status-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(149, 149, 129, 0.35);
  background: rgba(250, 249, 244, 0.68);
  padding: 1rem;
  text-align: center;
  color: #1F211B;
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.status-card:hover,
.status-card-active {
  border-color: rgba(44, 52, 36, 0.65);
  background: #F3F0E7;
  transform: translateY(-1px);
}

.status-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 52, 36, 0.35);
  border-radius: 999px;
  color: #4C583E;
}

.status-title {
  margin-top: 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.status-copy {
  margin-top: 0.3rem;
  max-width: 9rem;
  color: rgba(31, 33, 27, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 767px) {
  .attendance-options {
    grid-template-columns: 1fr;
  }

  .attendance-option {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .attendance-option + .attendance-option {
    border-left: 0;
    border-top: 1px solid rgba(149, 149, 129, 0.35);
  }

  .rsvp-status-panel {
    padding: 1rem;
  }

  .rsvp-status-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-height: 7.5rem;
  }
}

@media (min-width: 768px) {
  .rsvp-status-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    align-items: center;
    padding: 1.6rem;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #2C3424;
  outline-offset: 3px;
}

