/* Reset & Normalize */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #283443;
  background: #F4F7FA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #488EA6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #7EC04B;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* Typography */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.25rem;
  color: #1B475B;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  color: #488EA6;
  margin-bottom: 20px;
  font-weight: 600;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: #1B475B;
  margin-bottom: 12px;
  font-weight: 500;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: #283443;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}
.content-wrapper {
  width: 100%;
}

/* Main Nav */
header {
  background: #E9F6FB;
  box-shadow: 0 2px 16px rgba(27,71,91,0.04);
  position: sticky;
  top: 0;
  z-index: 200;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0 18px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1B475B;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav > a.cta-btn {
  background: #7EC04B;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 25px;
  margin-left: 8px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(126,192,75,0.13);
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav > a.cta-btn:hover,
.main-nav > a.cta-btn:focus {
  background: #96d16d;
  box-shadow: 0 4px 16px rgba(126,192,75,0.18);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #b3e8cd;
  color: #226060;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B475B;
  cursor: pointer;
  margin-left: auto;
  z-index: 300;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,247,250,0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 22px 16px 22px;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(.39,.58,.57,1);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B475B;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 28px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0;
  color: #226060;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #b3e8cd;
  color: #488EA6;
}

/* Responsive Nav Controls */
@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
    padding: 10px 0 10px 0;
  }
}
@media (max-width: 900px) {
  .main-nav > a:not(:first-child),
  .main-nav > a.cta-btn {
    font-size: 0.97rem;
    padding: 6px 9px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 16px;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #FDE0E6 0%, #E9F6FB 100%);
  padding: 50px 0 60px 0;
  border-bottom-left-radius: 45px;
  border-bottom-right-radius: 45px;
  box-shadow: 0 6px 32px rgba(27,71,91,0.06);
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 10px;
  max-width: 600px;
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1B475B;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.hero-section p {
  font-size: 1.17rem;
  color: #334E62;
  opacity: 0.89;
}

/* Feature Grid - Home */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}
.feature-card {
  background: #fff;
  box-shadow: 0 8px 24px 0 rgba(27,71,91,0.05);
  border-radius: 20px;
  flex: 1 1 230px;
  padding: 26px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
  min-width: 200px;
  max-width: 260px;
  margin-bottom: 20px;
}
.feature-card img {
  height: 40px;
  width: 40px;
  margin-bottom: 12px;
}
.feature-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 16px 32px rgba(126,192,75,0.10);
  background: #F4F7FA;
}

/* Category Cards - Home */
.category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.category-card {
  min-width: 200px;
  max-width: 265px;
  background: #E3F5E3;
  color: #396e5c;
  flex: 1 1 200px;
  border-radius: 18px;
  padding: 22px 18px 22px 18px;
  margin-bottom: 20px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 2px 12px rgba(126,192,75,0.08);
  font-family: 'Montserrat', Arial, sans-serif;
}
.category-card:hover,
.category-card:focus {
  background: #C7EDD6;
  color: #1B475B;
  box-shadow: 0 6px 32px rgba(27,71,91,0.10);
}

/* Tip Grid - Thematic Pages */
.tip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.tip-card {
  background: #fff;
  box-shadow: 0 8px 20px 0 rgba(27,71,91,0.05);
  border-radius: 18px;
  flex: 1 1 180px;
  padding: 20px 16px;
  min-width: 170px;
  max-width: 230px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tip-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 12px 28px rgba(94,180,247,0.09);
  background: #F4F7FA;
}

/* Card Container - Utility */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(27,71,91,0.05);
  padding: 20px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Content Grid */
.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;
}

/***** Testimonials *****/
.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff4fa;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(233,97,152,0.07);
  padding: 20px;
  min-width: 210px;
  max-width: 320px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #283443;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card span {
  color: #7EC04B;
  font-size: 0.98rem;
  margin-top: 4px;
  font-style: italic;
}
.testimonial-card:hover {
  background: #fff7fd;
  box-shadow: 0 10px 34px rgba(233,97,152,0.14);
}

/***** CTA Section *****/
.cta-section {
  background: #D9F5F4;
  border-radius: 34px;
  box-shadow: 0 4px 24px rgba(94,180,247,0.05);
  margin-bottom: 60px;
  padding: 36px 20px;
  display: flex;
  align-items: center;
}
.cta-section .content-wrapper {
  gap: 20px;
}
.cta-btn {
  display: inline-block;
  background: #7EC04B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.17rem;
  padding: 12px 34px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 10px rgba(126,192,75,0.16);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.18s;
  margin-top: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #9ee57c;
  color: #226060;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(126,192,75,0.16);
}

/***** Benefits Section *****/
.benefits-section ul {
  padding-left: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefits-section li {
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
  color: #24706c;
  font-family: 'Montserrat', Arial, sans-serif;
}
.benefits-section li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 1px;
  color: #7EC04B;
  font-size: 1.1em;
}

/***** Contact Section *****/
.contact-section {
  padding: 48px 20px 24px 20px;
  background: #D9F5F4;
  border-radius: 34px;
  margin-bottom: 32px;
  box-shadow: 0 2px 14px rgba(94,180,247,0.12);
}
.contact-section .content-wrapper > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.07rem;
}
.contact-section .content-wrapper img {
  width: 24px;
  margin-right: 4px;
}
.contact-form-section {
  background: #fff;
  border-radius: 22px;
  padding: 36px 20px;
  box-shadow: 0 2px 20px rgba(27,71,91,0.06);
  margin-bottom: 48px;
}
.contact-form-section form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.contact-form-section label {
  font-size: 1rem;
  color: #1B475B;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-form-section input,
.contact-form-section textarea {
  border-radius: 8px;
  border: 1px solid #B9DCF1;
  background: #F4F7FA;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 8px;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
.contact-form-section input:focus,
.contact-form-section textarea:focus {
  border: 1.5px solid #7EC04B;
  box-shadow: 0 2px 8px rgba(126,192,75,0.08);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.contact-form-section .cta-btn {
  margin-top: 10px;
}

/***** Footer *****/
footer {
  background: #E9F6FB;
  padding: 36px 0 10px 0;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.footer-nav a {
  color: #1B475B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #b3e8cd;
  color: #488EA6;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #607489;
  font-size: 0.98rem;
  margin-bottom: 12px;
  text-align: center;
}

/***** Utility classes *****/
.text-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(94,180,247,0.08);
  border-radius: 24px;
}
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.profile {
  background: #F5F9E3;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(126,192,75,0.08);
  padding: 18px 14px;
  flex: 1 1 180px;
  min-width: 155px;
  max-width: 210px;
  margin-bottom: 20px;
}

/***** Thank You Section *****/
.thankyou-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 10px 100px 10px;
  background: #fff4fa;
  border-radius: 38px;
  margin: 40px auto 60px auto;
  box-shadow: 0 8px 24px rgba(233,97,152,0.09);
  max-width: 640px;
}

/***** Cookie Consent Banner & Modal *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff4fa;
  color: #1B475B;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 18px;
  border-top: 3px solid #7EC04B;
  box-shadow: 0 -6px 18px rgba(233,97,152,0.13);
  z-index: 11000;
  font-size: 1rem;
  min-height: 60px;
  animation: cookieSlideIn 0.5s;
}
@keyframes cookieSlideIn {
  from {transform: translateY(100%); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-banner-text {
  font-size: 1rem;
  color: #283443;
  max-width: 590px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #7EC04B;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #96d16d;
  color: #226060;
}
.cookie-btn.reject {
  background: #eee;
  color: #AF1950;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e9bfd6;
  color: #AF1950;
}
.cookie-btn.settings {
  background: #E9F6FB;
  color: #226060;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #c1ebf7;
  color: #488EA6;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 12000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,55,71, 0.38);
  justify-content: center;
  align-items: center;
  animation: modalfadeIn 0.33s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes modalfadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(27,71,91,0.12);
  padding: 34px 26px 22px 26px;
  min-width: 310px;
  max-width: 96vw;
  color: #1B475B;
  animation: modalUp 0.3s;
}
@keyframes modalUp {
  from { transform: translateY(60px); opacity: 0;}
  to { transform: translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 11px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 16px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cookie-category-row label {
  color: #283443;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e0e6ee;
  transition: 0.25s;
  border-radius: 20px;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #7EC04B;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: 0.25s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}

/***** Spacing and Alignment 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: 980px) {
  .feature-grid,
  .category-cards,
  .tip-grid,
  .testimonial-row,
  .team-profiles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
  .hero-section .content-wrapper,
  .cta-section .content-wrapper {
    max-width: 98%;
  }
  .profile { max-width: 46%; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.5rem; }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero-section { padding: 30px 0 36px 0; }
  .hero-section .content-wrapper {
    padding: 0 2px;
    max-width: 100%;
  }
  .feature-grid,
  .category-cards,
  .tip-grid,
  .team-profiles,
  .testimonial-row {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .profile, .feature-card, .category-card, .tip-card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .cta-section, .contact-section, .contact-form-section, .thankyou-section, .text-section, .benefits-section {
    padding: 20px 6px;
    border-radius: 14px;
  }
  .footer-nav {
    gap: 8px;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  h1 { font-size: 1.18rem; }
  .cta-btn, .cookie-btn { font-size: .98rem; padding: 11px 21px; }
  .section { padding: 24px 2px; }
}
/* Hide footer on mobile when mobile menu or cookie modal is open */
body.mobile-menu-open footer,
body.cookie-modal-open footer {
  z-index: 0 !important;
  opacity: 0.7;
}

/***** Animations *****/
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card, .category-card, .tip-card, .feature-card, .testimonial-card, .profile {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}

/***** Accessibility Fixes *****/
:focus {
  outline: 2px dashed #7EC04B;
  outline-offset: 2px;
}

/***** Misc Styles *****/
label a {
  color: #488EA6;
  text-decoration: underline;
}
input[type="checkbox"] {
  accent-color: #7EC04B;
}

/**** Only flex layouts, NO grid! ****/
/* Explicitly ensure no CSS Grid or CSS Columns are used */
/* This comment documents compliance with assignment requirements */