/* Shine Matrix Küche – Vintage Retro Flexbox CSS */

/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* === CSS VARIABLES FOR BRAND & RETRO PALETTE === */
:root {
  --primary: #224C2A;
  --secondary: #F6E9D2;
  --accent: #A13A00;
  --accent2: #B3501A;
  --retro-yellow: #F7C873;
  --retro-blue: #3B6A8A;
  --retro-cream: #FFF8E7;
  --retro-brown: #7C4B2A;
  --retro-green: #6B8E23;
  --text-dark: #2D1C10;
  --text-light: #FFF8E7;
  --shadow: 0 4px 24px rgba(34, 76, 42, 0.08), 0 1.5px 0 #B3501A;
  --border-radius: 18px;
  --border-radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --pattern-bg: repeating-linear-gradient(135deg, #F6E9D2 0 18px, #F7C873 18px 36px);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-cream);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--pattern-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255, 248, 231, 0.92);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 1px 2px 0 var(--retro-yellow), 0 2px 8px #fff8e7;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 3px dotted var(--accent2);
  padding-bottom: 6px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent2);
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}
blockquote {
  font-style: italic;
  color: var(--retro-brown);
  border-left: 5px solid var(--accent2);
  padding-left: 18px;
  margin: 0 0 8px 0;
  background: linear-gradient(90deg, #FFF8E7 80%, #F7C873 100%);
}

/* === BUTTONS & CTA === */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(161, 58, 0, 0.08);
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  box-shadow: 0 6px 24px rgba(161, 58, 0, 0.18);
}

/* === NAVIGATION === */
header {
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(34, 76, 42, 0.08);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  min-height: 80px;
}
header img {
  height: 54px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent2);
  color: #fff;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--retro-yellow);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-toggle:active {
  color: var(--accent2);
  transform: scale(1.1);
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--primary) 80%, var(--accent2) 100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  transform: translateX(-100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-yellow);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-close:active {
  color: var(--accent2);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
  border-radius: var(--border-radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent2);
  color: #fff;
  padding-left: 12px;
}

/* === HERO & FEATURE SECTIONS === */
.feature-grid, .category-grid, .gallery-grid, .gallery-slider, .team-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div, .category-grid > div, .gallery-grid > div, .team-photos > div {
  background: #fff8e7;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(34, 76, 42, 0.07);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  border: 2px dashed var(--retro-yellow);
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover, .category-grid > div:hover, .gallery-grid > div:hover, .team-photos > div:hover {
  box-shadow: 0 6px 24px rgba(161, 58, 0, 0.13);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}

/* === CARD CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff8e7;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(161, 58, 0, 0.16);
  transform: translateY(-4px) scale(1.04) rotate(-1deg);
}

/* === RECIPE PREVIEW CARDS === */
.recipe-preview-card {
  background: linear-gradient(120deg, #fff8e7 80%, #f7c873 100%);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(34, 76, 42, 0.07);
  padding: 18px 14px;
  margin-bottom: 20px;
  min-width: 180px;
  flex: 1 1 180px;
  border: 2px solid var(--retro-yellow);
  transition: box-shadow 0.2s, transform 0.18s;
}
.recipe-preview-card:hover {
  box-shadow: 0 8px 32px rgba(161, 58, 0, 0.13);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}

/* === VIDEO THUMBNAILS === */
.video-thumbnail {
  background: linear-gradient(120deg, #fff8e7 80%, #3b6a8a 100%);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(34, 76, 42, 0.07);
  padding: 18px 14px;
  margin-bottom: 20px;
  min-width: 180px;
  flex: 1 1 180px;
  border: 2px solid var(--retro-blue);
  color: var(--primary);
  transition: box-shadow 0.2s, transform 0.18s;
}
.video-thumbnail:hover {
  box-shadow: 0 8px 32px rgba(59, 106, 138, 0.13);
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff8e7;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(34, 76, 42, 0.07);
  margin-bottom: 20px;
  border-left: 8px solid var(--accent2);
  color: var(--text-dark);
  font-size: 1.05rem;
  max-width: 700px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(161, 58, 0, 0.13);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-meta {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--retro-brown);
  margin-left: 8px;
}

/* === LISTS === */
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
.feature-list {
  list-style: square inside;
  margin-bottom: 24px;
}
.tip-list {
  list-style: disc inside;
  margin-bottom: 24px;
}
.recipe-list {
  list-style: decimal inside;
  margin-bottom: 24px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--primary);
}

/* === CONTACT DETAILS & MAP === */
.contact-details, .map-placeholder {
  background: #fff8e7;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(34, 76, 42, 0.07);
  padding: 18px 14px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-yellow);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--retro-yellow);
  padding: 40px 0 24px 0;
  margin-top: 60px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--retro-yellow);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent2);
}
.footer-contact {
  color: var(--retro-yellow);
  max-width: 350px;
  font-size: 0.95rem;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-top: 12px;
}

/* === FLEXBOX UTILITY CLASSES === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === SPACING & ALIGNMENT === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* === FORMS & INPUTS === */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--retro-yellow);
  background: #fff8e7;
  color: var(--primary);
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.18s, box-shadow 0.18s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid var(--accent2);
  outline: none;
  box-shadow: 0 2px 8px rgba(161, 58, 0, 0.13);
}

/* === RETRO DECORATIVE ELEMENTS === */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: 24px;
  width: 60px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent2), var(--accent2) 8px, var(--retro-yellow) 8px, var(--retro-yellow) 16px);
  border-radius: 8px;
  opacity: 0.18;
  z-index: 0;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--accent2) 100%);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 -2px 16px rgba(34, 76, 42, 0.13);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
  animation: cookie-slide-in 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 22px;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.cookie-banner .accept {
  background: var(--primary);
  color: var(--retro-yellow);
}
.cookie-banner .accept:hover {
  background: var(--accent2);
  color: #fff;
  transform: scale(1.04);
}
.cookie-banner .reject {
  background: #fff8e7;
  color: var(--accent2);
  border: 2px solid var(--accent2);
}
.cookie-banner .reject:hover {
  background: var(--accent2);
  color: #fff;
  transform: scale(1.04);
}
.cookie-banner .settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--primary);
  color: var(--retro-yellow);
  transform: scale(1.04);
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 76, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff8e7;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(34, 76, 42, 0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  font-family: var(--font-body);
  color: var(--primary);
  position: relative;
  animation: modal-slide-in 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-slide-in {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--accent2);
  margin-top: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--retro-yellow);
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
  border: 2px solid var(--primary);
}
.cookie-modal .cookie-toggle:checked {
  background: var(--accent2);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 17px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--accent2);
  cursor: pointer;
  transition: color 0.18s, transform 0.15s;
}
.cookie-modal .close-modal:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .feature-grid > div, .category-grid > div, .gallery-grid > div, .team-photos > div, .card {
    min-width: 160px;
    flex: 1 1 160px;
  }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    gap: 14px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    max-width: 100vw;
    padding: 0 4vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .feature-grid, .category-grid, .gallery-grid, .gallery-slider, .team-photos, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .category-grid > div, .gallery-grid > div, .team-photos > div, .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    min-width: 0;
    width: 96vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .cta-button {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
  .footer-brand img, header img {
    height: 36px;
  }
}

/* === MICRO-INTERACTIONS === */
a, button, .cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal .close-modal {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta-button:focus-visible {
  box-shadow: 0 0 0 3px var(--retro-yellow), 0 0 0 6px var(--accent2);
}

/* === HIDE SCROLL WHEN MOBILE MENU OPEN === */
body.mobile-menu-open {
  overflow: hidden;
}

/* === Z-INDEX LAYERS === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* === MISCELLANEOUS === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-yellow);
}
::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 8px;
}

/* === END === */
