/* ======================================================
   THE PURPLE OAK CO.
   Main Stylesheet — reorganized and formatted for readability
   - expanded multi-line rules
   - grouped base styles, components, then responsive rules
   - mobile (<= 600px) rules collected in one responsive block
   ====================================================== */

:root {
  --bg: #f7f5f1;
  --text: #2b2b2b;
  --muted: #7a7288;
  --muted-2: #777;
  --ivory: rgba(247,245,241,0.75);
  --card-bg: rgba(255,255,255,0.6);
  --hero-inset: 2rem; /* mobile inset for hero overlay */
  --radius-lg: 20px;
  --radius-pill: 999px;
  --max-width: 1100px;
}

/* =====================
   RESET / BASE
   ==================== */
*,*::before,*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* =====================
   LAYOUT PRIMITIVES
   ==================== */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.page-narrow { max-width: 720px; }

.section + .section { margin-top: 4rem; }

.content-block { max-width: 720px; }

/* Widen content blocks specifically on the How-to-order page so cards can be larger
   without changing the global content width used by other pages. */
/* Make content-block span the full width and center its contents on the
   how-to-order page so headings and intro copy align centrally. This is
   scoped to .how-to-page to avoid changing other pages. */
.how-to-page .content-block-last {
  /* make only the designated last content block span full width and center
     its contents on the how-to-order page so headings and the compose note
     align centrally without affecting other content-blocks */
  max-width: none;
  width: 100%;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

/* soft centered separator above the last content block (compose note) */
.how-to-page .content-block-last {
  position: relative;
  padding-top: 1.25rem;
}
.how-to-page .content-block-last::before {
  content: "";
  display: block;
  /* 70% of the content width, but never too wide on very large viewports */
  width: 70%;
  max-width: 720px;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0 auto 1rem;
}

/* center the compose note at the bottom of the how-to-order page */
.how-to-page .compose-note {
   text-align: center;
   margin: 1.25rem auto;
   /* match the intro-lead typography so the compose note reads with same scale */
   color: var(--text);
   font-size: clamp(1.05rem, 1.1vw, 1.6rem);
   line-height: 1.4;
   max-width: 42rem;
   font-weight: 400;
}

/* =====================
   TYPOGRAPHY
   ==================== */
h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h2 { font-size: 1.75rem; font-weight: 500; line-height: 1.25; margin-bottom: 0.75rem; }

h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }

p { font-size: 1rem; line-height: 1.65; color: #444; margin-bottom: 1.25rem; }

.muted { color: var(--muted); }

/* =====================
   HEADER
   ==================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 36px; }
.brand-name {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* prevent the company name from breaking into multiple lines */
  white-space: nowrap;
}

/* =====================
   NAVIGATION
   ==================== */
.main-nav { position: relative; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-toggle { display: none; }

/* Base hamburger sizing to ensure the three bars render whenever the toggle is shown
  (we keep these outside very-narrow media queries so the icon appears correctly
  as soon as .nav-toggle becomes display:block at <=1000px). */
.nav-toggle .hamburger { display: inline-block; width: 20px; height: 14px; position: relative; }
.nav-toggle .hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; transition: transform 200ms ease, opacity 160ms ease; transform-origin: center; }

@media (max-width: 1000px) {
  /* Navigation breakpoint enlarged so landscape phones / small tablets use hamburger */
  /* Navigation: show mobile toggle and hide desktop links */
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    /* remove browser default button border so the hamburger looks clean */
    background: transparent;
    border: none;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

/* Desktop: show dropdowns on hover and keep menu items vertically centered */
@media (min-width: 1001px) {
  .main-nav .nav-item { position: relative; }

  .main-nav .nav-item .dropdown-menu {
    display: none;
    position: absolute;
    /* place the dropdown immediately below the parent so there's no hover gap */
    top: 100%;
    left: 0; /* align with the left edge of the parent nav item */
    transform: none;
    background: var(--bg);
    /* keep a little inner space so the menu doesn't feel cramped */
    padding: 0.9rem 0.9rem 0.6rem 0.9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-radius: 10px;
    min-width: 160px;
    white-space: nowrap;
    z-index: 30;
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav .nav-item:hover .dropdown-menu,
  .main-nav .nav-item:focus-within .dropdown-menu {
    display: flex;
  }

  /* Ensure nav links and items are vertically centered */
  .nav-links, .nav-links a, .nav-item > .nav-link { display: flex; align-items: center; }
  .nav-links a { padding: 8px 6px; }

  /* Indent submenu links slightly to show hierarchy */
  .main-nav .nav-item .dropdown-menu a { padding-left: 0.6rem; }
}

/* =====================
   HERO (INDEX ONLY)
   ==================== */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  max-height: 560px;
  overflow: hidden;
}

.hero-image, .hero-image img { width: 100%; height: 100%; }
.hero-image img { object-fit: cover; }

.hero-overlay {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.hero-text {
  max-width: 520px;
  background: var(--ivory);
  padding: 40px 36px;
  border-radius: 18px;
}

.hero-text .eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--muted); }

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero responsive rules (kept adjacent to hero styles) */
@media (max-width: 768px) {
  .hero { height: auto; min-height: 0; }
  .hero-overlay { justify-content: center; padding: 1.5rem; }
  .hero-text { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .hero { padding-top: var(--hero-inset); padding-bottom: var(--hero-inset); }
  /* ensure the overlay is visible and center the rounded hero-text on mobile */
  .hero-overlay { display: flex !important; justify-content: center !important; align-items: center !important; padding: 0.75rem !important; }
  .hero-text { margin: 0.5rem 0; padding: 1.25rem; max-height: 100%; overflow: auto; transform: none; left: auto; right: auto; }
  .hero h1, .hero-text h1 { display: none !important; line-height: 0; margin: 0; padding: 0; }
}

/* =====================
   HOME COLLECTIONS
   ==================== */
.home-collections { padding: 3rem 1.5rem; }

@media (max-width: 1000px) {
  /* When JS toggles `.open` we want the menu visible on small screens */
  /* Keep the toggle aligned to the right (standard). */
  .main-nav { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 100%; }

  /* Make dropdown animate: use visibility/opacity/transform instead of toggling display
     (display toggling would prevent transitions). Center under the site container. */
  .main-nav .nav-links {
    display: flex;
    opacity: 0;
    visibility: hidden;
   /* anchor the dropdown to the right edge of the header-inner */
   left: auto;
   right: 0;
   width: auto;
   min-width: 160px;
   max-width: calc(100% - 24px);
    position: absolute;
    top: 100%;
    background: var(--bg); /* solid background so dropdown is readable over hero */
    padding: 0.6rem 0.9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-radius: 0 0 12px 12px;
    z-index: 20;
    flex-direction: column;
    gap: 0.35rem; /* tighter vertical spacing */
    transform: none;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  /* Keep submenu indentation and readable spacing when the mobile nav is active
     at <=1000px (this mirrors the behavior previously applied only at 768px). */
  .main-nav .nav-item .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-left: 0.9rem;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(0,0,0,0.04);
    background: transparent; /* keep background inherited from .nav-links */
    position: static; /* avoid absolute positioning on mobile */
    box-shadow: none;
    white-space: normal;
  }

  .main-nav .nav-item .dropdown-menu a { font-size: 0.78rem; padding: 0.18rem 0; letter-spacing: 0.02em; }

  /* Ensure hamburger bars have explicit width so they're visible even if button has text */
  .nav-toggle .hamburger span { width: 20px; display: block; }

  /* Tidy focus style for the toggle so the blue native ring doesn't look out of place */
  .nav-toggle:focus { outline: 2px solid rgba(0,0,0,0.08); border-radius: 6px; }

  .main-nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
    pointer-events: auto;
  }

  .main-nav .nav-links a { display: block; padding: 0.35rem 0; }
}

/* Mobile-friendly adjustments for nav typography */
@media (max-width: 768px) {
  .main-nav .nav-links a {
    /* reduce letter-spacing and font-size on mobile so items fit */
    letter-spacing: 0.01em;
    font-size: 0.78rem;
    padding: 0.28rem 0;
  }

  /* Indent dropdown submenu items under 'Signature' to show hierarchy */
  .main-nav .nav-item .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0.9rem;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(0,0,0,0.04);
  }
  .main-nav .nav-item .dropdown-menu a { font-size: 0.75rem; padding: 0.18rem 0; letter-spacing: 0.02em; }

  /* hamburger button styles */
    .nav-toggle { background: transparent; border: none; padding: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .nav-toggle .hamburger { display: inline-block; width: 20px; height: 14px; position: relative; }
    .nav-toggle .hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; transition: transform 200ms ease, opacity 160ms ease; transform-origin: center; }

    /* Hamburger -> X when menu open (use parent .main-nav.open) */
    .main-nav.open .nav-toggle .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .main-nav.open .nav-toggle .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .main-nav.open .nav-toggle .hamburger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

.collections-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Collection card images: keep them compact on desktop and form denser grids on mobile */
.collection-card img,
.collection-card .collection-image,
.collections-grid img { max-width: 150px; width: 100%; height: auto; display: block; margin: 0 auto; }

@media (max-width: 768px) {
  /* On small screens show 2 columns for collections (2x2 or 3x3 depending on total) */
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .collection-card img,
  .collections-grid img { max-width: 100%; }
}

@media (max-width: 420px) {
  /* On narrow phones show 1 column (stack) or 2 columns still depending on layout needs */
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Forms strip (signature collection thumbnails) */
.forms-strip { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: flex-start; }
.form-item { display: block; }
.form-item img { display: block; width: auto; max-width: 150px; height: auto; border-radius: 8px; }

@media (max-width: 768px) {
  /* On phones/tablets show the forms as a compact grid (3 columns where possible) */
  .forms-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .form-item img { width: 100%; max-width: none; }
}

@media (max-width: 420px) {
  /* On narrow phones use 2 columns */
  .forms-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Forms grid used on the Our Candles page: show four items per row on desktop,
   two per row on tablet/phone, center captions under each image. */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
  justify-items: center; /* center each item in its column */
}
.forms-grid .form-item { text-align: center; }
.forms-grid .form-item img { width: 100%; max-width: 160px; height: auto; display: block; border-radius: 8px; margin: 0 auto; }
.forms-grid .form-item p { margin: 0.5rem 0 0 0; font-size: 0.95rem; color: #444; }

@media (max-width: 900px) {
  .forms-grid { grid-template-columns: repeat(2, 1fr); }
  .forms-grid .form-item img { max-width: 220px; }
}

@media (max-width: 420px) {
  .forms-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .forms-grid .form-item img { max-width: 160px; }
}

.collection-card { background: var(--card-bg); padding: 2.5rem; border-radius: var(--radius-lg); }
.collection-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem; }

@media (max-width: 768px) {
  .collections-grid { grid-template-columns: 1fr; }
}

/* =====================
   GALLERIES
   ==================== */
.gallery-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img { border-radius: 12px; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* =====================
   FOOTER
   ==================== */
.site-footer { margin-top: 3rem; padding: 2rem 2rem 2rem; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.footer-brand { max-width: 420px; }
.footer-name { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.1rem; }
.footer-tagline { font-size: 0.9rem; color: #666; margin-bottom: 0; }
.footer-nav {
  display: flex;
  gap: 1rem; /* tightened spacing between items */
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.25rem 0; /* reduce vertical padding so rows sit closer */
}
.footer-meta-centered { margin-top: 1rem; text-align: left; font-size: 0.75rem; color: var(--muted-2); line-height: 1; }

/* Footer meta responsive stacking */
.footer-meta-centered { display: flex; gap: 1.25rem; justify-content: center; align-items: center; }
.footer-meta-centered span { display: inline-block; }

@media (max-width: 480px) {
  .footer-meta-centered { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-meta-centered .footer-meta-left,
  .footer-meta-centered .footer-meta-center,
  .footer-meta-centered .footer-meta-right { width: 100%; }
}

/* Extra tightening for narrow screens so nav items sit closer and attempt to fit
   horizontally when possible. This reduces letter-spacing and gaps to avoid
   overly tall footers on mobile. */
@media (max-width: 420px) {
  .footer-nav { gap: 0.6rem; }
  .footer-nav a { letter-spacing: 0.06em; font-size: 0.72rem; padding: 0.15rem 0; }
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* =====================
   WAITLIST / CONTACT
   ==================== */
.waitlist-block {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: 4rem 3rem;
  background: rgba(255,255,255,0.55);
  border-radius: 24px;
}

.waitlist-title { font-size: 1.5rem; margin-bottom: 1rem; }
.waitlist-text { max-width: 420px; margin: 0.35rem 0; }
.waitlist-copy { margin: 0 0 0.5rem 0; }
.waitlist-form { display: flex; flex-direction: column; gap: 14px; }
.waitlist-input { font-family: inherit; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(0,0,0,0.15); font-size: 0.95rem; background: #fff; }
.waitlist-input:focus { outline: none; border-color: var(--muted); }
.waitlist-button { margin-top: 1rem; padding: 14px; border-radius: var(--radius-pill); border: 1px solid var(--text); background: transparent; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; color: var(--text); }

/* Reduce the vertical gap between the small muted note and the submit button
  without changing spacing between the form inputs. This targets only the
  muted paragraph inside the waitlist form. */
.contact-alt { margin-top: 1.25rem; font-size: 0.85rem; color: #666; text-align: center; }
.site-note { grid-column: 1 / -1; margin-top: 2rem; font-size: 0.75rem; color: #888; text-align: center; }
/* (mobile-only overrides for very tight spacing) */
.contact-alt { margin-top: 1.25rem; font-size: 0.85rem; color: #666; text-align: center; }
.site-note { grid-column: 1 / -1; margin-top: 2rem; font-size: 0.75rem; color: #888; text-align: center; }

@media (max-width: 768px) {
  /* tighter mobile spacing: reduced padding and much smaller gap between
    the descriptive copy and the form so the paragraph sits nearer the inputs */
  .waitlist-block { grid-template-columns: 1fr; padding: 1.5rem 1rem; gap: 0.6rem; }

  /* Mobile: show the descriptive text above the form and make the
    form and its controls span the full width for easier use on phones.
    Target the grid children so stacking/order changes take effect. */
  .waitlist-copy,
  .waitlist-form-wrap {
   grid-column: 1 / -1;
  }

  /* Ensure the copy appears above the form (keeps source order but explicit
    ordering helps if changes are made later). */
  .waitlist-copy { order: 0; }
  .waitlist-form-wrap { order: 1; }

  .waitlist-text { max-width: none; }
  .waitlist-text { margin: 0; }
  .waitlist-copy { margin: 0; }
  .waitlist-form .muted { margin: 0 0 0.125rem 0; }
  .waitlist-form .waitlist-button { margin-top: 0; }
  .waitlist-form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
  .waitlist-input { width: 100%; box-sizing: border-box; }

  /* Mobile CTA: full-bleed solid button for higher prominence on phones */
  .waitlist-button {
   width: 100%;
   background: var(--text);
   color: #fff;
   border: none;
   padding: 14px;
   border-radius: 10px;
   font-weight: 600;
  }
  .waitlist-button:hover { background: rgba(0,0,0,0.9); }
}

/* =====================
   PRODUCTS / CURATED SETS
   ==================== */
.curated-sets { background: rgba(255,255,255,0.55); padding: clamp(2.5rem, 4vw, 3.5rem); border-radius: 24px; }
.curated-sets h2 { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 2rem; }
.product-box {
  background: var(--card-bg);
  /* keep left/right padding, reduce top/bottom for a tighter card height */
  padding: 1.25rem 2.25rem;
  border-radius: var(--radius-lg);
  /* enable positioned pseudo-element backgrounds and keep content above it */
  position: relative;
  overflow: hidden;
}

/* Base rules for background image pseudo-elements used by .bg-* classes.
   The specific images are set in the .bg-...::before rules below; this
   block ensures the pseudo-element is visible and sits behind content. */
.product-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.14; /* subtle image behind the card */
  z-index: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  border-radius: inherit; /* match the card rounding */
}

/* Ensure card content sits above the pseudo-element */
.product-box > * { position: relative; z-index: 1; }
.product-box h3 { margin-top: 0; }
.product-box p { margin: 0; line-height: 1.3; }
.product-desc { margin: 1rem 0; line-height: 1.5; }
.product-custom { margin: 1rem 0; font-size: 0.95em; font-style: italic; color: #666; padding-top: 0.5rem;}
.product-includes { margin: 1rem 0; font-size: 0.85em; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text);  padding-top: 0.5rem;}
.product-box .purchase-link { display: inline-block; margin-top: 0; }
.purchase-link { padding-top: 1.0rem;}

/* =====================
   CAROUSEL / GALLERY (reworded to previous simple rules)
   ==================== */
/* Images */
.carousel-track img {
  width: calc((100% - 2.5rem) / 3); /* 3 visible on desktop */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 14px;
}

/* Make the track a horizontal scroller so images sit side-by-side */
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track img { flex: 0 0 auto; display: block; }

/* Arrow controls overlayed at left/right of the visible slides */
.carousel { position: relative; }
.carousel-prev,
.carousel-next,
.carousel-arrow.left,
.carousel-arrow.right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  /* semi-transparent dark background so arrows sit over the images */
  background: rgba(0,0,0,0.32);
  border: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  cursor: pointer;
  z-index: 40;
  transition: background 180ms ease, transform 120ms ease, opacity 160ms ease;
  opacity: 0.92;
}
.carousel-prev, .carousel-arrow.left { left: 12px; }
.carousel-next, .carousel-arrow.right { right: 12px; }

/* chevron icons via pseudo-elements (no external SVG required) */
.carousel-prev::before,
.carousel-next::before {
  content: '‹';
  font-size: 20px;
  line-height: 1;
  color: #fff;
  display: block;
  transform: translateX(0);
}
.carousel-next::before { content: '›'; }

/* Ensure existing inline characters inside .carousel-arrow are visible and styled */
.carousel-arrow { background: rgba(0,0,0,0.32); color: #fff; border: none; }
.carousel-arrow:focus { outline: 2px solid rgba(255,255,255,0.18); }

.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.52); transform: translateY(-50%) scale(1.03); }

@media (max-width: 420px) {
  .carousel-prev, .carousel-next { width: 36px; height: 36px; }
  .carousel-prev::before, .carousel-next::before { font-size: 18px; }
}

/* Slightly smaller controls on narrow screens */
@media (max-width: 420px) {
  .carousel-prev, .carousel-next { width: 36px; height: 36px; }
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-track img {
    width: 100%;
  }
}

.intro-lead { font-size: clamp(1.05rem, 1.1vw, 1.6rem); line-height: 1.4; max-width: 42rem; }
.detail-strip { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.detail-strip img { width: 100%; max-width: 220px; height: auto; border-radius: 14px; object-fit: cover; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .detail-strip { flex-wrap: wrap; }
  .detail-strip img { max-width: 48%; }
}

/* =====================
   RESPONSIVE (ALL IN ONE PLACE)
   - breakpoints: 900, 768, 600
   ==================== */

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { height: auto; min-height: 0; }
  .hero-overlay { justify-content: center; padding: 1.5rem; }
  .hero-text { padding: 28px 24px; }

  .collections-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }

  .waitlist-block { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2.5rem; }

  .detail-strip { flex-wrap: wrap; }
  .detail-strip img { max-width: 48%; }
}

@media (max-width: 600px) {
  /* Make the hero auto-height on small screens, reduce inset for more usable space */
  .hero { height: auto; --hero-inset: 1rem; padding-top: var(--hero-inset); padding-bottom: var(--hero-inset); }

  /* Keep overlay visible on mobile but inset it so it doesn't touch edges.
     Scale down padding and font sizes so eyebrow, headline, description, and CTA fit. */
  .hero-overlay {
    display: flex !important;
    position: absolute;
    left: var(--hero-inset);
    right: var(--hero-inset);
    top: var(--hero-inset);
    bottom: var(--hero-inset);
    transform: none;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: auto;
    padding: 0.25rem;
  }

  /* Ensure overlay content does not overflow the inset area */
  .hero-text {
    margin: 0;
    padding: 0.7rem 0.9rem;
    max-height: calc(100% - (2 * var(--hero-inset)));
    overflow-y: auto;
    background: var(--ivory); /* match desktop transparency/color */
  }

  /* Remove thin native scrollbar / visual line next to overlay on mobile */
  .hero-text {
    border: none;
    box-shadow: none;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }
  .hero-text::-webkit-scrollbar { width: 0; height: 0; }

  /* Scale text so the three lines + CTA fit comfortably */
  .hero-text .eyebrow { font-size: 0.64rem; margin-bottom: 0.28rem; }
  .hero-text h1 { display: block !important; font-size: 1.05rem; line-height: 1.05; margin: 0 0 0.35rem 0; }
  .hero-text p { font-size: 0.92rem; margin: 0 0 0.45rem 0; }
  .hero-cta { font-size: 0.7rem; margin-top: 0.35rem; padding: 0.42rem 0.8rem; }

  /* Fallback: if the very narrow screens still can't fit, hide the eyebrow */
  /* Fallback: if the very narrow screens still can't fit, hide the eyebrow */
  /* (moved out of this block so we don't nest media queries) */

}

/* Extra compact CTA for very small/narrow phones */
@media (max-width: 420px) {
  .hero-cta {
    font-size: 0.62rem;
    padding: 0.28rem 0.6rem;
    margin-top: 0.25rem;
    letter-spacing: 0.06em;
    border-color: rgba(0,0,0,0.12);
    border-radius: 999px;
    line-height: 1;
  }
}

.bg-quiet-evening::before {
  background-image: url("images/pr-bundle-petite-pair-insta.jpg");
}

.bg-simple-moments::before {
  background-image: url("images/pr-bundle-mini-trio-insta-2.jpg");
}

.bg-stillness::before {
  background-image: url("images/studio-collection-1.png");
}

.bg-artisan-pairing::before {
  background-image: url("images/pr-bundle-seasonal-story-insta.jpg");
}

.bg-individual-petite::before {
  background-image: url("images/pr-petite-ceramic-insta-3.jpg");
}

.bg-individual-artisan::before {
  background-image: url("images/pr-artisan-bowl-insta.jpg");
}

.bg-artisan-gathering::before {
  background-image: url("images/artisan-gathering.png");
}

.bg-stillness::before {
  background-image: url("images/stillness.png");
}

.bg-petite-floral::before {
  background-image: url("images/pr-petite-ceramic-insta-3.jpg");
}

.bg-artisan-floral::before {
  background-image: url("images/pr-artisan-bowl-insta-2.jpg");
}

/* Keep the brand name on one line on small screens by reducing font-size if needed */
@media (max-width: 420px) {
  .brand-name { font-size: 12px; white-space: nowrap; }
}

/* =====================
   HOW-TO-ORDER / STEPS
   =====================
   Each step is displayed as a rounded white card. Mobile: 1-up. Desktop: 2-up.
   The page heading and introductory paragraph remain unboxed (use .intro-lead).
*/
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.how-step {
  /* translucent card to match the site's card treatment */
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  /* increase padding to match signature product-box scale */
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  /* slightly stronger, larger shadow like signature cards */
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display: block; /* stack content; numbers live inline with headings now */
  min-height: 140px; /* give the card presence but not force a left column */
}

.step-number {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  vertical-align: middle;
  margin-right: 0.35rem; /* tightened space between number and heading text */
}

.step-body h3 { margin: 0 0 0.6rem 0; font-size: 1.25rem; font-weight: 600; line-height: 1.15; display: flex; align-items: center; gap: 0.45rem; }
.step-body p { margin: 0; color: #444; line-height: 1.45; }

/* Ensure .muted inside our how-to-order cards uses the muted variable (more specific than .step-body p) */
.how-step .step-body .muted,
.order-method .muted {
  color: var(--muted);
}

/* How orders are placed: Direct / Composed order boxes */
.order-methods { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
.order-method {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  min-height: 160px;
  border: 1px solid rgba(0,0,0,0.04);
}
/* make order method headings match the step card headings */
.order-method h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.25rem; font-weight: 600; line-height: 1.15; }

/* subtle border for translucent how-step to help card edges read on light backgrounds */
.how-step { border: 1px solid rgba(0,0,0,0.04); }

@media (min-width: 700px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .order-methods { grid-template-columns: repeat(2, 1fr); }
}

/* Section divider used between major sections (e.g. product lists, galleries). 
   Make it very subtle so it reads gently against the ivory background. */
.section-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.04);
  margin: 0.5rem 0;
}

/* End of stylesheet */