/* ---------- CSS RESET & NORMALIZE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body, button, input, textarea, select { font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif; color: #1A213A; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding-left: 0; }
button, input, textarea { background: none; border: none; outline: none; font-size: 1rem; font-family: inherit; }
button, [type="button"], [type="submit"] { cursor: pointer; }
strong { font-weight: 600; }

/* ---------- FONT FAMILIES ---------- */
body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
  background: #F9F7F6;
  color: #1A213A;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  color: #1A213A;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p, li { font-size: 1rem; line-height: 1.7; }
@media (max-width: 480px) { h1 { font-size: 1.6rem; } h2 { font-size: 1.35rem; } }

/* ---------- PRIMARY COLORS ---------- */
:root {
  --primary: #1A213A;
  --secondary: #2B6CB0;
  --accent: #F1FAEE;
  --muted: #F9F7F6;
  --border: #E5E5E5;
  --shadow: 0 4px 22px -8px rgba(26,33,58,0.10);
  --shadow-middle: 0 2px 8px rgba(26,33,58,0.10);
  --lightgray: #ECECEC;
  --danger: #bb2929;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
  width: 96%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 10px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-middle);
  transition: box-shadow 0.2s;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-middle);
  padding: 24px 18px 20px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 30px -6px rgba(26,33,58,.12);
  transform: translateY(-2px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.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: 24px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F1FAEE;
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(26,33,58,0.06);
}
.testimonial-card p {
  color: #222232;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card strong {
  font-weight: 700;
  color: #1A213A;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.footer-main, .footer-nav, .footer-info {
  display: flex;
  align-items: center;
}
.footer-main { justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { gap: 24px; margin-left: 32px; }
.footer-info { justify-content: center; margin-top: 16px; }
@media (max-width: 768px) {
  .footer-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-left: 0; }
}

.featured-articles, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.featured-articles article, .article-list article {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  min-width: 220px;
  flex: 1 1 240px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.newsletter-form input{
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.newsletter-form input:focus{ border: 1.5px solid var(--secondary); }
.newsletter-form button {
  padding: 12px 28px;
  font-size: 1rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-middle);
}
.newsletter-form button:hover { background: #204475; }

/* ---------- NAVIGATION ---------- */
nav.main-nav {
  display: flex;
  gap: 24px;
}
nav.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  padding: 8px 14px;
  transition: background 0.18s;
}
nav.main-nav a:hover {
  background: var(--accent);
}

.cta-btn, .cta-btn.primary {
  display: inline-block;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  background: var(--secondary);
  padding: 12px 38px;
  border-radius: 8px;
  box-shadow: var(--shadow-middle);
  border: none;
  letter-spacing: 0.02em;
  margin-left: 24px;
  transition: background 0.22s, transform 0.14s, box-shadow 0.16s;
}
.cta-btn.primary, .cta-btn.primary:focus {
  background: var(--primary);
  color: #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #18386b;
  color: #fff;
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 1020px) {
  nav.main-nav { gap: 14px; }
  .cta-btn, .cta-btn.primary { padding: 10px 22px; font-size: 0.98rem; margin-left: 10px; }
}

/* ---------- HEADER ---------- */
header {
  background: #fff;
  box-shadow: 0 2px 16px -10px rgba(26,33,58,0.08);
  padding: 0;
  position: sticky;
  top: 0; z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
header .container > a img { height: 46px; }
@media (max-width: 768px) {
  header .container { flex-wrap: wrap; height: auto; padding: 4px 10px; }
  header .container > a img { height: 38px; }
}

/* ---------- MOBILE NAVIGATION ---------- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background 0.16s, box-shadow 0.14s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  box-shadow: 0 1px 8px rgba(43,108,176,0.09);
}
@media (max-width: 1020px) {
  nav.main-nav {
    display: none;
  }
  .cta-btn, .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 99999px rgba(26,33,58,0.08);
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(.68,.11,.31,.91);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 10px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.5rem;
  padding: 24px 18px 8px 10px;
  cursor: pointer;
  align-self: flex-end;
  z-index: 10001;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
  padding: 10px 20px 40px 30px;
}
.mobile-nav a {
  width: 100%;
  font-size: 1.18rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  color: var(--primary);
  padding: 15px 0;
  border-bottom: 1px solid #EEE;
  letter-spacing: 0.01em;
  transition: color 0.16s, background 0.14s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

/* ---------- BUTTONS AND INTERACTIONS ---------- */
button, .cta-btn, input[type="submit"], .newsletter-form button {
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, border 0.14s;
}
button:active, .cta-btn:active {
  transform: scale(0.96);
  box-shadow: none;
}

/* ---------- FORMS ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 16px 0 0 0;
}
form label { font-size: 1.08rem; font-weight: 500; color: var(--primary); }
form input, form textarea {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.18s;
}
form input:focus, form textarea:focus {
  border: 1.5px solid var(--secondary);
  background: var(--accent);
}
form textarea {
  min-height: 92px;
  resize: vertical;
}
form button[type=submit] {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 12px 32px;
  border-radius: 7px;
  border: none;
  align-self: flex-start;
  margin-top: 6px;
  box-shadow: var(--shadow-middle);
}
form button[type=submit]:hover, form button[type=submit]:focus {
  background: var(--primary);
}

/* ---------- SHOP CATEGORIES NAV ---------- */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.08rem;
}
.shop-categories a {
  color: var(--secondary);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.14s, border-bottom 0.14s;
}
.shop-categories a:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* ---------- TABLES, LISTS AND ICONS ---------- */
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0.4em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 11px;
  vertical-align: middle;
  margin-left: -18px;
}
ul li img {
  margin-right: 12px;
  margin-bottom: -4px;
  width: 30px; height: 30px;
  display: inline-block;
  vertical-align: middle;
  background: #eee;
  border-radius: 4px;
  object-fit: contain;
}
ol {
  counter-reset: num;
  margin-left: 1.2em;
}
ol li {
  counter-increment: num;
  margin-left: 1.2em;
  margin-bottom: 8px;
  padding-left: 0;
}
ol li::before {
  content: counter(num) ". ";
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  margin-right: 6px;
}

/* ---------- MISC TYPOGRAPHY ---------- */
.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 600px) {
  .text-section {
    font-size: 0.96rem;
  }
}

/* ---------- MEDIA QUERIES: RESPONSIVENESS ---------- */
@media (max-width: 1020px) {
  .container { width: 99%; max-width: 94vw; }
  .section { padding: 22px 6px; }
}
@media (max-width: 900px) {
  .card-container, .content-grid, .featured-articles, .article-list {
    flex-direction: column;
    gap: 18px;
  }
  .card { min-width: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 14px;
  }
  .section {
    margin-bottom: 32px;
    padding: 20px 4px;
  }
  .partner-logos { gap: 10px; }
}

/* INCREASE TAP TARGETS & SPACING FOR MOBILE */
@media (pointer: coarse) {
  .mobile-nav a { padding: 26px 0 18px 0; font-size: 1.19rem; }
  button, .cta-btn, .cta-btn.primary { min-height: 44px; }
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 12000;
  background: transparent;
  pointer-events: none;
}
.cookie-banner-inner {
  background: #fff;
  color: #1A213A;
  box-shadow: 0 -2px 18px -5px rgba(26,33,58,0.09);
  border-top: 4px solid var(--secondary);
  border-radius: 17px 17px 0 0;
  min-width: 0;
  max-width: 455px;
  width: 92vw;
  padding: 24px 26px;
  margin: 0 0 16px 0;
  font-size: 1.06rem;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.36s, transform 0.3s cubic-bezier(.68,.11,.31,.91);
}
.cookie-banner.hide .cookie-banner-inner {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  padding: 11px 22px;
  font-size: 1rem;
  transition: background 0.15s, transform 0.14s;
}
.cookie-btn.accept { background: var(--primary); }
.cookie-btn.reject { background: var(--danger); }
.cookie-btn.settings { background: var(--accent); color: var(--primary); border: 1px solid var(--secondary); }
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.93);
  transform: translateY(-2px) scale(1.01);
}

/* ---------- COOKIE PREFERENCES MODAL ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(26,33,58, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 38px 32px;
  max-width: 420px;
  min-width: 270px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.06rem;
  animation: showModal 0.38s cubic-bezier(.68,.11,.31,.91);
}
@keyframes showModal {
  from { opacity:0; transform:scale(0.92); }
  to { opacity:1; transform:scale(1); }
}
.cookie-modal-close {
  align-self: flex-end;
  background: none;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  margin: -22px -14px 0 0;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 21px;
}
.cookie-category .switch input { display: none; }
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--muted);
  border-radius: 12px;
  transition: background 0.2s;
}
.cookie-category .switch input:checked + .slider {
  background: var(--secondary);
}
.cookie-category .slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(15px);
}
.cookie-category .slider {
  border: 1px solid var(--border);
}

/* ---------- VISUAL DETAILS: SHADOWS, RADIUS, SPACING ---------- */
.card, .testimonial-card, .featured-articles article, .article-list article {
  box-shadow: var(--shadow-middle);
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}
@media (max-width: 480px) {
  .card, .testimonial-card, .featured-articles article, .article-list article { padding: 12px 6px; }
}

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.no-margin { margin: 0 !important; }

/* ---------- ACCESSIBILITY ---------- */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ---------- Z-INDEX FOR OVERLAYS ---------- */
header { z-index: 90; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 12000; }
.cookie-modal { z-index: 13000; }

/* ---------- BRAND PERSONALITY TYPOGRAPHY ---------- */
blockquote, .testimonial-card p {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #21201a;
  font-size: 1.11rem;
  font-style: italic;
}

/* ---------- CLASSIC ACCENTS ---------- */
hr {
  border: 0;
  border-top: 1.5px solid var(--border);
  margin: 32px 0;
}

/* ---------- ELEGANT CARD HOVER ---------- */
.card:hover, .featured-articles article:hover, .article-list article:hover {
  box-shadow: 0 8px 30px -6px rgba(43,108,176,.13);
  border-color: var(--secondary);
  z-index: 2;
}

/* ========== END CSS ========== */