/*
  KREMA Haute Pâtisserie - Parisian Luxury Design System
  Theme: Pearl Cream, Raspberry Rose & Champagne Gold (Haute Pâtisserie Atelier)
  Refined Bento Grid Layout with Fine Gold Accents & High Contrast Contrast
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color System: Parisian Haute Pâtisserie */
  --bg: #faf7f2;                  /* Pearl Cream Linen */
  --surface: #ffffff;             /* Pure White Porcelain */
  --surface-card: #fffdfa;        /* Ivory Card Surface */
  --surface-hover: #fcf6ef;       /* Warm Silk Hover */
  
  --border: rgba(197, 160, 89, 0.22);       /* Fine Champagne Gold Border */
  --border-bright: rgba(197, 160, 89, 0.45);/* Metallic Gold Highlight */
  --border-fine: rgba(0, 0, 0, 0.06);

  --gold-primary: #c5a059;        /* Warm Champagne Gold */
  --gold-light: #e8d5b5;          /* Silk Gold Tint */
  --raspberry: #be123c;           /* Deep Ruby Raspberry */
  --raspberry-light: #fcf0f2;     /* Velvet Rose Tint */
  --pistachio: #2e6f40;           /* Organic Pistachio Accent */
  --pistachio-light: #f0f7f2;     /* Soft Mint Cream */
  
  --text: #1c1417;                /* Dark Mocha Charcoal */
  --text-muted: #5e5257;          /* Soft Slate Velvet */
  --text-dim: #8c7f85;            /* Warm Muted Gray */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Container */
  --container-max: 1240px;
}

/* Accessibility: Skip Link & Focus Outlines */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--raspberry);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
  box-shadow: 0 4px 20px rgba(190, 18, 60, 0.4);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--gold-primary);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--raspberry) !important;
  outline-offset: 3px !important;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* Typography Utility Classes */
h1, h2, h3, h4, .display-font {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--raspberry);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title span {
  font-style: italic;
  color: var(--gold-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold {
  background: var(--raspberry);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(190, 18, 60, 0.3);
}

.btn-gold:hover {
  background: #9f0e30;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(190, 18, 60, 0.45);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  border-color: var(--raspberry);
  background: var(--raspberry-light);
  color: var(--raspberry);
}

/* Header & Nav */
header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(28, 20, 23, 0.06);
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo span {
  color: var(--gold-primary);
  font-weight: 400;
  font-style: italic;
}

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

.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--raspberry);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--raspberry);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  padding-top: 10.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-title span {
  font-style: italic;
  color: var(--raspberry);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hero-badge-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--raspberry-light);
  border: 1px solid rgba(190, 18, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--raspberry);
}

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.badge-text span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Hero Image Showcase */
.hero-image-wrap {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: 0 20px 50px rgba(28, 20, 23, 0.12);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

.hero-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(28, 20, 23, 0.1);
}

.card-star {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

/* Bento Menu Showcase */
.menu-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.menu-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-chip:hover, .filter-chip.active {
  background: var(--raspberry);
  color: #ffffff;
  border-color: var(--raspberry);
  box-shadow: 0 4px 15px rgba(190, 18, 60, 0.25);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pastry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(28, 20, 23, 0.04);
}

.pastry-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 18px 45px rgba(28, 20, 23, 0.12);
}

.pastry-img-box {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.pastry-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pastry-card:hover .pastry-img-box img {
  transform: scale(1.06);
}

.pastry-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: var(--raspberry);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.pastry-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pastry-name {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pastry-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.55;
}

.pastry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-fine);
}

.pastry-price {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--raspberry);
}

.btn-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--raspberry-light);
  border: 1px solid rgba(190, 18, 60, 0.2);
  color: var(--raspberry);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-add:hover {
  background: var(--raspberry);
  color: #ffffff;
}

/* Custom Order Calculator Section */
.calc-section {
  padding: 6rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-box {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 2.75rem;
  box-shadow: 0 15px 45px rgba(28, 20, 23, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--raspberry);
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.12);
}

.calc-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 2rem;
}

.total-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.total-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--raspberry);
}

/* Footer */
footer {
  padding: 4.5rem 0 2rem 0;
  background: #181215;
  color: #f7f3f5;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #b5a9af;
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: #d1c7cc;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94888e;
  font-size: 0.82rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .calc-grid, .bento-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3.4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0.6rem 1rem;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
