/* ------------------- CSS RESET & NORMALIZE ------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F4F8FB;
  color: #22292f;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #34495E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #27AE60;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
::selection {
  background: #c6d4e4;
}

/* ------------------- COLOR & TYPOGRAPHY VARIABLES ------------------- */
:root {
  --color-primary: #34495E;
  --color-secondary: #27AE60;
  --color-accent: #F4F8FB;
  --color-gray-800: #22292f;
  --color-gray-700: #34495E;
  --color-gray-200: #e5ebf1;
  --color-gray-100: #f7fbfd;
  --color-white: #fff;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
strong {
  font-weight: 700;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------------- SECTION SPACING & STRUCTURE ------------------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  section, .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ------------------- CARD & FLEX LAYOUTS ------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(52, 73, 94, 0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 32px rgba(52, 73, 94, 0.13);
  transform: translateY(-2px);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------- HERO SECTION ------------------- */
.hero-section {
  background: var(--color-primary);
  color: var(--color-white);
  min-height: 260px;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-section .container {
  align-items: flex-start;
}
.hero-section h1, .hero-section h2, .hero-section p { color: var(--color-white); }
.hero-section h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-section h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: #d2dee5;
}
.hero-section p {
  font-size: 1.1rem;
  color: #c6d4e4;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 32px 0;
    min-height: 170px;
  }
  .hero-section h1 { font-size: 1.5rem; }
  .hero-section h2 { font-size: 1rem; }
}

/* ------------------- FEATURE GRID STYLES ------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(52,73,94,0.07);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover, .feature:focus {
  box-shadow: 0 6px 28px rgba(52,73,94,0.12);
  transform: translateY(-2px);
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 6px;
}
.feature h3 {
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 600;
}
.feature p {
  font-size: 1rem;
  color: #495163;
}
@media (max-width: 768px) {
  .feature-grid {
    gap: 18px;
  }
  .feature {
    min-width: 100%;
    width: 100%;
  }
}

/* ------------------- CATEGORY LIST ------------------- */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.category-list li {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 210px;
  box-shadow: 0 1px 8px rgba(52,73,94,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.category-list img {
  height: 32px;
  width: 32px;
  margin-bottom: 6px;
}
.category-list strong {
  font-size: 1.08rem;
  color: var(--color-primary);
}
.category-list p {
  font-size: 0.99rem;
  color: #525b76;
}
@media (max-width: 768px) {
  .category-list {
    gap: 14px;
  }
  .category-list li {
    min-width: 100%;
    width: 100%;
  }
}

/* ------------------- PRODUCT LISTING ------------------- */
.product-listing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.product-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(52,73,94,0.08);
  padding: 28px 22px 24px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.product-card:hover, .product-card:focus {
  box-shadow: 0 6px 28px rgba(52,73,94,0.15);
  transform: translateY(-2px) scale(1.01);
}
.product-card img {
  width: 40px;
  height: 40px;
}
.product-card h3 {
  font-size: 1.08rem;
  color: var(--color-primary);
}
.product-card p {
  font-size: 0.96rem;
  color: #47536d;
}

@media (max-width: 768px) {
  .product-listing-grid {
    gap: 15px;
  }
  .product-card {
    min-width: 100%;
    width: 100%;
  }
}

/* ------------------- SEARCH BAR ------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.search-bar input[type="text"] {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 1rem;
  min-width: 200px;
}
.search-bar button {
  background: var(--color-secondary);
  border-radius: 6px;
  padding: 9px 14px;
  border: none;
  display: flex;
  align-items: center;
  transition: background 0.16s;
}
.search-bar button img {
  filter: brightness(0) invert(1);
  width: 18px;
  height: 18px;
}
.search-bar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .search-bar input[type="text"] {
    min-width: 110px;
    font-size: 0.97rem;
    padding: 9px 8px;
  }
}

/* ------------------- FILTERS ------------------- */
.filter-options ul, .producer-filters {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-options li, .producer-filters span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.18s;
}
.filter-options li:hover, .producer-filters span:hover {
  background: #e5ebf1;
}

@media (max-width: 768px) {
  .filter-options ul, .producer-filters {  gap: 13px; }
}

/* ------------------- ARTICLE LIST ------------------- */
.article-list, .team-member-list, .faq-list, .producer-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}
.article-list li, .team-member-list li, .faq-list li, .producer-list li {
  background: var(--color-white);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px rgba(52,73,94,0.08);
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.article-list h3, .team-member-list strong, .producer-list strong {
  color: var(--color-primary);
  font-size: 1.09rem;
}
.article-list p, .faq-list p, .producer-list p {
  color: #495163;
  font-size: 0.97rem;
}

.featured-articles ul, .team-member-list, .value-list ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/**** VALUE LIST ****/
.value-list ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #47536d;
  margin-bottom: 8px;
}
.value-list img {
  width: 22px;
  height: 22px;
}

.team-member-list img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
}

/* ------------------- TAGS & TRENDS ------------------- */
.tag-filters, .trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px 0;
}
.tag-filters span, .trend-tags span {
  display: inline-block;
  background: #e8f0fa;
  color: #34495E;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 7px 13px;
}

.tips-trends .inspiration-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.highlight-box {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(52,73,94,0.08);
  padding: 24px 16px;
  flex: 1 1 260px;
  min-width: 180px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .tips-trends .inspiration-articles {
    gap: 10px;
    flex-direction: column;
  }
  .highlight-box {
    min-width: 100%;
    width: 100%;
  }
}

/* ------------------- TESTIMONIALS ------------------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-white);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(52,73,94,0.08);
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 28px rgba(52,73,94,0.13);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-text {
  color: #29374a;
  font-size: 1.04rem;
  line-height: 1.5;
  margin-bottom: 4px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #556179;
  font-size: 0.98rem;
  font-weight: 500;
}
.testimonial-meta img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
@media (max-width: 768px) {
  .testimonial-list {
    gap: 12px;
  }
  .testimonial-card {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ------------------- BUTTONS & LINKS ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(39,174,96,.06);
  transition: background 0.15s, box-shadow 0.15s, transform 0.13s;
  margin-top: 10px;
  outline: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-secondary);
}
.btn-primary:hover, .btn-primary:focus {
  background: #219150;
  color: var(--color-white);
  box-shadow: 0 5px 18px rgba(39,174,96,.12);
  transform: translateY(-2px) scale(1.03);
}
.btn[disabled] {
  background: #cccccc;
  cursor: not-allowed;
  color: #959595;
}

/* ------------------- HEADER & NAVIGATION ------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 1px 10px rgba(52,73,94,0.06);
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e5ebf1;
  color: var(--color-secondary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 16px;
  transition: background 0.18s, color 0.15s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #219150;
  color: #fff;
}
/* Hide main-nav and show burger on mobile */
@media (max-width: 1020px) {
  .main-nav,
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 11px 8px;
    gap: 7px;
  }
  .logo img {
    height: 36px;
  }
  .mobile-menu-toggle {
    font-size: 1.5rem;
    width: 39px;
    height: 39px;
  }
}

/* ------------------- MOBILE MENU ------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 89vw;
  background: var(--color-white);
  box-shadow: -6px 0 30px rgba(52,73,94,0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.4,0,0.2,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.7rem;
  border-radius: 6px;
  width: 35px;
  height: 35px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #219150;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 34px 26px 20px 24px;
  gap: 16px;
  margin-top: 56px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 12px 0;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: #f0f8f4;
}
@media (max-width: 768px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
  .mobile-nav {
    padding: 30px 14px 20px 11px;
    font-size: 1.06rem;
  }
  .mobile-menu-close {
    top: 13px;
    right: 10px;
  }
}

/* Prevent body scroll when menu open */
body.menu-open {
  overflow: hidden;
}

/* Overlay effect for mobile menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.23);
  z-index: 1500;
}
.mobile-menu.open + .mobile-menu-overlay {
  display: block;
}

/* ------------------- CONTACT DETAILS & MAP ------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--color-accent);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-primary);
}
.contact-details a {
  color: var(--color-secondary);
  font-weight: 500;
  transition: color 0.13s;
}
.contact-details a:hover { text-decoration: underline; }

.map {
  margin-top: 22px;
  background: #dbe8ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}
.map img {
  width: 100px;
  height: auto;
}
@media (max-width: 768px) {
  .map {
    height: 96px;
  }
  .map img { width: 74px; }
}

/* ------------------- FOOTER ------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 42px 0 32px 0;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.1rem;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #d2dee5;
  font-size: 0.98rem;
  font-family: var(--font-body);
  padding: 3px 0;
  border-radius: 2px;
  transition: color 0.15s, text-decoration 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f7fbfd;
  font-size: 0.97rem;
  font-family: var(--font-body);
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 7px;
  vertical-align: middle;
}
@media (max-width: 1020px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  footer {
    font-size: 0.96rem;
    padding: 22px 0 19px 0;
  }
  footer .container {
    padding: 0 9px;
    gap: 11px;
  }
  .footer-brand img { width: 27px; height: 27px; }
}

/* ------------------- FAQ ------------------- */
.faq-list strong {
  color: var(--color-primary);
  font-size: 1.03rem;
}

/**** ABOUT & TEAM ****/
.mission-statement, .vision {
  background: var(--color-accent);
  border-radius: 9px;
  padding: 14px 14px 10px 17px;
  margin-bottom: 10px;
}
.mission-statement strong, .vision strong {
  color: var(--color-secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.team-values {
  margin-top: 12px;
  background: #e8f0fa;
  border-radius: 10px;
  padding: 15px 18px;
  color: #47536d;
}

/* ------------------- LEGAL SECTIONS ------------------- */
.legal-section h2 {
  font-size: 1.13rem;
  margin-top: 18px;
  margin-bottom: 8px;
}
.legal-section ul {
  margin-left: 1.2em;
  margin-bottom: 13px;
}
.legal-section ul li {
  list-style: disc inside;
  margin-bottom: 5px;
  color: #495163;
  font-size: 0.99rem;
}

/* ------------------- THANK YOU PAGE ------------------- */
.thank-you-section .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

/* ------------------- SMOOTH TRANSITIONS / MICRO-INTERACTIONS ------------------- */
.card, .feature, .testimonial-card, .product-card, .category-list li, .highlight-box {
  transition: box-shadow 0.18s, transform 0.16s;
}

/**** HOVER INTERACTION ****/
a, button, .btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.18s, background 0.18s, box-shadow 0.13s, transform 0.15s;
}

/* ------------------- COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -2px 18px rgba(52,73,94,0.12);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 30px;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s cubic-bezier(.37,.68,.45,.91), opacity 0.2s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(70px);
  pointer-events: none;
}
.cookie-banner-text {
  flex: 2 1 260px;
  color: #28374a;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex: 1 1 100px;
}
.cookie-banner-btns .btn {
  padding: 11px 16px;
  font-size: 0.97rem;
  border-radius: 6px;
  margin-top: 0;
  box-shadow: none;
  font-family: var(--font-display);
}
.cookie-banner-btns .btn-cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-banner-btns .btn-cookie-settings:hover, .cookie-banner-btns .btn-cookie-settings:focus {
  background: #e5ebf1;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 9px 23px 11px;
    font-size: 0.97rem;
  }
}

/* ------------------- COOKIE MODAL ------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(68, 80, 100, 0.42);
  z-index: 3900;
}
.cookie-modal.open + .cookie-modal-overlay {
  display: block;
}
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%);
  background: var(--color-white);
  min-width: 330px;
  max-width: 95vw;
  max-height: 92vh;
  padding: 34px 32px 25px 32px;
  border-radius: 15px;
  box-shadow: 0 12px 48px rgba(52,73,94,.29);
  z-index: 4000;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transition: opacity 0.19s, transform 0.33s cubic-bezier(.27,.92,.07,1.03);
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 19px;
  background: var(--color-accent);
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 11;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e5ebf1;
  color: var(--color-secondary);
}
.cookie-modal h2 {
  margin-bottom: 11px;
  color: var(--color-primary);
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.cookie-category-label {
  flex: 1;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category-toggle {
  appearance: none;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #c2d4e0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.17s;
  position: relative;
  outline: none;
  margin-left: 9px;
}
.cookie-category-toggle:checked {
  background: var(--color-secondary);
}
.cookie-category-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-category-toggle:checked:before {
  left: 19px;
}
.cookie-category-essential {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
}
.cookie-modal-actions .btn {
  padding: 11px 16px;
  font-size: 0.99rem;
  border-radius: 6px;
  margin-top: 0;
}
@media (max-width: 640px) {
  .cookie-modal {
    min-width: 94vw;
    padding: 20px 7vw 22px 7vw;
    font-size: 0.99rem;
  }
  .cookie-modal-close {
    right: 13px; top: 9px; font-size: 1.08rem;
  }
}

/* ------------------- MISC ------------------- */
.text-section {
  background: var(--color-accent);
  padding: 22px 18px 17px 18px;
  border-radius: 10px;
  color: #47536d;
  margin-bottom: 14px;
}

/**** Z-INDEX LAYERING FOR MENUS/BANNERS/MODALS ****/
header {
  z-index: 100;
}
.mobile-menu, .mobile-menu.open {
  z-index: 2000;
}
.mobile-menu-overlay {
  z-index: 1500;
}
.cookie-banner {
  z-index: 3000;
}
.cookie-modal, .cookie-modal.open {
  z-index: 4000;
}
.cookie-modal-overlay {
  z-index: 3900;
}

/* ------------------- HIGH CONTRAST FOR TESTIMONIALS ------------------- */
.testimonial-card, .testimonial-text, .testimonial-meta {
  color: #29374a !important;
  background: var(--color-white) !important;
}

/* ------------------- ACCESSIBILITY & FOCUS STYLES ------------------- */
a:focus, .btn:focus, input:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  box-shadow: 0 0 2px 2px #d2fbe1;
  z-index: 900;
}

/**** END OF CSS ****/