/* Ava Lougheed Shoes — presale. Values taken directly from the design handoff. */
/* Colour pass: raised chroma on core hues + rainbow accent motif (nod to the stitching). */

* { box-sizing: border-box; }

:root {
  --bg: oklch(97% 0.012 85);
  --ink: oklch(22% 0.015 85);
  --ink-soft: oklch(35% 0.02 85);
  --rust: var(--rose);               /* global accent now follows the rose */
  --rust-dark: var(--rose-dark);
  --green: hsl(269, 35%, 42%);       /* eyebrow accent — violet to match the scheme */
  --sunshine: oklch(80% 0.15 85);    /* warm yellow accent (dark sections) */
  --border: oklch(85% 0.02 85);
  --cream: oklch(98% 0.01 85);
  --rose: hsl(348, 52%, 47%);        /* primary accent — dusty rose */
  --rose-dark: hsl(348, 52%, 38%);
  --blush: hsl(348, 60%, 86%);       /* nav bar pink */
  --blush-soft: hsl(348, 55%, 84%);  /* pink accents on the dark purple section */
  --dark: hsl(269, 28%, 16%);        /* deep purple — hue 269, dark */
  --dark-card: hsl(269, 24%, 21%);
  --dark-border: hsl(269, 18%, 36%);
  --rainbow: linear-gradient(90deg,
    oklch(60% 0.19 30),
    oklch(80% 0.15 85),
    oklch(60% 0.13 150),
    oklch(58% 0.13 240),
    oklch(55% 0.15 300));
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

h1, h2 {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-style: italic;
}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;}
.back{font-size:14px;color:#7a4a2e;text-decoration:none;white-space:nowrap;}
.back:hover{text-decoration:underline;}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.eyebrow-green { color: var(--green); }
.eyebrow-rust  { color: var(--rust); }
.eyebrow-warm  { color: var(--blush-soft); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: hsl(348, 60%, 86%, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(348, 45%, 76%);
}
.nav-logo { display: block; mix-blend-mode: multiply; height: 90px; width: 190px; object-fit: contain; }
.nav-links { display: flex; gap: 32px; font-size: 14px; letter-spacing: 0.02em; }
.nav-links a { text-decoration: none; color: hsl(269, 30%, 28%); }
.nav-links a:hover { color: var(--rose); }

/* HERO */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 48px;
  background: linear-gradient(180deg, hsl(348, 55%, 94%) 0%, oklch(97% 0.012 85) 70%);
}
/* Sparkles — pink twinkles drifting over the hero */
.hero::before, .hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cpath d='M50,14l3.6,19.4L73,37l-19.4,3.6L50,60l-3.6-19.4L27,37l19.4-3.6z' fill='%23d98aa3'/%3E%3Cpath d='M215,90l2.6,14L232,106.5l-14.4,2.7L215,123.5l-2.6-14.3L198,106.5l14.4-2.5z' fill='%23e8b3c4' opacity='.85'/%3E%3Cpath d='M110,225l1.9,10.4L122.5,237.5l-10.6,2L110,250l-1.9-10.5L97.5,237.5l10.6-1.9z' fill='%23d98aa3' opacity='.7'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: .45;
  animation: twinkle 5s ease-in-out infinite;
}
.hero::after {
  background-size: 440px 440px;
  background-position: 150px 100px;
  animation-delay: -2.5s;
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  margin: 0 0 24px;
}
/* Rainbow underline — echoes the hand-stitched rainbow on the shoe */
.hero h1::after {
  content: "";
  display: block;
  width: 88px; height: 5px;
  margin-top: 20px;
  background: var(--rainbow);
  border-radius: 999px;
}
.hero-copy {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 460px; margin: 0 0 36px;
}
.hero-tagline {
  font-weight: 700;
  margin-bottom: 24px; /* space before the buttons */
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  padding: 16px 30px; font-size: 15px;
  font-family: 'Work Sans', sans-serif; font-weight: 500;
  border-radius: 999px; cursor: pointer; letter-spacing: 0.02em;
}
.btn-primary { background: var(--rust); color: var(--cream); border: none; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid oklch(60% 0.02 85); }
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

.hero-image {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
  background: oklch(96% 0.01 85);
  box-shadow: 0 30px 60px -20px oklch(30% 0.05 40 / 0.35);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* PHOTOSHOOT */
.shoot { padding: 120px 48px; max-width: 1280px; margin: 0 auto; }
.shoot-intro { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.shoot-intro h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 18px; line-height: 1.15;
}
.shoot-intro p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.shoot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px -14px oklch(30% 0.05 40 / 0.3);
  aspect-ratio: 3 / 4; position: relative;
  display: flex; align-items: flex-end;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: relative; width: 100%; padding: 16px;
  background: linear-gradient(0deg, oklch(15% 0.02 40 / 0.6), transparent);
  color: var(--cream);
  font-family: 'EB Garamond', serif; font-style: italic; font-size: 18px;
}

/* CRAFTSMANSHIP */
.craft { padding: 100px 48px; background: hsl(269, 30%, 93%); }
.craft-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 64px; align-items: center;
}
.craft-image {
  aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  background: oklch(96% 0.01 85);
}
.craft-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.craft h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 20px; line-height: 1.18;
}
.craft p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.craft p:last-child { margin-bottom: 0; }

/* DESIGNER */
.designer { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.designer-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 72px; align-items: center;
}
.designer-photo {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px -20px oklch(30% 0.05 40 / 0.3);
}
.designer-photo img { width: 100%; display: block; object-fit: cover; }
.designer-name {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 8px; line-height: 1.15;
}
.designer-title { font-size: 15px; color: var(--rust); margin-bottom: 24px; letter-spacing: 0.02em; }
.designer p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.designer p:last-child { margin-bottom: 0; }

/* RESERVE */
.reserve {
  position: relative;
  padding: 120px 48px; background: var(--dark); color: oklch(96% 0.01 85);
}
/* Rainbow hairline marking the transition into the reserve section */
.reserve::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rainbow);
  z-index: 2;
}
/* Sparkles — soft gold twinkles over the olive */
.reserve::after {
  content: "";
  position: absolute; inset: 4px 0 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cpath d='M60,20l3.4,18.2L82,41.5l-18.6,3.4L60,63.5l-3.4-18.6L38,41.5l18.6-3.3z' fill='%23e9d8a6'/%3E%3Cpath d='M245,120l2.5,13.4L261,136l-13.5,2.5L245,152l-2.5-13.5L229,136l13.5-2.6z' fill='%23f2e4b8' opacity='.8'/%3E%3Cpath d='M130,260l1.8,9.8L142,271.5l-10.2,1.9L130,283.5l-1.8-10.1L118,271.5l10.2-1.9z' fill='%23e9d8a6' opacity='.65'/%3E%3C/svg%3E");
  background-size: 340px 340px;
  opacity: .35;
  animation: twinkle 6s ease-in-out infinite;
}
.reserve-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; text-align: center; }
.reserve h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin: 0 0 20px; line-height: 1.12;
}
.reserve-copy {
  font-size: 17px; line-height: 1.7;
  color: hsl(269, 18%, 89%);
  max-width: 560px; margin: 0 auto 56px;
}
.reserve-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; text-align: left;
}
.reserve-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 36px;
}
.card-title { font-family: 'EB Garamond', serif; font-style: italic; font-size: 22px; margin-bottom: 10px; }
.card-sub { font-size: 14px; line-height: 1.6; color: hsl(269, 14%, 81%); margin: 0 0 22px; }

.email-row { display: flex; gap: 10px; }
.email-row input {
  flex: 1; padding: 14px 16px; border-radius: 10px;
  border: 1px solid hsl(269, 15%, 38%);
  background: hsl(269, 24%, 14%);
  color: oklch(96% 0.01 85);
  font-size: 15px; font-family: 'Work Sans', sans-serif;
  min-width: 0;
}
.btn-join {
  background: var(--sunshine); color: var(--dark);
  border: none; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.btn-join:hover { background: oklch(85% 0.15 85); }
.email-success {
  padding: 14px 16px; border-radius: 10px;
  background: oklch(30% 0.08 150 / 0.4);
  border: 1px solid oklch(60% 0.12 150);
  font-size: 14px;
}
.email-error { margin-top: 12px; font-size: 13px; color: oklch(75% 0.15 25); }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.price { font-size: 32px; font-weight: 600; }
.price-note { font-size: 14px; color: hsl(269, 12%, 79%); }
.btn-reserve {
  width: 100%; background: var(--rose); color: #fff;
  border: none; padding: 16px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.btn-reserve:hover { background: var(--rose-dark); }
.fine-print { font-size: 12.5px; line-height: 1.5; color: hsl(269, 10%, 75%); margin: 16px 0 0; }

.socials { display: flex; gap: 22px; justify-content: center; margin-top: 64px; }
.socials a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid hsl(269, 14%, 44%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.02em;
  text-decoration: none; color: oklch(90% 0.01 85);
}
.socials a:hover { border-color: var(--blush-soft); color: var(--blush-soft); }

.footer {
  padding: 28px 48px; text-align: center; font-size: 13px;
  background: var(--dark);
  border-top: 1px solid hsl(269, 16%, 27%);
  color: hsl(269, 10%, 72%);
}

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: oklch(15% 0.01 85 / 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
}
.modal {
  background: var(--cream); color: var(--ink);
  border-radius: 18px; max-width: 440px; width: 100%;
  padding: 40px; position: relative;
  border-top: 5px solid transparent;
  border-image: var(--rainbow) 1;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: oklch(45% 0.02 85);
}
.modal-title { font-family: 'EB Garamond', serif; font-style: italic; font-size: 24px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: oklch(40% 0.02 85); margin: 0 0 24px; }
.modal-fields { display: flex; flex-direction: column; gap: 14px; }
.modal-fields input {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid oklch(80% 0.02 85);
  font-size: 15px; font-family: 'Work Sans', sans-serif;
}
.btn-pay {
  margin-top: 8px; background: var(--rose); color: #fff;
  border: none; padding: 16px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.btn-pay:disabled { background: oklch(70% 0.02 40); cursor: default; }
.modal-fine { font-size: 12px; color: oklch(55% 0.02 85); margin: 0; text-align: center; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-leaf { font-size: 36px; margin-bottom: 14px; }
.modal-success p { font-size: 14px; line-height: 1.6; color: oklch(40% 0.02 85); }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

@keyframes twinkle {
  0%, 100% { opacity: .18; }
  50% { opacity: .55; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-logo { height: 56px; width: 118px; }
  .nav-links { gap: 18px; }
  .hero { padding: 56px 20px; min-height: 0; }
  .hero-grid, .craft-grid, .designer-grid { grid-template-columns: 1fr; gap: 40px; }
  .shoot { padding: 80px 20px; }
  .shoot-grid { grid-template-columns: 1fr; }
  .craft, .designer { padding: 80px 20px; }
  .reserve { padding: 80px 20px; }
  .reserve-cards { grid-template-columns: 1fr; }
}

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