/* ============================================================
   Modern Nun — Wedding Officiant for Hire
   Bold & colorful single-page landing
   ============================================================ */

:root {
  /* Palette */
  --ink: #1c1130;
  --ink-soft: #4a3c63;
  --cream: #fff8ef;
  --cream-deep: #fdeede;
  --coral: #ff4d6d;
  --coral-deep: #e0264c;
  --grape: #7b2ff7;
  --grape-deep: #5b16c9;
  --sun: #ffce3a;
  --mint: #2ee6a6;
  --white: #ffffff;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing / shape */
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px -28px rgba(28, 17, 48, 0.45);
  --shadow-hard: 8px 8px 0 var(--ink);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  font-optical-sizing: auto;
}

.wrap {
  width: min(var(--maxw), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grape-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
}

.btn {
  --bg: var(--ink);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid var(--ink);
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hard); }
.btn:active { transform: translateY(0); box-shadow: 4px 4px 0 var(--ink); }
.btn--primary { --bg: var(--coral); --fg: var(--white); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.brand img { height: 38px; width: auto; }
.brand span b { color: var(--coral-deep); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--coral-deep); }
.nav__toggle { display: none; background: none; border: 0; padding: 0.4rem; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  margin-bottom: 1.1rem;
}
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl--coral { color: var(--coral-deep); }
.hero h1 .hl--grape { color: var(--grape-deep); font-style: italic; }
.hero h1 .squiggle { display: inline-block; }
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__trust { margin-top: 1.8rem; display: flex; align-items: center; gap: 0.8rem; font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.1rem; -webkit-text-stroke: 1px var(--coral-deep); }

.hero__art { position: relative; }
.hero__photo {
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-hard);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: var(--cream-deep);
  transform: rotate(2deg);
}
.hero__badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--grape);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 100px;
  padding: 0.7em 1.2em;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-hard);
  transform: rotate(-5deg);
}
.hero__sticker {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--sun);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.1;
  transform: rotate(12deg);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(372deg); } }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}
.blob--1 { width: 320px; height: 320px; background: var(--coral); top: -120px; right: -80px; }
.blob--2 { width: 260px; height: 260px; background: var(--mint); bottom: -100px; left: -120px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 0;
  overflow: hidden;
  border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee__track span::after { content: "✦"; color: var(--sun); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section frame ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0.6rem 0 0.8rem; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--cream-deep); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--accent, var(--coral));
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hard); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, var(--coral)) 16%, var(--white));
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card:nth-child(1) { --accent: var(--coral); }
.card:nth-child(2) { --accent: var(--grape); }
.card:nth-child(3) { --accent: var(--mint); }
.card:nth-child(4) { --accent: var(--sun); }

/* ---------- Why / About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-hard);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transform: rotate(-2deg);
  background: var(--cream-deep);
}
.about__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.9rem; }
.about__list li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 500; }
.about__list .tick {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ---------- Steps ---------- */
.steps { background: var(--grape); color: var(--cream); }
.steps .section__head h2 { color: var(--white); }
.steps .section__head p { color: color-mix(in srgb, var(--cream) 85%, transparent); }
.steps .eyebrow { color: var(--sun); }
.steps .eyebrow::before { background: var(--sun); }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step {
  background: color-mix(in srgb, var(--white) 8%, transparent);
  border: 2px solid color-mix(in srgb, var(--white) 28%, transparent);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.step__num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-style: italic;
  color: var(--sun);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: 0.96rem; }

/* ---------- Testimonial ---------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.quote .mark { color: var(--coral); }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.quote .stars { display: inline-block; margin-bottom: 1.2rem; font-size: 1.4rem; }

/* ---------- Contact / form ---------- */
.contact { background: var(--ink); color: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact .eyebrow { color: var(--sun); }
.contact .eyebrow::before { background: var(--coral); }
.contact h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0.6rem 0 1rem; }
.contact__intro { color: color-mix(in srgb, var(--cream) 82%, transparent); max-width: 36ch; }
.contact__details { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__details a, .contact__details span { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
.contact__details .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--white) 10%, transparent); border: 2px solid color-mix(in srgb, var(--white) 25%, transparent); border-radius: 12px; font-size: 1.1rem; }
.contact__details a:hover { color: var(--sun); }

.form {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-hard);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8em 0.95em;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--grape);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--grape) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form__note { font-size: 0.82rem; color: var(--ink-soft); margin: 0.9rem 0 0; text-align: center; }
.form__status { margin: 0.9rem 0 0; font-weight: 700; text-align: center; min-height: 1.2em; }
.form__status.ok { color: var(--grape-deep); }
.form__status.err { color: var(--coral-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: color-mix(in srgb, var(--cream) 70%, transparent); padding: 2.2rem 0; border-top: 2px solid color-mix(in srgb, var(--white) 12%, transparent); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer a:hover { color: var(--sun); }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); color: var(--cream); font-size: 1.1rem; }
.footer__brand img { height: 30px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin-inline: auto; }
  .about__media { max-width: 420px; margin: 0 auto 1rem; }
  .about__grid .about__media { order: -1; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    padding: 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.btn) { padding: 0.6rem 0.2rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
  .nav__toggle { display: block; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .hero__sticker { width: 80px; height: 80px; font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
