/* --- 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 { scroll-behavior: smooth; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(125deg, #F6F2EA 0%, #97C5B6 100%);
  color: #234264;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: #234264;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #97C5B6;
  outline: none;
}

ul, ol {
  margin-left: 24px;
}

strong {
  font-weight: 700;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #234264;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #234264;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #234264;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #234264;
}
p, label, select, input, textarea, button {
  font-size: 1rem;
  color: #234264;
}
p {
  margin-bottom: 16px;
}

/* Typography scale for spacing */
.section p, .section ul, .section ol {
  margin-bottom: 14px;
}

/* --- BRAND CONTAINER --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- HEADER --- */
header {
  background: #ffffffcc;
  box-shadow: 0 4px 16px 0 rgba(35,66,100,0.05);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #e4e9f0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #97C5B6;
  color: #fff;
}
.button-primary {
  background: linear-gradient(90deg,#234264 50%, #97C5B6 100%);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 2px 16px 0 rgba(35,66,100,0.10);
  transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
}
.button-primary:hover, .button-primary:focus {
  background: linear-gradient(90deg, #97C5B6 10%, #234264 90%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(35,66,100,0.15);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  background: #234264;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 6px;
  padding: 4px 14px 1px 14px;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #97C5B6;
}

@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #234264ee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.86,0,.07,1);
  z-index: 1000;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #234264;
  border: none;
  font-size: 2.2rem;
  margin: 18px 0 0 22px;
  border-radius: 6px;
  padding: 2px 12px 0 12px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
  z-index: 1200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #97C5B6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 32px 12px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 9px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #97C5B6;
  color: #234264;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(125deg,#F6F2EA 60%, #97C5B6 100%);
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: #234264;
  margin-bottom: 8px;
  font-size: 2.3rem;
}
.hero p {
  color: #234264;
  font-size: 1.27rem;
}
.hero .button-primary {
  margin-top: 18px;
  font-size: 1.1rem;
}

/* --- FLEXBOX PATTERNS & SECTION SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 0px 14px 0 rgba(35,66,100,0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F6F2EA;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(35,66,100,0.07);
  padding: 24px;
}
.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;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(35,66,100,0.10);
  margin-bottom: 20px;
  border: 1.5px solid #e9ecef;
}
.testimonial-card p {
  color: #234264;
  font-size: 1.12rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #97C5B6;
  font-size: 1rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #F6F2EA;
  border-radius: 16px;
  padding: 24px 20px 18px 20px;
  min-width: 240px;
  box-shadow: 0 2px 14px rgba(35,66,100,0.05);
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.25s, transform 0.23s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(35,66,100,0.13);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid h3 a {
  color: #234264;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: underline;
}
.feature-grid img {
  width: 40px;
  margin-bottom: 4px;
}

/* --- LISTS & TIPS --- */
.tips ul, .habits ul, .tools ul, .faq-preview ul, .about ul, .values ul, .legal ul, .contact > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tips li, .habits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #F6F2EA;
  border-radius: 13px;
  padding: 12px 15px;
}
.tips li img, .habits li img {
  width: 34px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- NEWSLETTER --- */
.newsletter input[type=email] {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccd2db;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  outline: none;
  transition: border 0.18s;
}
.newsletter input[type=email]:focus {
  border: 1.5px solid #97C5B6;
  box-shadow: 0 4px 16px 0 #97c5b622;
}
.newsletter .button-primary {
  margin-top: 0;
  width: 180px;
  max-width: 80vw;
}

/* --- CTA --- */
.cta {
  background: linear-gradient(90deg,#97C5B6 8%, #234264 92%);
  color: #fff;
  margin-bottom: 0;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(35,66,100,0.08);
}
.cta h2,
.cta p {
  color: #fff;
}
.cta .button-primary {
  background: #fff;
  color: #234264;
  border: 2px solid #234264;
  margin-top: 18px;
  transition: background 0.22s, color 0.16s;
}
.cta .button-primary:hover {
  background: #234264;
  color: #fff;
}

/* --- CARDS & CONTENT --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.team-photo-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #97C5B6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0 0;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #234264 70%, #97C5B6 100%);
  color: #fff;
  padding: 38px 0 24px 0;
  box-shadow: 0 -4px 18px 0 rgba(35,66,100,0.06);
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.92;
  transition: color 0.2s;
}
footer nav a:hover {
  color: #F6F2EA;
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  color: #F6F2EA;
  margin-bottom: 5px;
  font-size: 1rem;
}
footer p:last-child {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #e3ecee;
}
footer img {
  width: 54px;
}

/* --- LEGAL SECTIONS --- */
.legal {
  background: #fff;
  border-radius: 14px;
  padding: 38px 18px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(35,66,100,0.043);
  color: #234264;
}
.legal h1, .legal h2 {
  color: #234264;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #234264;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 16px 28px;
  box-shadow: 0 -4px 16px rgba(35,66,100,0.14);
  z-index: 2000;
  font-size: 1rem;
  animation: slideUp 0.6s cubic-bezier(.66,0,.22,1);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  flex: 2 1 220px;
  margin: 0 18px 0 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0;
  transition: background 0.19s, color 0.18s, box-shadow 0.19s;
  cursor: pointer;
}
.cookie-banner .accept-btn {
  background: #97C5B6;
  color: #234264;
  font-weight: 700;
}
.cookie-banner .accept-btn:hover,
.cookie-banner .accept-btn:focus {
  background: #F6F2EA;
}
.cookie-banner .reject-btn {
  background: #F6F2EA;
  color: #234264;
}
.cookie-banner .reject-btn:hover {
  background: #97C5B6;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: transparent;
  border: 1.5px solid #97C5B6;
  color: #97C5B6;
}
.cookie-banner .settings-btn:hover {
  background: #97C5B6;
  color: #234264;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,66,100,0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  animation: fadeIn .4s cubic-bezier(.56,0,.23,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #234264;
  padding: 38px 24px;
  border-radius: 16px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 10px 32px rgba(35,66,100,0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 12px;
  color: #234264;
  font-size: 1.45rem;
}
.cookie-modal-content .category-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 16px 0 10px 0;
}
.cookie-modal-content .category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal-content .category input[type=checkbox] {
  accent-color: #97C5B6;
  width: 22px;
  height: 22px;
}
.cookie-modal-content .category .always-on {
  color: #97C5B6;
  font-weight: 600;
  margin-left: 7px;
  font-size: 1rem;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: #234264;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal-content .modal-action {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-content button {
  min-width: 90px;
  padding: 8px 21px;
  border-radius: 21px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal-content .save-btn {
  background: #97C5B6;
  color: #234264;
}
.cookie-modal-content .save-btn:hover {
  background: #234264;
  color: #fff;
}

/* --- BLOG --- */
.posts-list label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-right: 7px;
}
.posts-list select {
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #dde3e7;
  margin-bottom: 14px;
}
.posts-list .feature-grid > div span {
  font-size: 1rem;
  color: #97C5B6;
  margin-top: 2px;
}

/* --- CONTACT --- */
.contact > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact img {
  width: 28px;
}
.contact a {
  text-decoration: underline;
}

/* --- SPACING, LAYOUT (RESPONSIVE) --- */
@media (max-width: 991px) {
  .section, .hero, .cta {
    padding: 32px 12px;
    margin-bottom: 42px;
  }
  .feature-grid {
    gap: 18px;
  }
  .testimonial-card,
  .card {
    padding: 16px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .footer-contact {
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .section, .hero, .cta, .legal {
    padding: 22px 6vw;
    margin-bottom: 28px;
  }
  .card, .testimonial-card {
    padding: 12px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 17px;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    align-items: flex-start;
  }
}
@media (max-width: 576px) {
  header .container,
  footer .container{
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero, .section, .legal, .cta {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(35,66,100,0.06);
  }
  .team-photo-placeholder {
    width: 45px;
    height: 45px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 10px 10px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-buttons {
    gap: 8px;
  }
}

/* --- MISC/EFFECTS --- */
::-webkit-input-placeholder { color: #9bb1be; }
::-moz-placeholder { color: #9bb1be; }
:-ms-input-placeholder { color: #9bb1be; }
::placeholder { color: #9bb1be; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid #97C5B6;
}
button:focus {
  outline: 2px solid #97C5B6;
}

/* --- Hide elements visually without removing from dom --- */
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  border:0;
  padding:0;
}

/* --- Animations --- */
.button-primary, .card, .testimonial-card, .feature-grid > div {
  transition: box-shadow 0.22s, transform 0.19s, background 0.21s;
}
.button-primary:active {
  transform: scale(0.97);
}

/* --- Other / Utility --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }

/* --- Hide content for print --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, .hero, .cta { box-shadow: none !important; background: #fff !important; }
}
