/* 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F6F9F8;
  color: #1e2b32;
  font-family: 'Roboto', serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
a {
  color: #276678;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4B266;
  outline: none;
  text-decoration: underline;
}
strong, b {
  font-weight: 700;
}

h1, h2, h3, h4, h5 {
  color: #23404d;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 {
  font-size: 32px;
  margin-bottom: 24px;
}
h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

@media (min-width: 769px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0px;
  background: transparent;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  align-items: flex-start;
  justify-content: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(39, 102, 120, 0.07);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e2e6e4;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(39, 102, 120, 0.15);
  z-index: 2;
}

.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: 14px;
  box-shadow: 0 2px 12px 0 rgba(39, 102, 120, 0.06);
  margin-bottom: 20px;
  border: 1px solid #e2e6e4;
  flex-direction: column;
  max-width: 620px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #1e2b32;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.testimonial-card p {
  color: #47697d;
  font-size: 16px;
}

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

/* --- COMPONENT: BUTTONS --- */
.cta-btn {
  display: inline-block;
  background: #F4B266;
  color: #23404d;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 36px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', serif;
  box-shadow: 0 2px 8px 0 rgba(39,102,120, 0.05);
  letter-spacing: 0.015em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  margin-top: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #276678;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(39,102,120, 0.11);
  text-decoration: none;
}

button, .btn {
  font-family: 'Montserrat', serif;
  font-size: 15px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #276678;
  color: #276678;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #276678;
  color: #fff;
}

/* --- HEADER/NAV --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 18px 0 rgba(39,102,120, 0.05);
  border-bottom: 1px solid #e2e6e4;
  position: relative;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 12px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-size: 16px;
  color: #276678;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background-color 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #F6F9F8;
  color: #F4B266;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #276678;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e1ebee;
}

/* Hide navigation and hamburger by default on desktop */
.mobile-menu-toggle {
  display: none;
}
/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 18px 0 rgba(30,43,50,0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.47, 0.37, 0.28, 0.99);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #276678;
  font-size: 28px;
  position: absolute;
  top: 18px;
  right: 20px;
  cursor: pointer;
  z-index: 2001;
  padding: 4px 11px;
  border-radius: 5px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6F9F8;
  color: #F4B266;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  padding: 0 36px;
}
.mobile-nav a {
  color: #23404d;
  font-size: 19px;
  font-family: 'Montserrat', serif;
  padding: 10px 6px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6F9F8;
  color: #F4B266;
}

/* --- Mobile Main Nav Control --- */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 980px) {
  /* Prevent overflow on smaller screens */
  .container {
    max-width: 99vw;
    padding: 0 14px;
  }
}

/* --- HERO, GRID & SECTIONS FOR HOMEPAGE AND PANELS --- */
.features-grid, .tips-preview-grid, .product-cards-grid, .ideas-grid, .posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.features-grid > div,
.tips-preview-grid > div,
.product-cards-grid > div,
.ideas-grid > div,
.posts-grid > div {
  flex: 1 1 260px;
  min-width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(39, 102, 120, 0.06);
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e6e4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.features-grid > div:hover,
.tips-preview-grid > div:hover,
.product-cards-grid > div:hover,
.ideas-grid > div:hover,
.posts-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(39,102,120,0.13);
  border-color: #F4B266;
}
.features-grid img, .product-cards-grid img, .benefits-list img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}

.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
.benefits-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(39,102,120,0.05);
  padding: 18px 18px 14px 14px;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e6e4;
  font-size: 16px;
  color: #23404d;
}

.tips-filter {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tips-filter a {
  background: #F6F9F8;
  border-radius: 6px;
  padding: 6px 18px;
  color: #276678;
  border: 1px solid #e2e6e4;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-family: 'Montserrat', serif;
}
.tips-filter a:hover, .tips-filter a:focus {
  background: #276678;
  color: #fff;
  border-color: #F4B266;
}

.tags-filter {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.tags-filter span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7e8d7;
  color: #276678;
  font-size: 14px;
  border-radius: 7px;
  padding: 4px 13px;
  font-weight: 500;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion h3 {
  font-size: 18px;
  margin-bottom: 7px;
  cursor: pointer;
}
.faq-accordion div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(39,102,120,0.08);
  padding: 16px 20px;
  border: 1px solid #e2e6e4;
}
.faq-accordion p {
  font-size: 16px;
}

/* --- ADDRESS & CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info p, .address-map p {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23404d;
}
.address-map {
  margin-top: 10px;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #e2e6e4;
  box-shadow: 0 -2px 16px 0 rgba(39,102,120,0.04);
  padding: 35px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: #23404d;
  font-size: 15px;
  transition: color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: #F4B266;
}
footer address {
  font-style: normal;
  color: #47697d;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
}
footer p {
  color: #a3b7c2;
  font-size: 14px;
  margin-top: 8px;
}

/* --- SPECIAL LAYOUTS (HOMEPAGE, PRODUCT GRID ETC) --- */
.product-cards-grid > div ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.product-cards-grid > div ul li {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #23404d;
  box-shadow: 0 -2px 24px 0 rgba(39,102,120,0.12);
  border-top: 1px solid #e2e6e4;
  z-index: 2020;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 10px 18px 10px;
  align-items: center;
  transition: transform 0.32s, opacity 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 16px;
  margin-bottom: 6px;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 18px;
}
.cookie-banner .cookie-btn {
  background: #F4B266;
  color: #23404d;
  border: none;
  padding: 10px 28px;
  border-radius: 26px;
  font-family: 'Montserrat', serif;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(39, 102, 120, 0.06);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #276678;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #fff;
  border: 1px solid #23404d;
  color: #23404d;
}
.cookie-banner .cookie-btn.cookie-reject:hover, .cookie-banner .cookie-btn.cookie-reject:focus {
  background: #23404d;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #fff;
  border: 1px solid #F4B266;
  color: #F4B266;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #F4B266;
  color: #23404d;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(39, 102, 120, 0.33);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 32px 32px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 48px #23404d18;
  min-width: 300px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 16px;
  background: none;
  border: none;
  font-size: 25px;
  color: #276678;
  cursor: pointer;
  border-radius: 4px;
  padding: 3px 8px;
  transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6F9F8;
  color: #F4B266;
}
.cookie-modal-content h2 {
  font-size: 21px;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  margin-bottom: 12px;
}
.cookie-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #e4e7e6;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
  flex-shrink: 0;
  margin-left: 7px;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch-label {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  background: inherit;
}
.cookie-switch-handle {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(150,180,192,0.18);
  transition: left 0.16s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-switch-label {
  background: #F4B266;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-switch-label .cookie-switch-handle {
  left: 23px;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  .section, section {
    padding: 28px 0px;
    margin-bottom: 42px;
  }
  .content-wrapper {
    max-width: 99vw;
    padding: 0 8px;
    gap: 20px;
  }
  .card-container,.features-grid, .tips-preview-grid, .product-cards-grid, .ideas-grid, .posts-grid, .benefits-list {
    gap: 14px;
  }
  .features-grid > div, .tips-preview-grid > div, .product-cards-grid > div, .ideas-grid > div, .posts-grid > div {
    min-width: 95vw;
    padding: 19px 12px;
  }
  .testimonial-card {
    padding: 15px 10px;
    font-size: 16px;
    max-width: 99vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .faq-accordion div {
    padding: 12px 10px;
  }
  header .container {
    height: 60px;
    gap: 6px;
  }
  .cookie-modal-content {
    padding: 20px 7vw 16px 7vw;
  }
  footer .container {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .cookie-modal-content { min-width: auto; padding: 12px 5vw 12px 5vw; }
}

/* --- TRANSITION AND MICRO-INTERACTIONS --- */
.card, .features-grid > div, .tips-preview-grid > div, .product-cards-grid > div, .ideas-grid > div, .posts-grid > div, .testimonial-card, .faq-accordion div {
  transition: box-shadow 0.22s, border-color 0.16s, background 0.11s;
}
.cta-btn, button, .btn, .cookie-banner .cookie-btn {
  transition: background 0.13s, color 0.13s, box-shadow 0.14s, border 0.16s;
}

/* Hide elements visually when needed (for cookie/modal interactivity) */
.visually-hidden {
  position: absolute;
  border: 0;
  padding: 0;
  margin: -1px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
}
