/* ========= CSS RESET & BASE TYPOGRAPHY ========= */

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #273955;
  background: #F3F6F9;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 8px;
}

a {
  color: #273955;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #66A3A0;
  text-decoration: underline;
  outline: none; 
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #273955;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; }
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #66A3A0;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

p, ul, ol, table, dl {
  margin-bottom: 16px;
}

strong {
  font-weight: 700;
}

code, pre {
  font-family: monospace;
}


/* ========= BRAND COLORS ========= */
:root {
  --primary: #273955;
  --secondary: #66A3A0;
  --accent: #F3F6F9;
  --text-dark: #273955;
  --text-light: #fff;
  --grey: #E8EBF1;
  --shadow: 0 3px 20px 0 rgba(39,57,85,0.08);
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.45,.05,.55,.95);
}


/* ========= LAYOUT STRUCTURE ========= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* ========= HEADER & NAVIGATION ========= */
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020;
}
header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 120px;
}
.logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #273955;
  font-size: 1rem;
  transition: color var(--transition);
  position: relative;
  padding: 2px 2px;
}
.main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  padding: 11px 30px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 7px 0 rgba(39,57,85,0.08);
  transition: background var(--transition), transform 0.15s, box-shadow var(--transition);
  letter-spacing: 0.03em;
  display: inline-block;
  margin-left: 12px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(102,163,160,0.15);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1100;
}

/* ========= HERO SECTIONS ========= */
.hero {
  display: flex;
  align-items: center;
  background: var(--accent);
  padding: 60px 0;
  min-height: 280px;
  margin-bottom: 40px;
  box-shadow: none;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 800;
}
.hero .subheadline {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 22px;
  margin-top: 0;
}

/* ========= FLEXBOX CARDS & GRIDS ========= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  flex: 1 1 265px;
  position: relative;
  transition: box-shadow var(--transition), transform 0.18s;
  min-width: 235px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 10px 30px 0 rgba(39,57,85,0.16);
  transform: translateY(-3px) scale(1.01);
}

.feature-grid, .service-teaser-list, .team-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-grid > div,
.service-teaser-list > div,
.team-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 225px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid > div:hover, .service-teaser-list > div:hover, .team-list > div:hover {
  box-shadow: 0 10px 30px 0 rgba(102,163,160,0.11);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}

.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: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 260px;
  transition: box-shadow var(--transition), transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px 0 rgba(102,163,160,0.13);
  transform: scale(1.007);
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 0;
  color: #273955;
}
.testimonial-meta {
  font-size: 0.97rem;
  font-weight: 500;
  color: #66A3A0;
  margin-top: 0px;
}

.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.customer-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 0;
}
.customer-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(0.2);
  opacity: 0.85;
}

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

/* ========== TABLES, DLs, FAQ ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
thead {
  background: var(--accent);
}
th, td {
  padding: 16px 10px;
  text-align: left;
  font-size: 1rem;
  color: #273955;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
tr:not(:last-of-type) {
  border-bottom: 1px solid #E8EBF1;
}
.note {
  color: #66A3A0;
  font-size: 0.98rem;
}

.dl, dl {
  margin-bottom: 24px;
}
dl dt {
  font-weight: bold;
  font-size: 1.07rem;
  margin-top: 16px;
  margin-bottom: 4px;
  color: #273955;
}
dl dd {
  margin-left: 0px;
  margin-bottom: 14px;
}

/* ========== SUCCESS BLOCK ========== */
.success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

/* ========== CTA BLOCKS ========== */
.cta-block, .cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 23px;
  gap: 20px;
}
.cta-block h2, .cta h2 {
  margin-bottom: 8px;
}
.cta-block p, .cta p {
  margin-bottom: 18px;
}

/* ========== CONTACT DETAILS ========== */
.contact-details ul {
  list-style: none;
  padding-left: 0px;
  margin-bottom: 10px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 1.05rem;
}
.contact-details img {
  width: 27px;
  opacity: 0.84;
}
.contact-form ul {
  list-style: none;
  margin-bottom: 20px;
}
.contact-form ul li {
  margin-bottom: 10px;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px 0 rgba(39,57,85,0.04);
  padding: 42px 0 22px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #273955;
  font-size: 1rem;
  opacity: 0.82;
  transition: color var(--transition), opacity var(--transition);
}
.footer-links a:hover, .footer-links a:focus {
  color: #66A3A0;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: #273955;
  opacity: 0.88;
}
.footer-contact img {
  height: 34px;
  margin-bottom: 10px;
  opacity: 0.75;
}


/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #273955;
  box-shadow: 0 -4px 20px rgba(39,57,85,.08);
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 20px 15px 20px;
  transition: transform 0.32s var(--transition), opacity 0.25s;
  gap: 32px;
}
.cookie-banner__text {
  flex: 1;
  font-size: 1rem;
}
.cookie-banner .btn-cookie {
  min-width: 120px;
  margin-left: 10px;
  margin-right: 0;
  background: #66A3A0;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 8px 0 rgba(39,57,85,0.08);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: #273955;
  color: #fff;
}
.btn-settings {
  background: #fff;
  color: #273955;
  border: 1px solid #66A3A0;
  margin-left: 6px;
}
.btn-settings:hover, .btn-settings:focus {
  background: #F3F6F9;
  color: #273955;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,57,85,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #273955;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 26px 30px 26px;
  min-width: 340px;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 10000;
  animation: fadeInModal 0.25s cubic-bezier(.45,.05,.55,.95);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: #66A3A0;
}
.cookie-category input[disabled] {
  opacity: 0.6;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .btn-cookie {
  min-width: 100px;
  margin: 0;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #273955;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #66A3A0;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 19998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.30s var(--transition), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 36px 0 rgba(39,57,85,0.12);
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(-100vw);
  left: 0;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu:not(.active) {
  transform: translateX(0);
  opacity: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20000;
  opacity: 0.84;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #66A3A0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 70px;
  padding: 32px 20px 18px 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
  padding: 10px 0;
  border-radius: 6px;
  outline: none;
  transition: color 0.16s, background 0.18s;
  min-width: 70vw;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F3F6F9;
  color: #66A3A0;
}

/* ========== LEGAL SECTIONS & SUCCESS STORY ========== */
.legal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 28px;
  margin-bottom: 35px;
}
.success-story {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-top: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.success-story strong { color: #273955; }

/* ========== UTILITIES ========== */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 93vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-teaser-list, .team-list {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid{
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    height: auto;
  }
  .main-nav {
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 38px 0 26px 0;
    min-height: 170px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .section, .legal {
    padding: 30px 8px;
    margin-bottom: 33px;
  }
  .feature-grid > div, .service-teaser-list > div, .team-list > div, .card {
    padding: 18px 10px;
    min-width: unset;
  }
  .cta-block, .cta {
    padding: 20px 8px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .testimonial-card {
    padding: 15px 11px;
    min-width: unset;
  }
  .success-story {
    padding: 10px 8px;
  }
}
@media (max-width: 670px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    height: 60px;
    padding: 0 10px;
  }
  .logo img {
    height: 28px;
  }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .container {
    padding: 0 6px;
    max-width: 100vw;
  }
  .cookie-modal {
    padding: 18px 6px 18px 6px;
    min-width: unset;
  }
  .legal {
    padding: 20px 6px;
  }
  .success {
    min-height: 180px;
  }
}

/* Responsive for text-image-section (align-items: center / column) */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

/* Minor overscroll control for mobile nav/menus */
@media (max-width: 670px) {
  .mobile-menu {
    max-width: 100vw;
    min-width: 100vw;
  }
}


/* ========== ANIMATION UTILS ========== */
.fade-in {
  animation: fadeInMenu 0.25s cubic-bezier(.45,.05,.55,.95);
}
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateX(25px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ========== OVERRIDES FOR FORMS, INPUTS ETC ========== */
input, textarea, select, button {
  font: inherit;
  border-radius: var(--radius);
  outline: none;
}
input, textarea, select {
  border: 1px solid #E8EBF1;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 12px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #66A3A0;
}
button:focus-visible {
  outline: 2px solid #66A3A0;
}


/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 2px solid #66A3A0;
  outline-offset: 1px;
}


/* ========== MINIMAL EFFECTS & SHADOWS ========== */
.card, .feature-grid > div, .testimonial-card, .success-story, .cta-block, .cta, .legal {
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .cta-block:hover, .cta:hover, .success-story:hover {
  box-shadow: 0 10px 36px 0 rgba(102,163,160,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ========== SPACING DIRECTIVES ========== */
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
  position: relative !important;
}
.content-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  justify-content: space-between !important;
}
.text-image-section {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
}
.testimonial-card {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px !important;
}
.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

/* ========== FINAL ENSURE NO OVERLAP ========== */
.card, .feature-grid > div, .testimonial-card, .service-teaser-list > div, .resources-list ul, .team-list > div {
  margin-bottom: 20px !important;
}
.section > .container > .content-wrapper > ul, 
.section > .container > .content-wrapper > ol, 
.section > .container > .content-wrapper > dl {
  margin-bottom: 12px;
}


/* == Hide scrollbars for mobile menu (optional) == */
.mobile-menu {
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
