/* === 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9FBFC;
  color: #1A334B;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { padding-left: 1.2em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* === BRAND & FONT === */
:root {
  --color-primary: #1A334B;
  --color-secondary: #A9D8E8;
  --color-accent: #FFD966;
  --color-white: #FFFFFF;
  --color-dark: #142338;
  --color-muted: #F3F6F8;
  --color-shadow: rgba(26,51,75,0.08);
  --color-shadow-strong: rgba(26,51,75,0.15);
  --radius-s: 8px;
  --radius-m: 16px;
  --transition: 0.3s cubic-bezier(.57,.31,.53,1.32);
  --shadow-card: 0 4px 18px var(--color-shadow);
  --shadow-strong: 0 6px 24px var(--color-shadow-strong);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #A9D8E8 0%, #F9FBFC 80%);
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }

p, ul, ol, dl, blockquote, .subheadline {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--color-dark);
}
ul li, ol li {margin-bottom: 10px;}

strong { font-weight: 700; }
em { font-style: italic; }

.subheadline { font-size: 1.18rem; color: var(--color-primary); margin-bottom: 28px; font-weight: 400; opacity: .92; }
.text-section p, .text-section ul, .text-section ol, .text-section dl { max-width: 680px; }

/* ---- General Containers ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.text-section {
  padding: 0;
  align-items: flex-start;
}

/* ---- Section Spacing ---- */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section.hero-section {
  background: linear-gradient(120deg, #A9D8E8 0%, #FFF 100%);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 72px;
  min-height: 360px;
  box-shadow: 0 6px 36px -18px var(--color-shadow-strong);
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 18px 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0 4px 0;
  position: relative;
  color: var(--color-primary);
  transition: color var(--transition);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
}
.cta-btn {
  background: linear-gradient(92deg, var(--color-accent) 0%, #FFE57A 100%);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-m);
  box-shadow: 0 3px 12px var(--color-shadow);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  text-decoration: none;
  margin-left: 12px;
  display: inline-block;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(120deg, #FFD966 0%, #FFEA91 100%);
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  margin-left: auto;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 40;
  line-height: 1;
  transition: background var(--transition);
  border-radius: var(--radius-s);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(125deg, var(--color-white) 40%, #A9D8E8 140%);
  box-shadow: -8px 0 34px 0 var(--color-shadow-strong);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 32px 32px 24px 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 3px 6px 6px 6px;
  border-radius: var(--radius-s);
  transition: background var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.20rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 12px 0;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

@media (max-width:900px) {
  header .container { flex-direction: row; gap:16px; }
  header nav { gap: 16px; }
}
@media (max-width: 768px) {
  header .container {
    padding: 12px 12px;
    flex-direction: row;
    gap: 10px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === MAIN LAYOUTS & FLEX SPACING === */
.section,
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container, .feature-grid, .content-grid, .blog-post-list, .tips-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  width: 100%;
  align-items: stretch;
}
.card {margin-bottom: 20px; position: relative; border-radius: var(--radius-m);}
.content-grid {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; border-radius: var(--radius-m); background: var(--color-white); box-shadow: var(--shadow-card); margin-top:18px;margin-bottom: 20px; min-width:0; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- Example Cards (eg feature-grid/item) --- */
.feature-grid > div,
.card, .blog-post-list article, .tips-icons > div {
  flex: 1 1 280px;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
  position: relative;
  gap: 12px;
}
.feature-grid > div:hover, .card:hover, .blog-post-list article:hover, .tips-icons > div:hover {
  box-shadow: 0 8px 36px var(--color-shadow-strong);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img,
.tips-icons img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

/* --- Testimonial Section --- */
.testimonial-card {
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-m);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 20px;
  gap: 16px;
}
.testimonial-card blockquote {
  quotes: "\201C" "\201D";
  font-style: italic;
  margin-right: 18px;
  font-size: 1rem;
  color: var(--color-primary);
}
.testimonial-card span {
  font-size: 0.96rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 10px;
  align-self: flex-end;
}

/* --- Footer --- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  margin-top: 68px;
  padding: 0;
}
footer .container {
  padding: 32px 20px 18px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 52px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav, .brand-info, .social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
footer nav {
  gap: 12px;
}
footer nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer .brand-info p { color: var(--color-white); font-size: 1rem; margin-bottom: 0px; }
footer .brand-info img { height: 36px; margin-bottom: 5px; }
footer .social-links { flex-direction: row; gap: 18px; }
footer .social-links img { width: 28px; height: 28px; filter: grayscale(.25) brightness(1.09); transition: filter var(--transition); }
footer .social-links img:hover, footer .social-links img:focus { filter: brightness(1.18); }
footer small { color: #e5ecf0; opacity: 0.8; font-size: 0.92rem; display: block; margin-top: 24px; width: 100%; }

/* --- Blog/Post List --- */
.blog-post-list {
  margin-top: 6px;
  gap: 24px;
}
.blog-post-list article {
  background: var(--color-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  gap: 8px;
}
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.tags-cloud span {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.96rem;
  border-radius: var(--radius-s);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.tags-cloud span:hover, .tags-cloud span:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --- Newsletter signup --- */
.newsletter-signup {
  padding: 24px 22px;
  border-radius: var(--radius-m);
  background: var(--color-secondary);
  margin: 20px 0 0 0;
  box-shadow: var(--shadow-card);
  width: 100%;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-signup h3 {
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* --- Contact & Info Lists --- */
.content-wrapper ul, .content-wrapper dl {
  margin-bottom: 24px;
}
.content-wrapper ul li, .content-wrapper dl dt, .content-wrapper dl dd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.content-wrapper ul li img, .content-wrapper dl dt img {
  width: 22px;
  height: 22px;
}

/* --- Tips Icons --- */
.tips-icons {
  gap: 24px;
  margin-top: 22px;
}
.tips-icons > div {
  background: var(--color-secondary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  color: var(--color-primary);
  font-weight: 500;
  font-family: var(--font-display);
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  min-width: 160px;
  font-size: 1rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.tips-icons > div:hover, .tips-icons > div:focus {
  background: var(--color-accent);
  box-shadow: var(--shadow-strong);
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: var(--color-white);
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -4px 18px var(--color-shadow-strong);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 24px 14px;
  gap: 18px;
  animation: slideUpCookie 0.7s cubic-bezier(.65,.39,.29,1.13);
  font-size: 1rem;
}
@keyframes slideUpCookie {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text { color: var(--color-primary); font-family: var(--font-body); }
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-s);
  margin: 0 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #FFE57A;
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-primary);
  font-weight: 500;
  outline: 1.5px solid var(--color-secondary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- Cookie Modal Preferences --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(26,51,75,0.31);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade .4s cubic-bezier(.65,.39,.29,1.13);
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 48px var(--color-shadow-strong);
  padding: 36px 32px 24px 32px;
  min-width: 320px;
  max-width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-modal h2 { margin-bottom: 8px; color: var(--color-primary); font-size: 1.45rem; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-modal input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: var(--color-secondary);
  margin-right: 8px;
}
.cookie-modal .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  position: absolute;
  top: 18px; right: 24px;
  cursor: pointer;
}

/* --- Accessibility Focus --- */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px dashed var(--color-accent);
  outline-offset: 2px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid > div,
  .card, .blog-post-list article {
    flex-basis: 48%;
    min-width: 210px;
  }
  footer .content-wrapper {gap:28px;}
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section, section, .hero-section {padding: 28px 10px; margin-bottom: 34px;}
  .feature-grid, .card-container, .blog-post-list, .tips-icons, .content-grid {flex-direction: column; gap: 18px;}
  .feature-grid > div, .card, .blog-post-list article, .tips-icons > div { flex-basis: unset; min-width: unset; width: 100%; }
  .testimonial-card {flex-direction: column; padding: 16px; gap:10px;}
  .text-image-section { flex-direction: column; gap: 18px; }
  footer .content-wrapper {gap:18px 0; flex-direction:column; align-items: flex-start;}
}
@media (max-width: 520px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .container { padding: 0 6px; }
  .feature-grid, .card-container, .blog-post-list, .tips-icons { gap: 11px; }
  .newsletter-signup {padding: 14px 8px;gap:4px;}
  footer .container { padding: 18px 6px; }
}

/* === Animations & Microinteractions === */
.cta-btn, button, .tags-cloud span {
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}
.card, .feature-grid > div, .blog-post-list article, .tips-icons > div, .newsletter-signup, .testimonial-card {
  will-change: box-shadow, transform;
}

/* === Miscellaneous Classes === */
.text-section { gap:12px; }
ul, ol { margin-bottom: 20px; }
dt { font-weight:bold; margin-bottom:0; }
dd { margin-left: 18px; margin-bottom:10px; }

/* === Util: Card Shadow, Radius, Gaps === */
.card, .feature-grid > div, .testimonial-card, .blog-post-list article, .tips-icons > div, .newsletter-signup {
  margin-bottom: 20px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

/* === Ensure Min Margin Between All Cards/Sections === */
.card-container > *, .feature-grid > *, .blog-post-list > *, .tips-icons > *, .testimonial-card {
  margin-bottom: 20px;
}
.section + .section, section + section { margin-top: 20px; }

/* === Z-index Layering === */
.mobile-menu, .mobile-menu.active, .cookie-banner, .cookie-modal {
  z-index: 1500;
}

/* === Hide Scroll When Mobile Menu Open === */
body.menu-open {
  overflow: hidden;
}

/* === END === */
