/* ===================================
   CSS RESET & BASELINE NORMALIZATION
   =================================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4EFEE;
  color: #222631;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #222631;
  text-decoration: none;
  transition: color 0.25s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===============
   VARIABLES
   =============== */
:root {
  --color-primary: #222631;
  --color-secondary: #F4EFEE;
  --color-accent: #DEE01B;
  --color-accent-dark: #bbc013;
  --color-neutral: #FFFFFF;
  --color-text: #222631;
  --color-bg: #F4EFEE;
  --color-card-bg: #FFFFFF;
  --color-shadow: 0 4px 24px rgba(34, 38, 49, 0.07);
  --color-muted: #9EA3AF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 24px rgba(34, 38, 49, 0.10);
  --shadow-lg: 0 8px 48px rgba(34, 38, 49, 0.13);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===============================
   TYPOGRAPHY SCALE & HEADINGS
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: bold;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
  font-weight: 500;
}
p,li,span {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* =============================
   CONTAINER APPROACH
   ============================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* =============================
   LAYOUT SECTIONS & UTILITIES
   ============================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(122deg, #DEE01B 0%, #F4EFEE 100%);
  box-shadow: var(--shadow-md);
}
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
}

/* =============================
   FLEXBOX SPACING PATTERNS
   ============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.015);
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: linear-gradient(80deg, #DEE01B 0%, #F4EFEE 60%);
  box-shadow: var(--shadow-md);
  z-index: 100;
  position: relative;
}
.logo-link img {
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 8px 0;
  color: var(--color-primary);
  opacity: 0.92;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  opacity: 1;
}

.cta-btn {
  background: linear-gradient(90deg, var(--color-primary) 20%, var(--color-accent) 120%);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 28px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  margin-left: 16px;
  transition: box-shadow 0.22s, transform 0.2s, background 0.22s;
  border: none;
  outline: none;
  display: inline-block;
}

.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-accent-dark) 15%, var(--color-primary) 100%);
  color: var(--color-neutral);
  box-shadow: 0 8px 32px rgba(34,38,49,0.14);
  transform: translateY(-2px) scale(1.035);
}

/* ================
   BURGER MENU
   ================ */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-neutral);
  font-size: 2rem;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
  transition: background 0.18s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,239,238,0.97);
  z-index: 5000;
  transition: transform 0.34s cubic-bezier(.57,1.16,0.48,1), box-shadow 0.22s;
  box-shadow: 0 0 0 500vw rgba(34,38,49,0.08);
  transform: translateX(-100vw);
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: var(--color-neutral);
  font-size: 2rem;
  align-self: flex-end;
  margin: 25px 22px 0 0;
  border-radius: var(--radius-md);
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.23s;
  min-width: 180px;
  text-align: center;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =============================
   MAIN LAYOUT
   ============================= */
main {
  flex: 1 1 auto;
}

section > .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* =============================
   CARDS, LISTS, & FEATURES
   ============================= */
ul, ol {
  margin-left: 0;
  margin-bottom: 0;
}
section ul, .content-wrapper ul, .text-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  margin-top: 8px;
  padding-left: 0;
}
section ul li, .content-wrapper ul li, .text-section ul li {
  background: var(--color-card-bg);
  padding: 22px 18px 16px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 210px;
  min-width: 0;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.17s;
}
section ul li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
section ul li:hover, .content-wrapper ul li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.text-section ul {
  gap: 14px;
}
.text-section ul li {
  padding: 0 0 0 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
  margin-bottom: 9px;
  flex: 1 1 280px;
}
.text-section ul li img {
  margin-right: 10px;
  margin-bottom: 0;
  display: inline-block;
  vertical-align: middle;
}
.text-section ul li span {
  vertical-align: middle;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
  background: var(--color-neutral);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  align-items: flex-start;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.97rem;
  font-family: var(--font-body);
  color: var(--color-muted);
}
.testimonial-meta span:last-child {
  color: #F3C600;
  font-size: 1.22em;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

/* ==============
   FOOTER
   ==============
*/
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 16px 32px 16px;
  background: linear-gradient(128deg, #DEE01B 0%, #F4EFEE 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
}
.footer-logo img {
  height: 40px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  opacity: 0.82;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-bottom 0.15s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
  border-bottom: 2px solid var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--color-primary);
  opacity: 0.96;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

/* =============================
   BUTTONS & LINKS
   ============================= */
button, .cta-btn {
  transition: background 0.15s, color 0.15s, box-shadow 0.22s, transform 0.19s;
  outline: none;
}
button:focus,.cta-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===============
   FORMS (minimal)
   =============== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #E3E3E3;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding-left: 4px;
    padding-right: 4px;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 840px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .footer-contact {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .footer-contact,
  .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px 0 15px 0;
  }
  footer {
    flex-direction: column;
    gap: 14px;
    text-align: left;
    padding-top: 30px;
  }
  .footer-logo img {
    height: 32px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.53rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.14rem;
    margin-bottom: 12px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: var(--radius-md);
  }
  .testimonial-card {
    padding: 16px 10px;
    margin-bottom: 12px;
  }
}
@media (max-width: 420px) {
  .footer-contact span {
    min-width: unset;
    font-size: 0.96rem;
  }
  .mobile-nav a {
    font-size: 1.02rem;
    min-width: 130px;
  }
}

/* =============================
   COOKIE CONSENT BANNER STYLES
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-card-bg);
  box-shadow: 0 -6px 32px rgba(34,38,49,0.07);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 24px 18px 18px 18px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.28s, opacity 0.26s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
}
.cookie-banner-text {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  max-width: 800px;
  font-family: var(--font-body);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  margin-right: 4px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.accept:hover {
  background: #c8cd14;
}
.cookie-btn.reject {
  background: var(--color-primary);
  color: var(--color-neutral);
}
.cookie-btn.reject:hover {
  background: #181a21;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}
.cookie-btn.settings:hover {
  background: #eaeaea;
}

/* ==========================
   COOKIE PREFERENCES MODAL
   ========================== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,38,49,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 13000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  width: 96vw;
  max-width: 420px;
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 22px 24px 22px;
  box-shadow: 0 8px 44px rgba(34,38,49,0.14);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  position: relative;
  animation: modalIn 0.38s cubic-bezier(.24,1.16,.49,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(54px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-title {
  font-size: 1.17rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  color: var(--color-neutral);
  border-radius: var(--radius-md);
  font-size: 1.22rem;
  transition: background 0.16s, color 0.17s;
  border: none;
  outline: none;
}
.cookie-modal-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ECECEC;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category .toggle {
  margin-left: 8px;
}
.cookie-category.essential {
  font-weight: 600;
  color: var(--color-accent);
}
.toggle {
  width: 40px;
  height: 22px;
  border-radius: 22px;
  background: #E8E8E8;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.18s;
}
.toggle input {
  display: none;
}
.toggle-slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #bbb;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.toggle input:checked + .toggle-slider {
  left: 21px;
  background: var(--color-accent);
}
.toggle input:checked ~ .toggle {
  background: var(--color-accent);
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
.card, .testimonial-card, section ul li {
  will-change: transform, box-shadow;
}

/* =====================
   VISUAL ENHANCEMENTS
   ===================== */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #e6e3dd;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1ccd6;
}

/* ================
   ACCESSIBILITY
   ================ */
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 24px 8px 12px 8px;
  }
}

/* Hide elements that should only be visible in menu overlay for Accessibility */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
