/* ===================================================================
   RESET & NORMALIZE (basic normalize rules and sensible resets)
=================================================================== */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #F5F7FA;
}
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, sans-serif;
  color: #212A36;
  background: #F5F7FA;
  font-size: 16px;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #8AB1C9;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:root {
  --primary: #212A36;
  --secondary: #8AB1C9;
  --accent: #F5F7FA;
  --focus: #8AB1C9;
  --shadow: 0 4px 12px rgba(33,42,54,0.07);
  --radius: 14px;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  color: #212A36;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: 'Lato', Arial, sans-serif;
  color: #212A36;
  margin-bottom: 8px;
  font-weight: 700;
}
h4 {
  font-size: 1rem;
}
p, ul, ol, blockquote, details, summary, li, span {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #212A36;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
}
blockquote {
  font-style: italic;
  color: #374151;
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* ===================================================================
   LAYOUT CONTAINERS (Mobile-first Responsive)
=================================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 20px rgba(33,42,54,0.16);
  transform: translateY(-3px) scale(1.012);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FAFCFE;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(33,42,54,0.07);
  min-width: 230px;
  max-width: 480px;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(33,42,54,0.17);
  border-left: 5px solid var(--primary);
}
.testimonial-card p {
  color: #212A36;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: .98rem;
  font-weight: 500;
  color: #4B4B4B;
}

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

.article-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-tiles article {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 20px;
  flex: 1 1 300px;
  min-width: 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-tiles article:hover {
  box-shadow: 0 8px 20px rgba(33,42,54,0.16);
  transform: translateY(-3px) scale(1.008);
}

/* ===================================================================
   HEADER & NAVIGATION
=================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(33,42,54,0.05);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 42px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
  color: #212A36;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F7FA;
  color: #8AB1C9;
}
/* Sticky header shrink on scroll stub; if needed use JS */

/* ===================================================================
   BUTTONS & LINKS
=================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,42,54,0.07);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  margin-top: 6px;
  margin-bottom: 6px;
}
.button.primary {
  background: var(--primary);
  color: #fff;
}
.button.secondary {
  background: var(--secondary);
  color: #212A36;
}
.button:hover, .button:focus {
  box-shadow: 0 6px 20px rgba(33,42,54,0.17);
  transform: translateY(-2px) scale(1.012);
  background: #182129;
  color: #F5F7FA;
}
.button.secondary:hover, .button.secondary:focus {
  background: #aac6d7;
  color: #212A36;
}
.button:active {
  box-shadow: 0 2px 5px rgba(33,42,54,0.10);
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero {
  background: linear-gradient(90deg, #F5F7FA 70%, #e5eef4 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.23rem;
  color: #374151;
  max-width: 650px;
  margin-bottom: 24px;
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
  background: #fff;
  border-top: 1.5px solid #E5E7EB;
  margin-top: 60px;
  padding: 0 0 10px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.footer-logo img {
  height: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}
.footer-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.99rem;
  color: #8AB1C9;
  padding: 4px 7px;
  border-radius: 4px;
  transition: background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F5F7FA;
  color: #212A36;
}
.footer-contact {
  color: #64748B;
  font-size: 0.96rem;
  text-align: center;
}
footer span {
  word-break: keep-all;
}

/* ===================================================================
   ICONS WITH TEXT (e.g. Feature or Contact lists)
=================================================================== */
ul li, ol li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  font-size: 1.01rem;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #F5F7FA;
  box-shadow: 0 1px 3px rgba(33,42,54,0.05);
  margin-right: 3px;
}

/* ===================================================================
   DETAILS: FAQ DROPDOWNS
=================================================================== */
details {
  background: #F5F7FA;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33,42,54,0.05);
  padding: 13px 16px;
}
details[open] {
  background: #e6ecf1;
}
details summary {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
  outline: none;
}
details[open] summary {
  color: #8AB1C9;
}
details div {
  margin-top: 8px;
  color: #506070;
  font-size: 0.96rem;
}

/* ===================================================================
   MOBILE BURGER MENU
=================================================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #212A36;
  cursor: pointer;
  z-index: 70;
  position: absolute;
  top: 18px;
  right: 24px;
  padding: 6px 10px;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--focus);
  background: #F5F7FA;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 8px 40px rgba(33,42,54,0.18);
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.46,.03,.52,.96);
  z-index: 120;
  padding-top: 42px;
  padding-bottom: 60px;
  padding-left: 0;
  padding-right: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #212A36;
  cursor: pointer;
  align-self: flex-end;
  margin: 16px 22px 8px 0;
  padding: 4px 8px;
  z-index: 130;
  transition: background 0.14s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--focus);
  background: #e6ecf1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}
.mobile-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.2rem;
  color: #212A36;
  background: #F5F7FA;
  padding: 13px 34px;
  border-radius: 8px;
  font-weight: 600;
  width: 90%;
  text-align: center;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8AB1C9;
  color: #fff;
}

/* Hide main nav/show burger mobile */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .button.primary {
    display: none;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Overlay when mobile menu is open */
.mobile-menu.open::before {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43,56,73,0.12);
  z-index: 119;
  pointer-events: none;
}

/* ===================================================================
   COOKIE CONSENT BANNER
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 26px rgba(33,42,54,0.13);
  border-top: 2px solid #e6ecf1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2000;
  animation: cookie-in 0.45s cubic-bezier(.54,.05,.45,.95);
  font-size: 1rem;
}
@keyframes cookie-in {
  from { transform: translateY(85px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 500px;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 9px 18px;
  border: none;
  background: #F5F7FA;
  color: #212A36;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(33,42,54,0.06);
  margin: 0 2px;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner button.accept {
  background: #8AB1C9;
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #212A36;
  color: #fff;
}
.cookie-banner button.reject {
  background: #e5eef4;
  color: #212A36;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #aac6d7;
  color: #212A36;
}
.cookie-banner button.settings {
  background: #fff;
  color: #8AB1C9;
  border: 1.5px solid #8AB1C9;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #f2f8fc;
  color: #212A36;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,42,54,0.23);
  z-index: 2010;
  animation: cookie-modal-in 0.33s cubic-bezier(.54,.05,.45,.95);
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  padding: 32px 22px 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cookie-modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8AB1C9;
  width: 21px;
  height: 21px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-essential {
  font-style: italic;
  color: #64748B;
  margin-left: 4px;
  font-size: 0.98rem;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  font-size: 1rem;
}

/* Hide cookie modal by default */
.cookie-modal[aria-hidden="true"] {
  display: none !important;
}

/* ===================================================================
   RESPONSIVE QUERIES
=================================================================== */
@media (max-width: 900px) {
  .article-tiles {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 22px 7px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .main-nav {
    gap: 14px;
  }
  .content-grid {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav {
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero {
    padding: 33px 0 18px 0;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    align-items: flex-start;
    padding: 15px;
    gap: 12px;
  }
  .card, .article-tiles article {
    min-width: 0;
    padding: 16px 10px;
  }
}
@media (max-width: 540px) {
  header .container {
    padding-left: 7px;
    padding-right: 7px;
    gap: 5px;
  }
  .footer-logo img {
    height: 39px;
  }
  .cookie-banner, .cookie-modal-content {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===================================================================
   MICRO-INTERACTIONS & MISC
=================================================================== */
.button, .main-nav a, .mobile-nav a, .testimonial-card, .card, .article-tiles article {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

select, input, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 7px 10px;
  border: 1.5px solid #E0E7EF;
  border-radius: 6px;
  background: #FAFCFE;
  transition: border 0.18s;
}
select:focus, input:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
  outline: 2px solid var(--secondary);
}

/* Accessibility helper for hidden visually */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

/* Custom overrides for any possible conflicts */
