/* ==========================================================
   XO Music — matches the original Squarespace layout
   (testimonials section uses the newer card design)
   ========================================================== */

:root {
  --bg: #fafafa;
  --white: #ffffff;
  --ink: #000000;
  --muted: #5c5c5c;
  --accent: #c264e6;
  --accent-strong: #8f3dbd;
  --gutter: 2vw;
  --gap: 1.1vw;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #000; color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 10;
  text-align: center;
  padding: 35px var(--gutter) 34px;
}
.site-header::after {
  /* Squarespace header drop shadow */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  box-shadow: 0 12px 25px 10px rgba(0, 0, 0, .15);
  clip-path: inset(100% -50px -80px -50px);
  pointer-events: none;
}
.site-header .logo img { width: min(446px, 70vw); height: auto; margin: 0 auto; }
.site-header nav { margin-top: 22px; display: flex; justify-content: center; gap: 25px; }
.site-header nav a {
  text-decoration: none; font-size: 16px; font-weight: 300; line-height: 32px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .2s;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { background-size: 100% 1px; }

.page-home .site-header { background: var(--white); }

/* ---------- Section shells ---------- */
.sec-white { background: var(--white); }
.sec-grey { background: var(--bg); }

/* ---------- Home: photo grid + intro ---------- */
.intro { padding: 40px var(--gutter) 90px; }
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap); align-items: stretch;
}
.photo-grid img { width: 100%; height: 100%; min-height: 0; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-grid .row2 { aspect-ratio: auto; }
.photo-grid .intro-text { text-align: center; padding: 28px 2vw; display: flex; flex-direction: column; justify-content: center; }
.photo-grid .intro-text p:last-child { margin-bottom: 0; }

/* ---------- Home: services ---------- */
.services { padding: 70px var(--gutter) 40px; }
.services-grid {
  display: grid; grid-template-columns: 1fr 1.04fr 1fr; column-gap: var(--gap); align-items: stretch;
}
.services h2 {
  text-align: center; font-size: clamp(30px, 3.41vw, 44px); line-height: 1.3; margin-bottom: 55px;
}
.services .center { text-align: center; }
.services h4 { font-size: clamp(19px, 1.73vw, 22px); line-height: 1.38; margin-bottom: 10px; }
.services .center p { margin-bottom: 1em; }
.services .svc + .svc { margin-top: 8px; }
.services .center { padding: 10px 2vw; }
.services .left img { width: 100%; height: 100%; object-fit: cover; }
.services .right { display: flex; flex-direction: column; gap: var(--gap); }
.services .right img { width: 100%; flex: 1 1 0; min-height: 0; object-fit: cover; }

/* ---------- Testimonials (kept from the redesign) ---------- */
.reviews-wrap { padding: clamp(56px, 7vw, 90px) 0 clamp(40px, 5vw, 60px); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.25; letter-spacing: -0.01em; }
.reviews {
  --per: 4; --gap-r: 22px;
  display: flex; gap: var(--gap-r); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 6px 4px 26px; margin: 0 -4px; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews .review { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap-r)) / var(--per)); scroll-snap-align: start; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #000; background: transparent; color: #000;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.slider-btn:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.slider-btn:disabled { opacity: .25; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; cursor: pointer; transition: background .2s, width .2s; }
.slider-dots button.on { background: #000; width: 22px; border-radius: 4px; }
.review {
  background: var(--white); border-radius: 10px; padding: 30px 28px; margin: 0;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .06);
}
.review::before {
  content: "\201C"; position: absolute; top: 4px; right: 22px;
  font-size: 90px; line-height: 1; color: var(--accent); opacity: .45; font-weight: 600;
}
.review blockquote { margin: 0 0 22px; flex: 1; font-size: 15.5px; }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.review cite { font-style: normal; font-weight: 600; display: block; line-height: 1.3; }
.review .role { font-size: 13px; color: var(--muted); }
.stars { color: var(--accent-strong); letter-spacing: 2px; font-size: 15px; margin-bottom: 12px; }

/* ---------- Book Now / forms ---------- */
.book { padding: 50px var(--gutter) 70px; }
.book-head { text-align: center; width: min(609px, 100%); margin: 0 auto 30px; }
.book-head h2 { font-size: clamp(30px, 3.41vw, 44px); line-height: 1.3; margin-bottom: 32px; }

.sq-form { width: min(486px, 100%); margin: 0 auto; }
.page-home .sq-form { width: min(47.5vw, 609px); }
.sq-form fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.sq-form legend { font-size: 16px; font-weight: 300; padding: 0; margin-bottom: 6px; }
.sq-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sq-form .field { margin-bottom: 10px; }
.sq-form label { display: block; font-size: 16px; font-weight: 300; line-height: 1.6; margin-bottom: 4px; }
.sq-form fieldset label { font-size: 14px; }
.sq-form .req { font-size: 14px; color: #666; margin-left: 6px; }
.sq-form input,
.sq-form textarea {
  width: 100%; font: 300 16px/1.5 "Poppins", sans-serif; color: #000;
  padding: 10px 15px; border: 1px solid #000; border-radius: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.sq-form input[type="date"] { width: 200px; max-width: 100%; }
.sq-form textarea { height: 100px; resize: vertical; display: block; }
.sq-form input::placeholder,
.sq-form textarea::placeholder { color: #9a9a9a; }
.sq-form input:focus,
.sq-form textarea:focus { outline: 2px solid #000; outline-offset: -1px; }
.sq-form .submit { text-align: center; margin-top: 14px; }
.sq-form button {
  font: 500 16px/1.8 "Poppins", sans-serif; letter-spacing: 1.6px; text-transform: uppercase;
  background: #000; color: #fff; border: 0; border-radius: 6.4px; padding: 8px 27.2px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.sq-form button:hover:not(:disabled) { background: var(--accent-strong); transform: translateY(-2px); }
.sq-form button:disabled { opacity: .5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; font-size: 15px; text-align: center; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; }
.form-success { text-align: center; padding: 30px 0; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: 36px 16px 30px; text-align: center; }
.footer-follow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin: 0 0 14px; }
.socials { display: flex; justify-content: center; gap: 14px; }
.socials a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #000; color: #fff; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--accent-strong); transform: translateY(-2px); }
.socials svg { width: 24px; height: 24px; }
.footer-copy { font-size: 13px; color: #777; margin: 18px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: 54px var(--gutter) 90px; }
.faq-inner { width: min(652px, 100%); margin: 0 auto; text-align: center; }
.faq-inner p { margin-bottom: 16px; }
.faq-inner .q { margin: 34px 0 6px; font-size: 17px; }
.faq-inner .q:first-child { margin-top: 0; }
.faq-inner .faq-end { margin-top: 44px; }

/* ---------- Contact ---------- */
.contact { padding: 54px var(--gutter) 90px; }
.contact-grid {
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 640px); column-gap: clamp(48px, 7vw, 96px);
  justify-content: center; align-items: start; max-width: 1160px; margin: 0 auto;
}
.contact-info { text-align: left; padding-top: 10px; position: sticky; top: 32px; }
.contact-info h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; margin-bottom: 16px; }
.contact-info p { margin-bottom: 16px; }
.contact-info a { text-decoration: none; }
.contact-info .socials { justify-content: center; gap: 12px; }
.contact-info .socials a { width: 46px; height: 46px; }
.contact-info .socials svg { width: 21px; height: 21px; }
.contact .sq-form { margin: 0; max-width: none; width: 100%; }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; text-align: left; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 400; line-height: 1.4;
  padding: 14px 16px; background: var(--white); border: 1px solid #e2e2e2; border-radius: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s; word-break: break-word;
}
.contact-list a:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.contact-list .ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; color: #777; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .reviews { --per: 3; }
}

@media (max-width: 900px) {
  .reviews { --per: 2; }
  .contact-grid { grid-template-columns: minmax(0, 640px); row-gap: 40px; }
  .contact-info { position: static; text-align: center; }
  .contact .sq-form { margin: 0 auto; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .reviews { --per: 1.12; --gap-r: 14px; }
  .site-header { padding: 24px 16px 18px; }
  .site-header .logo img { width: min(260px, 68vw); }

  .intro { padding: 30px 16px 70px; }
  .photo-grid { grid-template-columns: 1fr; gap: 12px; }
  .photo-grid .row2 { aspect-ratio: 3 / 2; }
  .photo-grid .intro-text { order: -1; margin-bottom: 16px; }

  .services { padding: 50px 16px 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .services h2 { margin-bottom: 30px; }
  .services .left,
  .services .right { display: none; }
  .services .mobile-photos { display: grid; }

  .book { padding: 50px 16px 60px; }
  .page-home .sq-form { width: 100%; }
  .sq-form .pair { gap: 14px; }
}
.services .mobile-photos { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.services .mobile-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.services .mobile-photos img:last-child { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (max-width: 767px) { .services .mobile-photos { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep faces in frame on the church ceremony photo */
.services img[src*="church-duo"] { object-position: 50% 31%; }
/* Wider testimonial row (~20% wider cards, shorter height) */
.reviews-wrap .container { max-width: 1400px; }

/* Purple accents (matches the 'Kind words' eyebrow) */
.services .center .eyebrow, .book-head .eyebrow, .contact-info .eyebrow { display: block; }
.services .center .eyebrow { margin-bottom: 6px; }
.services h2 { margin-bottom: 40px; }
.services h4 { color: var(--accent-strong); }
.services .svc + .svc::before {
  content: ""; display: block; width: 36px; height: 2px; background: var(--accent); opacity: .55;
  margin: 6px auto 22px; border-radius: 2px;
}
.book-head .eyebrow { margin-bottom: 6px; }
.book-head h2 { margin-bottom: 20px; }
.services .center a { color: var(--accent-strong); text-underline-offset: 3px; }
.services .center a:hover { color: var(--accent); }
.faq-inner .q strong { color: var(--accent-strong); font-weight: 600; }
.contact-list .ico { transition: background .2s; }
.contact-list a:hover .ico { background: var(--accent-strong); }

/* ==========================================================
   Polish: photo frames + hover zoom, scroll reveal, brush
   underline, sticky mini header, trust line, how it works
   ========================================================== */

/* Photo frames (clip the zoom) */
.ph { position: relative; overflow: hidden; }
.ph img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  aspect-ratio: auto !important; object-fit: cover; max-width: none;
}
.photo-grid .ph { aspect-ratio: 3 / 2; }
.photo-grid .ph.row2 { aspect-ratio: auto; }
.photo-grid .ph.row2::before { content: ""; display: block; padding-top: 66.667%; }
.services .left .ph { height: 100%; }
.services .left .ph::before { content: ""; display: block; padding-top: 132.9%; }
.services .right .ph { flex: 1 1 0; min-height: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ph img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .ph:hover img { transform: scale(1.045); }
}

/* Scroll reveal (only when JS + motion allowed) */
.js-reveal .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Sticky mini header */
.mini-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 22px rgba(0, 0, 0, .08);
  transform: translateY(-105%); visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.mini-bar.show { transform: none; visibility: visible; transition: transform .35s ease; }
.mini-inner {
  max-width: 1400px; margin: 0 auto; padding: 10px clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mini-logo img { width: 92px; height: auto; }
.mini-bar nav { display: flex; align-items: center; gap: 24px; }
.mini-bar nav a { text-decoration: none; font-size: 15px; transition: color .2s; }
.mini-bar nav a:not(.mini-cta):hover { color: var(--accent-strong); }
.mini-bar .mini-cta {
  background: #000; color: #fff; border-radius: 6.4px; padding: 7px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.mini-bar .mini-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }
section[id] { scroll-margin-top: 70px; }

/* Trust line under testimonials heading */
.section-head .trust { margin: 16px 0 0; font-size: 16px; color: var(--muted); }
.section-head .trust strong { color: var(--accent-strong); font-weight: 600; font-size: 1.15em; }

/* How it works (Book Now) */
.steps {
  list-style: none; padding: 0; margin: 0 auto 48px; max-width: 920px; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center;
}
.steps::before {
  content: ""; position: absolute; top: 20px; left: 16.67%; right: 16.67%; height: 1px;
  background: var(--accent); opacity: .35;
}
.steps li { position: relative; }
.steps .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--bg); color: var(--accent-strong);
  font-weight: 500; font-size: 16px; margin-bottom: 12px;
}
.steps h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 auto; max-width: 260px; }

/* Purple focus on form fields */
.sq-form input:focus,
.sq-form textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(194, 100, 230, .18); }

/* ---------- Mobile sizing for the above ---------- */
@media (max-width: 767px) {
  .photo-grid .ph.row2 { aspect-ratio: 3 / 2; }
  .photo-grid .ph.row2::before { display: none; }


  .mini-inner { padding: 8px 14px; gap: 10px; }
  .mini-logo img { width: 68px; }
  .mini-bar nav { gap: 14px; }
  .mini-bar nav a { font-size: 13px; }
  .mini-bar .mini-cta { padding: 6px 12px; font-size: 11.5px; letter-spacing: 1px; }
  section[id] { scroll-margin-top: 58px; }

  .section-head .trust { font-size: 15px; }

  .steps { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; text-align: left; max-width: 420px; }
  .steps::before { top: 20px; bottom: 20px; left: 20px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  .steps .n { margin: 0; grid-row: span 2; }
  .steps h3 { font-size: 16px; margin: 7px 0 2px; }
  .steps p { margin: 0; max-width: none; font-size: 14px; }
}
@media (max-width: 380px) {
  .mini-bar nav a[href="/faq"] { display: none; }
}

/* Services CTA button */
.services .center a.svc-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 11px 22px; border: 1px solid var(--accent-strong); border-radius: 999px;
  color: var(--accent-strong); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .04em; background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.services .center a.svc-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-strong);
  transform: scaleX(0); transform-origin: left center; transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.services .center a.svc-cta svg { width: 18px; height: 18px; transition: transform .3s ease; }
.services .center a.svc-cta:hover { color: #fff; box-shadow: 0 8px 22px rgba(143, 61, 189, .25); transform: translateY(-2px); }
.services .center a.svc-cta:hover::before { transform: scaleX(1); }
.services .center a.svc-cta:hover svg { transform: translateX(4px); }
.services .center a.svc-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .services .center a.svc-cta svg { animation: nudge 2.4s ease-in-out infinite; }
  .services .center a.svc-cta:hover svg { animation: none; }
}
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } 90% { transform: none; } }
@media (max-width: 767px) {
  .services .center a.svc-cta { font-size: 13px; padding: 10px 18px; margin-top: 12px; }
}
