/* ============================================================
   Amanda Long AI & Operations — amandalong.co
   Author: Amanda Long
   Brand: berry #923b5b / blush #ecc9d3 / navy #1a3958 / cream #f7f3ea
   Display type: Ivy Presto Display, self-hosted from /fonts/.
   Body type: Poppins (exact brand match).
   ============================================================ */

/* ---------- Ivy Presto Display ----------
   Self-hosted so the headings match the logo. Two weights are loaded because
   that's all the design uses: 400 for the step numbers, 600 for headings.
   font-display: swap means text is readable immediately and reflows to Ivy
   Presto when it arrives, rather than sitting invisible. */
@font-face {
  font-family: "Ivy Presto Display";
  src: url("/fonts/ivy-presto-display-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ivy Presto Display";
  src: url("/fonts/ivy-presto-display-600.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --berry: #923b5b;
  --berry-deep: #6f2a44;
  --blush: #ecc9d3;
  --blush-wash: #f6e4ea;
  --navy: #1a3958;
  --navy-deep: #12283e;
  --cream: #f7f3ea;
  --cream-warm: #fdfaf4;
  --ink: #23303d;
  /* Darkened from #6a7788, which failed WCAG AA (4.1:1) on the cream and
     blush backgrounds. This clears 4.5:1 on every surface it is used on. */
  --muted: #5a6675;
  --rule: rgba(26, 57, 88, 0.14);

  --display: "Ivy Presto Display", Georgia, serif;
  --body: "Poppins", -apple-system, sans-serif;

  --measure: 34rem;
  --shell: 74rem;
  --arch: 999px 999px 0 0;

  --step: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);
  --gap-section: clamp(4.5rem, 3rem + 7vw, 9rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip rather than hidden: contains the decorative hero arch without
     creating a scroll container, which would break the sticky header. */
  overflow-x: clip;
}
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  position: relative;
  overflow-x: clip;
}

/* Paper grain. Sits above the background, below all content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--berry);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--navy);
  font-weight: 300;
  max-width: 36rem;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--berry);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  max-width: 5rem;
}

p + p { margin-top: 1.15em; }
.prose { max-width: var(--measure); }
.prose p { color: var(--ink); }

strong { font-weight: 600; color: var(--navy); }

a { color: var(--berry); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--berry-deep); }

/* ---------- Layout ---------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}
@media (min-width: 60rem) {
  .shell { width: min(100% - 6rem, var(--shell)); }
}

section { padding-block: var(--gap-section); }

.section-cream  { background: var(--cream); }
.section-warm   { background: var(--cream-warm); }
.section-blush  { background: var(--blush-wash); }
/* Dark sections. Every text colour used elsewhere is re-declared here.
   Anything that sets an explicit dark colour (.prose p, .card p, .step p)
   must be overridden or it inherits nothing and renders dark-on-dark. */
.section-navy   { background: var(--navy); color: rgba(247, 243, 234, 0.82); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--cream); }
.section-navy .eyebrow { color: var(--blush); }
.section-navy .lede { color: rgba(247, 243, 234, 0.86); }
.section-navy strong { color: var(--cream); }
.section-navy p,
.section-navy li,
.section-navy .prose p,
.section-navy .card p,
.section-navy .step p { color: rgba(247, 243, 234, 0.78); }
.section-navy a { color: var(--blush); }
.section-navy a:hover { color: var(--cream); }
.section-navy .price, .section-navy .step::before { color: var(--blush); }
.section-navy .price-note { color: rgba(247, 243, 234, 0.6); }
.section-navy .step h3 { color: var(--blush); }
.section-navy .step, .section-navy .step:last-child { border-color: rgba(236, 201, 211, 0.25); }

/* The arch motif: a section whose top edge curves, echoing the logo mark. */
.arch-top {
  border-radius: clamp(3rem, 14vw, 11rem) clamp(3rem, 14vw, 11rem) 0 0;
  margin-top: -1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

/* Logo lockup. The header uses the berry/navy mark, the footer the reversed
   white one; both are images, so no type styling is needed here. */
.wordmark {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: auto;
  height: clamp(2.6rem, 2.1rem + 1.6vw, 3.4rem);
  max-width: 100%;
}
.site-footer .wordmark img { height: clamp(2.8rem, 2.2rem + 1.8vw, 3.6rem); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav a:hover { border-bottom-color: var(--berry); color: var(--berry); }
.nav a[aria-current="page"] { border-bottom-color: var(--berry); color: var(--berry); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--berry);
  background: var(--berry);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}
.btn:hover {
  background: var(--berry-deep);
  border-color: var(--berry-deep);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform 0.28s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--berry);
}
.btn-ghost:hover { background: var(--berry); color: var(--cream); }

.section-navy .btn {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--navy-deep);
}
.section-navy .btn:hover { background: var(--cream); border-color: var(--cream); }

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  letter-spacing: 0.01em;
}
.section-navy .cta-note { color: rgba(247, 243, 234, 0.6); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) var(--gap-section); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 2rem; }
.hero .actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Hero with a portrait alongside the headline. */
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
@media (min-width: 58rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); }
}
.hero-grid .media-arch { max-width: 26rem; margin-inline: auto; width: 100%; }
/* When a real photo carries the hero, drop the decorative outline arch. */
.hero.has-media::after { display: none; }

/* Decorative arch behind the hero, cut off at the right edge.
   Sits at z-index 0 above the section background; hero content is lifted
   to z-index 1 so the outline never covers the text. */
.hero { position: relative; }
.hero > .shell { position: relative; z-index: 1; }
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 12%;
  width: min(46vw, 30rem);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--blush);
  border-radius: var(--arch);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 60rem) { .hero::after { opacity: 0.5; right: -30%; } }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split-header { position: sticky; top: 7rem; }
}

/* ---------- Cards ---------- */
.card h3 { margin-bottom: 0.85rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-ruled {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.section-navy .card-ruled { border-top-color: rgba(236, 201, 211, 0.28); }
.section-navy .card p { color: rgba(247, 243, 234, 0.7); }
.section-navy .card h3 { color: var(--blush); }

/* ---------- Numbered steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 1rem + 2.5vw, 3.25rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .step { grid-template-columns: 6rem minmax(0, 1fr); } }

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--blush);
}
.step h3 { color: var(--navy); margin-bottom: 0.7rem; }
.step p { color: var(--muted); max-width: 44ch; }

/* ---------- Feature list (checkless, ruled) ---------- */
.list-ruled li {
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.35rem;
}
.list-ruled li:first-child { border-top: 1px solid var(--rule); }
.list-ruled .item-title {
  font-weight: 500;
  color: var(--navy);
  font-size: 1.02rem;
}
.list-ruled .item-note { color: var(--muted); font-size: 0.95rem; }
.section-navy .list-ruled li { border-color: rgba(236, 201, 211, 0.25); }
.section-navy .item-title { color: var(--blush); }
.section-navy .item-note { color: rgba(247, 243, 234, 0.7); }

/* ---------- Arch media slot ----------
   Holds a photo. Drop an <img> inside and it inherits the arch shape.
   Without one, it renders as a blush arch and still reads as intentional. */
.media-arch {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.media-arch img { width: 100%; height: 100%; object-fit: cover; }
.media-arch::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(247, 243, 234, 0.5);
  border-radius: var(--arch);
  pointer-events: none;
}
.media-arch .placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
  opacity: 0.55;
  text-align: center;
  padding: 1rem;
}
.media-arch.is-outline { background: transparent; border: 1px solid var(--blush); }
.media-arch.is-outline::after { display: none; }

/* Offset stack: an arch that overlaps its neighbour for a bit of depth. */
.media-stack { position: relative; }
.media-stack::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1.5rem 1.5rem 1.5rem;
  border: 1px solid var(--blush);
  border-radius: var(--arch);
  z-index: -1;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.35rem);
  line-height: 1.25;
  color: var(--berry);
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-block: clamp(2rem, 1rem + 3vw, 3.25rem);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  border-left: 2px solid var(--blush);
}
.section-navy .pullquote { color: var(--blush); border-left-color: rgba(236, 201, 211, 0.45); }

/* ---------- Statement ---------- */
.statement {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem);
  line-height: 1.2;
  color: var(--berry);
  max-width: 20ch;
  letter-spacing: -0.015em;
}
.section-navy .statement { color: var(--blush); }

/* ---------- Credential strip ---------- */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.cred .num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  color: var(--berry);
  line-height: 1.1;
  display: block;
}
.cred p { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }
.section-navy .cred .num { color: var(--blush); }
.section-navy .cred p { color: rgba(247, 243, 234, 0.7); }

/* ---------- Price ---------- */
.price {
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  color: var(--berry);
  line-height: 1;
}
.price-note {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.6rem;
}

/* ---------- Newsletter ---------- */
.signup {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  max-width: 30rem;
}
.signup input {
  flex: 1 1 14rem;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--cream-warm);
  font-size: 0.95rem;
  font-weight: 300;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.section-navy .signup input {
  background: rgba(247, 243, 234, 0.07);
  border-color: rgba(236, 201, 211, 0.3);
  color: var(--cream);
}
.section-navy .signup input::placeholder { color: rgba(247, 243, 234, 0.45); }

/* ---------- Booking placeholder ---------- */
.embed-slot {
  border: 1px dashed var(--blush);
  border-radius: 1.5rem;
  background: var(--cream-warm);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 2rem;
  text-align: center;
  color: var(--muted);
}
.embed-slot .display { display: block; font-size: 1.4rem; color: var(--berry); margin-bottom: 0.6rem; }
.embed-slot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--blush-wash);
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  color: var(--berry-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 243, 234, 0.78);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: 0.9rem;
}
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.site-footer a { color: rgba(247, 243, 234, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--blush); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal { width: 100%; padding-top: 2rem; margin-top: 1rem; border-top: 1px solid rgba(247, 243, 234, 0.12); font-size: 0.8rem; }

/* ---------- Motion ---------- */
/* Scoped to .has-js so content stays visible if scripts fail to load. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

.hero .reveal { transition-delay: var(--d, 0s); }

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

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; margin-inline: auto; }
/* Visually hidden until focused. Uses the clip technique rather than a large
   negative offset, which would widen the document and cause sideways scroll. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.8rem 1.4rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--berry);
  color: var(--cream);
  z-index: 100;
}
