/* The Final Spoon - Boutique Bakery Stylesheet */
/* Design System: Black base, Gold accents, Pink highlights */

/* === CSS Custom Properties (Design Tokens) === */
:root {
  /* Brand Colors */
  --black: #0a0a0a;
  --black-light: #1a1a1a;
  --black-lighter: #2a2a2a;
  --gold: #c9a227;
  --gold-light: #e6c86e;
  --gold-dark: #a08020;
  --pink: #f5d0d5;
  --pink-light: #fae6e8;
  --pink-dark: #e8b0b8;
  --white: #faf9f6;
  --cream: #f8f6f0;
  --gray-light: #e8e8e8;
  --gray: #888;
  --gray-dark: #555;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--gold);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--gray-light);
}

.tagline {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--pink);
  letter-spacing: 0.05em;
}

/* === Layout Components === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-xs);
}

.section-title .tagline {
  display: block;
  margin-top: var(--space-sm);
}

/* === Header & Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(to bottom, var(--black) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  padding: var(--space-xs) 0;
  position: relative;
}

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

.nav-link:hover {
  color: var(--gold);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-fast);
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero_no_logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-logo {
  width: 250px;
  height: 250px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 1s ease;
}

.hero-title {
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-tagline {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

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

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

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

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

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

/* === Product Cards === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--black-light);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
}

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

.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black-lighter);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-info {
  padding: var(--space-md);
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pink);
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.product-description {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
}

.product-price span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* === Featured Section === */
.featured {
  background: linear-gradient(to bottom, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.featured-content h2 {
  margin-bottom: var(--space-md);
}

.featured-content p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.featured-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--gold);
  border-radius: var(--border-radius-lg);
  transform: translate(15px, 15px);
  z-index: -1;
}

.featured-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
}

/* === About Section === */
.about-section {
  background: var(--black);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  padding: var(--space-lg);
  background: var(--black-light);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.value-card h3 {
  margin-bottom: var(--space-xs);
}

.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* === Menu/Products Page === */
.menu-section {
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.menu-category {
  margin-bottom: var(--space-xxl);
}

.menu-category-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.menu-category-title h3 {
  margin: 0;
}

.menu-category-title .tagline {
  font-size: 1rem;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.menu-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--black-light);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-medium);
}

.menu-item:hover {
  border-color: var(--gold);
  background: var(--black-lighter);
}

.menu-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.menu-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink);
  white-space: nowrap;
}

.menu-item-description {
  font-size: 0.9rem;
  color: var(--gray);
  margin: var(--space-xs) 0;
  line-height: 1.5;
}

.menu-item-note {
  font-size: 0.8rem;
  color: var(--gray-dark);
  font-style: italic;
}

/* === Contact Section === */
.contact-section {
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method-content h4 {
  margin-bottom: var(--space-xs);
  color: var(--gold);
}

.contact-method-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.contact-form {
  background: var(--black-light);
  padding: var(--space-lg);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--border-radius-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm);
  background: var(--black);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--border-radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* === Footer === */
.footer {
  background: var(--black-light);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  height: 60px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.footer-tagline {
  height: 40px;
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .featured-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-logo {
    width: 180px;
    height: 180px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

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

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

  .menu-item {
    flex-direction: column;
  }

  .menu-item-image {
    width: 100%;
    height: 200px;
  }

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

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

  .footer-brand img {
    margin: 0 auto var(--space-md);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-xxl: 4rem;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero-content {
    padding: var(--space-lg);
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.text-pink {
  color: var(--pink);
}

.bg-black {
  background: var(--black);
}

.bg-black-light {
  background: var(--black-light);
}

.border-gold {
  border-color: var(--gold);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mb-1 { margin-bottom: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mb-2 { margin-bottom: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-lg); }
