/* =========================================================
   Andrew Mo — Wedding MC
   Palette: classic white & gold — warm white, soft champagne,
   and candlelight gold, with deep espresso ink for text.
   Type: Cormorant Garamond (display) + Jost (body/UI)
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAF5EA;
  --bg-warm: #F6EEDC;
  --surface: #FFFFFF;
  --surface-line: rgba(42, 33, 24, 0.14);
  --ink: #2A2118;
  --ink-soft: #6E6151;
  --ivory: #F2E9D8;
  --ivory-soft: #E4DAC5;
  --gold: #C9A227;
  --gold-soft: #E4C878;
  --gold-deep: #93721D;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjAiIGhlaWdodD0iMjIwIj4KICA8ZmlsdGVyIGlkPSJuIj4KICAgIDxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjg1IiBudW1PY3RhdmVzPSIyIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIiByZXN1bHQ9Im5vaXNlIi8+CiAgICA8ZmVDb2xvck1hdHJpeCBpbj0ibm9pc2UiIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwLjkgMCIvPgogIDwvZmlsdGVyPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPgo8L3N2Zz4=');
  background-size: 220px 220px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 999;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--gold-deep); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.hero :focus-visible {
  outline-color: var(--ivory);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-soft);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--surface-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  border: 1px solid var(--surface-line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  flex: 0 0 auto;
}
.header-social svg { width: 18px; height: 18px; }
.header-social:hover,
.header-social:focus-visible {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.header-cta {
  padding: 0.55em 1.3em;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.brand-logo svg {
  display: block;
  height: 40px;
  width: auto;
  transition: opacity 0.2s var(--ease);
}
.brand-logo:hover svg,
.brand-logo:focus-visible svg {
  opacity: 0.85;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 24px 88px;
  border-bottom: 1px solid var(--surface-line);
}
.hero-bg {
  position: absolute;
  top: -12%;
  left: 0;
  right: 0;
  height: 124%;
  background-image: url('assets/images/hero-photo-2.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(21, 17, 14, 0.16) 0%, rgba(21, 17, 14, 0.4) 60%, rgba(21, 17, 14, 0.58) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: 0.45em; color: var(--ivory); }
.hero-sub { font-size: 1.08rem; margin: 0 auto; color: var(--ivory-soft); }
.hero-actions { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 28px; }
.hero-scroll-cue { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 40px; }
.hero-scroll-cue span {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  display: block;
}

/* ---------------- Sections (shared) ---------------- */

.section { padding: 88px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lede { font-size: 1.05rem; }

.gallery-section { background: var(--bg); }

.services-section {
  background: var(--bg-alt);
  background-image: radial-gradient(48% 65% at 88% 0%, rgba(201, 162, 39, 0.10) 0%, rgba(201, 162, 39, 0) 70%);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}

.about-section {
  background: var(--bg-warm);
  background-image: radial-gradient(55% 70% at 8% 100%, rgba(201, 162, 39, 0.12) 0%, rgba(201, 162, 39, 0) 70%);
}

.process-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}

.parallax-photo {
  position: relative;
  overflow: hidden;
  height: 56vh;
  min-height: 380px;
  max-height: 640px;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}
.parallax-photo .parallax-bg {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  height: 130%;
  background-image: url('assets/images/hero-photo.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.parallax-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 9, 0.06) 0%, rgba(15, 11, 9, 0.18) 100%);
}

.parallax-photo--ceremony .parallax-bg {
  background-image: url('assets/images/parallax-2.jpg');
  background-position: center 25%;
}

.contact-section {
  background: var(--bg-warm);
  background-image: radial-gradient(50% 60% at 50% 100%, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0) 70%);
}

/* ---------------- Carousel / flip tiles ---------------- */

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 8px 4px 24px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42, 33, 24, 0.10);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover, .carousel-arrow:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.tile {
  flex: 0 0 auto;
  width: 320px;
  height: 460px;
  scroll-snap-align: start;
  perspective: 1200px;
  cursor: pointer;
  list-style: none;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.tile:hover .tile-inner,
.tile:focus .tile-inner,
.tile:focus-visible .tile-inner,
.tile.is-flipped .tile-inner {
  transform: rotateY(180deg);
}

.tile-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0;
  overflow: hidden;
}

.tile-front {
  background: var(--surface);
  border: 6px solid var(--gold);
}
.tile-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.tile-back {
  color: var(--ivory);
  transform: rotateY(180deg);
  border: 6px solid var(--gold);
}
.tile-back-bg {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.42) saturate(0.9);
  transform: scale(1.1);
}
.tile-back-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30, 22, 12, 0.55) 0%, rgba(10, 8, 5, 0.75) 100%);
}
.tile-back-content {
  position: relative;
  height: 100%;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.tile-back .stars { font-size: 1.2rem; letter-spacing: 0.06em; }
.tile-back .stars .star-filled { color: var(--gold-soft); }
.tile-back .stars .star-empty { color: rgba(244, 236, 220, 0.3); }
.tile-back blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ivory);
}
.tile-back cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--gold-soft);
}

/* ---------------- Services tile grid ---------------- */

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-tile {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(42, 33, 24, 0.06);
}
.grid-tile h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.grid-tile p { font-size: 0.96rem; margin-bottom: 0; }
.grid-tile-wide { grid-column: span 2; }

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.tile-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.tile-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.tile-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.tile-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ---------------- About ---------------- */

.about-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------------- Process ---------------- */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-list li { display: flex; flex-direction: column; gap: 12px; }
.process-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  border-bottom: 1px solid var(--surface-line);
  padding-bottom: 10px;
}
.process-list h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.process-list p { font-size: 0.94rem; }

/* ---------------- Contact ---------------- */

.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-m);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: 0 8px 28px rgba(42, 33, 24, 0.08);
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.contact-form .btn { justify-self: start; }
.form-status { font-size: 0.92rem; color: var(--gold-deep); min-height: 1.2em; margin: 0; }

/* ---------------- Footer ---------------- */



/* =========================================================
   Responsive breakpoints
   ========================================================= */

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-tile-wide { grid-column: span 2; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 84px 24px 72px; }
  .tile { width: 280px; height: 400px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 16px 20px; }
  .header-cta { padding: 0.5em 1em; font-size: 0.85rem; }
  .hero-title { font-size: 2rem; }

  .parallax-photo { height: 38vh; min-height: 260px; }
  .tile-grid { grid-template-columns: 1fr; }
  .grid-tile-wide { grid-column: span 1; }
  .process-list { grid-template-columns: 1fr; }

  .tile { width: 260px; height: 380px; }
  .carousel-arrow { display: none; }
}
