/* ==========================================================================
   1. Design System & Variables
   ========================================================================== */
:root {
  /* Colors - Premium Upgrade */
  --color-gold: #D4AF37;
  /* Metallic Gold */
  --color-gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  --color-blue-dark: #1A253A;
  /* Midnight Blue */
  --color-blue-gradient: linear-gradient(135deg, #1A253A 0%, #0F172A 100%);
  --color-chocolate: #3E2723;
  /* Dark Chocolate (Bakery feel) */
  --color-cream: #FFFDF7;
  /* Warmer Vanilla Cream */
  --color-cream-gradient: linear-gradient(to bottom, #FFFDF7 0%, #F5F1E8 100%);

  --color-text-dark: #1E293B;
  --color-text-light: #64748B;
  --color-white: #ffffff;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Spacing */
  --spacing-4: 1rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 10px 25px -5px rgba(212, 175, 55, 0.25);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--color-blue-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

/* ==========================================================================
   3. Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.text-gold {
  color: var(--color-gold);
}

.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mb-12 {
  margin-bottom: var(--spacing-12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  /* Slight rounded corners for professional look */
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-base);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

.btn-primary {
  background: var(--color-gold-gradient);
  background-size: 200% auto;
  color: #1a1a1a;
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-blue-dark);
}

.btn-secondary:hover {
  background: var(--color-blue-dark);
  color: var(--color-gold);
  border-color: var(--color-blue-dark);
}

.section-padding {
  padding: var(--spacing-20) 0;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  /* Increased height for logo */
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--color-gold);
  border-image: var(--color-gold-gradient) 1;
  /* Premium Gold Top Strip */
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0;
}

.logo img {
  height: 60px;
  /* Fixed height for the PNG logo */
  width: auto;
  object-fit: contain;
  /* transition: transform 0.3s ease; */
}

/* Optional: Hover effect for logo */
/* .logo:hover img { transform: scale(1.05); } */

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    gap: var(--spacing-8);
    align-items: center;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-dark);
}

.nav-link:hover {
  color: var(--color-gold);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: block;
  font-size: 1.5rem;
  color: var(--color-blue-dark);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu Active State */
.nav-desktop.is-active {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  flex-direction: column;
  padding: var(--spacing-4);
  box-shadow: var(--shadow-md);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-desktop.is-active li {
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* Use the generated image as background, but with an overlay */
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5)),
    url('../images/hero-bakery-innovation.png');
  /* Placeholder path */
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding-top: var(--header-height);
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--color-white);
  margin-bottom: var(--spacing-4);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-8);
  opacity: 0.9;
  max-width: 600px;
}

/* ==========================================================================
   6. Features / Why Choose Us
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-8);
  margin-top: var(--spacing-8);
}

.feature-card {
  background: var(--color-white);
  padding: var(--spacing-8);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  /* Subtle gold border */
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--color-gold);
}

.feature-icon {
  font-size: 2.5rem;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-4);
  display: inline-block;
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-2);
}

/* ==========================================================================
   7. Product Preview
   ========================================================================== */
.product-preview {
  background-color: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-8);
}

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.product-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
  background-color: #eee;
}

.product-info {
  padding: var(--spacing-8);
}

.product-title {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-2);
}

.product-category {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--spacing-2);
  display: block;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-blue-dark);
  /* Optional texture overlay could go here */
  color: var(--color-white);
  padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-12);
  align-items: start;
  /* Prevent columns from stretching if not needed, or just let them stretch but fix logo */
}

/* Fix for footer logo height issue */
.site-footer .logo {
  height: auto;
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-8);
}

.footer-links li {
  margin-bottom: var(--spacing-4);
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-8);
  text-align: center;
  opacity: 0.6;
  font-size: var(--text-sm);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}