/* ============================================
   Donut Palace — Stylesheet
   Palette: Burgundy (#7B2D3B) + Blush (#FDF2F0)
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-deep: #5C1F2B;
  --burgundy-light: #9B4D5B;
  --blush: #FDF2F0;
  --blush-mid: #FAE8E3;
  --cream: #FFFAF8;
  --charcoal: #1A1A1A;
  --text-dark: #2A2A2A;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(253, 242, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.4s var(--ease-out);
}

.nav.scrolled .nav-logo {
  color: var(--burgundy);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.nav-logo-text {
  font-style: italic;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav.scrolled .nav-menu a {
  color: var(--text-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid currentColor !important;
  padding: 8px 20px !important;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--burgundy) !important;
}

.nav.scrolled .nav-cta:hover {
  background: var(--burgundy) !important;
  color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav.scrolled .nav-toggle-bar {
  background: var(--burgundy);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) 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(-6.5px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.35) 40%,
    rgba(26, 26, 26, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--blush);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Section shared
   ============================================ */
.section {
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.section-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 520px;
}

.section-body--narrow {
  max-width: 480px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-body {
  margin: 0 auto;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--blush-mid);
  border-radius: 50%;
  z-index: -1;
}

.about-content {
  padding: 20px 0;
}

.about-content .section-body {
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--blush-mid);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================
   Divider
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: var(--blush-mid);
}

/* ============================================
   Menu
   ============================================ */
.menu {
  background: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.menu-card {
  border-radius: 2px;
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(123, 45, 59, 0.1);
}

.menu-card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.05);
}

.menu-card-body {
  padding: 28px 24px;
}

.menu-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.menu-card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

.menu-note {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   Visit
   ============================================ */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.visit-info .section-title {
  margin-bottom: 48px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-detail svg {
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.visit-detail p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
}

.visit-detail a {
  color: var(--burgundy);
  transition: color 0.3s var(--ease-out);
}

.visit-detail a:hover {
  color: var(--burgundy-deep);
}

.visit-map {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 5/4;
}

.visit-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--burgundy);
  padding: 120px 0;
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.cta-headline em {
  font-style: italic;
  color: var(--blush);
}

.cta-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--charcoal);
  padding: 72px 0 40px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
}

.footer-logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  font-style: italic;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  font-size: 0.8rem;
  font-weight: 300;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease-out);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================
   Scroll reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .visit-grid {
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--blush);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    color: var(--text-dark) !important;
    font-size: 0.9rem;
  }

  .nav-cta {
    border-color: var(--burgundy) !important;
    color: var(--burgundy) !important;
  }

  .nav-cta:hover {
    background: var(--burgundy) !important;
    color: var(--white) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 600px;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section {
    padding: 80px 0;
  }

  .about-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 350px;
  }

  .about-stats {
    gap: 32px;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
  }

  .hero-content {
    padding: 0 16px;
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    padding: 0 16px;
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
</style>
