/* ============================================
   SugarBun Bake Shop — Styles
   Personality: warm, artisanal, golden-hour
   Palette: deep cocoa, warm cream, golden amber
   Fonts: Fraunces (serif headings) + DM Sans (body)
   ============================================ */

:root {
  --cocoa: #2B1E14;
  --cocoa-light: #3D2B1E;
  --cream: #FBF5EC;
  --cream-dark: #F3E8D6;
  --amber: #C8862E;
  --amber-light: #E0A94E;
  --amber-dark: #A66E22;
  --text: #2B1E14;
  --text-muted: #7A6A5A;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(43, 30, 20, 0.08);
  --shadow-md: 0 8px 30px rgba(43, 30, 20, 0.12);
  --shadow-lg: 0 20px 60px rgba(43, 30, 20, 0.18);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--amber-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SHARED SECTION ELEMENTS ===== */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 14px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--cocoa);
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200, 134, 46, 0.35);
}
.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 134, 46, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* ===== HEADER ===== */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
#siteHeader.scrolled {
  background: rgba(43, 30, 20, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 12px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}
.logo-mark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-top: 2px;
  white-space: nowrap;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.nav-desktop a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-desktop a:hover { color: var(--amber-light); }
.nav-desktop .nav-cta {
  background: var(--amber);
  color: var(--white);
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}
.nav-desktop .nav-cta:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}
.toggle-bar {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active .toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: var(--cocoa);
  padding: 90px 28px 28px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 999;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--amber-light); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,30,20,0.55) 0%, rgba(43,30,20,0.35) 50%, rgba(43,30,20,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
  margin: 0 auto 0 0;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero-eyebrow {
  color: var(--amber-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-light);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== PRESS BANNER ===== */
.press-banner {
  background: var(--cocoa);
  padding: 36px 24px;
  text-align: center;
}
.press-inner {
  max-width: 800px;
  margin: 0 auto;
}
.press-mark {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 10px;
}
.press-logo { margin-bottom: 14px; }
.nyt-name {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.01em;
}
.press-quote {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  color: rgba(251, 245, 236, 0.8);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: -28px;
  right: -20px;
  background: var(--amber);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.badge-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}
.badge-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.about-text { max-width: 540px; }
.about-lead {
  font-size: 1.1rem;
  color: var(--cocoa-light);
  margin: 20px 0 16px;
  line-height: 1.65;
}
.about-body {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--cocoa-light);
  font-weight: 500;
}
.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  position: relative;
  margin-top: 1px;
}
.check-icon::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== MENU ===== */
.menu {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cream-dark);
}
.menu-header { text-align: center; margin-bottom: 50px; }
.menu-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 16px auto 0;
  max-width: 560px;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
}
.menu-category {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.menu-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.menu-cat-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-cat-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.menu-items { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.menu-items li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 8px;
  align-items: baseline;
}
.item-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--cocoa);
  grid-column: 1;
  grid-row: 1;
}
.item-dots {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1.5px dotted rgba(122, 106, 90, 0.3);
  align-self: end;
  margin-bottom: 4px;
}
.item-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--amber-dark);
  grid-column: 3;
  grid-row: 1;
  white-space: nowrap;
}
.item-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3px;
}
.menu-note {
  text-align: center;
  margin-top: 44px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.menu-note a { font-weight: 600; color: var(--amber-dark); }

/* ===== GALLERY ===== */
.gallery-section {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cream);
}
.gallery-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== VISIT ===== */
.visit {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cocoa);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: stretch;
}
.visit-info { color: var(--cream); }
.visit-info .section-eyebrow { color: var(--amber-light); }
.visit-info .section-title { color: var(--white); }
.visit-details {
  margin: 36px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.visit-block {}
.visit-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.visit-block p {
  color: rgba(251, 245, 236, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}
.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow-lg);
}
.visit-map iframe { display: block; min-height: 340px; }

/* ===== CONTACT ===== */
.contact {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--cream-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact-text .section-title { margin-bottom: 20px; }
.contact-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.perk {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 18px;
  border-left: 3px solid var(--amber);
}
.perk-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cocoa);
}
.perk-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cocoa-light);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 134, 46, 0.15);
}
.form-field textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: var(--cocoa);
  color: rgba(251, 245, 236, 0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-light);
  display: block;
  margin-top: 2px;
}
.footer-blurb {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(251, 245, 236, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-image { max-width: 560px; margin: 0 auto; }
  .about-text { max-width: 100; margin: 0 auto; }

  .menu-grid { grid-template-columns: 1fr; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 300px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-content {
    margin-left: 24px;
    margin-right: 24px;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .about-image-badge {
    right: 10px;
    bottom: -20px;
    padding: 18px 22px;
  }
  .badge-number { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .contact-form-wrap { padding: 28px 22px; }

  .menu-category { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
}
