/* =======================================================
   CSS RESET & BASE STYLES
   ======================================================= */
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.6;
  background: #fff;
  color: #1A242E;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
strong { font-weight: bold; }

/* ======================
   FONT FAMILY LOADERS
   ====================== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Nunito:wght@400;700&display=swap');

/* =======================================================
   TYPOGRAPHY
   ======================================================= */
h1, .h1 {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #205072;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #205072;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #205072;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Nunito', Arial, sans-serif;
  color: #205072;
  font-weight: 700;
}
p, li, span {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #223042;
  margin-bottom: 12px;
  letter-spacing: 0px;
}

/* ==================
   BUTTONS
   ================== */
.btn-primary, .weather-buttons button, .cookie-btn, .cookie-settings-btn {
  --btn-bg: #205072;
  --btn-bg-hover: #193d54;
  --btn-txt: #fff;
  --btn-shadow: rgba(32,80,114,0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', cursive, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  background: var(--btn-bg);
  color: var(--btn-txt);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--btn-shadow);
  outline: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.14s;
  min-width: 140px;
  margin-top: 10px;
  margin-right: 12px;
}
.btn-primary:focus,
.btn-primary:hover,
.weather-buttons button:focus,
.weather-buttons button:hover,
.cookie-btn:focus,
.cookie-btn:hover,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--btn-bg-hover);
  box-shadow: 0 4px 16px var(--btn-shadow);
  color: #ffd966;
}

.weather-buttons button {
  font-size: 1rem;
  background: #9AD0C2;
  color: #205072;
  border: none;
  border-radius: 24px;
  margin: 0 4px 8px 0;
  padding: 10px 24px;
  box-shadow: 0 2px 6px rgba(154, 208, 194, 0.12);
  transition: background 0.18s, color 0.15s;
}
.weather-buttons button:hover, .weather-buttons button:focus {
  background: #205072;
  color: #fff;
}

/* Accent (e.g. Settings button) */
.cookie-settings-btn {
  --btn-bg: #ffd966;
  --btn-bg-hover: #eebd30;
  --btn-txt: #205072;
  color: var(--btn-txt);
}

/* ==============================
   LAYOUT: SECTIONS, CONTAINERS
   ============================== */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, .about-section, .values-section, .team-section, .legal-section, .offers-section, .idea-list-section, .callout, .thank-you-section, .weather-widget-section, .community-callout {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(32,80,114,0.06);
}
.hero {
  margin-bottom: 60px;
  padding: 60px 0 48px 0;
  background: #f6fafb;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 2px 16px rgba(32, 80, 114, 0.055);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
}

.card-container, .card-grid, .feature-grid, .value-grid, .offers-list, .idea-list, .weather-forecast ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}

.card, .idea-list li, .offers-list li, .weather-forecast ul li {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(32,80,114,0.06);
  padding: 20px 24px;
  min-width: 220px;
  max-width: 100%;
  flex: 1 1 300px;
  transition: box-shadow 0.16s;
}
.card:hover, .idea-list li:hover, .offers-list li:hover {
  box-shadow: 0 4px 20px rgba(32,80,114,0.10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 8px rgba(32,80,114,0.05);
  flex: 1 1 280px;
  transition: box-shadow 0.14s;
  min-width: 230px;
  margin-bottom: 20px;
}
.feature-item img {
  height: 48px;
  width: 48px;
}
.feature-item:hover {
  box-shadow: 0 4px 20px rgba(32,80,114,0.08);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.testimonials .testimonial-card, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(32,80,114,0.09);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #e6eded;
  max-width: 540px;
  transition: box-shadow 0.18s, border 0.16s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #205072;
  margin-bottom: 0;
  font-family: 'Nunito', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #205072;
  font-weight: 600;
  opacity: 0.88;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(154,208,194,0.13);
  border: 1.5px solid #9AD0C2;
}

/* ===========
   NAVIGATION
   =========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(32,80,114,0.055);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  max-height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Nunito', Arial, sans-serif;
  color: #205072;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  transition: background 0.13s, color 0.12s;
}
.main-nav a:hover, .main-nav a.active {
  background: #9AD0C2;
  color: #205072;
}

/* Hide mobile nav toggle by default */
.mobile-menu-toggle {
  display: none;
}

/* =============
   FOOTER
   ============= */
footer {
  background: #f6fafb;
  padding: 40px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 1rem;
  color: #205072;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background 0.13s, color 0.13s;
}
.footer-links a:hover { background: #9AD0C2; color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.99rem;
}
.footer-contact span {
  color: #223042;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 19px; height: 19px;
}

/* ===========================================
   PAGE SPECIFIC STRUCTURE & GENERAL CLASSES
   =========================================== */
.community-callout, .callout, .weather-filters-section, .contact-section {
  background: #f8fbfc;
  box-shadow: 0 1px 6px rgba(154,208,194,0.02);
}

.team-section, .values-section, .about-section, .legal-section {
  background: #fff;
  box-shadow: 0 1px 8px rgba(32,80,114,0.06);
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.value-grid > div {
  background: #f6fafb;
  border-radius: 13px;
  box-shadow: 0 1px 7px rgba(154,208,194,0.08);
  padding: 20px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
}
.value-grid h3 {
  color: #205072;
  margin-bottom: 6px;
}

.idea-list, .offers-list {
  list-style: none;
  gap: 24px;
  margin-bottom: 12px;
}
.idea-list li, .offers-list li {
  background: #fff;
  border: 1px solid #eaf2f2;
  border-radius: 11px;
  padding: 18px 22px;
  min-width: 220px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px rgba(32,80,114,0.05);
  transition: box-shadow 0.14s, border 0.14s;
}
.idea-list li:hover, .offers-list li:hover {
  border: 1.5px solid #9AD0C2;
  box-shadow: 0 3px 15px rgba(154,208,194,0.09);
}

.tag-info {
  margin-top: 8px;
  font-size: 0.93rem;
  color: #205072;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tag-info span {
  background: #f6fafb;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.90rem;
  color: #205072;
}

.weather-forecast {
  background: #f6fafb;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(154,208,194,0.07);
  padding: 18px 26px 16px 26px;
}
.weather-forecast h3 {
  margin-top: 12px; margin-bottom: 5px;
  font-weight: 600; color: #205072;
}
.weather-forecast p, .weather-forecast ul li { font-size: 1rem; }
.weather-forecast ul { gap: 8px; }

.weather-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: 6px;
}
.weather-buttons button {
  font-family: 'Nunito', Arial, sans-serif;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  margin-bottom: 18px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #205072;
}
.contact-info img {
  width: 18px; height: 18px;
}

.cta { margin-top: 26px; }

.thank-you-section, .thank-you-section .content-wrapper {
  align-items: center;
  text-align: center;
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 21px;
  right: 24px;
  background: #205072;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 5001;
  box-shadow: 0 2px 8px rgba(32,80,114,0.09);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #9AD0C2;
  color: #205072;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 5002;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.33s cubic-bezier(.74,0,.26,1), opacity 0.25s, visibility 0.13s;
  box-shadow: 0 0 0 4000px rgba(32, 80, 114, 0.05);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  margin: 24px 24px 0 0;
  color: #205072;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #9AD0C2; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #205072;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 0;
  border-radius: 8px;
  min-width: 180px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #9AD0C2;
  color: #fff;
}

@media (max-width: 1020px) {
  header .container {
    gap: 14px;
  }
  .main-nav {
    gap: 11px;
  }
}
@media (max-width: 888px) {
  .main-nav {
    gap: 7px;
  }
  header .container { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 900px) {
  .footer-contact { font-size: 0.95rem; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section, .about-section, .values-section, .team-section, .legal-section,
  .offers-section, .idea-list-section, .callout, .thank-you-section,
  .weather-widget-section, .community-callout {
    margin-bottom: 34px;
    padding: 26px 7px;
    border-radius: 9px;
  }
  .hero {
    border-radius: 0 0 16px 16px;
    padding: 35px 0 32px 0;
    margin-bottom: 38px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .value-grid, .feature-grid, .card-container, .offers-list, .idea-list, .weather-forecast ul {
    flex-direction: column;
    gap: 13px;
  }
  .card, .feature-item, .value-grid > div, .offers-list li, .idea-list li {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 16px 10px;
  }
  .main-nav { flex-wrap: wrap; }
}

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

/* Show menu above site content on open */
@media (max-width: 900px) {
  .mobile-menu { font-size: 1.04rem; }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.1rem; }
}

/* ============
   FLEX DIRECTION
   ============ */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* ================================= 
   COOKIE CONSENT: Banner & Modal
   ================================= */
#cookie-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px 20px 20px;
  background: rgba(246,250,251,0.97);
  border-top: 1.5px solid #e0ecf2;
  box-shadow: 0 -2px 16px rgba(32, 80, 114, 0.09);
  z-index: 6900;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.32s, opacity 0.19s;
}
#cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner p { margin-bottom: 0; color: #205072; }
#cookie-banner .cookie-btn,
#cookie-banner .cookie-settings-btn {
  box-shadow: 0 2px 8px rgba(32,80,114,0.09);
  min-width: 125px;
  margin-right: 8px;
}

@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; gap: 12px; padding: 17px 8px; font-size: 0.97rem; align-items: flex-start; }
}

/* Cookie modal overlay */
#cookie-modal-overlay {
  position: fixed;
  z-index: 7000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
#cookie-modal-overlay.active {
  display: flex;
  opacity: 1;
}

#cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(32,80,114,0.18);
  padding: 34px 26px 28px 26px;
  max-width: 330px;
  width: 92vw;
  font-family: 'Nunito', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
  animation: fadeInScale 0.26s;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96) translateY(15px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
#cookie-modal h3 {
  font-size: 1.09rem;
  font-family: 'Baloo 2', cursive, sans-serif;
  margin-bottom: 6px;
  color: #205072;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#cookie-modal label {
  font-size: 1rem;
  color: #223042;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 22px;
  background: #e3eeed;
  position: relative;
  outline: none;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #9AD0C2;
}
.cookie-toggle:before {
  content: "";
  display: block;
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 2px rgba(32,80,114,0.06);
}
.cookie-toggle:checked:before {
  transform: translateX(17px);
}
#cookie-modal .cookie-description {
  font-size: 0.96rem;
  color: #223042;
  opacity: 0.93;
  margin: 0 0 8px 0;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
#cookie-modal .modal-close {
  position: absolute;
  right: 17px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.33rem;
  color: #205072;
  cursor: pointer;
}
#cookie-modal .modal-close:hover { color: #9AD0C2; }

@media (max-width: 440px) {
  #cookie-modal { padding: 12px 7px 18px 7px; }
}

/* =============================
   MICRO-INTERACTIONS & EFFECTS
   ============================= */
section, .section, .card, .feature-item, .testimonial-card, .hero, .value-grid > div, .footer-contact span, .footer-links a {
  transition: background 0.19s, box-shadow 0.15s, border 0.14s, color 0.13s;
}

.btn-primary, .cookie-btn, .cookie-settings-btn, .weather-buttons button {
  transition: background 0.15s, color 0.14s, box-shadow 0.13s;
}

.main-nav a, .footer-links a, .mobile-nav a {
  transition: background 0.13s, color 0.13s;
}

input, textarea, select {
  font-family: 'Nunito', Arial, sans-serif;
}

/* Hide visually but accessible - for cookie modal essential category */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ===========================
   FOCUS STYLES (ACCESSIBILITY)
   =========================== */
a:focus,
.btn-primary:focus,
button:focus,
input:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus
{
  outline: 2px solid #FFD966;
  outline-offset: 2px;
  z-index: 2;
}

/* =============================
   PRINT OVERRIDE - Minimal
   ============================= */
@media print {
  header, nav, footer, .mobile-menu, #cookie-banner, #cookie-modal-overlay { display: none !important; }
  body { color: #000; background: #fff; }
}
