/* =========================================================
   Kaleigh's Kookies — styles.css
   Brand system: Sunshine Yellow + Ocean Blue, scalloped seal
   ========================================================= */

:root {
  /* Brand palette (from the Brand Style Guide) */
  --sunshine: #FFF176;   /* primary background / scallop edge */
  --cream:    #FFF9C4;   /* inner fill / soft backgrounds */
  --sky:      #81D4FA;   /* accent — monogram & hearts */
  --ocean:    #0288D1;   /* primary ink — lettering, outlines */
  --deep:     #0277BD;   /* high-contrast / small print */

  --ink:      #0b3a52;   /* readable deep blue-ink for body text */
  --paper:    #fffdf3;   /* warm near-white page */
  --white:    #ffffff;

  --shadow-sm: 0 2px 10px rgba(2, 119, 189, .08);
  --shadow-md: 0 14px 40px rgba(2, 119, 189, .14);
  --shadow-lg: 0 30px 70px rgba(2, 119, 189, .18);

  --maxw: 1140px;
  --radius: 22px;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0; }

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

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow, .section-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ocean);
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ocean); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 800;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 2.5px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--ocean); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--deep); border-color: var(--ocean);
}
.btn-ghost:hover { background: rgba(2,136,209,.08); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 196, 0.82);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(2,136,209,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); }
.nav a { color: var(--deep); text-decoration: none; font-weight: 700; font-size: 0.96rem; }
.nav a:hover { color: var(--ocean); }
.nav-cta {
  background: var(--ocean); color: #fff !important; padding: 0.55rem 1.15rem;
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease;
}
.nav-cta:hover { background: var(--deep); transform: translateY(-1px); }
.nav > a:not(.nav-cta) { display: none; }
@media (min-width: 720px) { .nav > a:not(.nav-cta) { display: inline; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 80% -10%, var(--sunshine) 0%, var(--cream) 46%, var(--paper) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 0.95fr; gap: 3rem; }
}
.hero-copy { max-width: 36rem; }
.hero .display {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);
  color: var(--ocean);
  font-style: italic;
  margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1rem; }
.hero-note { font-size: 0.86rem; font-weight: 700; letter-spacing: .04em; color: var(--deep); opacity: .85; margin: 0; }

.hero-photo { position: relative; justify-self: center; width: min(520px, 100%); }
.hero-photo-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 45%;
  border-radius: 26px; border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.hero-seal {
  position: absolute; bottom: -20px; right: -16px;
  width: clamp(86px, 24%, 120px); height: auto;
  filter: drop-shadow(0 8px 16px rgba(2,119,189,.28));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-9px) rotate(2deg); }
}

/* ---------- Scallop dividers (echo the seal edge) ---------- */
.scallop { height: 26px; width: 100%; }
.scallop-bottom {
  /* domes of the NEXT section's color rising into the hero */
  background: radial-gradient(circle at 22px 26px, var(--paper) 21px, transparent 22px);
  background-size: 44px 26px;
  background-repeat: repeat-x;
  margin-bottom: -1px;
}
.scallop-top {
  /* domes hanging down into the contact band from the section above */
  background: radial-gradient(circle at 22px 0, var(--paper) 21px, transparent 22px);
  background-size: 44px 26px;
  background-repeat: repeat-x;
  position: absolute; top: 0; left: 0; right: 0;
}

/* ---------- Story ---------- */
.story { background: var(--paper); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.story-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 880px) { .story-grid { grid-template-columns: 1.4fr 0.95fr; gap: 3.5rem; } }
.story-main .display { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); color: var(--ocean); margin-bottom: 1.2rem; }
.story-main p { margin: 0 0 1.1rem; font-size: 1.08rem; max-width: 38rem; }
.story-main p:last-child { font-style: italic; color: var(--deep); }

.story-photo { position: relative; }
.story-photo > img {
  width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover;
  border-radius: var(--radius); border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}
.story-photo-cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(2, 136, 209, 0.92);
  border-radius: 14px; padding: 0.7rem 1rem; text-align: center;
}
.promise-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; font-weight: 800; }
.story-photo-cap .promise-label { display: block; color: #dbeffc; margin-bottom: 2px; }
.story-photo-cap .promise-words { display: block; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.4rem; color: #fff; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); }
.section-head .display { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); color: var(--ocean); }
.section-intro { font-size: 1.08rem; margin: 1rem 0 0; }

/* ---------- Flavors ---------- */
.flavors { background: linear-gradient(180deg, var(--cream), var(--sunshine) 220%); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.flavor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 680px) { .flavor-grid { grid-template-columns: repeat(3, 1fr); } }
.flavor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2,136,209,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flavor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.flavor-art { width: min(190px, 60%); margin: 0 auto 1.1rem; }
.flavor-art img { width: 100%; height: auto; }
.flavor-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--ocean); margin-bottom: 0.5rem; }
.flavor-card p { margin: 0; font-size: 0.99rem; color: var(--ink); }
.flavors-foot { text-align: center; margin: 2.4rem 0 0; font-weight: 700; color: var(--deep); }
.flavors-foot a { color: var(--ocean); }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.g-item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-feature { grid-column: span 2; }
.g-feature img { aspect-ratio: 16 / 10; }
@media (min-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .g-feature { grid-column: span 2; grid-row: span 2; }
  .g-feature img { aspect-ratio: auto; height: 100%; }
}

/* ---------- How to order ---------- */
.order { background: var(--paper); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.6rem; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; } }
.step { position: relative; background: var(--cream); border-radius: var(--radius); padding: 2.4rem 1.6rem 1.8rem; text-align: center; border: 2px solid rgba(2,136,209,.12); }
.step-num {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ocean); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  box-shadow: var(--shadow-sm); border: 3px solid var(--paper);
}
.step h3 { font-family: var(--display); font-weight: 600; color: var(--ocean); font-size: 1.3rem; margin: 0.4rem 0 0.5rem; }
.step p { margin: 0; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--sunshine); padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; }
.contact-inner { max-width: 44rem; }
.contact .display { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); color: var(--ocean); font-style: italic; }
.contact-lead { font-size: 1.12rem; margin: 1rem auto 2rem; max-width: 32rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.contact-address { font-style: normal; margin-top: 1.6rem; font-weight: 700; color: var(--deep); letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #eaf6fd; padding: 2.6rem 0 1.6rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.4rem; align-items: center; text-align: center; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-mark { width: 54px; height: 54px; background: var(--cream); border-radius: 50%; padding: 4px; }
.footer-tagline { font-family: var(--display); font-style: italic; font-size: 1.3rem; margin: 0; color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact a, .footer-contact span { color: #eaf6fd; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-fine { text-align: center; font-size: 0.82rem; color: #bfe2f5; margin: 1.8rem 0 0; }

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-seal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .flavor-card, .nav-cta { transition: none; }
}
