/* 
   Bhatia Bakery - Premium Stylesheet
   Design Language: Warm, Elegant, Artisanal
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Color Palette */
  --color-bg-cream: #FAF6F0;
  --color-bg-white: #FFFFFF;
  --color-dark-chocolate: #2C1B18;
  --color-text-muted: #6B5E5B;
  --color-gold: #C59262;
  --color-gold-hover: #A87647;
  --color-gold-light: #F6EFE6;
  --color-border: #E8DFD3;
  --color-shadow: rgba(44, 27, 24, 0.06);
  --color-shadow-hover: rgba(44, 27, 24, 0.12);

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-dark-chocolate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Common Styles */
section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-dark-chocolate);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 223, 211, 0.4);
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(250, 246, 240, 0.95);
  box-shadow: 0 4px 30px var(--color-shadow);
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-chocolate);
  letter-spacing: 0.5px;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark-chocolate);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-dark-chocolate);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--color-dark-chocolate);
  color: var(--color-bg-cream);
}

.btn-primary:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 146, 98, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-dark-chocolate);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  background-color: var(--color-bg-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-dark-chocolate);
}

.hero-title span {
  color: var(--color-gold);
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 520px;
}

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

.hero-image-container {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--color-shadow);
  border: 1px solid rgba(232, 223, 211, 0.5);
  aspect-ratio: 4 / 3;
}

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

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background-color: var(--color-bg-white);
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(44, 27, 24, 0.08);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--color-dark-chocolate);
}

/* About Section */
.about {
  background-color: var(--color-bg-white);
}

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

.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-img-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px var(--color-shadow);
}

.about-img-card.tall {
  grid-row: span 2;
  height: 100%;
}

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

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.feature-info h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 0.85rem;
}

/* Menu Section */
.menu {
  background-color: var(--color-bg-cream);
}

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

.menu-card {
  background-color: var(--color-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--color-shadow);
  border: 1px solid rgba(232, 223, 211, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--color-shadow-hover);
  border-color: var(--color-gold);
}

.menu-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.menu-card-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-bg-white);
  color: var(--color-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(44, 27, 24, 0.05);
}

.menu-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-dark-chocolate);
}

.menu-card-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.menu-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--color-gold);
  background-color: var(--color-gold-light);
  padding: 4px 10px;
  border-radius: 4px;
}

.menu-card-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark-chocolate);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-card-btn:hover {
  color: var(--color-gold);
}

/* Contact Section */
.contact {
  background-color: var(--color-bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.contact-info-card {
  background-color: var(--color-dark-chocolate);
  color: var(--color-bg-cream);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 15px 40px var(--color-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-info-header h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--color-bg-cream);
}

.contact-info-header p {
  color: #B2A29F;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-detail-text h5 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B2A29F;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: var(--color-bg-cream);
  font-size: 1.05rem;
}

.contact-hours {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-hours h5 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B2A29F;
  margin-bottom: 12px;
}

.contact-hours p {
  color: var(--color-bg-cream);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form-container h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-form-container > p {
  margin-bottom: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark-chocolate);
  letter-spacing: 0.5px;
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-cream);
  color: var(--color-dark-chocolate);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-gold);
  background-color: var(--color-bg-white);
  box-shadow: 0 4px 12px rgba(197, 146, 98, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  grid-column: span 2;
  justify-self: start;
  margin-top: 10px;
}

/* Footer */
footer {
  background-color: var(--color-dark-chocolate);
  color: var(--color-bg-cream);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-container {
  margin-bottom: 24px;
}

.footer-brand .logo-text {
  color: var(--color-bg-cream);
}

.footer-brand p {
  color: #B2A29F;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: var(--color-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #B2A29F;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #B2A29F;
  font-size: 0.95rem;
}

.footer-contact-info span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-info svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #8C7C79;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal-links a {
  color: #8C7C79;
  font-size: 0.85rem;
}

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

/* Interactive Success Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 27, 24, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-modal {
  background-color: var(--color-bg-white);
  padding: 50px 40px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .success-modal {
  transform: scale(1);
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #E2F0D9;
  color: #385723;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.success-modal h4 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--color-dark-chocolate);
}

.success-modal p {
  font-size: 1rem;
  margin-bottom: 30px;
}

/* Legal Modals (Privacy & Terms) */
.legal-modal {
  background-color: var(--color-bg-white);
  padding: 40px;
  border-radius: 12px;
  max-width: 680px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.modal-overlay.active .legal-modal {
  transform: scale(1);
}

.legal-modal h4 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-dark-chocolate);
  border-bottom: 2px solid var(--color-gold-light);
  padding-bottom: 10px;
}

.legal-modal h5 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--color-dark-chocolate);
}

.legal-modal p, .legal-modal li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-modal ul {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style-type: disc;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid, .about-grid, .contact-grid {
    gap: 40px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  section {
    padding: 70px 0;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-image-container {
    order: -1;
  }
  .hero-badge {
    left: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-cream);
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--color-border);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .contact-form .btn {
    grid-column: span 1;
    width: 100%;
  }
}
