:root{
  --bg: #f5f1ed;
  --panel: rgba(255,255,255,0.72);
  --panel-strong: rgba(255,255,255,0.88);
  --text: #18181b;
  --muted: #5a5a63;
  --accent: #1c1c1c;
  --accent-soft: #e7ddd5;
  --line: rgba(24, 24, 27, 0.08);
  --shadow: 0 20px 45px rgba(17, 17, 17, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -5%;
  background-image: url('../images/Wedding/LIB_0066.jpg');
  background-position: center;
  background-size: cover;
  opacity: 0.15;
  filter: blur(2px) saturate(0.8);
  transform: scale(1.08);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 241, 237, 0.75), rgba(245, 241, 237, 0.9));
  z-index: -1;
}

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

a { color: inherit; }

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.8rem;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
}

main {
  padding-bottom: 40px;
}

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px 0 0;
  background-image: url('../images/Couples/LIB_0270.jpeg');
  background-position: center;
  background-size: cover;
  opacity: 0.12;
  filter: saturate(0.8) blur(1.5px);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 58px 36px;
  border-radius: 30px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 1.08rem;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--accent);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(24, 24, 27, 0.15);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn.outline {
  background: rgba(255,255,255,0.54);
  color: var(--accent);
  border-color: rgba(24,24,27,0.18);
  box-shadow: none;
}

.hero p:last-child {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured,
.content,
.gallery-page {
  position: relative;
  padding-top: 18px;
}

.featured h2,
.content h1,
.page-intro h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.page-intro {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery {
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(24, 24, 27, 0.05);
  background: rgba(255,255,255,0.6);
  box-shadow: 0 10px 20px rgba(15, 15, 15, 0.06);
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.gallery-page {
  padding-top: 40px;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.gallery-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(24,24,27,0.08);
  background: rgba(255,255,255,0.56);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-nav a:hover,
.gallery-nav a:focus-visible {
  background: rgba(24,24,27,0.94);
  color: #fff;
}

.gallery-section {
  margin-bottom: 38px;
  padding: 22px 18px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 14px 26px rgba(17,17,17,0.04);
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.gallery-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.gallery-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  padding-top: 40px;
}

.content .lead {
  max-width: 100%;
  margin: 12px 0 36px;
  font-size: 1rem;
}

.content > * {
  position: relative;
  z-index: 1;
}

.content main,
.content {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.08);
}

.about-grid p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 12px 28px rgba(17,17,17,0.06);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.price {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--text) !important;
  margin: 14px 0 12px !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}

.form-grid label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-grid input,
.form-grid select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(24,24,27,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  font: inherit;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid rgba(24, 24, 27, 0.15);
  border-color: rgba(24, 24, 27, 0.18);
}

.form-grid > div:last-child {
  display: flex;
  align-items: end;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(24,24,27,0.06);
  background: rgba(255,255,255,0.35);
  padding: 20px 0 28px;
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px){
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .site-header .container {
    flex-wrap: wrap;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(24, 24, 27, 0.08);
  }
  .nav a {
    display: block;
    padding: 8px 0;
    font-size: 1.05rem;
  }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .hero .container { padding: 42px 20px; }
  .gallery img { height: 260px; }
  .brand { letter-spacing: 0.05em; font-size: 0.75rem; }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.28);
}

.lightbox .caption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-prev {
  left: 20px;
  padding-right: 2px;
}

.lightbox-next {
  right: 20px;
  padding-left: 2px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.4);
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
