/* CSS RESET & BASES */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #254C69;
  background: #FFF7F2;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

:root {
  --color-primary: #254C69;
  --color-secondary: #FFF7F2;
  --color-accent: #137367;
  --color-accent-light: #2B958B;
  --color-card: #ffffff;
  --color-shadow: rgba(37,76,105,0.07);
  --color-shadow-strong: rgba(37,76,105,0.17);
  --color-warning: #FDCA81;
  --color-error: #D4927B;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; }
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #324e60;
}
strong {
  font-weight: 700;
  color: #254C69;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}

/* BUTTON STYLES */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 32px;
  padding: 12px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-light);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-shadow-strong);
}
.btn-secondary {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-accent-light);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-shadow-strong);
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 6px var(--color-shadow);
  padding: 0;
  border-radius: 0 0 18px 18px;
  margin-bottom: 30px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.logo img {
  height: 48px;
  border-radius: 12px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent-light);
  color: #fff;
  text-decoration: none;
}

/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 52;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 12px var(--color-shadow);
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent-light);
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 32px var(--color-shadow-strong);
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.45,.14,.42,1.01);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 26px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 2120;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-primary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  gap: 24px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.2rem;
  padding: 12px 0;
  border-radius: 12px;
  width: 80vw;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent-light);
  color: #fff;
  text-decoration: none;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(85deg, #EDF8F4 0%, #FFF7F2 100%);
  border-radius: 28px;
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  max-width: 1180px;
  margin: 32px auto 60px auto;
  padding: 48px 20px 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(19,115,103,0.08);
}
.hero p {
  font-size: 1.125rem;
  color: #3c4f5b;
  margin-bottom: 18px;
}

/* SECTION LAYOUT (Spacing/patterns as required) */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 2px 16px var(--color-shadow);
  display: flex;
}
section:last-child {
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 36px var(--color-shadow-strong);
  transform: translateY(-3px) scale(1.025);
}
.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;
  background: #FCFAF7;
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 540px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: #324e60;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
  background: #FFF7F2;
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px;
}
/* Utility classes */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: #324e60;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}
.text-section ul, .text-section ol {
  margin-bottom: 14px;
  padding-left: 24px;
}
.text-section li {
  margin-bottom: 8px;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 30px;
}
li {
  margin-bottom: 12px;
  color: #254C69;
  font-size: 1rem;
  line-height: 1.6;
}
li img {
  height: 20px;
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
  border-left: 4px solid var(--color-accent-light);
  background: #F9F2EA;
  padding: 10px 16px;
  font-style: italic;
  margin-bottom: 12px;
  border-radius: 8px;
}

/* TABLE (for services/pricing) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  overflow: hidden;
}
th, td {
  padding: 13px 10px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #f1ece8;
}
th {
  background: #FAF3E8;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
}


/* FOOTER */
footer {
  background: var(--color-accent);
  padding: 38px 0 24px 0;
  color: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 16px var(--color-shadow-strong);
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.logo-footer img {
  height: 52px;
  border-radius: 16px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline dashed 1.5px #fdca81;
  text-underline-offset: 3px;
  padding: 3px 0;
  border-radius: 12px;
  transition: background 0.15s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #FDF6EE;
  color: var(--color-accent);
  text-decoration: underline solid 2px var(--color-accent);
}

/* COOKIES CONSENT BANNER & POPUP */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFF1E4;
  color: #2C3E50;
  font-size: 1rem;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px 16px;
  box-shadow: 0 -2px 18px var(--color-shadow-strong);
  justify-content: space-between;
  gap: 20px;
  animation: slideUpBanner 0.36s cubic-bezier(.45,.14,.42,1.01);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner .btn-cookie {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  padding: 8px 24px;
  margin-left: 2px;
  transition: background 0.15s, color 0.18s;
}
.cookie-banner .btn-cookie-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .btn-cookie-accept:hover {
  background: var(--color-accent-light);
}
.cookie-banner .btn-cookie-reject {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-banner .btn-cookie-reject:hover {
  background: #fdeddd;
}
.cookie-banner .btn-cookie-settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .btn-cookie-settings:hover {
  background: #355b82;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3050;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,76,105,0.18);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.38s cubic-bezier(.56,.17,.47,1.04);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  min-width: 300px;
  max-width: 95vw;
  max-height: 98vh;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  color: #2C3E50;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popInModal 0.28s cubic-bezier(.45,.14,.42,1.01);
}
@keyframes popInModal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
}
.cookie-modal .category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
}
.cookie-modal .cookie-category-label {
  font-weight: 500;
}
.cookie-modal .always-enabled {
  color: var(--color-primary);
  font-size: 0.95rem;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  font-size: 1.4rem;
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: background 0.14s;
}
.cookie-modal .close-modal:hover {
  background: #EDF3F7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .container {
    max-width: 950px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }
  header .container { gap: 10px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    gap: 10px;
    height: auto;
    padding: 12px 4px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .logo img {
    height: 42px;
  }
  .btn-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
  .hero {
    padding: 28px 8px 34px 8px;
    border-radius: 22px;
  }
  section {
    padding: 22px 6px;
    border-radius: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px;
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .container {
    padding: 0 6px;
    max-width: 100vw;
  }
  .content-wrapper {
    gap: 12px;
  }
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 7px;
  }
  .hero p {
    font-size: 0.98rem;
    margin-bottom: 12px;
  }
  section, .card {
    padding: 14px 4px;
    border-radius: 11px;
  }
  .testimonial-card,
  .feature-item {
    padding: 11px 6px;
    border-radius: 10px;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.96rem;
  }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.1rem; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* FOCUS STYLES */
a, button, input, select, textarea {
  outline: none;
}
a:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-banner .btn-cookie:focus {
  box-shadow: 0 0 0 2px var(--color-accent-light), 0 2px 14px var(--color-shadow-strong);
  outline: 0;
}

/* MICROINTERACTIONS */
.btn-primary, .btn-secondary, .footer-nav a, .main-nav a, .mobile-nav a, .cookie-banner .btn-cookie {
  transition: background 0.18s, color 0.14s, box-shadow 0.18s, transform 0.13s;
}
.btn-primary:active, .btn-secondary:active, .main-nav a:active, .footer-nav a:active, .mobile-nav a:active {
  transform: scale(0.96);
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: var(--font-body);
  border-radius: 8px;
  border: 1.5px solid #dce6ed;
  padding: 10px 12px;
  margin-bottom: 13px;
  font-size: 1rem;
  color: #254C69;
  background: #f4faff;
  transition: border 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  background: #eef6f9;
}
label {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* MISCELLANEOUS */
::-webkit-scrollbar {
  width: 10px;
  background: #F9ECE3;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #e1e7ef;
  border-radius: 10px;
}

div[hidden], [hidden] { display: none !important; }

/* Z-INDEX MANAGEMENT */
header { z-index: 98; position: relative; }
.mobile-menu { z-index: 2100; }
.mobile-menu-toggle { z-index: 2120; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3050; }

/* Adequate spacing for all elements */
section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item, .footer-nav {
  margin-bottom: 20px;
}

/* Prevent absolute positioning in cards, and avoid overlaps */
.card, .testimonial-card, section, .feature-item {
  position: relative;
  z-index: 1;
}

/* Ensure all wrappers use flex */
body > header > .container,
footer > .container,
.card-container,
.content-grid,
.text-image-section,
.feature-item,
footer .footer-nav {
  display: flex;
}

/* FLEX PRIMARY WRAPPERS */
body > header > .container,
footer > .container {
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.feature-item {
  flex-direction: column;
  align-items: flex-start;
}

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

/* You should also inject the cookie banner and modal markup via JS, or add it at page bottom using the specified classes: .cookie-banner, .cookie-modal-overlay, .cookie-modal, etc. */