:root {
  --overlay-dark: rgba(10, 10, 10, 0.55);
  /* Crimson Red from the logo spec (#DC0016 / 220,0,22) */
  --accent: #dc0016;
  --text-light: #fdfaf4;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-script: 'Bodoni Moda', Georgia, serif; /* stands in for Bodoni Std */
  --font-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  /* Sampled from the wall in the shop photo, then lightened so it works
     as a page background instead of a dim photo tone. Two close tones
     (not white) so bands below the hero still read as separate
     sections without ever leaving the beige family. */
  --page-bg: #f3ece6;
  --page-bg-alt: #ece2d6;
  --ink: #2a211c;
  --footer-bg: #241a13; /* warm near-black brown, not a borrowed navy */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page-bg);
}

a { color: inherit; }

/* ---------- NAV ---------- */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  color: var(--text-light);
}

.site-nav.site-nav--static {
  position: relative;
  color: var(--ink);
  background: var(--page-bg);
  padding: 1.25rem 2rem;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  text-transform: none; /* don't inherit the uppercase treatment from .site-nav a — this is a wordmark, not a nav link */
  color: var(--accent);
}

.site-nav .brand img {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.site-nav--static .brand img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.site-nav .brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.site-nav--static .brand-text { text-shadow: none; }

.site-nav .brand-text .script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.site-nav .brand-text .bold {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.site-nav a:hover { opacity: 1; }

.site-nav a.is-active { opacity: 1; border-bottom: 2px solid var(--accent); }

.site-nav a.cta {
  background: var(--accent);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  opacity: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: #222; /* fallback while image loads */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center top;
  transform: scale(1.08);
  will-change: transform;
}

/* This photo's "quiet" area is the soft blurred wall at the TOP of the
   frame; the sharpest, glossiest donuts sit low. A warm, creamy caramel
   wash (not a flat black scrim) carries the white nav/logo/headline text
   up top, then clears out fast so the donuts stay the hero. The footer
   strip has its own text-shadow, so no extra darkening is needed down
   there. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(168, 122, 74, 0.4) 0%,
    rgba(168, 122, 74, 0.24) 20%,
    rgba(168, 122, 74, 0.05) 38%,
    rgba(168, 122, 74, 0) 52%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6.5rem 2rem 2rem;
  color: var(--text-light);
  text-align: center;
}

/* ---------- Logo mark: the fade-in element from the reference video ---------- */
.hero__logo {
  display: block;
  width: min(620px, 88vw);
  margin: 0 auto 1.5rem;
  /* This artwork already has its own white stroke and drop shadow baked
     into the file, so no CSS outline trick is needed anymore — just a
     touch of extra ambient shadow to help it sit forward off the photo. */
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero p.lede {
  max-width: 46ch;
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.92;
  margin: 0 auto 1.75rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Hero footer strip: hours + phone/address ---------- */
.hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero__footer strong {
  display: block;
  font-weight: 600;
}

.hero__footer .hero__footer-right {
  text-align: right;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Entrance animation on page load ---------- */
.reveal-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-nav       { animation-delay: 0.1s; }
.hero__logo     { animation-delay: 0.3s; }
.hero h1        { animation-delay: 0.5s; }
.hero p.lede    { animation-delay: 0.65s; }
.hero__ctas     { animation-delay: 0.8s; }
.hero__footer   { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section bands: full-bleed strips, alternating between the
   two beige tones above instead of white, so the whole page stays in
   the same warm family while sections still read as distinct. ---------- */
.section-band {
  padding: 5rem 2rem;
  background: var(--page-bg);
}

.section-band--alt { background: var(--page-bg-alt); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 1rem;
}

.location-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
  text-align: left;
  background: #fff;
  padding: 1.75rem 2rem;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.12);
}

.location-card__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: #333;
}

.location-card__row svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Long-form story copy (About page) ---------- */
.story {
  max-width: 720px;
  margin: 0 auto;
}

.story-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.story img {
  width: 100%;
  border-radius: 10px;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.18);
  margin-bottom: 2.5rem;
  display: block;
}

.story p {
  line-height: 1.75;
  color: #4a4039;
  margin: 0 0 1.5rem;
}

.story p:last-child { margin-bottom: 0; }

/* ---------- Welcome section: text + shop photo ---------- */
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.welcome p {
  line-height: 1.7;
  color: #4a4039;
  margin: 0 0 1.75rem;
  max-width: 50ch;
}

.welcome img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.18);
}

@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; text-align: center; }
  .welcome p { margin-left: auto; margin-right: auto; }
}

/* ---------- Featured Donuts ---------- */
.featured-header {
  text-align: center;
  margin-bottom: 3rem;
}

.featured-header p {
  color: #4a4039;
  max-width: 50ch;
  margin: 0 auto;
}

.featured-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.25rem;
}

.featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 200px;
}

.featured-item img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  object-fit: contain;
  background: #d9dbe3;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(42, 33, 28, 0.18);
  margin-bottom: 0.3rem;
}

.featured-item span {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.featured-item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b5d50;
  text-align: center;
  font-style: italic;
}

.btn--outline {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.section-band--center { text-align: center; }

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Respect users who've asked for less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-in,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Page header: simple banner for secondary pages
   (Location, Catering) that don't use the big photo hero ---------- */
.page-header {
  padding: 3.25rem 2rem 2.25rem;
  text-align: center;
  background: var(--page-bg-alt);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.25rem 0 0;
}

/* ---------- Map embed (Location page) ---------- */
.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.18);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.location-grid .location-card {
  display: flex;
  width: 100%;
}

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

/* ---------- Catering page ---------- */
.catering-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.catering-copy p {
  line-height: 1.7;
  color: #4a4039;
  margin: 0 0 1.25rem;
}

.catering-copy .call-note {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink);
}

.catering-copy .call-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.catering-copy .call-note a:hover { text-decoration: underline; }

.catering-form {
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.14);
}

.form-row { margin-bottom: 1.35rem; }

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8cfc5;
  border-radius: 6px;
  background: #fdfbf9;
  color: var(--ink);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a4039' stroke-width='1.8'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 0, 22, 0.12);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.catering-form .btn--primary {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* Formspree AJAX error elements (data-fs-error / data-fs-success) are
   hidden and shown by the library's own injected stylesheet — these rules
   only add on-brand typography/spacing on top of that. */
.form-error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.form-error--general {
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(220, 0, 22, 0.08);
  border: 1px solid rgba(220, 0, 22, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.35rem;
}

.form-confirm {
  text-align: center;
  padding: 2rem 1rem;
}

.form-confirm h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0.75rem 0 0.5rem;
}

.form-confirm p { color: #4a4039; margin: 0; }

.form-confirm .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--page-bg);
  padding: 4.5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(243, 236, 230, 0.14);
}

.footer-brand .brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.footer-brand .brand-text .script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
}

.footer-brand .brand-text .bold {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--page-bg);
}

.footer-brand p {
  color: #d8cabb;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 32ch;
}

.site-footer h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #d8cabb;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 230, 0.3);
  color: var(--page-bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #a4927e;
}

.footer-bottom a { color: #a4927e; text-decoration: underline; }

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

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

@media (max-width: 640px) {
  .site-nav ul { display: none; } /* swap for a burger menu in production */
  /* hero.jpg is a wide 2:1 photo. On a tall, narrow phone screen,
     background-size:cover has to scale it up so much to fill a full
     100vh box that only a thin, heavily-zoomed-in vertical sliver of
     the image is ever visible — nothing like the wide, mostly-uncropped
     view desktop gets. Capping the mobile hero's height well below
     100vh needs less of that scale-up, so noticeably more of the photo
     (left-to-right) shows. The floor in max() keeps this from ever
     squeezing shorter phones — it's sized to the content + footer's
     actual height, so there's always room without overlap. */
  .hero { min-height: max(600px, 68vh); }
  /* The nav bar is position:absolute, so it's lifted out of normal
     layout flow and doesn't push the hero content down on its own —
     hero__content's padding-top is what has to clear it. The desktop
     value (6.5rem) was tuned for the desktop nav's height; this mobile
     override was dropping that down to 2rem without checking it still
     cleared the (shorter, but non-zero) mobile nav, so the logo and
     "Ray's Donuts" nav text landed on top of each other. 5.5rem clears
     the mobile nav's actual height with a little room to spare. */
  .hero__content { padding: 5.5rem 1.25rem 3rem; }
  /* Stay position:absolute (not static) — .hero is a flex container, and
     a statically-flowed sibling next to hero__content's width:100% would
     get squeezed to nothing since .hero never sets flex-wrap. Stacking
     the two halves vertically with flex-direction:column keeps it an
     overlay instead. */
  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .hero__footer .hero__footer-right { text-align: left; }

  .page-header { padding: 2.75rem 1.25rem 2rem; }
}

/* ---------- Menu page ---------- */
.menu-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.menu-intro p {
  line-height: 1.7;
  color: #4a4039;
  margin: 0 0 1.25rem;
}

.menu-note {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: left;
  margin: 0 0 1.25rem;
}

.menu-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.menu-note a:hover { text-decoration: underline; }

.menu-category-header {
  margin-bottom: 1.75rem;
}

.menu-category-header .eyebrow { margin-bottom: 0.4rem; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  text-align: left;
}

.menu-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(74, 64, 57, 0.15);
}

.menu-item__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-item__name {
  font-weight: 600;
  color: var(--ink);
}

.menu-item__price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item__desc {
  margin: 0.35rem 0 0;
  color: #6b5d50;
  font-size: 0.92rem;
  line-height: 1.55;
}

.menu-special-banner {
  background: var(--accent);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(220, 0, 22, 0.28);
}

.menu-special-banner .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.menu-special-banner h2 {
  color: #fff;
  margin: 0 0 0.9rem;
}

.menu-special-banner p {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

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