/* =============================
   CSS RESET & BASE NORMALIZATION
   ============================= */
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;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2536;
  background: #F7F7FA;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #16577E;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #C48F1D;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}

/* ========================
   TYPOGRAPHY & HEADINGS
   ======================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #16577E;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.125rem;
}
p, .subheadline, .confirmation-message, .next-steps {
  font-size: 1rem;
  margin-bottom: 16px;
}
.subheadline {
  color: #3D495D;
  font-size: 1.125rem;
}
strong {
  font-weight: 600;
  color: #16577E;
}

/* TYPE SCALE (rem):
   0.875 (14px), 1 (16px), 1.125 (18px), 1.5 (24px), 2 (32px), 2.5 (40px)  */

/* ===================
   LAYOUT CONTAINERS
   =================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(22, 87, 126, 0.07);
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 40px;
    padding: 30px 10px;
  }
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 87, 126, 0.07);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  min-height: 70px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #16577E;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #C48F1D;
}
.btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #16577E;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(22, 87, 126, 0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1B6CA8;
  color: #fff;
  box-shadow: 0 6px 24px rgba(22,87,126,0.10);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #E7B127;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  margin-left: 0;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(228, 177, 39, 0.12);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #C48F1D;
  color: #fff;
  box-shadow: 0 4px 20px rgba(228,177,39,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* =============================
   MOBILE NAVIGATION (BURGER MENU)
   ============================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #16577E;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  z-index: 1101;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #C48F1D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -3px 0 32px rgba(22, 87, 126, 0.18);
  z-index: 1100;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #16577E;
  border: none;
  margin: 16px 18px 0 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #C48F1D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 46px 40px 30px 32px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0;
  color: #16577E;
  border-bottom: 1px solid #F1F3F5;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #C48F1D;
  background: #F7F7FA;
  border-radius: 3px;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 430px) {
  .mobile-menu {
    max-width: 100vw;
    width: 100vw;
  }
  .mobile-nav {
    padding-left: 18px;
    padding-right: 12px;
  }
}

/* =============================
   HERO/MAJOR CTAS & WRAPPERS
   ============================= */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.cta-section h2 {
  color: #16577E;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.content-grid,
.feature-grid,
.service-list,
.service-detail-grid,
.testimonial-list,
.newsletter-section,
.value-list,
.article-card-grid,
.tip-card-grid,
.workshop-list,
.faq-list,
.newsletter-benefits
{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-detail-grid, .testimonial-list, .article-card-grid, .tip-card-grid, .workshop-list, .value-list {
    gap: 18px;
    justify-content: flex-start;
  }
}

/* =============================
   CARDS & LIST ITEMS
   ============================= */
.feature-card, .service-card, .tip-card, .article-card, .workshop-card, .value-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(22, 87, 126, 0.07);
  padding: 30px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.feature-card:hover, .service-card:hover, .tip-card:hover, .article-card:hover, .workshop-card:hover, .value-item:hover {
  box-shadow: 0 6px 32px 0 rgba(22, 87, 126, 0.11);
  transform: translateY(-2px) scale(1.025);
}
.feature-card img, .value-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .feature-card, .service-card, .tip-card, .article-card, .workshop-card, .value-item {
    max-width: 98vw;
    min-width: unset;
    width: 100%;
    padding: 20px 12px;
  }
}

/* TESTIMONIALS */
.testimonial-list, .workshop-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #f7faff;
  border: 1.8px solid #DFE6EA;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(22,87,126,0.08);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 245px;
  max-width: 370px;
  margin-bottom: 20px;
  color: #16577E;
  position: relative;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #22344F;
}
.testimonial-card .user {
  font-weight: 500;
  color: #506283;
  margin-top: 2px;
  font-size: .99em;
}
.testimonial-card .stars {
  color: #E7B127;
  font-size: 1.10em;
}

/* ENSURE PROPER CONTRAST IN TESTIMONIALS */
.testimonial-card, .testimonial-card p, .testimonial-card .user {
  background: #f7faff;
  color: #22344F;
}

/* =============================
   NEWSLETTER & BENEFITS LISTS
   ============================= */
.newsletter-section, .newsletter-benefits {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 28px 18px;
  margin-bottom: 24px;
}
.newsletter-benefits ul {
  list-style: disc inside;
  padding-left: 0;
  color: #2A3954;
}
.newsletter-benefits li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* =============================
   MISC CARDS, MAPS, FAQ, ETC.
   ============================= */
.map-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: .97rem;
  color: #1B3153;
  background:#F1F6FA;
  padding: 14px 18px;
  border-radius: 6px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #f7faff;
  border: 1px solid #DFE6EA;
  border-radius: 8px;
  padding: 18px 18px;
  box-shadow: 0 2px 12px rgba(22, 87, 126, 0.045);
  color: #22344F;
}
.faq-item h3 {
  color: #16577E;
  font-size: 1.07rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: .98rem;
}

/* LEGAL CONTENT */
.legal-content {
  color: #1A263D;
  font-size: 1rem;
}
.legal-content ul {
  list-style: disc inside;
  margin-bottom: 18px;
  color: #2A3954;
}
.legal-content li {
  margin-bottom: 8px;
}

/* FEATURE/LIFEHACK CATEGORIES */
.tips-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  font-size: 1rem;
  margin-bottom: 8px;
  padding: 0;
}
.tips-categories li {
  color: #16577E;
  background: #edf3f9;
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: 500;
}

/* SEARCH BARS, FILTER */
.search-bar, .filter-options {
  background: #f8fafd;
  color: #16577E;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #16577E;
  color: #fff;
  padding: 38px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-logo img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: underline;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E7B127;
}
.footer-contact {
  color: #E6F1FA;
  font-size: 0.98rem;
  text-align: center;
}
.footer-contact a {
  color: #ffd372;
  text-decoration: underline;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #E7B127;
}

/* =============================
   RESPONSIVENESS
   ============================= */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .container { padding: 0 8px; }
  .feature-grid, .service-list, .testimonial-list, .newsletter-section, .service-detail-grid,
  .article-card-grid, .tip-card-grid, .faq-list, .workshop-list, .value-list, .newsletter-benefits {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 768px) {
  header .container {
    gap: 13px;
    min-height: 54px;
  }
  .section {
    padding: 24px 6px;
  }
  .newsletter-section, .newsletter-benefits {
    flex-direction: column;
    gap: 18px;
    padding: 16px 5px;
  }
  .cta-section {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
@media (max-width: 600px) {
  .footer-nav { gap: 12px; }
}

/* Responsive text-image sections */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =============================
   SPACING & FLEX CONTAINERS
   ============================= */
/* Cards/generic container spacing rules */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   BUTTONS, INTERACTIONS, FOCUS
   ============================= */
button, .btn-primary, .btn-secondary {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #16577E;
  outline-offset: 2px;
}

/* Transitions on interactive elements */
.btn-primary, .btn-secondary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* =============================
   COOKIE CONSENT BANNER
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #22344F;
  color: #fff;
  z-index: 1250;
  padding: 18px 0 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  box-shadow: 0 -4px 16px 0 rgba(34,52,79,0.11);
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.26s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 9px 22px;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, box-shadow 0.16s;
  box-shadow: 0 1px 4px rgba(34, 52, 79, 0.11);
}
.cookie-banner .btn-accept {
  background: #16577E;
  color: #fff;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #1B6CA8;
}
.cookie-banner .btn-reject {
  background: #F7F7FA;
  color: #16577E;
  border: 1.2px solid #D1DEEA;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #DEECF9;
  color: #16577E;
}
.cookie-banner .btn-settings {
  background: #E7B127;
  color: #fff;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #C48F1D;
  color: #fff;
}

/***** Cookie Modal Popup *****/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,52,79,.50);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(22,87,126,0.16);
  width: 90vw;
  max-width: 450px;
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  position: relative;
  z-index: 1310;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #16577E;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-category {
  font-weight: 600;
  color: #22344F;
  margin-bottom: 6px;
  font-size: 1.04em;
}
.cookie-modal .cookie-switch {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #D5DFF0;
  border-radius: 20px;
  position: relative;
  outline: none;
  margin-right: 8px;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch:checked {
  background: #16577E;
}
.cookie-modal .cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-modal .cookie-switch:checked:before {
  left: 18px;
  background: #fff;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .btn-save {
  background: #16577E;
  color: #fff;
}
.cookie-modal .btn-cancel {
  background: #fff;
  color: #16577E;
  border: 1.2px solid #16577E;
}
.cookie-modal .btn-save:hover,
.cookie-modal .btn-save:focus {
  background: #1B6CA8;
}
.cookie-modal .btn-cancel:hover,
.cookie-modal .btn-cancel:focus {
  background: #F7F7FA;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #16577E;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #C48F1D;
}

/* =============================
   MISC/UTILITY CLASSES
   ============================= */
.text-section {
  color: #22344F;
  margin-bottom: 10px;
}
.confirmation-message {
  background: #F7F7FA;
  color: #16577E;
  padding: 18px 15px;
  border-radius: 7px;
  margin-bottom: 8px;
}
.next-steps {
  color: #3D495D;
  font-size: 0.97rem;
  margin-bottom: 18px;
}

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

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

/* =============================
   A11Y: FOCUS RING FOR TAB USERS
   ============================= */
:focus-visible {
  outline: 2.5px solid #16577E;
  outline-offset: 2px;
}

/* =============================
   END - NO display: grid/columns USED
   ============================= */