/* ========================================
   DJs Bakery & Cafe — Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2B;
  --burgundy-light: #9E3A4C;
  --blush: #F5D5C8;
  --blush-light: #FDF6F0;
  --blush-dark: #E8B4A0;
  --warm-cream: #FFF9F5;
  --warm-bg: #FDF6F0;
  --text-dark: #2D1F1F;
  --text-mid: #5C4040;
  --text-light: #8A6060;
  --gold: #D4845A;
  --gold-light: #E8A87C;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
  --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.12);
  --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 3px solid var(--blush-dark);
  outline-offset: 2px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

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

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

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
}

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

.btn-light:hover {
  background: var(--blush-light);
  border-color: var(--blush-light);
  color: var(--burgundy);
}

/* --- Section shared --- */
.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--burgundy);
}

.nav-logo-text {
  color: var(--text-dark);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-mid);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--burgundy);
  background: rgba(123, 45, 59, 0.06);
}

/* 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 {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.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: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--burgundy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 0;
  overflow: hidden;
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212, 132, 90, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 213, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 132, 90, 0.2);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 132, 90, 0.3);
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-card-main {
  width: 320px;
  height: 400px;
  z-index: 2;
}

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

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(45, 31, 31, 0.9) 0%, transparent 100%);
}

.hero-card-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.hero-card-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
}

/* Stat cards */
.stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--burgundy);
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.3;
}

.stat-icon {
  color: var(--gold);
  margin-bottom: 2px;
}

.stat-card--1 {
  top: 20px;
  right: -10px;
  animation: float 4s ease-in-out infinite;
}

.stat-card--2 {
  bottom: 80px;
  left: -20px;
  animation: float 4s ease-in-out infinite 1s;
}

.stat-card--3 {
  bottom: -10px;
  right: 20px;
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

/* --- Menu --- */
.menu-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.menu-cat {
  background: transparent;
  border: 2px solid var(--blush-dark);
  color: var(--text-mid);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-cat:hover,
.menu-cat.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-img {
  height: 200px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.menu-card-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.menu-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.menu-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--burgundy);
  background: rgba(123, 45, 59, 0.08);
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.about-images {
  position: relative;
  min-height: 560px;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.about-content .section-tag {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(123, 45, 59, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--blush);
  line-height: 1;
  z-index: 0;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-heading);
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

/* --- CTA --- */
.cta-section {
  position: relative;
  background: var(--burgundy);
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(212, 132, 90, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(245, 213, 200, 0.15) 0%, transparent 40%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
}

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

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

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visit-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.visit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.visit-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(123, 45, 59, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-card-title {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.visit-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

.visit-card a {
  color: var(--burgundy);
  font-weight: 700;
}

.visit-card a:hover {
  text-decoration: underline;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for reveal elements (visible without JS) */
.reveal {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

  .about-images {
    min-height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content .section-tag,
  .about-content .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--warm-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-headline {
    font-size: clamp(26px, 6vw, 40px);
  }

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

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
