/* ═══════════════════════════════════════════════════
   SHREE KRISHNA BAKERY — Design System
   Palette: Terracotta Studio + Saffron Gold
   Fonts: Playfair Display + Plus Jakarta Sans
═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --clr-primary:     #B5563E;
  --clr-primary-dk:  #8C3D28;
  --clr-primary-lt:  #D4896A;
  --clr-accent:      #D4A017;
  --clr-accent-lt:   #F0C84A;
  --clr-bg:          #FDF6EE;
  --clr-bg-alt:      #F5EBD8;
  --clr-surface:     #FFFFFF;
  --clr-dark:        #2C1A0E;
  --clr-dark-2:      #4A2E1A;
  --clr-text:        #3D2B1F;
  --clr-text-muted:  #7A5C48;
  --clr-border:      #E8D5C0;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Plus Jakarta Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(44,26,14,0.08);
  --shadow-md:  0 8px 24px rgba(44,26,14,0.12);
  --shadow-lg:  0 20px 60px rgba(44,26,14,0.18);

  --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; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-om {
  font-size: 3rem;
  animation: pulse 1.2s ease-in-out infinite;
  display: block;
  margin-bottom: 16px;
}
.loader-text {
  font-family: var(--ff-display);
  color: var(--clr-accent-lt);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 1.6rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-primary-dk);
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--clr-primary); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--clr-primary) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--clr-primary-dk) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--clr-border);
  gap: 4px;
}
.mobile-nav a {
  padding: 10px 0;
  font-weight: 500;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--clr-primary); }
.mobile-nav.open { display: flex; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(181,86,62,0.35);
}
.btn-primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,86,62,0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-full { width: 100%; justify-content: center; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,26,14,0.82) 0%,
    rgba(44,26,14,0.55) 50%,
    rgba(181,86,62,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 48px;
  animation: fadeUp 1s ease 0.5s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent-lt);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--clr-accent-lt);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.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: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

.hero-badge {
  position: absolute;
  z-index: 2;
  background: rgba(253,246,238,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  color: #fff;
  animation: fadeUp 1s ease 1s both;
}
.hero-badge--1 { bottom: 120px; right: 80px; }
.hero-badge--2 { bottom: 200px; right: 80px; animation-delay: 1.2s; }
.badge-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-accent-lt);
}
.badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--clr-primary);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION COMMON ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--clr-primary);
}

/* ── ABOUT STRIP ── */
.about-strip {
  padding: 100px 0;
  background: var(--clr-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--clr-border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.about-image-wrap {
  position: relative;
}
.about-img {
  border-radius: var(--radius-lg);
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.about-img-deco {
  position: absolute;
  top: 20px; right: -20px;
  width: 100%; height: 100%;
  border: 3px solid var(--clr-accent);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* ── CATEGORY TABS ── */
.category-tabs-section {
  padding: 60px 0 0;
  background: var(--clr-bg-alt);
}
.category-tabs-section .section-title { margin-bottom: 32px; }
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  transition: all var(--transition);
}
.tab-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.tab-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* ── PRODUCTS SECTION ── */
.products-section {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}
.products-section--alt {
  background: var(--clr-bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}
.section-desc {
  max-width: 400px;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  padding-top: 8px;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.products-grid--cakes {
  grid-template-columns: repeat(3, 1fr);
}
.products-grid--seasonal {
  grid-template-columns: repeat(2, 1fr);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card--featured {
  grid-column: span 1;
}
.product-card--seasonal {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-card--seasonal .product-img-wrap {
  height: auto;
  min-height: 220px;
}

.product-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.product-img-wrap img {
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-badge--new { background: #2E7D32; }
.product-badge--gold { background: var(--clr-accent); color: var(--clr-dark); }
.product-badge--spicy { background: #C62828; }

.product-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-info h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 8px;
}
.product-info p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--clr-border);
}
.price {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.price small {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--clr-text-muted);
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-bg-alt);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--clr-border);
}

/* ── ORNAMENT DIVIDER ── */
.ornament-divider {
  text-align: center;
  padding: 20px 0;
  background: var(--clr-bg-alt);
  position: relative;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border));
}
.ornament-divider::before { left: 0; }
.ornament-divider::after {
  right: 0;
  background: linear-gradient(to left, transparent, var(--clr-border));
}
.ornament-divider span { font-size: 1.4rem; }

/* ── TESTIMONIALS ── */
.testimonials-section {
  padding: 100px 0;
  background: var(--clr-dark);
}
.testimonials-section .section-eyebrow { color: var(--clr-accent-lt); }
.testimonials-section .section-title { color: #fff; margin-bottom: 48px; }
.testimonials-section .section-title em { color: var(--clr-accent-lt); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), background var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}
.testimonial-card--featured {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}
.stars {
  color: var(--clr-accent-lt);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.testimonial-author span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* ── CONTACT SECTION ── */
.contact-section {
  padding: 100px 0;
  background: var(--clr-bg);
}
.contact-only {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-intro {
  color: var(--clr-text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-details--centered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: left;
  margin-top: 16px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin: 0;
}

/* order form removed */

/* ── FOOTER ── */
.site-footer {
  background: var(--clr-dark);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-main { color: var(--clr-accent-lt); }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-links h4,
.footer-social h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent-lt);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-social p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.15); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-3px);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { max-width: 500px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-badge { display: none; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 2.4rem; }

  .section-header { flex-direction: column; gap: 12px; }
  .section-desc { max-width: 100%; }

  .products-grid { grid-template-columns: 1fr; }
  .products-grid--seasonal { grid-template-columns: 1fr; }
  .product-card--seasonal { grid-template-columns: 1fr; }
  .product-card--seasonal .product-img-wrap { height: 220px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-details--centered { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .about-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 20px; }
  .hero-content { padding: 0 20px; }
  .container { padding: 0 16px; }
  .order-form-wrap { padding: 24px 20px; }
  .category-tabs { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
}