/* ==== 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: #E9ECE6;
  color: #2B4958;
  font-family: 'Open Sans', Arial, sans-serif;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { padding-left: 32px; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }

/* ==== VARIABLES ==== */
:root {
  --primary: #2B4958;
  --secondary: #E9ECE6;
  --accent: #A6C9BE;
  --electric-orange: #F95738;
  --electric-blue: #2389C7;
  --electric-yellow: #FFD500;
  --vibrant-magenta: #FC4A9A;
  --vibrant-green: #57F287;
  --border-radius: 16px;
  --card-radius: 18px;
  --shadow-lg: 0 8px 32px 0 rgba(38,93,135,0.11);
  --shadow-md: 0 3px 12px 0 rgba(38,93,135,0.15);
  --shadow-sm: 0 1.5px 3px 0 rgba(38,93,135,0.09);
  --font-display: 'Montserrat', Impact, Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: var(--electric-orange);
}
h4, h5, h6 {
  font-size: 1.10rem;
}
p, li, blockquote {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: #22313A;
  margin-bottom: 14px;
}
blockquote {
  font-style: italic;
  background: var(--vibrant-green);
  padding: 20px 28px;
  border-left: 5px solid var(--accent);
  border-radius: var(--border-radius);
  margin: 20px 0;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
ul {
  margin-bottom: 20px;
}

/* ==== LAYOUT HELPERS ==== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}

/* ==== FLEXBOX LAYOUTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
}
.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(--vibrant-green);
  color: #212B35;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ==== HERO & CTA SECTIONS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}
section:last-child {
  margin-bottom: 0;
}

/* Hero – high energy, electric colors, bold text */
section .btn-primary {
  margin-top: 18px;
}

/* ==== BUTTONS ==== */
.btn-primary,
.btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.05em;
  border: none;
}
.btn-primary {
  background: var(--electric-orange);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--electric-blue);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px 0 rgba(35,137,199,0.13);
}
.btn-secondary {
  background: var(--electric-blue);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--electric-orange);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}

/* ==== NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38,93,135,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 74px;
  gap: 0;
}
header a img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  color: var(--electric-blue);
  transition: color 0.16s;
}
nav a.btn-primary {
  margin-left: 20px;
  color: #fff;
}
nav a:hover, nav a:focus {
  color: var(--electric-orange);
}

/* ======= MOBILE NAV MENU ======= */
.mobile-menu-toggle {
  display: none;
  background: var(--electric-blue);
  color: #fff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.mobile-menu-toggle:hover {
  background: var(--electric-orange);
}
.mobile-menu {
  position: fixed;
  z-index: 1099;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(43,73,88,0.99);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.74,0.11,0.37,0.99);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--electric-orange);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  display: flex;
  margin: 18px 22px 0 0;
  box-shadow: var(--shadow-md);
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: var(--electric-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--electric-orange);
  color: #fff;
}

/* ==== SECTIONS ==== */
.feature-grid, .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature {
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 34px 22px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.feature img {
  height: 42px;
  width: 42px;
  margin-bottom: 14px;
}
.feature:hover {
  box-shadow: 0 8px 24px 0 rgba(249,87,56,0.19);
  transform: translateY(-3px) scale(1.03);
}

/* ==== ARTICLES ==== */
.articles-grid, .articles-list, .articles-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-teaser {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.14s;
  flex: 1 1 280px;
  min-width: 220px;
  border-left: 6px solid var(--electric-blue);
  position: relative;
}
.article-teaser h3 {
  color: var(--vibrant-magenta);
}
.article-teaser a {
  color: var(--electric-blue);
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 12px;
  align-self: flex-end;
  transition: color 0.14s;
}
.article-teaser a:hover, .article-teaser a:focus {
  color: var(--electric-orange);
  text-decoration: underline;
}
.article-teaser:hover {
  box-shadow: 0 10px 34px 0 rgba(35,137,199,0.22);
  transform: translateY(-4px) scale(1.035);
}

.categories-filter {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 18px;
}
.categories-filter a {
  background: var(--vibrant-magenta);
  color: #fff;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--electric-blue);
  color: #fff;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--electric-yellow);
  color: #1B2427;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-style: italic;
  position: relative;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #644c00;
  font-style: normal;
  margin-top: 14px;
}

/* ==== ABOUT & CONTACT ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.address-map {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 1rem;
  color: var(--primary);
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  margin-top: 10px;
  margin-bottom: 18px;
}
.contact-info .text-section {
  min-width: 180px;
}
@media (max-width: 770px) {
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==== FOOTER ==== */
footer {
  margin-top: 60px;
  background: var(--primary);
  color: #fff;
  padding-top: 44px;
  padding-bottom: 16px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-branding img {
  height: 38px;
}
.footer-main-nav, .footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-main-nav a, .footer-menu a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  opacity: 0.90;
  transition: color 0.13s, opacity 0.13s;
  font-size: 1rem;
}
.footer-main-nav a:hover, .footer-menu a:hover, .footer-main-nav a:focus, .footer-menu a:focus {
  color: var(--electric-yellow);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.98rem;
  align-items: flex-start;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 18px; height: 18px;
}
.footer-legal {
  margin-top: 26px;
  font-size: 0.93rem;
  color: #fff;
  opacity: 0.77;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  .feature-grid, .features-grid, .articles-grid, .articles-list, .articles-preview {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .features-grid, .articles-grid, .articles-list, .articles-preview {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .article-teaser {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  section, .section {
    padding: 24px 6px;
    margin-bottom: 34px;
  }
  .footer-main-nav, .footer-menu, .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 660px) {
  .feature, .feature-item, .article-teaser {
    padding: 18px 14px;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    align-items: center;
    min-height: 60px;
    gap: 0;
    padding: 0 5px !important;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  section, .section {
    padding: 12px 2px;
    margin-bottom: 24px;
    border-radius: 8px;
  }
  .testimonial-card {
    padding: 13px 9px;
  }
  .categories-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .categories-filter a {
  transition: background 0.18s, color 0.18s, transform 0.13s, box-shadow 0.13s;
}
.testimonial-card {
  transition: box-shadow 0.12s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 28px rgba(255,213,0,0.19);
  transform: translateY(-3px) scale(1.03);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1999;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 24px rgba(38,93,135,0.09);
  border-radius: 12px 12px 0 0;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100vw;
  max-width: 100vw;
  animation: slideUp 0.4s cubic-bezier(0.37,0.93,0.55,0.99);
}
@keyframes slideUp {
  from { transform: translateY(100%);} to { transform: translateY(0); }
}
.cookie-banner .cookie-message {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner .cookie-btn {
  padding: 9px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0;
  border: none;
  transition: background 0.16s, color 0.16s, transform 0.18s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--electric-blue);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover {
  background: var(--vibrant-green);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--electric-orange);
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover {
  background: var(--electric-blue);
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: var(--vibrant-magenta);
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #fff;
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(43,73,88,0.86);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 420px;
  width: 95vw;
  padding: 32px 24px 20px 24px;
  box-shadow: 0 20px 60px 0 rgba(38,93,135,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popIn 0.34s cubic-bezier(0.23,0.99,0.42,0.98);
}
@keyframes popIn {
  from { transform: scale(0.85) translateY(40px); opacity:0;} 
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.4rem;
  color: var(--electric-blue);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--electric-blue);
  width: 18px; height: 18px;
}
.cookie-badge {
  font-size: 0.90rem;
  color: var(--electric-orange);
  background: #fff2e5;
  border-radius: 10px;
  padding: 3px 10px;
  margin-left: 10px;
  font-weight: 700;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  padding: 9px 24px;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 12px 4px 8px 4px;
    border-radius: 13px;
  }
  .cookie-category label {
    font-size: 0.98rem;
  }
}

/* ============================= */
/* ==== MISC VISUAL EFFECTS ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #dae6ef;
  border-radius: 50px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--electric-blue);
}

/* ==== Utilities ==== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-16 { margin-top: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }

/* For visually-hidden accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap !important;
  border: 0 !important;
}
