:root {
  --cream: #F7F5F2;
  --gold: #C4A57A;
  --gold-dark: #A6855F;
  --charcoal: #2B2B2B;
  --ink: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(196, 165, 122, 0.12), transparent 55%),
    var(--cream);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-loader-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -70px 0 0 -46px;
  border: 1px solid rgba(196, 165, 122, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: loader-spin 1.1s linear infinite;
}

.page-loader-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border: 1px solid rgba(196, 165, 122, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: loader-pulse 1.8s ease-in-out infinite;
}

.page-loader-text {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.page-loader-sub {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 165, 122, 0.18); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(196, 165, 122, 0); }
}

a {
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.brand-mark {
  transition: transform 0.35s ease;
}

.brand-logo:hover .brand-mark {
  transform: scale(1.04);
}

.brand-mark svg circle:first-child {
  animation: logo-ring 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logo-ring {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.icon-col {
  transition: transform 0.35s ease, background 0.35s ease;
}

.icon-col:hover {
  transform: translateY(-4px);
}

.icon-col:hover h3 {
  color: var(--gold);
}

.icon-col svg {
  transition: transform 0.35s ease;
}

.icon-col:hover svg {
  transform: scale(1.08);
}

.nav-link {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3a3a3a;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link-active {
  color: #1f1f1f;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(166, 133, 95, 0.35);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 165, 122, 0.28);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline-white:hover {
  background: #fff;
  color: #2b2b2b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.78) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.hero-text h1,
.hero-text p {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 8px 28px rgba(0, 0, 0, 0.75);
}

.hero-text .btn-outline-white {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.hero-text .btn-outline-white:hover {
  background: #fff;
  color: #2b2b2b;
  border-color: #fff;
}

.hero-text svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

@media (min-width: 768px) {
  .hero-fade {
    background: linear-gradient(
      90deg,
      #000 0%,
      #000 6%,
      rgba(0, 0, 0, 0.88) 18%,
      rgba(0, 0, 0, 0.45) 36%,
      rgba(0, 0, 0, 0.12) 52%,
      transparent 68%
    );
  }

  .hero-text h1,
  .hero-text p {
    text-shadow: none;
  }

  .hero-text .btn-outline-white {
    background: transparent;
    box-shadow: none;
  }

  .hero-text .btn-outline-white:hover {
    background: #fff;
    color: #2b2b2b;
    border-color: #fff;
  }

  .hero-text svg {
    filter: none;
  }
}

@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(8px); opacity: 1; }
}

.animate-chevron {
  animation: chevron-bounce 1.8s ease-in-out infinite;
}

.gold-heart {
  fill: var(--gold);
  transition: transform 0.35s ease;
}

.gold-heart:hover {
  transform: scale(1.15);
}

.divider-line {
  width: 1px;
  flex: 1;
  background: var(--gold);
  opacity: 0.7;
}

.event-card {
  background: #fff;
  box-shadow: 0 8px 30px rgba(43, 43, 43, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(43, 43, 43, 0.12);
}

.event-card img {
  transition: transform 0.7s ease;
}

.event-card:hover img {
  transform: scale(1.04);
}

.icon-col + .icon-col {
  border-left: 1px solid rgba(196, 165, 122, 0.45);
}

.field {
  width: 100%;
  border: 1px solid rgba(196, 165, 122, 0.45);
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 122, 0.18);
}

.flowers-fade {
  mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .event-card,
  .icon-col,
  .btn-gold,
  .btn-outline-gold,
  .btn-outline-white,
  .brand-logo,
  .brand-mark,
  .animate-chevron,
  .page-loader-ring,
  .page-loader-mark {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1023px) {
  .icon-col + .icon-col {
    border-left: none;
    border-top: 1px solid rgba(196, 165, 122, 0.45);
  }
}

/* Mobile menu */
.menu-toggle {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196, 165, 122, 0.35);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.menu-toggle:hover {
  border-color: var(--gold);
  background: #fff;
}

.menu-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 5px; }
.menu-toggle-bars span:nth-child(3) { top: 10px; }

body.menu-open .menu-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 400px);
  height: 100%;
  padding: 88px 28px 36px;
  background:
    radial-gradient(circle at top right, rgba(196, 165, 122, 0.14), transparent 42%),
    linear-gradient(180deg, #FBF9F6 0%, #F7F5F2 100%);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
  transform: translateX(104%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-ornament {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(196, 165, 122, 0.22);
  pointer-events: none;
}

.mobile-menu-header {
  position: relative;
  margin-bottom: 28px;
}

.mobile-menu-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mobile-nav-link {
  position: relative;
  display: block;
  padding: 14px 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.25s ease, opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.08s + (var(--i, 0) * 0.05s));
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--gold-dark);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.is-active::after {
  width: 42px;
}

.mobile-menu-footer {
  position: relative;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 165, 122, 0.25);
  text-align: center;
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel,
  .mobile-menu-backdrop,
  .mobile-nav-link,
  .menu-toggle-bars span {
    transition: none !important;
  }
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

button.mobile-nav-link {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.katilim-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.katilim-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.katilim-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.katilim-modal.is-open .katilim-modal-backdrop {
  opacity: 1;
}

.katilim-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, #FFFEFC 0%, #F7F5F2 100%);
  border: 1px solid rgba(196, 165, 122, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.katilim-modal.is-open .katilim-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.katilim-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}

.katilim-modal-close:hover {
  opacity: 1;
}

.katilim-message {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.katilim-message.is-error {
  color: #8a2f2f;
  background: #fbf1f1;
  border-color: #efc7c7;
}

.katilim-message.is-success {
  color: #2f6b45;
  background: #f1f8f3;
  border-color: #c7e4d1;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.katilim-open {
  overflow: hidden;
}

.mobile-katil-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  width: 100%;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  border: none;
  background: var(--gold);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 -8px 24px rgba(43, 43, 43, 0.16);
  cursor: pointer;
}

.mobile-katil-btn:active {
  background: var(--gold-dark);
}

@media (max-width: 639px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  footer {
    padding-bottom: 8px;
  }
}

body.menu-open .mobile-katil-btn,
body.katilim-open .mobile-katil-btn {
  display: none;
}

.katilim-btn-shine {
  overflow: hidden;
  isolation: isolate;
}

.btn-gold.katilim-btn-shine {
  position: relative;
}

.mobile-katil-btn.katilim-btn-shine {
  position: fixed;
}

.katilim-btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  z-index: 1;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: katilim-shine 3.2s ease-in-out infinite;
}

@keyframes katilim-shine {
  0%, 72%, 100% {
    left: -130%;
  }

  28% {
    left: 150%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .katilim-btn-shine::after {
    animation: none;
  }
}
