/* --- 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1D2936;
  background: #F3F6F8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #215477;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #123147;
}
ul, ol {
  margin: 16px 0 16px 28px;
}
li {
  margin-bottom: 8px;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #215477;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1.0625rem;
  margin-bottom: 16px;
  color: #304050;
}
strong, b {
  font-weight: 700;
}

/* --- UTILITY & LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(33, 84, 119, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(33, 84, 119, 0.12);
  padding: 24px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 260px;
}
.card:last-child {
  margin-bottom: 0;
}

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

/***** BRAND COLORS *****/
:root {
  --color-primary: #215477;
  --color-secondary: #EFD165;
  --color-accent: #F3F6F8;
  --color-dark: #1D2936;
  --color-gray: #E8EDF1;
  --color-white: #fff;
  --color-shadow: rgba(33, 84, 119, 0.07);
  --radius: 12px;
}

/* --- BUTTONS & CTA --- */
.cta-btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin-top: 16px;
}
.cta-btn:hover,
button:hover,
input[type="submit"]:hover,
.cta-btn:focus {
  background: #174365;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(33, 84, 119, 0.13);
  outline: none;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
  box-shadow: 0 2px 6px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: #1D2936;
}
header img {
  height: 42px;
  width: auto;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #123147;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33, 84, 119, 0.97);
  z-index: 100;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.36,0.66,0.04,1), opacity 0.25s;
  transform: translateX(100%);
  opacity: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  z-index: 103;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
  transform: scale(1.08);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 40px 0 0 40px;
}
.mobile-menu nav.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.mobile-menu nav.mobile-nav a:hover,
.mobile-menu nav.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #123147;
}

/* --- MAIN SECTIONS --- */
main {
  min-height: 60vh;
  margin-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #F3F6F8;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px var(--color-shadow);
  flex: 1 1 260px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px rgba(33,84,119,0.12);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 44px;
  height: 44px;
}

.cta-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  background: var(--color-primary);
  border-radius: 16px;
  padding: 36px 18px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(33,84,119,0.13);
}
.cta-block h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 10px;
}
.cta-block .cta-btn {
  background: var(--color-secondary);
  color: #1D2936;
}
.cta-block .cta-btn:hover {
  background: #e2c041;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.weather-widget {
  background: #fff;
  padding: 22px 24px;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-top: 10px;
}
.weather-widget ul {
  margin-left: 16px;
  margin-bottom: 0;
}
.weather-widget p {
  margin-bottom: 10px;
  font-weight: 500;
}

/***** TESTIMONIAL CARDS *****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F3F6F8;
  border-left: 5px solid var(--color-secondary);
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 20px 24px;
  margin: 20px 0;
  color: #1D2936;
  font-style: italic;
  font-size: 1.10rem;
}
.testimonial-card strong {
  display: block;
  font-style: normal;
  color: #215477;
  margin-top: 8px;
}

/***** FAQ *****/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
}

/***** BLOG LIST *****/
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 22px 20px;
  flex: 1 1 320px;
  min-width: 240px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-list article:hover {
  box-shadow: 0 4px 16px rgba(33,84,119,0.11);
  transform: scale(1.02);
}

/***** FOOTER *****/
footer {
  background: #215477;
  color: #fff;
  padding: 38px 0 32px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-links a {
  color: #fff;
  opacity: 0.87;
  font-weight: 500;
  padding: 0 4px;
}
.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-contact p{
  color: #fff;
}
.footer-contact img {
  width: 18px; height: 18px; vertical-align: sub; margin-right: 7px;
}
footer .cta-btn {
  margin-top: 18px;
  background: var(--color-secondary);
  color: #1D2936;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.15s, color 0.15s, transform 0.17s;
}
footer .cta-btn:hover,
footer .cta-btn:focus {
  background: #ecd142;
}

/***** COOKIE BANNER & MODAL *****/
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #215477;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 -3px 18px rgba(33,84,119,0.13);
  padding: 26px 24px 24px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  animation: banner-slide-up 0.5s cubic-bezier(0.36,0.66,0.04,1);
}
@keyframes banner-slide-up {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner p {
  margin: 0;
  font-size: 1.06rem;
  max-width: 380px;
  color: #fff;
}
#cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn,
#cookie-consent-banner button {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 1rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.19s, color 0.19s, box-shadow 0.15s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #215477;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-right: 8px;
}
.cookie-btn.accept:hover {
  background: #debe54;
}
.cookie-btn.reject {
  background: #eee;
  color: #215477;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.cookie-btn.reject:hover {
  background: #ddd;
}
.cookie-btn.settings {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.cookie-btn.settings:hover {
  background: #fff;
  color: #215477;
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(33,84,119,0.72);
  z-index: 2120;
  justify-content: center;
  align-items: center;
  animation: fade-in-modal 0.25s cubic-bezier(0.36,0.66,0.04,1);
}
#cookie-modal.open { display: flex; }
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(33,84,119,0.12);
  padding: 34px 28px 26px 28px;
  max-width: 430px;
  width: 95%;
  color: #1D2936;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h2 {
  color: #215477;
  margin-bottom: 10px;
  font-size: 1.42rem;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-content label {
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #215477;
  align-self: flex-end;
  margin-bottom: 10px;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #EFD165;
}

/* --- SPACING UTILITIES & FLEX GAPS --- */
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 870px;
  }
  .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 770px;
  }
  .footer-links, .footer-contact {
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  /* Header responsive */
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 10px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  /* Sections */
  section, .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .card {
    min-width: 0;
  }
  .cta-block {
    padding: 26px 8px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-contact {
    order: 2;
  }
  .footer-links {
    order: 1;
  }
  /* Cookie banner/mobile placement */
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 8px 20px 10px;
  }
  #cookie-consent-banner p {
    max-width: none;
  }
  .cookie-btn {
    font-size: 0.95rem;
    padding: 7px 14px;
  }
  .cookie-modal-content {
    padding: 22px 6px 12px 14px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.2rem; }
  .footer-contact {
    font-size: 0.97rem;
  }
  .cta-block h2 {
    font-size: 1.1rem;
  }
  .cookie-modal-content {
    font-size: 0.95rem;
  }
}

/* Accessibility - focus styles */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid #215477;
  outline-offset: 2px;
}

/* Micro-interactions */
.card, .feature-grid > div, .faq-item, .testimonial-card, .blog-list article {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .faq-item:hover, .blog-list article:hover {
  box-shadow: 0 5px 24px 0 rgba(33,84,119,0.14);
  transform: translateY(-4px) scale(1.02);
}

/* Hide visually but keep for accessibility */
.visually-hidden { 
  position: absolute !important; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0;
}

/* --- END --- */