/* ===== CSS RESET & NORMALIZE ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #212324;
}
body {
  line-height: 1.5;
  font-family: 'Nunito', Arial, sans-serif;
  color: #F5EFE6;
  background: #232222;
  min-height: 100vh;
  font-size: 16px;
}
img,svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin: 0 0 1.5em 0;
  padding-left: 1.6em;
}
li {
  margin-bottom: .3em;
}
a {
  color: #A67A3C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F5EFE6;
  text-decoration: underline;
}
button, .cta-button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
button:focus, .cta-button:focus {
  outline: 2px solid #A67A3C;
}


/* ====== FONT IMPORT ====== */
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');


/* ====== VARIABLES ====== */
:root {
  --primary: #2C5234;
  --secondary: #F5EFE6;
  --accent: #A67A3C;
  --metal: #C5C6C7;
  --dark-bg: #232222;
  --offblack: #18191b;
  --footer-bg: #212324;
  --border: #343638;
  --shadow: 0 4px 22px rgba(0,0,0,0.33);
  --radius: 11px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito', Arial, sans-serif;
}


/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* container only used for centering */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #212324;
  color: #F5EFE6;
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(44,82,52, 0.30);
  transform: translateY(-3px) scale(1.012);
}

.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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5EFE6;
  color: #232222;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(44,82,52, 0.13), 0 1.5px 6px #2222;
  border-left: 7px solid var(--accent);
  font-size: 1rem;
}
.testimonial-author {
  font-size: 0.93rem;
  letter-spacing: .01em;
  font-weight: bold;
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}


/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  color: var(--accent);
  text-shadow: 0 8px 36px #18191b22, 0 1px 0 #1117;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.7rem;
  color: var(--secondary);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.35em;
}
h4 {
  font-size: 1rem;
  color: var(--metal);
  font-weight: 600;
  margin-bottom: 0.25em;
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: #F5EFE6;
}
blockquote {
  color: var(--accent);
  background: #232324;
  border-left: 4px solid var(--metal);
  padding: 16px 24px;
  font-style: italic;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

strong {
  color: var(--accent);
  font-weight: 700;
}


/* ====== HEADER STYLE ====== */
header {
  background: #161818;
  box-shadow: 0px 2px 18px #0004;
  padding: 0;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 78px;
  position: relative;
}
.logo img {
  height: 50px;
  width: auto;
  filter: grayscale(0.4) brightness(1.04);
  mix-blend-mode: lighten;
}
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.desktop-nav a {
  color: var(--metal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.18s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta-button {
  display: inline-flex;
  background: var(--accent);
  color: #1a1817;
  font-family: var(--font-display);
  font-weight: bold;
  padding: 12px 28px;
  border-radius: var(--radius);
  margin-left: 16px;
  box-shadow: 0 2px 10px #10100812;
  transition: background 0.14s, box-shadow 0.22s, color 0.16s, transform 0.13s;
  border: none;
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: #2C5234;
  color: var(--secondary);
  box-shadow: 0 6px 18px #68421f40;
  transform: translateY(-1.5px) scale(1.045);
}
/* Burger MOBILE MENU Button */
.mobile-menu-toggle {
  background: transparent;
  color: var(--metal);
  border: none;
  font-size: 2rem;
  display: none;
  padding: 8px 14px;
  z-index: 1100;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--accent);
  background: #232324;
  border-radius: 8px;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #232324ee;
  box-shadow: 0 0 32px #111f;
  z-index: 2000;
  transform: translateX(-120%);
  transition: transform 0.34s cubic-bezier(0.6,0.1,0.24,1);
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 28px 20px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  color: var(--metal);
  font-size: 2.2rem;
  background: transparent;
  border: none;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #F5EFE6;
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid #34363828;
  margin: 0;
  transition: color 0.14s, background 0.13s;
  border-radius: 6px;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: #18191b2a;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ===== HERO & SECTIONS ===== */
.hero {
  background: linear-gradient(120deg, #232324 66%, #2C5234 100%);
  box-shadow: 0 6px 28px #212324db;
  padding: 60px 0 40px;
  border-bottom: 2px solid var(--accent);
  min-height: 260px;
}
.hero h1 {
  color: var(--accent);
  font-size: 2.65rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.hero p {
  color: #C5C6C7;
  font-size: 1.16rem;
  max-width: 680px;
  margin-bottom: 20px;
}

.features {
  background: #212324;
  border-left: 6px solid var(--primary);
}
.features h2 {
  color: var(--accent);
}
.features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1.13rem;
  color: #F5EFE6;
  background: #18191b9d;
  padding: 10px 22px 10px 8px;
  border-radius: 7px;
  font-family: var(--font-body);
  border-left: 3px solid var(--metal);
  box-shadow: 0 2.5px 14px #16181810;
}
.features li img {
  width: 38px;
  height: 38px;
  margin-right: 7px;
  filter: grayscale(1) brightness(1.20) contrast(0.95);
}

.services {
  background: #18191b;
  border-left: 6px solid var(--accent);
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.services ul li {
  flex: 1 1 320px;
  background: #232324;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px #23232538;
  border: 1.2px solid #343638cc;
  color: #F5EFE6;
  padding: 26px 18px 24px;
  font-family: var(--font-body);
  transition: box-shadow 0.1s, transform 0.11s;
}
.services ul li:hover {
  box-shadow: 0 8px 32px #68421f36;
  transform: scale(1.027) translateY(-1.2px);
}
.services h3 {
  margin-bottom: 12px;
}
.services p {
  color: #C5C6C7;
}

.articles, .recipes, .about, .values, .timeline, .tips, .presentation, .legal, .contact, .thank-you {
  background: #232324;
  border-left: 6px solid var(--primary);
}
.articles ul, .recipes ul, .values ul, .timeline ul, .tips ul, .presentation ol {
  padding-left: 22px;
  margin-bottom: 10px;
  color: #F5EFE6;
}
.articles li, .recipes li, .values li, .timeline li, .tips li, .presentation li {
  margin-bottom: 7px;
  font-size: 1rem;
}


/* ===== CTA SECTION ===== */
.cta {
  background: #18191b;
  border-left: 8px solid var(--accent);
  box-shadow: 0 1.7px 14px #82601f06;
  text-align: left;
}
.cta h2 {
  color: var(--accent);
  font-size: 1.42rem;
}
.cta .cta-button {
  margin-left: 0;
  margin-top: 12px;
}


/* === SPECIAL / HIGHLIGHT BOXES === */
.course-highlight {
  background: #A67A3C;
  color: #232222;
  border-radius: var(--radius);
  font-family: var(--font-display);
  padding: 18px 22px;
  margin: 22px 0 7px 0;
  box-shadow: 0 1.8px 13px #2c523414;
}


/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  padding: 32px 0 20px;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
footer .footer-nav {
  display: flex;
  gap: 28px;
  margin: 12px auto 8px auto;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--metal);
  font-size: 1rem;
  transition: color 0.16s, border-bottom 0.11s;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  margin-top: 0.4em;
  margin-bottom: 0.8em;
  color: #bbb;
  font-size: 0.97rem;
}
footer .contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  filter: grayscale(1) brightness(1.20);
  opacity: 0.9;
}
footer small {
  color: #A4A8A9;
  font-size: 0.92rem;
}
footer .logo {
  display: block;
}
footer .logo img {
  width: 42px;
  margin: 0 auto 8px;
  filter: grayscale(0.7) contrast(1.18) brightness(1.02);
}


/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #232222fa;
  color: #F5EFE6;
  padding: 20px 14px 15px 24px;
  z-index: 4000;
  border-top: 2.5px solid var(--accent);
  box-shadow: 0 -3px 18px #12121240;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookiebanner-in 0.45s cubic-bezier(.49,1.17,.83,1.01);
}
@keyframes cookiebanner-in {
  from {transform: translateY(100%);} to {transform: translateY(0);}
}
.cookie-banner button {
  background: var(--accent);
  color: #232222;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  margin-right: 8px;
  margin-top: 5px;
  border: none;
  box-shadow: 0 2px 9px #2c523410;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #2C5234;
  color: var(--secondary);
  box-shadow: 0 4px 20px #82601f33;
  transform: translateY(-1.3px) scale(1.04);
}

.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-right: 0;
  margin-left: 8px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #232324;
  color: #F5EFE6;
  border-color: #A67A3C;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #191a1e99;
  z-index: 5000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #212324;
  color: var(--secondary);
  border-radius: var(--radius);
  padding: 40px 38px 30px 38px;
  min-width: 290px;
  max-width: 98vw;
  box-shadow: 0 9px 48px #111f;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.3s cubic-bezier(.48,1.28,.32,1.13);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.91) translateY(36px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-content h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.cookie-modal-category {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--metal);
}
.cookie-modal-category [type=checkbox]:disabled + label {
  color: var(--secondary);
  opacity: 0.85;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 0.8em;
}
.cookie-modal button {
  min-width: 100px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  color: var(--metal);
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}


/* ===== FORM INPUTS ==== */
input, textarea, select {
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #1d1d1f;
  color: var(--secondary);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  background: #232324;
  color: #fff;
}
label {
  font-family: var(--font-body);
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

/* ======= UTILITIES ======= */
.metal-accent {
  color: var(--metal);
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center!important; }
.text-right { text-align: right!important; }


/* ====== RESPONSIVE ====== */
@media (max-width: 1020px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .services ul {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 0 4vw;
  }
  .section {
    margin-bottom: 36px;
    padding: 25px 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.15rem; }
  .hero {
    min-height: 135px;
    padding: 36px 0 26px;
  }
  .feature-item, .card, .testimonial-card, .services ul li {
    padding: 16px !important;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    font-size: .96rem;
    padding: 13px 8px 13px 11px;
  }
  .features ul, .features li {
    gap: 8px;
  }
  .features li img {
    width: 28px;
    height: 28px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
}
@media (max-width: 660px) {
  .container {
    padding: 0 2vw;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.92rem;
  }
  .card, .testimonial-card {
    padding: 9px 7px;
    font-size: .95rem;
  }
  .cookie-modal-content {
    padding: 16px 7px 21px 7px;
    min-width: 0;
  }
}
@media (max-width: 540px) {
  .footer-nav {
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
  }
}

/* FLEX COLUMN on Mobile for text-image sections */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* ======= ACCESSIBILITY CONTRAST ======= */
.articles, .recipes, .about, .values, .timeline, .tips, .presentation, .legal, .contact, .thank-you {
  color: #F5EFE6;
}
.testimonials .testimonial-card {
  background: #F5EFE6;
  color: #232222;
}

/* ====== ANIMATIONS & MICROINTERACTIONS ======= */
.card, .services ul li, .testimonial-card, .features li {
  transition: box-shadow 0.23s, transform 0.18s, background 0.17s;
  will-change: box-shadow, transform;
}
.card:active, .services ul li:active, .features li:active {
  transform: scale(0.985);
}
.cta-button:active, .cookie-banner button:active, .mobile-menu-toggle:active {
  transform: scale(0.965);
}

::-webkit-scrollbar { width: 9px; background: #222; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2C5234; }

/* ====== PRINT OPTIMIZATION ======= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none!important; }
  body { color: #222; background: #fff; }
}

/* ======= Z-INDEX LAYERS ======= */
header { z-index: 200; position: relative; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 4000; }
.cookie-modal { z-index: 5000; }
.modal-backdrop { z-index: 10000; }

/* ==== STRICT FLEXBOX ONLY ==== */
/* All multi-child layout containers use only flex! */
/* Gaps for all flex containers are 20px+ as mandated */
.card-container, .content-grid, .services ul, .feature-item, .testimonial-card, .footer-nav, .mobile-nav, .cookie-modal-actions { gap: 20px; }

/* ===== BRAND PERSONALITY ===== */
/* Bottom border accents & metallics for industrial feel */
.section, .hero, .features, .services, .cta, .about, .values, .timeline, .tips, .presentation, .legal, .contact, .thank-you {
  border-radius: var(--radius);
  border-bottom: 2.5px solid var(--metal);
  margin-bottom: 60px;
}

/* Metallic highlight for headings */
h1, h2, h3 {
  text-shadow: 0 2px 14px #30291f11, 0 .5px 0 #fff2;
}

/* Subtle metal shine on cta buttons */
.cta-button {
  box-shadow:
    0 2.5px 13px #23232413,
    0 0.5px 3.5px #C5C6C740,
    0 1.2px 20px #82601f26;
  position: relative;
  overflow: hidden;
}
.cta-button:after {
  content: '';
  position: absolute;
  left: -40px; top: -60px;
  width: 100px; height: 70px;
  background: linear-gradient(120deg, #fff1 10%, #fff5 85%, #fffa 100%);
  opacity: 0.13;
  transform: rotate(13deg);
  pointer-events: none;
}

/* YOU MAY ADD/EDIT The .cookie-banner and .cookie-modal classes in main.js for interactivity */
