/* ===================================
   SS Wedding Ceremonies - Stylesheet
   Modern, Light, Elegant Wedding Aesthetic
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #b8860b;
  --color-primary-light: #d4a843;
  --color-primary-dark: #8b6508;
  --color-accent: #c9a96e;
  --color-bg: #fffdf9;
  --color-bg-warm: #faf6f0;
  --color-bg-cream: #f5efe6;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-text-dark: #1a1a1a;
  --color-white: #ffffff;
  --color-border: #e8e0d4;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 100px 0;
}

/* --- Section Labels & Ornaments --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-top: 8px;
}

.section-ornament {
  margin: 16px auto 0;
  width: 60px;
  opacity: 0.5;
}

.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 20px 0 28px;
  border-radius: 2px;
}

.section-divider {
  text-align: center;
  padding: 10px 0;
}

.section-divider img {
  display: inline-block;
  width: 50px;
  opacity: 0.35;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar-scrolled {
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition);
}

.navbar-scrolled .nav-logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
  text-decoration: none;
}

.navbar-scrolled .nav-link {
  color: var(--color-text-dark);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 24px;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-scrolled .nav-toggle span {
  background: var(--color-text-dark);
}

.nav-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 20, 10, 0.55) 0%,
    rgba(30, 20, 10, 0.4) 50%,
    rgba(30, 20, 10, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 120px 24px 80px;
}

.hero-flourish {
  width: 120px;
  margin: 0 auto 24px;
  opacity: 0.7;
  filter: brightness(2);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PAGE HERO (subpages) === */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.6);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding-top: 60px;
}

.page-hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.page-hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  font-weight: 300;
}

/* === INTRO SECTION === */
.intro-section {
  background: var(--color-bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-image {
  position: relative;
}

.intro-image img:first-child {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.floating-flower {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.flower-1 {
  width: 160px;
  bottom: -40px;
  right: -40px;
  opacity: 0.6;
  transform: rotate(-15deg);
}

.intro-text p {
  margin-bottom: 20px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.intro-text .btn {
  margin-top: 12px;
}

/* === VIDEO SECTION === */
.video-section {
  background: var(--color-bg-warm);
}

.video-outer {
  max-width: 900px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === SERVICES PREVIEW === */
.services-preview {
  background: var(--color-bg-warm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--color-primary);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-price {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* === GALLERY PREVIEW (Home) === */
.gallery-preview {
  background: var(--color-bg);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-preview-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-preview-item:hover img {
  transform: scale(1.08);
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-flourish {
  width: 100px;
  margin: 0 auto 20px;
  opacity: 0.3;
  filter: brightness(3);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-banner h2 em {
  font-style: italic;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* === INFO BAR === */
.info-bar {
  background: var(--color-bg-cream);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.info-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-item a {
  color: var(--color-primary);
}

/* === CEREMONY SECTIONS (Ceremonies Page) === */
.ceremony-section {
  background: var(--color-bg);
}

.ceremony-section:nth-child(even) {
  background: var(--color-bg-warm);
}

.ceremony-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ceremony-layout-reverse {
  direction: rtl;
}

.ceremony-layout-reverse > * {
  direction: ltr;
}

.ceremony-images {
  position: relative;
}

.ceremony-img-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.ceremony-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 45%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

.ceremony-layout-reverse .ceremony-img-accent {
  right: auto;
  left: -30px;
}

.ceremony-details h2 {
  margin-top: 4px;
}

.price-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--color-bg-cream);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  margin-bottom: 24px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-amount small {
  font-size: 0.5em;
  font-weight: 400;
}

.price-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ceremony-details > p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.detail-item h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.detail-item ul {
  list-style: none;
  padding: 0;
}

.detail-item li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.detail-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* === GALLERY PAGE === */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 2.5rem;
  padding: 16px;
  transition: opacity var(--transition);
  opacity: 0.7;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 16px;
  right: 24px;
  font-size: 3rem;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

/* === FOOTER === */
.footer {
  background: var(--color-text-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 45px;
  margin-bottom: 16px;
  filter: brightness(2);
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-contact a {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-accent);
}

/* === ANIMATIONS === */
.animate-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .intro-grid {
    gap: 48px;
  }

  .ceremony-layout {
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Nav Mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
  }

  .nav-open {
    right: 0;
  }

  .nav-menu .nav-link {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    padding: 12px 0;
    width: 100%;
  }

  .nav-menu .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* Grid layouts */
  .intro-grid,
  .ceremony-layout,
  .ceremony-layout-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-bar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Ceremony images */
  .ceremony-img-accent {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    width: 100%;
    margin-top: 16px;
    border: none;
  }

  .ceremony-layout-reverse .ceremony-img-accent {
    left: auto;
  }

  /* Floating flowers */
  .floating-flower {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-hero {
    height: 40vh;
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.82rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .price-amount {
    font-size: 1.6rem;
  }

  .cta-banner {
    padding: 60px 0;
  }
}
