/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

:root {
  --ivory: #faf5eb;
  --terracotta: #15284b;
  --terracotta-dark: #15284b;
  --gold: #c6a15b;
  --maroon: #15284b;
  --teal: #15284b;
  --charcoal: #15284b;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 68px;
  --max-width: 1180px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: white;
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

section {
  scroll-margin-top: var(--nav-height);
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}

.tbd {
  color: var(--terracotta-dark);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 2.1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  min-height: 46px;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--maroon);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--terracotta);
}
/* the hero is cream now, so the outline button reads dark-on-light */
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--ivory);
  border-bottom: 1px solid color-mix(in srgb, var(--charcoal) 12%, transparent);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
/* Typographic wordmark, set to echo the logo's engraved serif. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  color: var(--maroon);
  letter-spacing: 0.005em;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 105;
}
.primary-nav.is-open {
  transform: translateX(0);
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.nav-link:hover {
  color: var(--terracotta-dark);
}
.nav-link.is-active {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}
.nav-cta {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    position: static;
    inset: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    background: transparent;
    gap: 2rem;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 1.75rem;
  }
  .nav-link {
    font-size: 0.72rem;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
/* The logo sits behind the copy as a soft, fully-visible badge anchored to
   the right; the copy block sits left-of-centre, never dead-centred, so
   the two read as one composition instead of a split two-column layout. */
.hero {
  position: relative;
  background: var(--ivory);
  color: var(--charcoal);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem clamp(4.5rem, 9vw, 6.5rem);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  flex-shrink: 1;
  min-width: 0;
}
/* The logo doubles as the hero artwork, shown whole (never cropped) so the
   wreath and wordmark stay intact. It's a normal flex sibling of the copy
   so flexbox centres it on the copy's own vertical midline — no manual
   top/transform math. A negative margin slides it in to slightly overlap
   the copy block, and low opacity keeps it from competing with the text. */
.hero-art {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: min(24rem, 34vw);
  margin-left: clamp(-5rem, -7vw, -2rem);
  opacity: 0.4;
  pointer-events: none;
}
.hero-emblem {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-art {
    align-self: center;
    order: -1;
    width: min(16rem, 52vw);
    opacity: 0.25;
    margin: 0 0 0.5rem;
  }
  .hero-content {
    text-align: left;
    max-width: 100%;
  }
}
/* gold fails 4.5:1 contrast on cream, so eyebrows take the darker accent */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: 0.75em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  color: var(--maroon);
  margin-bottom: 0.4em;
}
.hero-subhead {
  font-size: 1rem;
  max-width: 40ch;
  margin: 0 0 2.25em;
  opacity: 0.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero .eyebrow {
  letter-spacing: 0.18em;
}
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--maroon);
  font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ---------- Section heading ---------- */
.section-heading {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--maroon);
}
.section-heading.light h2,
.section-heading.light .eyebrow {
  color: var(--ivory);
}
.section-sub {
  color: var(--charcoal);
  opacity: 0.75;
}

/* ---------- Divider ---------- */
.divider {
  color: var(--gold);
  max-width: 200px;
  margin: 0 auto 2rem;
}

/* ---------- Story ---------- */
.story {
  max-width: var(--max-width);
  margin: 0 auto;
}
.story-inner {
  max-width: 780px;
  margin: 0 auto;
}
.story-copy h2 {
  color: var(--maroon);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.story-copy p:not([class]) {
  margin-bottom: 0.5em;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--terracotta-dark);
  border-left: 3px solid var(--gold);
  padding-left: 1em;
  margin: 1.25em 0;
}

/* ---------- Baskets / gallery ---------- */
.baskets {
  max-width: var(--max-width);
  margin: 0 auto;
}

.basket-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  border: none;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-image::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  background: rgba(43, 37, 35, 0);
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
  border-radius: 10px;
}
.gallery-image:hover::after,
.gallery-image:focus-visible::after {
  opacity: 1;
  background: rgba(43, 37, 35, 0.35);
}

/* ---------- Testimonials ---------- */
.testimonials {
  max-width: var(--max-width);
  margin: 0 auto;
}
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(43, 37, 35, 0.06);
  margin: 0;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
}
.testimonial-card footer {
  margin-top: 0.75em;
  font-weight: 600;
  color: var(--maroon);
}

/* ---------- Order / contact ---------- */
.order {
  background: var(--ivory);
  color: var(--charcoal);
  border-radius: 0;
}
.steps {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.contact-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hours {
  opacity: 0.75;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--charcoal);
  color: var(--ivory);
}
.footer-logo {
  width: clamp(96px, 22vw, 120px);
  height: auto;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.25em;
}
.footer-fine {
  font-size: 0.8rem;
  opacity: 0.7;
}
.back-to-top-link {
  display: inline-block;
  margin-top: 1em;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Floating Instagram ---------- */
.floating-instagram {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 90;
  animation: pulse 2.4s ease-in-out infinite;
}
.floating-instagram svg {
  width: 28px;
  height: 28px;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 6px 18px rgba(214, 36, 159, 0.35);
  }
  50% {
    box-shadow: 0 6px 18px rgba(214, 36, 159, 0.7);
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  left: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--ivory);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 37, 35, 0.75);
}
.lightbox-panel {
  position: relative;
  background: var(--ivory);
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  padding: 1.75rem;
  max-height: 90vh;
  overflow-y: auto;
}
.lightbox-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--charcoal);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue,
  .floating-instagram {
    animation: none;
  }
}
