/* 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,
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; background: #F7FAFC; color: #1A232E; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; border: none; outline: none; background: none; }

:root {
  --color-primary: #145063;
  --color-secondary: #F7EEDD;
  --color-accent: #FAC35E;
  --color-bg: #F7FAFC;
  --color-link: #145063;
  --color-link-hover: #0f3845;
  --color-text: #19222e;
  --color-muted: #6a7886;
  --color-card-bg: #fff;
  --color-shadow: rgba(20, 80, 99, 0.08);
  --color-border: #ebedf0;
  --color-success: #2ec178;
  --color-danger: #dc3545;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body); font-size: 16px; background: var(--color-bg); color: var(--color-text);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TYPOGRAPHY */
h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--color-primary); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-primary); line-height: 1.2; margin-bottom: 8px; }
h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--color-primary); line-height: 1.3; margin-bottom: 6px; }
h4, h5, h6 { font-family: var(--font-display); color: var(--color-primary); }
p, li, span, label, input, select, textarea { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--color-text); }
p.subheadline { font-size: 1.25rem; color: var(--color-muted); font-weight: 400; }
strong { font-weight: 700; }
em, i { font-style: italic; }

/* Brand/section structure spacing - Mandatory Patterns */
.section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--color-card-bg); box-shadow: 0 3px 16px var(--color-shadow); border-radius: 14px; padding: 28px 24px; margin-bottom: 20px; position: relative; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 28px var(--color-shadow); }
.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: flex-start; gap: 20px; padding: 20px; margin-bottom: 24px; background: #F7F9FB; border-radius: 12px; box-shadow: 0 2px 10px var(--color-shadow); border: 1px solid var(--color-border); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: var(--color-card-bg); border-radius: 12px; box-shadow: 0 2px 10px var(--color-shadow); padding: 24px 20px; flex: 1 1 min(260px, 100%); min-width: 0; transition: box-shadow .2s; }
.feature-item:hover { box-shadow: 0 6px 28px var(--color-shadow); }

/* HEADER/NAV */
header {
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  min-height: 72px;
}
.logo img { height: 48px; width: auto; }
nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1.04rem;
  opacity: .92;
  transition: color .18s;
  padding: 5px 10px;
  border-radius: 4px;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  background: #14506310;
}
.button-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  border: none;
  margin-left: 12px;
  min-width: 150px;
  text-align: center;
  letter-spacing: .01em;
  outline: none;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 22px var(--color-shadow);
}
.button-secondary {
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 24px;
  border: 1px solid var(--color-primary);
  margin-right: 10px;
  margin-bottom: 12px;
  transition: background .18s, color .18s, border .18s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.button-link {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.08rem;
  background: none;
  transition: color .18s;
  padding: 0;
  position: relative;
  text-decoration: underline;
  margin-top: 4px;
}
.button-link:hover, .button-link:focus {
  color: var(--color-accent);
  text-decoration: underline dotted;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #F7EEDD 0%, #F7FAFC 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero .subheadline {
  font-size: 1.23rem;
  max-width: 700px;
  margin-bottom: 20px;
}

/* FEATURES/GRID GENERICS */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid {
  width: 100%;
  gap: 24px;
}

/* ABOUT PREVIEW & ARTICLE PREVIEW */
.about-preview, .article-preview {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 32px;
}
.about-preview p, .article-preview p, .article-preview ul, .about-preview ul { color: var(--color-text); font-size: 1rem; }

/* CTA SECTION */
.cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 40px 0 48px;
  min-height: 0;
}
.cta h2 {
  color: #fff;
}
.cta .button-primary {
  margin-top: 18px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cta .button-primary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta p { color: #e9f3f9; }

/* ARTICLE LIST / SUMMARIES */
.article-list .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.article-summary-list { margin-bottom: 20px; }
.article-summary-list li {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 18px 16px;
  margin-bottom: 18px;
  transition: box-shadow .15s;
}
.article-summary-list li:hover { box-shadow: 0 4px 14px var(--color-shadow); }

/* TESTIMONIAL CARDS */
.testimonials {
  background: #F7F9FB;
  border-radius: 16px;
  margin-bottom: 32px;
}
.testimonial-card {
  /* see base above */
  color: #19222e;
  min-width: 220px;
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #19222e;
}
.testimonial-card span {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1rem;
}
.testimonial-card span:last-child {
  color: var(--color-accent);
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 1.15rem;
}
/* Ensure strong contrast for testimonials on mobile/dark backgrounds */
@media (max-width: 580px) {
  .testimonial-card {
    background: #fff;
    color: #19222e;
    border-radius: 9px;
  }
}

/* FOOTER */
footer {
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  font-size: .98rem;
  color: #294150;
  padding: 0 0 36px;
  margin-top: 56px;
}
footer .container { padding-top: 32px; padding-bottom: 0; }
footer .content-wrapper {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 1rem;
}
footer nav a {
  color: #205778;
  opacity: .92;
  font-family: var(--font-display);
  padding: 2px 7px;
  border-radius: 4px;
  transition: color .14s, background .16s;
}
footer nav a:hover, footer nav a:focus { color: var(--color-accent); }
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
footer .contact-info p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #294150;
  font-size: .98rem;
  margin-bottom: 2px;
}
footer .contact-info img {
  width: 20px; height: 20px;
}
footer .social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
footer .social-links a img {
  width: 26px; height: 26px;
  filter: grayscale(.28) brightness(.95);
  transition: filter .2s;
}
footer .social-links a:hover img { filter: none; }

/* LEGAL TEXT (LEGAL SECTIONS, THANK YOU) */
.legal, .thank-you {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 36px;
  padding: 40px 0;
}
.legal h1, .thank-you h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* SPECIAL CLASSES FOR ARTICLE PAGES */
.category-navigation {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font-display);
}
.category-navigation a {
  color: var(--color-primary);
  transition: color .14s;
  padding: 4px 9px;
  border-radius: 10px;
}
.category-navigation a:hover,
.category-navigation a:focus {
  color: var(--color-accent);
  background: #ececec;
}
.infographics, .checklist, .short-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  padding-left: 3px;
  color: var(--color-primary);
  font-size: 1.03rem;
  align-items: center;
}
.infographics span, .checklist p, .short-guides p {
  display: flex; align-items: center; gap: 9px;
}

/* PAGINATION */
.pagination {
  display: flex; align-items: center; justify-content: flex-end; min-height: 32px; color: var(--color-muted);
  font-size: .97rem;
}

/* GENERIC CARDS */
.card {
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
}

/* SECTION SPACING OVERRIDES ON SPECIAL PAGES */
.about, .values, .contact-section, .methods {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 32px;
  padding: 40px 0;
}

/* THANK YOU PAGE */
.thank-you ul {
  margin-bottom: 22px;
}
.thank-you ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 9px;
}
.thank-you ul li:before {
  content: '\2713'; /* check mark */
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1.1em;
}

/* CONTACT SECTION */
.contact-details, .map, .text-section {
  margin-bottom: 18px;
}
.contact-details p, .map p, .text-section p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details img, .map img { width: 24px; height: 24px; }

/* CATEGORY/ARTICLE AREAS */
.categories ul {
  margin-top: 5px;
}
.categories li {
  margin-bottom: 9px;
  color: var(--color-text);
}

/* MOBILE MENU BURGER */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  line-height: 1;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  margin-left: 12px;
  border-radius: 8px;
  transition: background .18s;
  z-index: 101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #ececec; }
/* MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 80, 99, 0.93);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.75,0,.24,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  padding: 16px 18px 8px;
  cursor: pointer;
  align-self: flex-end;
  margin: 2px 4px 22px 0;
  z-index: 10001;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { background: #26577c33; }
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  max-width: 100vw;
  align-items: flex-start;
  padding-left: 34px;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  opacity: .98;
  padding: 10px 0;
  border-radius: 6px;
  transition: background .14s, color .16s;
  min-width: 200px;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  opacity: 1;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -4px 30px rgba(32,65,100,0.12);
  z-index: 9100;
  padding: 26px 16px 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  transition: transform .33s cubic-bezier(0,1,.8,1), opacity .25s;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-text {
  color: var(--color-text);
  font-size: 1.06rem;
  flex: 1 1 220px;
  margin-bottom: 9px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display); font-size: 1rem; padding: 10px 24px; border-radius: 20px; cursor: pointer; border: none; transition: background .16s, color .17s; min-width: 140px;
}
.cookie-accept {
  background: var(--color-success); color: #fff; font-weight: 600;
}
.cookie-reject {
  background: var(--color-danger); color: #fff; font-weight: 400;
}
.cookie-settings {
  background: var(--color-accent); color: var(--color-primary); font-weight: 500;
}
.cookie-accept:hover, .cookie-reject:hover, .cookie-settings:hover {
  opacity: .9;
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(20, 80, 99, 0.48); z-index: 9500;
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .21s;
}
.cookie-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.cookie-modal {
  background: #fff; border-radius: 18px; box-shadow: 0 7px 48px rgba(20,80,99,0.20);
  padding: 35px 26px;
  min-width: 320px; max-width: 96vw;
  max-height: 88vh;
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
  z-index: 9550;
  animation: fadeInModal .33s;
}
@keyframes fadeInModal {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-modal-section {
  margin-bottom: 18px;
}
.cookie-category {
  display: flex; align-items: center; gap: 11px; margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 20px; height: 20px;
}
.cookie-essentials {
  color: var(--color-muted); font-size: .96rem; font-style: italic;
}
.cookie-modal-footer {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
  transition: background .17s, color .18s;
}
.cookie-modal button.cookie-cancel {
  background: var(--color-muted);
  color: #fff;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  opacity: .92;
}

/* RESPONSIVENESS */
@media (max-width: 1080px) {
  .container {
    max-width: 92vw;
    padding: 0 10px;
  }
  .hero {
    padding: 34px 0;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  .hero, .cta, .about-preview, .values, .features, .section, .contact-section, .thank-you, .legal, .testimonials, .article-preview {
    padding: 28px 8px;
  }
  .container { padding: 0 6px; }
  .feature-item { padding: 18px 12px; }
  .testimonial-card { padding: 13px; font-size: 1rem; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 11px;
    min-height: 62px;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .button-primary { min-width: 110px; font-size: .97rem; padding: 10px 14px; }
  .section { margin-bottom: 36px; padding: 30px 8px; }
}
@media (max-width: 620px) {
  .hero h1, .section h2, .cta h2, .legal h1, .thank-you h1 {
    font-size: 1.45rem;
  }
  .feature-item, .testimonial-card {
    min-width: 0;
    font-size: .97rem;
  }
}
@media (max-width: 480px) {
  html, body { font-size: 15px; }
  .hero { min-height: 0; padding: 16px 0; }
  .footer { padding-bottom: 18px; }
  .cta, .about-preview, .values, .features, .section, .contact-section, .thank-you, .legal, .testimonials, .article-preview {
    padding: 16px 3px;
  }
}

/* ACCESSIBILITY */
:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
[tabindex]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }

/* TRANSITIONS & MICRO-INTERACTIONS */
.card, .feature-item, .button-primary, .button-secondary, .button-link, .testimonial-card, .mobile-menu, .mobile-menu-close, .mobile-menu-toggle, .cookie-banner, .cookie-banner button, .cookie-modal, .cookie-modal button {
  transition: box-shadow .17s, background .16s, color .14s, transform .19s, opacity .12s;
}
a, button {
  transition: color .18s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}

/* PRINT SUPPORT */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  .container { max-width: 100vw !important; padding: 0 !important; }
}
