/* ---------------------------------------------- */
/*  CSS RESET - Elegant Classic Foundation        */
/* ---------------------------------------------- */
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;
}

article, aside, details, figcaption, figure, footer,
header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #25344D;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol, li { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  background: none;
  border: none;
}

/* ---------------------------------------------- */
/*  Root Variables (with Fallbacks)              */
/* ---------------------------------------------- */
:root {
  --color-primary: #25344D;
  --color-primary-rgb: 37, 52, 77;
  --color-secondary: #18A683;
  --color-secondary-rgb: 24, 166, 131;
  --color-accent: #F5F7FA;
  --color-text: #25344D;
  --color-muted: #E1E6ED;
  --color-bg: #F5F7FA;
  --color-bg-elevated: #ffffff;
  --color-border: #D0D6DE;
  --color-shadow: rgba(37,52,77,0.08);
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
}

/* ---------------------------------------------- */
/*  Typography                                   */
/* ---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}
p, ul, ol, li, address, label, input, textarea, table, th, td, dl, dt, dd {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}
.small, small {
  font-size: 0.92rem;
  color: #535D6B;
}
.text-section ul {
  list-style-type: disc;
  margin-left: 20px;
}
.text-section ul li { margin-bottom: 10px; }
.text-section > ul:last-child { margin-bottom: 0; }
.text-section > ul { margin-bottom: 14px; }
dl dt {
  font-weight: 600;
  margin-top: 12px;
}
dl dd {
  padding-left: 12px;
  margin-bottom: 10px;
}

/* ---------------------------------------------- */
/* Layout Utility Classes & Containers            */
/* ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  background: var(--color-bg-elevated);
  border-radius: 14px;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 36px 32px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 20px 12px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 480px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-elevated);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 24px;
  min-width: 270px;
  flex: 1 1 300px;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(37,52,77,0.18);
  transform: translateY(-2px) scale(1.018);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .card-container { flex-direction: column; gap: 16px; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-elevated);
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 24px 18px;
  margin-bottom: 16px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  min-width: 260px;
  flex: 1 1 280px;
  background: var(--color-bg-elevated);
  border-radius: 11px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}
.feature-grid img {
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: unset;
    flex-basis: 100%;
  }
}

.secondary-links {
  margin-top: 16px;
  text-align: center;
  font-size: 0.98rem;
}
.secondary-links a {
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.23s;
}
.secondary-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------------------------------------------- */
/* HEADER & NAVIGATION                           */
/* ---------------------------------------------- */
header { 
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  z-index: 99;
  min-height: 68px;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  color: var(--color-primary);
  transition: border-color 0.18s, color 0.21s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}
header img {
  max-height: 44px;
}
.button-primary {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 600;
  padding: 11px 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(24,166,131,0.11);
  margin-left: 16px;
  display: inline-block;
  transition: background 0.23s, box-shadow 0.2s, color 0.20s;
}
.button-primary:hover,
.button-primary:focus {
  background: #167f67;
  color: #eafff8;
  box-shadow: 0 5px 18px rgba(24,166,131,0.21);
}

/* Hide mobile menu toggler for desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 992px) {
  header nav, .button-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 22px;
    right: 32px;
    z-index: 200;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 1.7rem;
    border: none;
    cursor: pointer;
    transition: background 0.23s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #167f67;
    color: #e3fff9;
  }
}

/* ---------------------------------------------- */
/* MOBILE MENU                                   */
/* ---------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37, 52, 77, 0.87);
  backdrop-filter: blur(4px);
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.7,0,0.3,1), opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 2rem;
  border-radius: 5px;
  margin: 22px 28px 0 0;
  padding: 7px 13px;
  cursor: pointer;
  z-index: 10001;
  border: none;
  transition: background 0.24s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #167f67;
  color: #e0fff4;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 38px 0 38px;
  gap: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  padding: 12px 0;
  font-weight: 500;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.22s, border-color 0.23s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(245,247,250,0.03);
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
    pointer-events: none;
  }
}

/* ---------------------------------------------- */
/* MAIN / SECTIONS                               */
/* ---------------------------------------------- */
main {
  padding-top: 30px;
  padding-bottom: 30px;
  min-height: 70vh;
}
section:last-child {
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 18px;
}
.text-section > * {
  margin-bottom: 10px;
}
.text-section > h2, .text-section > h3 { margin-bottom: 8px; }
.text-section address {
  font-style: normal;
  margin-bottom: 0;
  color: #3f4d66;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-muted);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: 9px;
}

.callout-box {
  background: #dfe4ec;
  color: var(--color-primary);
  border-left: 4px solid var(--color-secondary);
  border-radius: 9px;
  padding: 15px 16px;
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(34,60,80,0.07);
}
.case-teaser {
  background: #f9fafb;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(37,52,77,0.07);
  padding: 18px 16px;
  font-size: 1rem;
  flex: 1 1 250px;
  margin-bottom: 0;
}

/* ---------------------------------------------- */
/* TABLES                                        */
/* ---------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--color-bg-elevated);
  border-radius: 7px;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 1px 7px rgba(37,52,77,0.05);
}
th, td {
  border: 1px solid var(--color-border);
  padding: 16px 10px;
  text-align: left;
}
th {
  background: #f4f6fa;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}
td {
  color: var(--color-primary);
}
@media (max-width: 650px) {
  table, thead, tbody, th, td, tr { display: block; }
  th, td { padding: 10px 6px; }
  tr { margin-bottom: 16px; border-bottom: 2px solid #e1e6ed; }
  th { background: transparent; }
}

/* ---------------------------------------------- */
/* TESTIMONIALS                                  */
/* ---------------------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(37,52,77,0.07);
  padding: 28px 30px;
  min-width: 270px;
  max-width: 360px;
  flex: 1 1 270px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1.09rem;
  color: #25344D;
  margin-bottom: 6px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--color-primary);
}
.testimonial-meta strong { color: var(--color-secondary); font-weight: 600; }
.testimonial-meta span { color: #E49B18; font-size: 1.15em; letter-spacing: 1px; }
@media (max-width: 650px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 18px 14px;
  }
}

/* ---------------------------------------------- */
/* BUTTONS & LINKS                               */
/* ---------------------------------------------- */
.button-primary,
.button-secondary {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: background 0.23s, color 0.2s, box-shadow .2s;
  font-family: var(--font-display);
  border-radius: 6px;
  border: none;
  outline: none;
}
.button-secondary {
  background: #fff;
  color: var(--color-secondary);
  font-weight: 600;
  padding: 10px 22px;
  border: 1.5px solid var(--color-secondary);
  margin-left: 10px;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------------------------------------------- */
/* FORMS (Future-proof for Contact Pages)         */
/* ---------------------------------------------- */
input, textarea, select {
  font-size: 1rem;
  padding: 10px 11px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #f9fafb;
  margin-bottom: 18px;
  transition: border-color .19s, box-shadow .18s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 1px 4px 0 #b8ffe8;
}
label {
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
  font-family: var(--font-display);
}

/* ---------------------------------------------- */
/* FOOTER                                        */
/* ---------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 20px 24px 20px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 13px;
}
footer nav a {
  color: #536179;
  font-family: var(--font-display);
  font-size: 0.97rem;
  border-bottom: 1.3px solid transparent;
  transition: border-color 0.18s;
}
footer nav a:hover {
  border-bottom: 1.3px solid var(--color-secondary);
  color: var(--color-secondary);
}
footer address {
  line-height: 1.8;
  font-size: 0.99rem;
  color: #536179;
  font-style: normal;
}
footer img {
  max-height: 36px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 24px 8px 20px 8px;
  }
}

/* ---------------------------------------------- */
/* COOKIE CONSENT BANNER/MODAL                    */
/* ---------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: #fff;
  border-top: 2.5px solid var(--color-primary);
  box-shadow: 0 -2px 28px rgba(37,52,77,0.13);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 19px;
  padding: 18px 22px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.28s, transform 0.36s cubic-bezier(0.72, 0, 0.23, 1);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner .cookie-banner-content {
  flex: 2 1 330px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .button-primary,
.cookie-banner .button-secondary {
  padding: 9px 18px;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600;
}
.cookie-banner .button-settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.cookie-banner .button-settings:hover {
  background: var(--color-muted);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 13000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,52,77,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.25,.8,.25,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 410px;
  box-shadow: 0 7px 48px rgba(37,52,77,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 0.24s, transform 0.34s cubic-bezier(0.7,0,0.3,1) 65ms;
}
.cookie-modal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px; right: 17px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.5rem;
  border: none;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-modal .close-modal:hover {
  background: #167f67;
}
.cookie-category {
  margin-bottom: 13px;
  padding-bottom: 7px;
}
.cookie-category:last-child { margin-bottom: 0; }
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-toggle {
  margin-right: 8px;
  accent-color: var(--color-secondary);
}
.cookie-essential {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 23px 10px 19px 10px;
    min-width: unset;
    max-width: 99vw;
  }
}

/* ---------------------------------------------- */
/* ANIMATIONS & MICRO-INTERACTIONS               */
/* ---------------------------------------------- */
a, button, .button-primary, .button-secondary, .content-wrapper, .card, th, td {
  transition: color 0.19s, background .21s, border .16s, box-shadow .21s, transform .17s;
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.20s cubic-bezier(.63,.05,.27,.97), transform .18s;
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.984) translateY(1px);
}
/* Fade in on load (JS should add .animate-in class) */
.animate-in {
  animation: fadeIn 0.9s cubic-bezier(.34,.75,.45,1) 0s 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(36px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------------------------- */
/* MISC UTILITY                                  */
/* ---------------------------------------------- */
.hide { display: none !important; }
.flex-row { display: flex; flex-direction: row; gap: 24px; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }

/* ---------------------------------------------- */
/* BRANDING MARKS, TRUST BADGES                   */
/* ---------------------------------------------- */
.trust-signs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 18px 0 0 0;
}
.trust-signs img {
  max-height: 34px;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(37,52,77,0.13);
  background: #f2f3f7;
}

/* ---------------------------------------------- */
/* RESPONSIVENESS                                */
/* ---------------------------------------------- */
@media (max-width: 768px) {
  main { padding-top: 14px; padding-bottom: 13px; }
  .section { padding: 20px 5px; margin-bottom: 30px; }
}

@media (max-width: 420px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.09rem; }
  .content-wrapper, .card, .testimonial-card, .feature-grid > div {
    padding-left: 7px; padding-right: 7px;
  }
}

/* ---------------------------------------------- */
/* PRINT                                         */
/* ---------------------------------------------- */
@media print {
  body, .container, .content-wrapper, main, section { background: #fff !important; color: #222 !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { color: #222 !important; text-decoration: underline; }
}

/* ---------------------------------------------- */
/* END                                           */
