/* ========================================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F5F2;
  color: #222A35;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: disc inside;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
a {
  color: #222A35;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:active, a:focus {
  color: #264b77;
  outline: none;
}
strong { font-weight: 600; }

/* ===================
   BRAND VARIABLES
   =================== */
:root {
  --primary: #222A35;
  --primary-dark: #17202a;
  --secondary: #868F98;
  --secondary-light: #adb7c2;
  --accent: #F5F5F2;
  --white: #fff;
  --error: #e94f4f;
  --success: #1ea97c;
  --shadow: 0 2px 16px rgba(34,42,53,0.08), 0 1.5px 6px rgba(134,143,152,0.10);
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.5px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(34,42,53,0.14);
  transform: translateY(-4px);
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(34,42,53,0.13);
}

/* Spacing for all sections/cards */
section:not(:last-child) { margin-bottom: 60px; }
.card:not(:last-child) { margin-right: 20px; }

/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(34,42,53,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
header img {
  max-height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: var(--accent);
  padding: 12px 26px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(34,42,53,0.04);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, transform 0.14s;
  display: inline-block;
  text-align: center;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px) scale(1.02);
}

/* Burger/hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 1201;
}
.mobile-menu-toggle:focus { background: var(--accent); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(34,42,53, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 28px 24px 28px;
  z-index: 2000;
  opacity: 1;
  pointer-events: none;
  transition: left 0.35s cubic-bezier(.62,.12,.4,.88), opacity 0.23s;
}
.mobile-menu.open {
  left: 0;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 38px;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.05);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.21s, color 0.18s;
  text-align: left;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Responsive Header/Nav */
@media (max-width: 1024px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 900px) {
  .header .container { gap: 10px; }
  .cta-btn { padding: 10px 15px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 44px 0 20px 0;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--accent);
  opacity: 0.9;
  padding: 5px 9px;
  border-radius: 5px;
  transition: background 0.18s, color 0.2s;
  font-size: 0.97em;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .text-section {
  color: var(--accent);
  font-size: 1em;
  margin-right: 18px;
}
footer .social-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
footer .social-links a img {
  width: 32px; height: 32px;
  transition: filter 0.2s;
}
footer .social-links a:hover img {
  filter: brightness(1.5);
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ========================
   COMMON ELEMENTS
   ======================== */
ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
  line-height: 1.7;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--primary);
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
section ul { list-style: disc inside; }
section ol { list-style: decimal inside; }
.text-section a,
.content-wrapper a[href^="mailto"] {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px dotted var(--secondary);
  transition: color 0.2s, border-color 0.2s;
}
.text-section a:hover, .content-wrapper a[href^="mailto"]:hover {
  color: var(--secondary);
  border-color: var(--primary);
}

/* ========== BANNERS, CTAs ========== */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: var(--secondary-light);
  border-radius: 9px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  justify-content: flex-start;
}
.cta-banner h3 {
  flex: 1 0 300px;
  color: var(--primary);
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ========== SEARCH BAR, SORT OPTIONS ========== */
.search-bar {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 16px;
}
.search-bar input {
  padding: 7px 14px;
  border: 1px solid var(--secondary-light);
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
  outline: none;
  width: 220px;
  transition: border 0.18s;
}
.search-bar input:focus {
  border: 1px solid var(--primary);
}
.search-bar button {
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: var(--accent);
  font-weight: 600;
  font-family: 'Montserrat';
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s;
}
.search-bar button:hover {
  background: var(--secondary);
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.sort-options label {
  font-weight: 500;
  color: var(--primary);
}
.sort-options select {
  padding: 8px 14px;
  border: 1px solid var(--secondary-light);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--primary);
  background: var(--white);
  font-family: 'Roboto';
  transition: border 0.2s;
}
.sort-options select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}

/* ========================
   RESPONSIVENESS & LAYOUT
   ======================== */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .card-container {
    gap: 12px;
  }
  .card {
    padding: 14px;
    margin-bottom: 14px;
    min-width: 160px;
  }
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 18px 8px;
  }
  .search-bar {
    flex-direction: column;
    gap: 10px;
  }
  .sort-options {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1rem; }
  .card, .testimonial-card {
    min-width: 100px;
    font-size: 0.98rem;
  }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  padding: 20px 8px 16px 8px;
  box-shadow: 0 -2px 14px rgba(34,42,53,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  transition: transform 0.3s, opacity 0.2s;
  gap: 14px;
}
.cookie-consent-banner[hidden] {
  display: none;
}
.cookie-consent-banner p {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}
.cookie-banner-btn {
  padding: 9px 22px;
  border-radius: 7px;
  border: none;
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--secondary);
  color: var(--white);
  transition: background 0.13s, color 0.13s, transform 0.15s;
  margin-bottom: 0;
}
.cookie-banner-btn.accept {
  background: var(--success);
  color: var(--white);
}
.cookie-banner-btn.reject {
  background: var(--error);
}
.cookie-banner-btn.settings {
  background: var(--primary-dark);
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.07);
  outline: none;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3010;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,42,53,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.18s;
}
.cookie-modal-overlay[hidden] { display: none; }
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  padding: 28px 32px 24px 32px;
  border-radius: 13px;
  box-shadow: 0 4px 32px rgba(34,42,53,0.23);
  min-width: 320px;
  max-width: 98vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.33s cubic-bezier(.34,1.56,.64,1) 1;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 700;
}
.cookie-modal-category {
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-weight: 600;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
}
.cookie-modal-category input[type=checkbox] {
  accent-color: var(--primary);
  width: 21px;
  height: 21px;
}
.cookie-modal-category input[disabled] { opacity: 0.7; }
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 10px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--secondary-light);
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    min-width: 90vw;
  }
}

/* =========================
   SIMPLE MICRO-ANIMATIONS
   ========================= */
button, .cta-btn, a, .card, .testimonial-card, .mobile-menu, .cookie-modal {
  transition: box-shadow 0.18s, background 0.19s, color 0.15s, transform 0.16s;
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* =========================
   MISC UTILITIES AND FIXES
   ========================= */
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 900px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline-block; }
}

/* =========================
   PRINT / REDUCE MOTION
   ========================= */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* End of style.css */
