/* =====================
   RESET & BASE STYLES
   ===================== */
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, 
main, 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%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', 'Arial', sans-serif;
  color: #22314D;
  background: #FFFFFF;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: #22314D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #15784A;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  outline: none;
  background: none;
  border: none;
}
button {
  cursor: pointer;
}

/* =====================
   TYPOGRAPHY & SCALE
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  color: #22314D;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, li {
  font-family: 'Roboto', 'Arial', sans-serif;
  color: #22314D;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-family: 'Merriweather', 'Georgia', serif;
}
.text-section ul, .content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.text-section ul li, .content-wrapper ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  padding-left: 2px;
}
@media (min-width: 576px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  p, li { font-size: 1.0625rem; }
}

/* =====================
   BRAND COLORS
   ===================== */
:root {
  --primary: #22314D;
  --secondary: #E9ECEF;
  --accent: #15784A;
  --gray: #8694AE;
  --background: #FFFFFF;
  --muted: #F7F7FA;
  --error: #B5222B;
  --shadow: rgba(34,49,77,0.08);
}


/* ===============
   CONTAINER & LAYOUT
   =============== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1040px;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column !important;
  gap: 24px;
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--muted);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6vw;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
  }
  .text-section {
    flex: 1 1 0%;
  }
}

/* =====================
   NAVIGATION
   ===================== */
header {
  background: var(--background);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
  z-index: 110;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1rem;
  padding: 16px 20px;
}
.main-nav > a {
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav > a.cta.primary {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
  font-size: 1.0625rem;
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 24px;
  padding: 8px 28px;
  box-shadow: 0 2px 8px var(--shadow);
}
.main-nav > a.cta.primary:hover, .main-nav > a.cta.primary:focus {
  background: #22314D;
  color: #fff;
}
.main-nav > a:hover:not(.cta), .main-nav > a:focus:not(.cta) {
  background: #e9ecef;
  color: var(--accent);
}
.main-nav img {
  height: 40px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 6px;
}
@media (max-width: 998px) {
  .main-nav {
    gap: 18px;
  }
  .main-nav img {
    height: 32px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* -- Hamburger menu toggle -- */
.mobile-menu-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  border: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  transition: background .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===========
   MOBILE MENU
   =========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.82,0,0.17,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: -4px 0 24px rgba(34,49,77,0.12);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  font-size: 2.2rem;
  padding: 3px 10px;
  border-radius: 6px;
  margin: 22px 20px 12px 0;
  border: none;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 36px 28px 12px 28px;
}
.mobile-nav a {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px solid #e9ecef;
  background: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  width: 100%;
  display: block;
}
.mobile-nav a.cta, .mobile-nav a.cta.primary {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  margin: 12px 0 0 0;
  border-bottom: none;
  font-size: 1.125rem;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e9ecef;
  color: var(--accent);
}
.mobile-nav a.cta.primary:hover, .mobile-nav a.cta.primary:focus {
  background: #22314D;
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====================
   HERO / CTA BUTTONS
   ==================== */
.cta,
.cta.primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 32px 10px 32px;
  border-radius: 24px;
  margin-top: 16px;
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.125rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 10px var(--shadow);
  transition: background 0.16s, box-shadow 0.14s, transform 0.13s;
  border: none;
  outline: none;
}
.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cta:hover, .cta:focus {
  background: #22314D;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 24px var(--shadow), 0 1px 10px var(--shadow);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #22314D;
  color: #fff;
  border-color: #22314D;
}

/* ===============
   SECTIONS
   =============== */
section {
  margin-bottom: 60px;
  padding: 0;
  background: transparent;
}
section.hero {
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 28px 28px;
  padding: 0;
  box-shadow: 0 5px 32px var(--shadow);
  margin-bottom: 68px;
}
section.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero .content-wrapper {
  color: #fff;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 2.1rem;
  font-family: 'Merriweather', serif;
}
.hero p {
  color: #f2f5f8;
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.hero .cta {
  background: var(--accent);
}
.hero .cta:hover, .hero .cta:focus {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 5px 20px var(--shadow);
}
@media (min-width: 768px) {
  section.hero .container {
    padding-top: 92px;
    padding-bottom: 92px;
  }
  .hero h1 { font-size: 3rem; }
}

.features {
  background: var(--muted);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 40px 0;
}
.features .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.features li {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--primary);
  padding-left: 0.25em;
}
@media (max-width: 768px) {
  .features .content-wrapper {
    flex-direction: column;
  }
}

.services {
  background: #fff;
  box-shadow: 0 1px 12px var(--shadow);
  border-radius: 14px;
  padding: 36px 0 30px 0;
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.services ul li {
  font-size: 1rem;
  margin-bottom: 0px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 18px 16px 14px 14px;
  color: var(--primary);
  box-shadow: 0 1px 6px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.services ul li strong {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  color: var(--primary);
  margin-right: 7px;
}
.services ul li span {
  font-family: 'Roboto', sans-serif;
  color: var(--accent);
  margin-top: 4px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.services .cta {
  margin-top: 24px;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .services ul {
    gap: 20px;
  }
  .services ul li {
    font-size: 1.1rem;
    padding: 22px 32px 16px 20px;
  }
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonials {
  background: var(--muted);
  border-radius: 18px;
  padding: 38px 0 42px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  flex-direction: row !important;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E0E2E6;
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 20px 32px 22px 22px;
  min-width: 245px;
  max-width: 360px;
  flex: 1 1 270px;
  transition: box-shadow 0.18s, transform 0.13s;
  color: #22314D;
}
.testimonial-card p {
  font-family: 'Merriweather', serif;
  font-size: 1.06rem;
  color: #22314D;
}
.testimonial-card span {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.96rem;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.02em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px var(--shadow);
  transform: translateY(-2px) scale(1.012);
}
@media (max-width:900px){
  .testimonials .content-wrapper{
    gap: 14px;
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 18px 14px 15px 14px;
  }
}

.contact-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  padding: 46px 0 36px 0;
}
.contact-cta .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-cta .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px;
  align-items: center;
}
.contact-cta .text-section {
  flex: 3 1 400px;
  color: #fff;
}
.contact-cta h2, .contact-cta p, .contact-cta li {
  color: #fff;
}
.contact-cta a.cta {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  margin-top: 22px;
}
.contact-cta a.cta:hover, .contact-cta a.cta:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 900px) {
  .contact-cta .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .contact-cta .container {
    padding: 0 14px;
  }
}

/* ============
   FOOTER
   ============ */
footer {
  border-top: 1.5px solid #E1E4E8;
  background: #f7f7fa;
  padding: 39px 0 26px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #22314D;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.19s, color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: #fff;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.footer-logo img {
  height: 54px;
  border-radius: 7px;
}

/* =============
   ADDITIONAL FLEXBOX PATTERNS
   ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 26px 19px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 2;
  transform: translateY(-2px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Ensure spacing and prevent overlap for all flexbox containers */
.card-container > *, .content-grid > *, .content-wrapper > *, .footer-nav > * {
  margin-bottom: 0;
}

/* ============== 
   FORMS (Contact etc.)
   ============== */
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  border: 1px solid #CED4DA;
  background: #fbfbfd;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color 0.15s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(21,120,74,0.11);
}
label {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #22314D;
}

/* ================
   ANIMATIONS
   ================ */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .content-wrapper > * { animation: fadeInUp 0.7s both; }
  .testimonial-card { transition: box-shadow 0.22s, transform 0.145s; }
}

/* ====================
   COOKIE BANNER & MODAL
   ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #22314D;
  box-shadow: 0 -2px 24px var(--shadow);
  z-index: 99999;
  padding: 24px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.49s both;
}
.cookie-banner p {
  font-size: 1rem;
  color: #22314D;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: 'Merriweather', serif;
  font-size: 0.98rem;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s, color 0.2s;
  font-weight: bold;
}
.cookie-banner .cookie-btn.secondary {
  background: #f7f7fa;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #22314D;
  color: #fff;
}
.cookie-banner .cookie-btn.secondary:hover,
.cookie-banner .cookie-btn.secondary:focus {
  background: #e9ecef;
  color: var(--accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 100000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,49,77,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.41s both;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 32px var(--shadow);
  padding: 36px 28px;
  min-width: 320px;
  max-width: 95vw;
  font-family: 'Roboto', sans-serif;
  color: #22314D;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: fadeInUp 0.44s both;
}
.cookie-modal h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.7;
  font-style: italic;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #22314D;
  background: transparent;
  font-size: 1.8rem;
  border: none;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: #15784A;
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* Custom Toggle Switch */
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #E9ECEF;
  transition: .4s;
  border-radius: 22px;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2.5px;
  background-color: #fff;
  transition: .29s;
  border-radius: 50%;
  box-shadow: 0 1px 4px #22314D14;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background-color: var(--accent);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(15px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}
.cookie-modal .cookie-actions button {
  font-size: 1rem;
  padding: 9px 27px;
  border-radius: 26px;
}
@media (max-width: 600px) {
  .cookie-banner { padding: 17px 8px 16px 8px; }
  .cookie-modal { padding: 19px 7vw; }
  .cookie-modal .cookie-modal-close {
    top: 10px; right: 11px; font-size: 1.4rem;
  }
}

/* =============
   RESPONSIVE DETAILS
   ============= */
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .footer-nav {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ============
   PRINT STYLES
   ============ */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, footer, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  main, .container, .section { box-shadow: none !important; }
}
section {
  padding: 10px 0;
}