/* =========================================================================
   Bonnie's Gifts — storefront site
   Authored from the ground up. Warm coastal one-pager built on the brand
   system (Harbor Teal / Coral / Sand Gold, Grand Hotel + Spectral + Hanken).
   ========================================================================= */

/* ---- 1. Design tokens --------------------------------------------------- */
:root {
  /* Palette */
  --c-paper:    #FBF7EF;   /* shell white / page */
  --c-deep:     #16323A;   /* deep tide / ink */
  --c-teal:     #1E5C68;   /* harbor teal */
  --c-coral:    #DD7A56;   /* sunset coral */
  --c-tomato:   #C8402E;   /* tomato (a nod to Nick) */
  --c-gold:     #E9C079;   /* sand gold */
  --c-seaglass: #9DBBA8;   /* sea glass */
  --c-oat:      #F1E8D6;   /* oat paper */
  --c-sand:     #E7DBC2;   /* sand (placeholders) */
  --c-deck:     #CBB58C;   /* wharf deck */
  --c-piling:   #B49B6A;   /* pilings */
  --c-water:    #2C6F7C;   /* water texture */

  /* Accent — switchable: coral (default), tomato, gold, sea glass */
  --accent: var(--c-coral);

  /* Tints (on light) */
  --ink-78: rgba(22,50,58,.78);
  --ink-72: rgba(22,50,58,.72);
  --ink-60: rgba(22,50,58,.60);
  --ink-50: rgba(22,50,58,.50);
  --ink-12: rgba(22,50,58,.12);
  --ink-10: rgba(22,50,58,.10);
  /* Tints (on teal/deep) */
  --paper-30: rgba(255,255,255,.30);
  --paper-25: rgba(255,255,255,.25);
  --paper-14: rgba(255,255,255,.14);

  /* Type */
  --font-script: 'Grand Hotel', cursive;
  --font-serif:  'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:   'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);

  /* Radii & shadows */
  --r-card: 14px;
  --r-pill: 30px;
  --r-lg: 16px;
  --shadow-card: 0 14px 30px -20px rgba(20,55,62,.5);
  --shadow-lift: 0 22px 50px -26px rgba(0,0,0,.5);
  --shadow-photo: 0 26px 50px -26px rgba(20,55,62,.55);
}

/* ---- 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Keep anchored sections clear of the sticky nav */
:target { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-deep);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--c-teal);
  color: var(--c-paper);
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---- 3. Reusable bits --------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  color: var(--c-deep);
  margin: 0;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-72);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  border-radius: 32px;
  padding: 14px 26px;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--solid {
  color: var(--c-paper);
  background: var(--c-teal);
  box-shadow: 0 12px 24px -12px rgba(30,92,104,.7);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30,92,104,.75); }
.btn--ghost {
  color: var(--c-teal);
  background: transparent;
  border: 1.5px solid rgba(30,92,104,.35);
  padding: 14px 24px;
}
.btn--ghost:hover { background: rgba(30,92,104,.07); }

/* Reveal-on-scroll (progressive enhancement; off until JS opts in) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- 4. Animations ------------------------------------------------------ */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes tideDrift { from { transform: translateX(0); } to { transform: translateX(-240px); } }

/* ---- 5. Announcement bar ------------------------------------------------ */
.announce {
  background: var(--c-deep);
  color: var(--c-paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 18px;
  text-align: center;
}
.announce__item { display: inline-flex; align-items: center; gap: 8px; }
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); }
.announce__sep { opacity: .4; }
.announce__hours { color: var(--c-seaglass); }

/* ---- 6. Nav ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,239,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand { display: flex; align-items: baseline; gap: 9px; line-height: 1; }
.brand__script { font-family: var(--font-script); font-size: 30px; color: var(--c-teal); }
.brand__gifts  { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: .34em; color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.nav__link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-deep);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__link:hover { color: var(--c-teal); }
.nav__link.is-active { color: var(--c-teal); border-color: var(--accent); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-paper);
  background: var(--c-teal);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: transform .15s ease, background-color .15s ease;
}
.nav__cta:hover { transform: translateY(-1px); background: #18505b; }

/* Hamburger (hidden on desktop) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-12);
  border-radius: 10px;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--c-deep);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav__toggle-bars::after  { position: absolute; top: 6px;  left: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--c-paper);
    border-bottom: 1px solid var(--ink-10);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 18px 30px -18px rgba(20,55,62,.4);
    /* collapsed by default */
    display: none;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--ink-10); }
  .nav__link.is-active { border-color: var(--ink-10); color: var(--c-teal); }
  .nav__cta { justify-content: center; margin-top: 8px; padding: 13px 18px; }
}

/* ---- 7. Hero ------------------------------------------------------------ */
.hero { position: relative; background: var(--c-oat); overflow: hidden; }
.hero__waves {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  opacity: .5;
  pointer-events: none;
  color: var(--c-seaglass);
}
.hero__waves .tide { will-change: transform; }
.hero__waves .tide--slow { animation: tideDrift 9s linear infinite; }
.hero__waves .tide--fast { animation: tideDrift 6s linear infinite; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 76px) clamp(56px, 7vw, 90px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(52px, 7.5vw, 88px);
  line-height: 1.02;
  color: var(--c-teal);
  margin: 0 0 20px;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.45;
  color: var(--ink-78);
  max-width: 30ch;
  margin: 0 0 30px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__figure { position: relative; display: flex; justify-content: center; }
.hero__figure-inner { position: relative; width: 100%; max-width: 440px; }
.hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.hero__seal {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: clamp(92px, 14vw, 124px);
  height: clamp(92px, 14vw, 124px);
  animation: floaty 7s ease-in-out infinite;
}

/* ---- 8. Trust strip ----------------------------------------------------- */
.trust { background: var(--c-teal); color: var(--c-paper); }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-block: clamp(22px, 3vw, 30px);
}
.trust__item { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 230px; max-width: 100%; margin: 0 auto; }
.trust__icon { flex: none; width: 36px; display: flex; justify-content: center; }
.trust__title { font-weight: 700; font-size: 15px; }
.trust__sub { font-size: 12.5px; color: var(--c-seaglass); }

/* ---- 9. Our Story ------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 100px);
}
.story__photo-col { display: flex; justify-content: center; }
.polaroid {
  background: var(--c-paper);
  border: 1px solid var(--ink-12);
  border-radius: 6px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow-photo);
  transform: rotate(-1.6deg);
  max-width: 340px;
  width: 100%;
}
.polaroid__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: 3px; }
.polaroid__caption { text-align: center; margin-top: 12px; }
.polaroid__name { font-family: var(--font-script); font-size: 26px; color: var(--c-teal); line-height: 1; }
.polaroid__role {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 5px;
}
.story .eyebrow { margin-bottom: 16px; }
.story__title { margin-bottom: 22px; }
.story__body { font-family: var(--font-serif); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.66; color: rgba(22,50,58,.82); }
.story__body p { margin: 0 0 16px; }
.story__body p:last-child { margin-bottom: 0; }
.story__body strong { font-weight: 600; color: var(--c-teal); }

/* ---- 10. What We Sell --------------------------------------------------- */
.shop { position: relative; overflow: hidden; background: var(--c-seaglass); }
.shop__decor {
  position: absolute;
  left: -80px;
  bottom: -40px;
  width: min(480px, 42vw);
  height: auto;
  opacity: .42;
  pointer-events: none;
  transform: scaleX(-1);
}
.shop__inner { position: relative; z-index: 1; padding-block: var(--section-y); }
.shop__head { text-align: center; max-width: 600px; margin: 0 auto clamp(36px, 5vw, 54px); }
.shop__head .eyebrow { color: var(--c-deep); }
.shop__head .section-title { margin-bottom: 14px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.cat-card {
  background: var(--c-paper);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(20,55,62,.55); }
.cat-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cat-card__body { padding: 16px 18px; }
.cat-card__name { font-weight: 700; font-size: 16px; color: var(--c-deep); }
.cat-card__note { font-size: 13px; color: var(--ink-60); margin-top: 3px; }

.shop__foot {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-60);
  margin: clamp(28px, 4vw, 40px) 0 0;
}

/* ---- 11. Visit ---------------------------------------------------------- */
.visit { background: var(--c-deep); color: var(--c-paper); }
.visit__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 56px);
  padding-block: var(--section-y);
}
.visit .eyebrow { color: var(--c-gold); margin-bottom: 16px; }
.visit__title { color: var(--c-paper); margin-bottom: 30px; }
.visit__list { display: flex; flex-direction: column; gap: 24px; }
.visit__row { display: flex; gap: 15px; align-items: flex-start; }
.visit__row svg { flex: none; margin-top: 2px; }
.visit__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-seaglass);
  margin-bottom: 4px;
}
.visit__text { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; }
.visit__text--addr { font-size: 18px; }

.visit__label--hours { margin-bottom: 6px; }
.hours { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; }
.hours__row { display: flex; justify-content: space-between; gap: 24px; max-width: 280px; }
.hours__val { color: var(--c-gold); }

.visit__tags { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }
.visit__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-paper);
  border: 1px solid var(--paper-25);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  transition: border-color .15s ease, background-color .15s ease;
}
.visit__tag:hover { border-color: var(--c-gold); background: rgba(233,192,121,.08); }

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-teal);
  min-height: 320px;
  box-shadow: var(--shadow-lift);
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-deep);
  background: var(--c-paper);
  padding: 10px 16px;
  border-radius: 24px;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.5);
  transition: transform .15s ease;
}
.map__link:hover { transform: translateY(-2px); }

/* ---- 12. Quote band ----------------------------------------------------- */
.quote { background: var(--c-oat); }
.quote__inner { max-width: 820px; margin-inline: auto; padding-block: var(--section-y); text-align: center; }
.quote__shell { display: block; width: min(230px, 62%); height: auto; margin: 0 auto 26px; }
.quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.4;
  color: var(--c-deep);
  margin: 0 0 18px;
}
.quote__attr {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- 13. Footer --------------------------------------------------------- */
.footer { position: relative; overflow: hidden; background: var(--c-teal); color: var(--c-paper); }
.footer__decor {
  position: absolute;
  right: -60px;
  top: -40px;
  width: min(440px, 40vw);
  height: auto;
  opacity: .12;
  pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; padding-block: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 40px); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}
.footer__script { font-family: var(--font-script); font-size: 40px; line-height: .9; color: var(--c-paper); }
.footer__gifts {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .46em;
  text-indent: .46em;
  color: var(--c-gold);
  margin-bottom: 14px;
}
.footer__tag { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--c-seaglass); max-width: 26ch; }
.footer__col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-seaglass);
  margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__links a:hover { color: var(--c-gold); }
.footer__find { font-size: 14.5px; line-height: 1.8; }
.footer__find a:hover { color: var(--c-gold); }
.footer__find .gold { color: var(--c-gold); }

.social { display: flex; gap: 12px; }
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--paper-30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.social a:hover { background: rgba(255,255,255,.1); border-color: var(--c-gold); }

.footer__bottom {
  border-top: 1px solid var(--paper-14);
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-seaglass);
}
.footer__bottom .caps { letter-spacing: .18em; text-transform: uppercase; }

/* ---- 14. Motion preferences -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- 15. Print ---------------------------------------------------------- */
@media print {
  .nav, .announce, .map__link, .skip-link { display: none !important; }
  body { background: #fff; }
  *, *::before, *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
