/* 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.6;
  background-color: #F6F6F2;
  color: #24343d;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}
a {
  text-decoration: none;
  color: #254E58;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A3C6B4;
  outline: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* TYPOGRAPHY & COLORS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  color: #254E58;
  line-height: 1.2;
}
h1 { font-size: 2rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.125rem; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #24343d;
  margin-bottom: 10px;
}
blockquote {
  font-size: 1.125rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #254E58;
  padding: 0 0 0 16px;
  border-left: 4px solid #A3C6B4;
  margin-bottom: 10px;
  background: transparent;
}
strong { color: #254E58; }

/* CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(37, 78, 88, 0.07);
  transition: box-shadow 0.3s;
}
.section:last-child { margin-bottom: 0; }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div {
  background: #F6F6F2;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37, 78, 88, 0.05);
  padding: 24px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(37, 78, 88, 0.10);
  transform: translateY(-2px);
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(37, 78, 88, 0.08);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  position: relative;
  width: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(37, 78, 88, 0.16);
  transform: translateY(-2px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: #F6F6F2;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37, 78, 88, 0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  color: #24343d;
  min-width: 220px;
  max-width: 680px;
}
.testimonial-card blockquote {
  color: #254E58;
  border: none;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}
.testimonial-card strong {
  color: #254E58;
  font-weight: bold;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #A3C6B4 0%, #F6F6F2 100%);
  padding: 64px 0 46px 0;
  border-radius: 0 0 2.2rem 2.2rem;
  margin-bottom: 60px;
  box-shadow: 0 4px 30px rgba(37, 78, 88, 0.07);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #254E58;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  color: #254E58;
  margin-bottom: 16px;
}
.hero .cta-btn {
  margin-top: 16px;
}

/* ARTICLE LIST & BLOG */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.article-list article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(37, 78, 88, 0.07);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-list article:hover {
  box-shadow: 0 6px 18px rgba(37, 78, 88, 0.10);
  transform: translateY(-2px);
}
.article-list h3 {
  color: #254E58;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.category-filter {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #254E58;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.category-filter a {
  color: #254E58;
  background: #A3C6B4;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.98rem;
  margin-left: 3px;
  margin-right: 3px;
  transition: background 0.2s, color 0.2s;
}
.category-filter a:hover {
  background: #254E58;
  color: #fff;
}

.popular-posts ul {
  margin-top: 0;
  margin-bottom: 0;
  list-style-type: disc;
  padding-left: 22px;
}
.popular-posts h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #254E58;
}

/* NEWSLETTER CTA */
.newsletter-cta {
  background: #A3C6B4;
  padding: 32px 0;
  margin-bottom: 60px;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(37, 78, 88, 0.08);
}
.newsletter-cta .cta-btn {
  margin-top: 0;
  background: #254E58;
  color: #fff;
}
.newsletter-cta .cta-btn:hover {
  background: #254E58;
  color: #A3C6B4;
}

/* BUTTONS */
.cta-btn {
  display: inline-block;
  padding: 13px 30px;
  background: #254E58;
  color: #fff;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 78, 88, 0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.1s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A3C6B4;
  color: #254E58;
  box-shadow: 0 4px 24px rgba(37, 78, 88, 0.15);
  transform: translateY(-1px);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(37, 78, 88, 0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
  min-height: 62px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #254E58;
  font-weight: 500;
  border-radius: 5px;
  padding: 7px 14px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: #A3C6B4;
  color: #fff;
}
header img {
  max-height: 44px;
  margin-right: 22px;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 25px;
  top: 22px;
  z-index: 120;
  font-size: 2.1rem;
  color: #254E58;
  background: none;
  border: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #A3C6B4;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 34px rgba(37, 78, 88, 0.13);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.9,0.1,0.25,1);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 10px 0;
  font-size: 2.05rem;
  color: #254E58;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #A3C6B4;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: 34px;
  margin-top: 34px;
}
.mobile-nav a {
  color: #254E58;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  padding: 9px 0;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #A3C6B4;
  color: #fff;
}

/* Show/Hide Desktop & Mobile Nav */
@media (max-width: 1050px) {
  .main-nav {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 5px;
  }
}
@media (max-width: 840px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 841px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* FOOTER */
footer {
  background: #254E58;
  color: #fff;
  padding: 0;
  margin-top: 50px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  padding: 35px 20px 22px 20px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin: 12px 0;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #A3C6B4;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #254E58;
}
footer img {
  max-height: 44px;
  margin-bottom: 11px;
}
.brand-info {
  text-align: center;
  margin-top: 9px;
  font-size: 0.98rem;
}
.social-media {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: center;
}
.social-media img {
  height: 28px;
  width: 28px;
  filter: grayscale(0%) brightness(95%);
  transition: filter 0.16s;
  cursor: pointer;
}
.social-media img:hover {
  filter: grayscale(0%) brightness(60%) sepia(70%) hue-rotate(80deg);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #254E58;
  box-shadow: 0 -1px 16px rgba(37, 78, 88, 0.13);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  gap: 20px;
  font-size: 1rem;
  border-radius: 19px 19px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.cookie-banner button {
  background: #254E58;
  color: #fff;
  border-radius: 22px;
  border: none;
  padding: 11px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 3px;
  box-shadow: 0 1px 7px rgba(37, 78, 88, 0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button.settings {
  background: #A3C6B4;
  color: #254E58;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #A3C6B4;
  color: #254E58;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #254E58;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3000;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(37, 78, 88, 0.25);
  padding: 36px 28px 26px 28px;
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.38s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #254E58;
  cursor: pointer;
}
.cookie-modal h3 {
  font-size: 1.32rem;
  color: #254E58;
  margin-bottom: 13px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: #254E58;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #254E58;
  width: 19px;
  height: 19px;
}
.cookie-category .category-desc {
  font-size: 0.93rem;
  color: #24343d;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 19px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #254E58;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal button.secondary-btn {
  background: #A3C6B4;
  color: #254E58;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #A3C6B4;
  color: #254E58;
}
.cookie-modal button.secondary-btn:hover, .cookie-modal button.secondary-btn:focus {
  background: #254E58;
  color: #fff;
}

/* FORMS & INPUTS */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #A3C6B4;
  border-radius: 7px;
  margin-bottom: 14px;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #254E58;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #254E58;
  margin-bottom: 5px;
}

/* SPACING PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .footer-nav, .brand-info, .content-wrapper { max-width: 98vw; }
}
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 20px 0;
    border-radius: 0 0 1.2rem 1.2rem;
  }
  .hero h1 { font-size: 1.6rem; }
  .container {
    padding: 0 8px;
  }
  .footer-nav {
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 35px;
    padding: 23px 7px;
  }
  .testimonial-card {
    padding: 18px 9px;
    flex-direction: column;
    gap: 11px;
    max-width: 98vw;
  }
  .card {
    padding: 18px 9px;
    width: 100%;
  }
  .article-list article {
    padding: 13px 7px;
  }
  .newsletter-cta {
    padding: 14px 0;
    border-radius: 10px;
    margin-bottom: 35px;
  }
  .brand-info, .content-wrapper {
    font-size: 0.98rem;
  }
}
@media (max-width: 550px) {
  .cookie-modal {
    padding: 18px 7px 18px 7px;
    max-width: 98vw;
  }
  .hero h1, .section h1 {
    font-size: 1.18rem;
  }
}

/* UTILITIES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }

/* ACCESSIBLE FOCUS STATE */
a:focus, button:focus, input:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px #A3C6B4;
  outline: none;
}

/* OVERRIDE SAFARI BUTTON RESET */
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* HIDE ELEMENTS */
.hide { display: none !important; }
