/* --- 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;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F6FAFB;
  color: #243049;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: #29A1B1; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #16335A; text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16335A;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

body, p, li, span, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  color: #304265;
  font-size: 1rem;
}
blockquote, cite {
  font-style: italic;
}

/* --- PASTEL COLORS PALETTE --- */
:root {
  --primary: #16335A; /* Brand Primary */
  --secondary: #29A1B1; /* Brand Secondary */
  --accent: #F5F6F7; /* Brand Accent */
  --pastel-blue: #D7EBF6;
  --pastel-cyan: #BFE5EA;
  --pastel-lavender: #F4E9FB;
  --pastel-peach: #FFE8DB;
  --pastel-mint: #CCF2E6;
  --pastel-yellow: #FFF9E3;
  --shadow: rgba(22,51,90,0.06);
  --shadow-strong: rgba(22,51,90,0.11);
  --white: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section { padding: 32px 8px; margin-bottom: 38px; }
}
@media (max-width: 600px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .section { padding: 24px 2px; margin-bottom: 28px; }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  padding: 14px 0;
  background: var(--pastel-blue);
  box-shadow: 0 2px 16px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
header .logo { display: flex; align-items: center; gap: 10px; }
header .logo img { height: 38px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-body);
  color: #2C507E;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background .2s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-lavender);
  color: var(--primary);
  outline: none;
}
.cta-btn {
  background: linear-gradient(90deg, #BFE5EA 0%, #F4E9FB 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 24px;
  border: 2px solid var(--secondary);
  font-size: 1.08rem;
  box-shadow: 0 2px 6px var(--shadow-strong);
  transition: background 0.13s, color 0.13s, border 0.13s, box-shadow .22s;
  margin-left: 16px;
  letter-spacing: 0.02em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

/* Mobile burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: color .12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
}

@media (max-width: 900px) {
  .main-nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(191,229,234,0.96);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.78,.11,.17,.99);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--primary);
  padding: 23px 36px 10px 0;
  cursor: pointer;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: 32px;
  padding-left: 38px;
  padding-right: 25px;
}
.mobile-nav a {
  display: block;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  background: none;
  padding: 10px 0;
  border-radius: 5px;
  width: 100%;
  transition: background .16s, color .12s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: var(--pastel-peach);
  outline: none;
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- MAIN & BASE STYLES --- */
main { min-height: 60vh; }
.text-section { align-items: center; text-align: center; }
.text-section h1, .text-section h2 { margin-bottom: 16px; }
.text-section p { margin-bottom: 22px; font-size: 1.12rem; }
.text-section .cta-btn { margin-top: 20px; }

/* --- FLEXBOX CONTENT PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px var(--shadow-strong);
  transform: translateY(-2px) scale(1.012);
}
.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) {
  .content-grid,
  .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;
  background: var(--pastel-mint);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* --- LISTS & BLOCKQUOTES --- */
ul, ol {
  padding-left: 0;
}
.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 15px;
  margin-top: 0px;
  padding-left: 0;
  list-style: none;
  gap: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper ul li, .content-wrapper ol li {
  padding-left: 0px;
  font-size: 1.04rem;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.content-wrapper ul li img {
  width: 24px; height: 24px; flex-shrink: 0;
}
blockquote {
  background: var(--pastel-lavender);
  padding: 20px 24px 16px 24px;
  border-radius: 16px;
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 0;
  margin-top: 6px;
  line-height: 1.56;    
}
cite {
  display: block;
  font-style: normal;
  margin-top: 8px;
  color: #6192A7;
  font-weight: 500;
  font-size: 1rem;
}

/* --- NEWS/ANALYSIS/FEATURED LIST SECTIONS --- */
.news-teaser-list h3,
.news-feed h3,
.quick-links h3,
.filters h3,
.trend-analyses h3,
.methodology h3,
.author-highlights h3,
.expert-profiles h3 {
  color: var(--secondary);
  font-size: 1.13rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.news-teaser-list ul,
.news-feed ul,
.analysis-list ul,
.quick-links ul,
.filters ul,
.author-highlights ul,
.expert-profiles ul {
  margin-bottom: 12px;
  gap: 10px;
}
.news-teaser-list ul li,
.news-feed ul li,
.analysis-list ul li,
.quick-links ul li,
.filters ul li,
.author-highlights ul li,
.expert-profiles ul li {
  background: var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px var(--shadow);
}
.quick-links ul li a, .filters ul li a {
  font-size: 1rem;
  color: var(--secondary);
  padding: 2px 4px;
}
.quick-links ul li a:hover, .filters ul li a:hover {
  background: var(--pastel-mint);
  border-radius: 8px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-yellow);
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 var(--shadow-strong);
  margin-bottom: 20px;
  margin-top: 10px;
  min-width: 0;
}
.testimonial-card p {
  color: #22385D;
  font-size: 1.13rem;
  font-style: italic;
  text-align: center;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #F4E9FB 0%, #CCF2E6 100%);
  padding: 38px 0 12px 0;
  box-shadow: 0 -2px 13px var(--shadow-strong);
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .14s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus { background: var(--pastel-peach); color: var(--secondary); }
.footer-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  color: #305D7E;
}
.footer-contact p { display: flex; align-items: center; gap: 7px; margin-bottom: 0; }
.footer-contact img { width: 18px; height: 18px; }
.footer-copy {
  color: #2C507E;
  font-size: 0.93rem;
  text-align: center;
  margin-top: 8px;
}
@media (max-width: 650px) {
  .footer-contact { gap: 12px; }
  footer { padding: 28px 0 8px 0; }
}

/* --- SPECIAL SECTIONS & ACCENTS --- */
.brand-contact-info {
  background: var(--pastel-blue);
  border-radius: 14px;
  box-shadow: 0 1px 7px var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-contact-info h2 { color: var(--secondary); font-size: 1.18rem; }
.faq-preview {
  background: var(--pastel-peach);
  border-radius: 14px;
  padding: 13px 19px;
  font-size: 1.04rem;
  margin-top: 12px;
  box-shadow: 0 1.5px 5px var(--shadow);
}
.faq-preview a { color: var(--primary); font-weight: 500; }
.faq-preview a:hover { color: var(--secondary); }

.featured-quote {
  background: var(--pastel-lavender);
  border-radius: 13px;
  padding: 14px 18px 10px 24px;
  margin-top: 18px;
  box-shadow: 0 1px 7px var(--shadow);
  font-style: italic;
}
.featured-quote blockquote {
  margin-bottom: 8px;
  background: none;
  padding: 0;
  color: var(--primary);
}
.featured-quote cite {
  color: #598AC8;
  font-family: var(--font-body);
}

/* --- BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  font-family: var(--font-display);
  border: none;
  outline: none;
}
button:focus:not(:active), .cta-btn:focus:not(:active) {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- FORMS (if needed future) --- */
input, textarea, select {
  font-family: var(--font-body);
  border-radius: 7px;
  border: 1px solid #CED8DE;
  padding: 11px 12px;
  background: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #16335A;
  max-width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  background: #fff;
  outline: none;
}

/* --- UTILITIES --- */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-16px); }
  100% { opacity: 1; transform: none; }
}
.section, .content-wrapper, .card, .testimonial-card, .cta-btn {
  animation: fadeInUp 0.72s cubic-bezier(.31,.73,.62,.9) both;
}
.mobile-menu.open { animation: fadeInDown .45s cubic-bezier(.33,.85,.44,1); }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #FFF9E3 55%, #BFE5EA 100%);
  color: #263455;
  box-shadow: 0 -6px 30px 0 var(--shadow-strong);
  z-index: 2200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 22px 10px;
  font-size: 1rem;
  gap: 28px;
  animation: fadeInUp .88s cubic-bezier(.47,.89,.49,1.01);
}
.cookie-banner .cookie-text {
  flex: 1 1 340px;
  max-width: 540px;
  font-size: 1.04rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--secondary);
  color: var(--white);
  border-radius: 20px;
  border: none;
  padding: 8px 22px;
  margin: 0 2px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 1px 7px var(--shadow);
  transition: background 0.16s, color 0.12s, box-shadow .18s;
}
.cookie-banner button.cookie-settings-btn {
  background: var(--pastel-mint);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 13px var(--shadow-strong);
}
.cookie-banner button.cookie-settings-btn:hover, 
.cookie-banner button.cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.98rem;
    padding: 18px 5px;
  }
  .cookie-banner .cookie-text { max-width: 98vw; }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  height: 100vh;
  background: rgba(30, 67, 120, 0.18);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  animation: fadeInDown .36s cubic-bezier(.32,.91,.46,.99);
}
.cookie-modal.open { display: flex; }
.cookie-modal-dialog {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 30px 0 var(--shadow-strong);
  min-width: 300px;
  max-width: 96vw;
  width: 410px;
  padding: 32px 25px 22px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp .51s;
}
.cookie-modal-dialog h3 {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal-dialog label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 1.06rem;
  color: #263455;
}
.cookie-modal-dialog .cookie-cat-desc {
  font-size: 0.98rem;
  color: #75848a;
  margin-bottom: 11px;
  margin-left: 34px;
}
.cookie-modal-dialog input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-modal-dialog .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-dialog button {
  padding: 9px 21px;
  border-radius: 16px;
  border: none;
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 1px 8px var(--shadow);
}
.cookie-modal-dialog button.cookie-modal-cancel {
  background: var(--pastel-lavender);
  color: var(--primary);
}
.cookie-modal-dialog button:hover, .cookie-modal-dialog button:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal-dialog button.cookie-modal-cancel:hover, .cookie-modal-dialog button.cookie-modal-cancel:focus {
  background: var(--secondary);
  color: var(--white);
}

/* --- RESPONSIVE ADJUSTMENTS & WHITE SPACE --- */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.19rem; }
  .testimonial-card {
    padding: 13px 6px;
    font-size: 1.01rem;
  }
  .footer-nav { gap: 13px; }
}
/* Consistent card/section spacing */
.card, .testimonial-card, .content-wrapper, .brand-contact-info, .faq-preview {
  margin-bottom: 20px;
}
.section, .card, .testimonial-card {
  margin-top: 0;
}

/* Ensure container and wrappers never overlap */
.content-wrapper:not(:last-child) { margin-bottom: 32px; }

/* --- MICRO-INTERACTIONS --- */
.card, .testimonial-card, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: box-shadow 0.24s, background 0.15s, color 0.2s, border 0.13s, transform 0.13s;
}
.card:active, .testimonial-card:active {
  box-shadow: 0 2px 7px var(--shadow-strong);
  transform: scale(.98);
}
.cta-btn:active {
  background: var(--secondary);
  color: var(--pastel-yellow);
}

/* --- SCROLLBAR PASTEL STYLING --- */
::-webkit-scrollbar {
  width: 12px; background: var(--pastel-blue);
}
::-webkit-scrollbar-thumb { background: var(--pastel-lavender); border-radius: 6px; }

/* --- Z-INDEX FIX --- */
header { z-index: 10; }
.mobile-menu { z-index: 1000; }
.cookie-banner, .cookie-modal { z-index: 2200; }

/* --- PASTEL ACCENT BACKGROUND FOR MAIN CTA --- */
.text-section {
  background: linear-gradient(100deg, #FFF9E3 40%, #F4E9FB 100%);
  border-radius: 16px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 32px 14px 36px 14px;
}

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

/* --- PRINT SAFE --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  main { padding: 0 !important; }
}
