/* ==========================================================================
   KITCHENKRAFT FOODS - GLOBAL STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Brand Colors */
  --brand-green: #1a362d;
  --brand-green-light: #2c5245;
  --accent-gold: #c39a58;
  --accent-gold-hover: #dfb265;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Surface Colors */
  --bg-main: #f3f0ef;
  --bg-card: #ffffff;
  --bg-dark: #111827;

  /* Text Colors */
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --text-light: #f9fafb;

  /* Borders & Shadows */
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Layout */
  --container-width: 1200px;
  --section-padding: 6rem 1.5rem;
  /* Increased padding */
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-green);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Layout Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--brand-green);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--brand-green-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(26, 54, 45, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-secondary:hover {
  background-color: var(--brand-green);
  color: var(--text-light);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--bg-main);
}

.btn-accent:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(195, 154, 88, 0.3);
}

/* Navigation - Glassmorphism */
.site-header {
  background-color: #f3f0ef;
  /* Opaque color to match logo exactly */
  /* Remove blur since we are using solid matching color */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green);
}

.logo img {
  height: 60px;
  /* Increased size */
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Animated Underline for Navigation Links */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--brand-green);
  /* Stay green on hover for text */
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-green);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

/* Advanced Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  /* Smooth snap into place */
}

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

/* Parallax Utility */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--brand-green);
}

/* Footer */
.site-footer {
  background-color: var(--brand-green);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-heading {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--accent-gold);
  opacity: 1;
}

.footer-bottom {
  margin-top: 4rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}