/* Coven Donuts — haunted daylight remix of California Donuts */

:root {
  --bg-white: #f4e9d4;
  --bg-panel: #ecdcb8;
  --ink: #333333;
  --ink-muted: #676371;
  --accent-pink: #c56529;
  --accent-pink-soft: #de8a4d;
  --accent-purple: #55328b;
  --accent-purple-soft: #7d5bb5;
  --border-glow: rgba(85, 50, 139, 0.3);
  --shadow-soft: rgba(51, 51, 51, 0.2);
  --dusk: #241c22;
  --dusk-soft: #362a35;
  --dusk-text: #e9dcee;
  --dusk-muted: #b7a3c4;
  --font-display: "Creepster", "Pirata One", serif;
  --font-heading: "Pirata One", serif;
  --font-body: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background-color: var(--bg-white);
  background-image:
    radial-gradient(ellipse at 8% -5%, rgba(85, 50, 139, 0.12), transparent 55%),
    radial-gradient(ellipse at 95% 5%, rgba(197, 101, 41, 0.08), transparent 50%),
    radial-gradient(ellipse at 50% 105%, rgba(51, 51, 51, 0.05), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 10vw rgba(51, 51, 51, 0.18), inset 0 0 3vw rgba(85, 50, 139, 0.12);
}

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

a {
  color: var(--accent-pink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-purple);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(197, 101, 41, 0.2);
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.4rem; color: var(--accent-pink); text-shadow: 0 0 8px rgba(85, 50, 139, 0.25); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-purple);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(244, 233, 212, 0.97), rgba(244, 233, 212, 0.88));
  border-bottom: 1px solid var(--border-glow);
  backdrop-filter: blur(6px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0.9rem 88px 0.9rem 1rem;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-pink);
  text-shadow: 0 0 12px rgba(197, 101, 41, 0.4);
  white-space: nowrap;
  animation: neonFlicker 6s linear infinite;
}

@keyframes neonFlicker {
  0%, 3%, 6%, 100% { opacity: 1; }
  4% { opacity: 0.55; }
  5% { opacity: 0.9; }
}

.brand span {
  color: var(--accent-purple);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-pink-soft);
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  font-size: 1.8rem;
  color: var(--accent-purple);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-radius: 6px;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible {
  color: var(--accent-pink);
  background: rgba(85, 50, 139, 0.1);
  text-decoration: none;
}

.nav-links details {
  position: relative;
}

.nav-links summary {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  list-style: none;
}

.nav-links summary::-webkit-details-marker {
  display: none;
}

.nav-links summary::after {
  content: " \2304";
  color: var(--accent-purple);
}

.nav-links summary:hover,
.nav-links summary:focus-visible {
  color: var(--accent-pink);
  background: rgba(85, 50, 139, 0.1);
}

.dropdown {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0.4rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  z-index: 50;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.dropdown li a:hover,
.dropdown li a:focus-visible {
  background: rgba(197, 101, 41, 0.12);
  color: var(--accent-pink);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-burger {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 0 0 10px 10px;
    padding: 0.6rem;
    max-height: 75vh;
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(85, 50, 139, 0.05);
    margin-top: 0.2rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-glow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10% -10%;
  background-image:
    radial-gradient(ellipse 60% 30% at 15% 10%, rgba(85, 50, 139, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 25% at 85% 90%, rgba(197, 101, 41, 0.06), transparent 70%);
  animation: driftFog 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-full {
  min-height: min(78vh, 620px);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.hero-full::after {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-full .hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  padding-left: clamp(1.5rem, 5vw, 4rem);
}

.hero-full .hero-eyebrow {
  color: var(--accent-purple);
  text-shadow: 0 2px 10px rgba(244, 239, 230, 0.9), 0 2px 10px rgba(244, 239, 230, 0.9);
}

.hero-full h1 {
  color: var(--accent-purple);
  text-shadow: 0 2px 14px rgba(244, 239, 230, 0.85), 0 0 2px rgba(244, 239, 230, 0.9);
}

.hero-full p.lede {
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(244, 239, 230, 0.9), 0 1px 10px rgba(244, 239, 230, 0.9);
}

.hero-full .btn-ghost {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  background: rgba(244, 239, 230, 0.55);
}

.hero-full .btn-ghost:hover,
.hero-full .btn-ghost:focus-visible {
  background: var(--accent-purple);
  color: #f4efe6;
}

@media (max-width: 640px) {
  .hero-full {
    min-height: 62vh;
  }
}

.banner-full {
  position: relative;
  overflow: hidden;
  min-height: min(56vh, 460px);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-caption {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 1.8rem;
}

.banner-caption p {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #f4efe6;
  background: rgba(14, 14, 14, 0.55);
}

@media (max-width: 640px) {
  .banner-full {
    min-height: 40vh;
  }
}

@keyframes driftFog {
  from { transform: translateX(-4%) translateY(0); }
  to { transform: translateX(4%) translateY(-2%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
  width: 100%;
  color: var(--ink);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.3rem 0 0.6rem;
}

.hero p.lede {
  max-width: 620px;
  color: var(--ink);
  font-size: 1.3rem;
}

.hero-page {
  background: var(--bg-panel);
  text-align: center;
}

.hero-page::after {
  display: none;
}

.hero-page .hero-content {
  padding: 3rem 0;
  max-width: 700px;
  margin: 0 auto;
}

.hero-page p.lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(197, 101, 41, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(197, 101, 41, 0.6);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(85, 50, 139, 0.12);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(85, 50, 139, 0.25);
}

/* ---------- Sections ---------- */
section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(85, 50, 139, 0.14);
}

section:last-of-type {
  border-bottom: none;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(236, 224, 201, 0.65), transparent);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col img {
  border-radius: 14px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 18px 40px var(--shadow-soft);
}

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

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.image-grid figure {
  margin: 0;
}

.image-grid img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 16px 34px var(--shadow-soft);
}

.image-grid figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ---------- Address / info blocks ---------- */
.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  text-align: center;
  color: var(--ink-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.info-strip strong {
  color: var(--accent-pink);
  display: block;
  font-size: 1.1rem;
}

/* ---------- Flavor / menu cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.flavor-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(85, 50, 139, 0.22);
}

.glaze-dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 6px var(--bg-white), 0 0 10px rgba(51, 51, 51, 0.25);
}

.glaze-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: brightness(1.15);
  clip-path: circle(45% at 40% 35%);
}

.flavor-name {
  font-family: var(--font-heading);
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}

.flavor-price {
  color: var(--accent-pink);
  font-weight: 600;
}

/* Glaze color variety */
.glaze-1 { background: #e07a3f; }
.glaze-2 { background: #d84e6b; }
.glaze-3 { background: #f2c14e; }
.glaze-4 { background: #7d5ba6; }
.glaze-5 { background: #5c4033; }
.glaze-6 { background: #b3466c; }
.glaze-7 { background: #3fa796; }
.glaze-8 { background: #c96f9c; }

/* ---------- Feature banner image ---------- */
.banner-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  margin: 2rem 0;
  box-shadow: 0 20px 44px var(--shadow-soft);
}

/* ---------- FAQ (details/summary) ---------- */
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0.2rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  color: var(--accent-pink);
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "\1F56F  ";
}

.faq-item[open] summary {
  color: var(--accent-purple);
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
}

/* ---------- Stone / plaque cards (about, shop) ---------- */
.plaque {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 14px 30px var(--shadow-soft);
}

.plaque + .plaque {
  margin-top: 1.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dusk);
  border-top: 1px solid var(--border-glow);
  padding: 3rem 0 2rem;
  color: var(--dusk-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer h4 {
  color: var(--accent-pink-soft);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: var(--dusk-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--dusk-text);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 220, 238, 0.15);
  font-size: 0.92rem;
  color: var(--dusk-text);
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* ---------- Grain overlay for atmosphere ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, transparent 2px, #241c22 3px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
