/* ---------------------------------------------------------
   CSS RESET & NORMALIZE (Mobile-First)
---------------------------------------------------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F0EDED;
  color: #17354D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: #17354D; text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: #69A297; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

input, button, textarea, select {
  font: inherit;
  border-radius: 0;
}
button { cursor: pointer; border: none; background: none; }

/* ----------- FONT IMPORT (for demo, use local/hosted in prod) ----------- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* ---------------------------------------------------------
    COLOR PALETTE / THEME VARIABLES
---------------------------------------------------------- */
:root {
  --color-primary: #17354D;
  --color-secondary: #69A297;
  --color-accent: #F0EDED;
  --color-white: #fff;
  --color-dark: #111823;
  --color-border: #D4D6D4;
  --color-muted: #E8E6E1;
  --color-link: #17354D;
  --color-link-hover: #69A297;
  --color-shadow: rgba(23,53,77,0.08);
  --radius: 10px;
  --box-shadow: 0 4px 20px rgba(23,53,77,0.09);
}

/* ---------------------------------------------------------
   TYPOGRAPHY (Elegant & Classic)
---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, Times, serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }
p, ul, ol {font-family: 'Open Sans', Arial, Helvetica, sans-serif; margin-bottom: 20px; font-size: 1rem;}
li { margin-bottom: 12px; }

.text-section h2,
.text-section h3 { margin-top: 18px; }

blockquote, .testimonial-card p {
  font-style: italic;
  color: var(--color-primary);
  font-family: 'Roboto Slab', Georgia, Times, serif;
  font-size: 1.06rem;
}
.testimonial-card span { font-size: 0.96rem; color: #17354D; opacity: 0.8; font-style: normal; }

/* ---------------------------------------------------------
    CONTAINER & FLEX LAYOUTS
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
    SECTIONS & SPACING
---------------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---------------------------------------------------------
    FLEX PATTERNS FOR CARDS/FEATURES
---------------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(23,53,77,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------
    NAVIGATION (Desktop & Mobile)
---------------------------------------------------------- */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0 0 0;
  background: var(--color-accent);
  z-index: 20;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  font-size: 1rem;
}
header nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
header nav .primary-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'Roboto Slab', Georgia, Times, serif;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 10px 26px;
  transition: background 0.22s, color 0.18s, box-shadow 0.14s;
  margin-left: 8px;
  border: 1px solid transparent;
}
header nav .primary-btn:hover, header nav .primary-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 18px rgba(23,53,77,0.20);
}

/* ---------------------------------------------------------
    MOBILE MENU
---------------------------------------------------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 101;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 100%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 18px var(--color-shadow);
  border: 1.5px solid var(--color-border);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 25px 20px 25px;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.5,.04,.38,1.13);
  box-shadow: 0 8px 32px rgba(23,53,77,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 100%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  align-self: flex-end;
  margin-bottom: 16px;
  border: 1.5px solid var(--color-border);
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  padding: 13px 0;
  font-size: 1.18rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 8px;
  padding-left: 10px;
}

/* Hide navigation on mobile by default */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* ---------------------------------------------------------
    HERO / CTA BUTTONS
---------------------------------------------------------- */
.primary-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 13px 38px;
  border-radius: var(--radius);
  font-size: 1.18rem;
  font-family: 'Roboto Slab', Georgia, Times, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 10px;
  margin-bottom: 4px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.17s, box-shadow 0.12s;
  display: inline-block;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(23,53,77,0.20);
}

/* ---------------------------------------------------------
    FEATURES, LISTS, ICONS
---------------------------------------------------------- */
.content-wrapper > ul, .text-section > ul, .content-wrapper > ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 0px;
}
.content-wrapper > ul > li,
.text-section > ul > li,
.content-wrapper > ol > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 16px 14px;
  font-size: 1rem;
  color: var(--color-dark);
  border-left: 4px solid var(--color-secondary);
}
.content-wrapper > ul > li img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 8px;
  filter: grayscale(12%);
}
.content-wrapper > ol {
  counter-reset: elegant-list;
}
.content-wrapper > ol > li {
  counter-increment: elegant-list;
}
.content-wrapper > ol > li::before {
  content: counter(elegant-list)".";
  color: var(--color-secondary);
  font-family: 'Roboto Slab', Georgia, Times, serif;
  font-weight: 700;
  margin-right: 16px;
  font-size: 1.23em;
}

/* Resource-Downloads Style */
.text-section ul li a {
  color: var(--color-secondary);
  text-decoration: underline;
}
.text-section ul li a:hover { color: var(--color-primary); }

/* ---------------------------------------------------------
    TESTIMONIAL CARDS
---------------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  padding: 20px 26px 18px 24px;
  margin-bottom: 20px;
  max-width: 600px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(23,53,77,0.13);
}

/* ---------------------------------------------------------
    FOOTER
---------------------------------------------------------- */
footer {
  background: var(--color-accent);
  border-top: 1.5px solid var(--color-border);
  padding: 40px 0 32px 0;
  font-size: 0.98rem;
}
footer .container { padding-bottom: 0; }
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-primary);
  text-decoration: underline dotted;
  padding: 0px 4px;
  border-radius: 5px;
  font-size: 0.97rem;
  transition: background 0.12s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-white);
  background: var(--color-secondary);
}
footer strong { color: var(--color-primary); font-family: 'Roboto Slab', serif; }
footer img { max-width: 120px; margin-top: 10px; }

/* ---------------------------------------------------------
   COOKIE BANNER & PREFERENCES MODAL
---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 18px 16px 18px 16px;
  box-shadow: 0 -2px 18px rgba(23,53,77,0.13);
  border-top: 1.5px solid var(--color-secondary);
  font-size: 1rem;
  transition: transform 0.28s cubic-bezier(.49,.13,.31,1.23);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  justify-content: center;
}
.cookie-banner button,
.cookie-modal button {
  font-family: 'Roboto Slab', serif;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 8px;
  border: none;
  margin-right: 3px;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.17s;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .reject {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner .settings {
  background: var(--color-white);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1510;
  background: rgba(23,53,77,0.19);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.24s ease;
  opacity: 1;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(23,53,77,0.18);
  padding: 34px 22px 28px 22px;
  min-width: 315px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: modalIn 0.33s cubic-bezier(.65,-0.07,.26,1.15);
}
@keyframes modalIn {
  0% { transform: scale(0.8) translateY(50px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal .modal-header {
  font-family: 'Roboto Slab', serif;
  font-size: 1.17rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 100%;
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 2;
  border: none;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cookie-modal ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  box-shadow: none;
  padding: 4px 0 4px 0;
  font-size: 0.99rem;
  color: var(--color-primary);
  border: 0;
  border-left: 3px solid var(--color-border);
}
.cookie-modal .toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-muted);
  border-radius: 11px;
  position: relative;
  outline: none;
  margin-left: auto;
  transition: background 0.18s;
}
.cookie-modal .toggle:checked {
  background: var(--color-secondary);
}
.cookie-modal .toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 100%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.20s;
  box-shadow: 0 1px 4px rgba(23,53,77,0.12);
}
.cookie-modal .toggle:checked:before {
  left: 18px;
  background: var(--color-white);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  padding: 8px 18px;
  font-size: 1rem;
}

/* ---------------------------------------------------------
    RESPONSIVE/MOBILE ADJUSTMENTS
---------------------------------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 98%; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  section, .section { padding: 28px 0; }
  .content-wrapper { gap: 16px; }
  .content-wrapper > ul > li,
  .text-section > ul > li,
  .content-wrapper > ol > li {
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px;
    font-size: 0.99rem;
  }
  .testimonial-card { max-width: 100%; padding: 16px 10px 14px 10px; }
  .card { padding: 14px 10px; min-width: 98%; }
  .card-container, .content-grid { gap: 10px; }
  .footer .content-wrapper { gap: 18px; }
  .text-image-section { flex-direction: column !important; gap: 14px; }
}
/* Adjust section gap for last section */
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* Flex direction column for text-image layout on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column !important; }
}

/* Larger typography for Hero/CTA on larger screens */
@media (min-width: 769px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
}

/* ---------------------------------------------------------
    ANIMATIONS, TRANSITIONS, MICRO-INTERACTIONS
---------------------------------------------------------- */
section, .card, .feature-item, .testimonial-card {
  transition: box-shadow 0.18s, background 0.17s;
}
.primary-btn:active, .cookie-banner .accept:active {
  transform: translateY(2px) scale(0.97);
}
.header nav a:active {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.testimonial-card {
  animation: fadeInTestimonial 0.64s cubic-bezier(.59,.07,.44,1.19);
}
@keyframes fadeInTestimonial {
  from { opacity:0; transform:translateY(36px); }
  to   { opacity:1; transform:none; }
}

/* ---------------------------------------------------------
    UTILITIES, GENERAL
---------------------------------------------------------- */
.hide { display: none !important; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Spacing rules for cards/sections (minimum 20px between) */
.card, .feature-item, .testimonial-card, .section, section {
  margin-bottom: 20px;
}
.card:last-child, .feature-item:last-child, .testimonial-card:last-child, .section:last-child, section:last-child { margin-bottom: 0; }

/* Prevent content overlap */
.card, .feature-item, .testimonial-card, nav, .text-section { z-index: 1; position: relative; }

/* Remove absolute positioning for content blocks, only allow on decoration (e.g. cookie modal close) */
/* All layouts use only flexbox, NOT grid/columns! */


/* ---------------------------------------------------------
    END OF CSS
---------------------------------------------------------- */
