/*----------------------------------
  CAPITAVERS INDUSTRIAL MODERN UI CSS 
----------------------------------*/

/* 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; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.5;
  background: #212529;
  color: #f3f7f3;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font-family: inherit; }

/*------------------------------
  THEME COLORS & FONTS
------------------------------*/
:root {
  --color-primary: #3C5D37;
  --color-secondary: #F1A63B;
  --color-accent: #FFF;
  --color-bg-dark: #212529;
  --color-bg-light: #292e33;
  --color-grey: #555c60;
  --color-metal: #9DA7AF;
  --color-offwhite: #f3f3f5;
  --color-border: #3d4348;
  --color-shadow: rgba(40,40,40,0.14);

  /* Fonts */
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg-dark);
  color: var(--color-offwhite);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--color-secondary); }
h4, h5, h6 { margin-bottom: 8px; color: var(--color-metal); }

p, ul, li, .subheadline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-offwhite);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
strong { color: var(--color-secondary); font-weight: 700; }

.subheadline {
  font-size: 1.2rem;
  color: var(--color-metal);
  margin-bottom: 24px;
  max-width: 680px;
}

/*----------------------------
  CONTAINER, SECTION, LAYOUTS
----------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin: 0 auto;
}

/* Flex-based grid patterns */
.card-container, .card-grid, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: var(--color-bg-light);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 3px 24px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 36px var(--color-shadow);
  transform: translateY(-6px) scale(1.02);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 20px 22px 20px;
  background: #292e33;
  border-radius: 13px;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 14px var(--color-shadow);
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow .18s, border-color .18s;
}
.feature-item img {
  width: 42px; height: 42px;
  object-fit: contain;
  filter: brightness(0.9) grayscale(15%) drop-shadow(0 0 3px #222);
}
.feature-item h3 {
  margin-bottom: 6px;
  color: var(--color-secondary);
}
.feature-item p {
  color: var(--color-metal);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

/*-----------------------------
  HERO SECTION
-----------------------------*/
.hero-section {
  background: linear-gradient(120deg, #202b29 70%, #323639 100%);
  padding: 56px 0 56px 0;
  border-radius: 0 0 25px 25px;
  margin-bottom: 48px;
  box-shadow: 0 4px 40px rgba(60,93,55,0.12);
}
.hero-section .container {
  flex-direction: column;
  align-items: stretch;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero-section h1 {
  color: var(--color-secondary);
  font-size: 2.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.hero-section .subheadline {
  color: var(--color-metal);
}

/*-----------------------------
  TESTIMONIALS
-----------------------------*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  color: #352f20;
  font-family: var(--font-body);
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 32px rgba(56,56,56,0.09);
  min-width: 295px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow .15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 40px #e9ad34bb;
}
.testimonial-card p {
  color: #1a1a1a;
  font-size: 1.18rem;
  margin-bottom: 5px;
  font-family: var(--font-body);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  font-size: 1rem;
  color: #495352;
}
.testimonial-meta img {
  width: 18px; height: 18px; margin-left: 2px;
}

/*--------------------------
  HEADER NAVIGATION
--------------------------*/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: #202626ee;
  border-bottom: 2.5px solid var(--color-border);
  box-shadow: 0 2px 22px rgba(40, 60, 40, 0.04), 0 2px 12px rgba(0,0,0,0.04);
  z-index: 99;
  position: relative;
}
.logo-header {
  display: flex;
  align-items: center;
}
.logo-header img {
  height: 46px;
  filter: none;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  transition: color .18s;
  padding: 3px 4px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.cta-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  border: none;
  border-radius: 8px;
  padding: 11px 32px 11px 32px;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(241,166,59,0.13);
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-left: 16px;
  transition: background .16s, color .16s, box-shadow .16s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffbd51;
  color: #243a1e;
  box-shadow: 0 6px 28px rgba(241,166,59,0.17), 0 2px 6px #fbf2e7c7;
}

.cta-secondary {
  border: 2px solid var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
  border-radius: 7px;
  padding: 10px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 13px;
  display: inline-block;
  cursor: pointer;
  margin-left: 0;
  transition: background .19s, color .19s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hamburger button for mobile */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 202;
  background: #292e33;
  color: var(--color-secondary);
  border: none;
  border-radius: 5px;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(70, 70, 60, 0.12);
  transition: background .19s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

/*------------------------------
  MOBILE MENU
------------------------------*/
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(28, 29, 30, 0.97);
  z-index: 208;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.7,.3,.3,1);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-top: 60px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -6px 0 32px #14230785;
}
.mobile-menu-close {
  position: absolute;
  top: 23px;
  right: 24px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 210;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: background .12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e9ad3450;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 24px 30px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.3rem;
  font-family: var(--font-display);
  padding: 10px 6px;  
  border-radius: 5px;
  width: 100%;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/*----------------------------
  FOOTER
----------------------------*/
footer {
  background: #161b1c;
  color: var(--color-metal);
  padding: 32px 0 18px 0;
  margin-top: 50px;
  border-top: 3.5px solid var(--color-border);
  box-shadow: 0 -4px 30px rgba(25,32,30,0.13);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.logo-footer img {
  height: 44px;
  margin-bottom: 10px;
  filter: grayscale(65%) brightness(1.3) drop-shadow(0 3px 5px #1112);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: color .13s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  height: 17px;
  filter: grayscale(83%) brightness(1.1);
}

/*----------------------------
  TEXT/INFO SECTION
----------------------------*/
.text-section {
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--color-offwhite);
  font-size: 1.06rem;
}
.text-section ul {
  list-style: disc;
  margin-left: 22px;
  margin-bottom: 14px; 
}
.text-section li {
  color: var(--color-metal);
  font-size: 1.01rem;
  margin-bottom: 5px;
}
.brand-contact {
  background: #23281a;
  border-radius: 9px;
  padding: 20px 22px;
  color: var(--color-offwhite);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  border-left: 3px solid var(--color-secondary);
  font-size: 1.06rem;
}
.brand-contact a {
  color: var(--color-secondary);
}

.author-highlight {
  background: #debb6130;
  border: 1.6px solid #F1A63B33;
  border-left: 6px solid var(--color-secondary);
  border-radius: 11px;
  padding: 22px 24px;
  margin-top: 22px;
  color: #c4ad7f;
  box-shadow: 0 2px 14px #ba934033;
}
.author-highlight h3 {
  color: var(--color-secondary);
  margin-bottom: 11px;
}
.author-highlight strong {
  color: var(--color-primary);
  font-weight: 700;
}

/*----------------------------
  SEARCH BAR (recettes page)
----------------------------*/
.search-bar {
  width: 100%;
  max-width: 380px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.search-bar input[type="text"] {
  width: 100%;
  border: 1.5px solid var(--color-metal);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1.01rem;
  background: #44494e;
  color: var(--color-accent);
  font-family: var(--font-body);
  transition: border-color .15s;
  outline: none;
}
.search-bar input[type="text"]:focus {
  border-color: var(--color-secondary);
}
.search-bar input[disabled] {
  opacity: .56;
  background: #666d74;
  cursor: not-allowed;
}

/*----------------------------
  COOKIE CONSENT BANNER & MODAL
----------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #272a23;
  color: var(--color-accent);
  box-shadow: 0 -2px 28px #243a1e52;
  padding: 18px 22px 18px 22px;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.07rem;
  transition: transform .28s cubic-bezier(.7,.3,.3,1), opacity .18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 100px;
  max-width: 600px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-direction: row;
  flex-wrap: wrap;
}
.button-cookie {
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 9px 30px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 1px;
  font-size: 1.03rem;
  transition: background .14s, color .13s, box-shadow .15s;
  cursor: pointer;
  box-shadow: 0 2px 6px #F1A63B23;
}
.button-cookie:hover, .button-cookie:focus {
  background: #292e33;
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.button-cookie-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 9px 20px;
  transition: background .18s, color .13s;
}
.button-cookie-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie modal preferences */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,24,23,0.94);
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .21s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--color-bg-light);
  color: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 2px 24px #292e33cc;
  padding: 36px 28px 30px 28px;
  max-width: 390px;
  width: 90vw;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-category {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
}
.cookie-switch {
  margin-left: auto;
  min-width: 32px;
}
.cookie-modal-content .button-cookie, .cookie-modal-content .button-cookie-secondary {
  margin-top: 22px;
  min-width: 44%;
}
.cookie-modal-content .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-modal-content .close:hover {
  color: #ffca70;
}

/* Custom toggle switches for cookie categories */
.cookie-switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  position: relative;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-switch-label {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 22px;
  background: #393f47;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.14s;
  border: 1.1px solid var(--color-metal);
}
.cookie-switch input:checked + .cookie-switch-label {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-switch-label:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 17px; height: 17px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: left .15s;
  box-shadow: 0 1.5px 7px #f1a63b63;
}
.cookie-switch input:checked + .cookie-switch-label:after {
  left: 20px;
}

/*-------------------------------
  RESPONSIVE BREAKPOINTS
-------------------------------*/
@media (max-width: 1020px) {
  .main-nav {
    gap: 20px;
  }
  .footer-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-item {
    min-width: 185px;
    padding: 20px 14px 18px 14px;
  }
  .testimonial-card {
    padding: 13px;
    min-width: 220px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 11px 10px 7px 12px;
    gap: 12px;
  }
  .main-nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 12px;
  }
  .section {
    margin-bottom: 38px;
    padding: 25px 10px;
  }
  .content-wrapper, .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    margin-bottom: 10px;
    align-items: flex-start;
    padding: 18px 10px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    margin-bottom: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact, .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; }
  .logo-header img, .logo-footer img {
    height: 32px;
  }
  .hero-section {
    padding: 20px 0 24px 0;
    border-radius: 0 0 8px 8px;
  }
  .footer-contact {
    font-size: 0.98rem;
    gap: 7px;
  }
  .button-cookie, .button-cookie-secondary {
    padding: 9px 9px;
    font-size: 0.99rem;
    min-width: 90px;
  }
}

/*-------------------------------
  ANIMATION KEYFRAMES
-------------------------------*/
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cookieFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(100%); }
}

/*-------------------------------
  UTILITY CLASSES
-------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.button { cursor: pointer; }
.d-none { display: none !important; }
.d-block { display: block !important; }

/* For brand and rating icons */
.icon-star, .icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  color: var(--color-secondary);
}

/*-------------------------------
  SCROLLBARS
-------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #353838;
}
::-webkit-scrollbar-thumb {
  background: #242e25;
  border-radius: 13px;
}


/*-------------------------------
  END OF FILE
-------------------------------*/
