/* ========================================================================
   CSS RESET & BASE NORMALISATION
======================================================================== */
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: #ffffff;
  color: #123642;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
section ul {
  list-style: disc inside;
}
address {
  font-style: normal;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; }
th { text-align: left; color: #123642; font-weight: 600; }


/* ========================================================================
   CSS VARIABLES (BRAND COLOURS)
======================================================================== */
:root {
  --primary: #123642;
  --secondary: #F0F4F6;
  --secondary-alt: #ffffff;
  --accent: #137760;
  --light-accent: #EBF6F4;
  --border: #e6ecef;
  --shadow: 0 2px 12px rgba(18, 54, 66, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}


/* ========================================================================
   TYPOGRAPHY
======================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.375rem; /* 38px */ margin-bottom: 24px; }
h2 { font-size: 1.75rem; /* 28px */ margin-bottom: 20px; }
h3 { font-size: 1.25rem; /* 20px */ margin-bottom: 12px; }
h4 { font-size: 1.025rem; /* 16.4px */ margin-bottom: 8px; font-weight: 600; }
p, ul, ol, table { font-size: 1rem; color: #204250; margin-bottom: 16px; }
strong {
  font-weight: 700;
}

/* Visual hierarchy for table/section titles */
table th { font-family: var(--font-display); font-size: 1rem; }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #123642;
  text-decoration: underline;
}


/* ========================================================================
   LAYOUT CONTAINERS & SECTION SPACING
======================================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ========================================================================
   FLEXBOX LAYOUT PATTERNS
======================================================================== */
.feature-grid, .services-grid, .testimonials-slider, .testimonials-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  transition: box-shadow 0.18s;
  position: relative;
  min-width: 0;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 32px rgba(18,54,66,0.12);
}
.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;
  padding: 20px 28px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 298px;
}
.services-grid {
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 246px;
  min-width: 220px;
  max-width: 310px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card .price {
  font-weight: bold;
  color: var(--accent);
  margin-top: auto;
  font-size: 1.05rem;
}
.testimonials-slider, .testimonials-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.testimonials-slider .testimonial-card, .testimonials-grid .testimonial-card {
  flex: 1 1 330px;
  min-width: 0;
}

.overall-rating {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #1CA182;
  font-family: var(--font-display);
  font-weight: 500;
}

/* Table - Minimalist Style */
.pricing-table, .comparison-table {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.pricing-table tr, .comparison-table tr {
  border-bottom: 1px solid var(--border);
}
.pricing-table tr:last-child, .comparison-table tr:last-child { border-bottom: none; }
.pricing-table td, .comparison-table td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #204250;
  padding: 11px 16px;
}
.pricing-table th, .comparison-table th {
  background: var(--secondary);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--primary);
}

/* Lists in features or columns */
.feature-item ul, .content-wrapper ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}


/* ========================================================================
   BUTTONS
======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s, border .18s;
  font-weight: 600;
  box-shadow: none;
  text-decoration: none;
  min-width: 153px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow);
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(19,119,96,0.09);
}
.btn.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn.secondary:hover, .btn.secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Button & Link Focus (Accessibility) */
.btn:focus, a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 2;
}


/* ========================================================================
   HEADER & NAVIGATION
======================================================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 0 0 0;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 64px;
  position: relative;
}
.logo {
  margin-right: 32px;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  transition: color 0.16s;
}
.main-nav a:hover {
  color: var(--accent);
}
header .btn.primary {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 18px;
}

/* Mobile Hamburger */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  margin-left: 18px;
  border-radius: 6px;
  padding: 5px 16px;
  border: 1.5px solid transparent;
  transition: background 0.16s, border 0.16s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  border-color: var(--accent);
}

/* Mobile Full Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,54,66,0.96);
  color: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 32px 38px 0 0;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 0.13s, border 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(240,244,246,0.19);
  border: 1.5px solid var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  padding: 56px 64px 32px 0;
  margin-top: 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 4px;
  width: 100%;
  max-width: 360px;
  text-align: right;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover {
  background: rgba(28,161,130,0.12);
  color: var(--accent);
}

/* Responsive Navigation: hide/show */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn.primary {
    display: none;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================================================
   HERO, CTA & SECTION STYLES
======================================================================== */
section {
  background: #fff;
  border-radius: 0;
}
/* Special cta/banner look for last sections on page */
section:last-of-type .content-wrapper {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  gap: 18px;
  padding: 32px 20px;
}


/* ========================================================================
   FOOTER
======================================================================== */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 36px 0 16px 0;
  color: #6f7b84;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 38px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #4a656c;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.14s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-contact address {
  font-size: 0.97rem;
  color: #6f7b84;
  font-family: var(--font-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.footer-copy {
  width: 100%;
  font-size: 0.89rem;
  color: #aaaaaa;
  margin-top: 10px;
  text-align: left;
}
@media (max-width: 1000px) {
  footer .container { flex-direction: column; align-items: flex-start; }
  .footer-logo { margin-bottom: 12px; }
  .footer-copy { text-align: left; }
}


/* ========================================================================
   RESPONSIVE QUERIES (MOBILE FIRST)
======================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .container { padding: 0 12px; }
  .content-wrapper { padding: 0; }
  section { padding: 24px 0 24px 0; }
  .section { padding: 28px 8px; }
  .feature-grid, .services-grid, .card-container, .card-grid, .testimonials-slider, .testimonials-grid, .content-grid {
    flex-direction: column;
    gap: 20px !important;
  }
  .feature-item, .service-card, .testimonial-card {
    max-width: unset;
    min-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  header .container {
    gap: 12px;
  }
  .mobile-nav { padding: 44px 18px 26px 0; gap: 18px; }
  .mobile-menu-close { margin-right: 18px; margin-top: 18px; }
  .footer-nav { gap: 12px; }
}


/* ========================================================================
   MICRO-INTERACTIONS / TRANSITIONS
======================================================================== */
.card, .service-card, .testimonial-card, .feature-item {
  transition: box-shadow .18s, border .18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover, .feature-item:focus-visible {
  box-shadow: 0 8px 28px rgba(19,119,96,0.13);
  z-index: 2;
}
.btn {
  transition: background .18s, color .18s, box-shadow .18s, border .18s;
}
input, textarea, select {
  transition: border-color .16s, box-shadow .16s;
}

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
======================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: 100%;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px 0 rgba(18,54,66,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 24px 36px;
  font-size: 1rem;
  justify-content: center;
  transition: transform 0.38s cubic-bezier(.77,.2,.05,1.0), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: #123642;
  max-width: 480px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.btn.cookie-accept:hover, .btn.cookie-accept:focus {
  background: var(--primary);
  border-color: var(--primary);
}
.btn.cookie-reject {
  background: #fff;
  border: 1.5px solid #ddd;
  color: var(--primary);
}
.btn.cookie-reject:hover, .btn.cookie-reject:focus {
  background: var(--secondary);
  border: 1.5px solid var(--accent);
}
.btn.cookie-settings {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn.cookie-settings:hover, .btn.cookie-settings:focus {
  background: var(--secondary);
  border-color: var(--accent);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 12px;
    font-size: 0.92rem;
  }
  .cookie-banner .cookie-actions { gap: 10px; }
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18,54,66,0.55);
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: all;
  opacity: 1;
  transition: opacity .2s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(19,119,96,0.13);
  padding: 32px 32px 24px 32px;
  min-width: 320px;
  max-width: 420px;
  margin: 0 24px 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2000;
  opacity: 1;
  transform: translateY(0);
  transition: transform .32s, opacity .22s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1.028rem;
  font-family: var(--font-body);
}
.cookie-category .switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 16px;
}
/* Stylish Switch for toggles */
.switch input[type="checkbox"] {
  display: none;
}
.switch-label {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #eceeef;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .22s;
}
.switch-label:after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 4px rgba(19,119,96,0.07);
  transition: left .21s, background .18s;
}
.switch input:checked + .switch-label {
  background: var(--accent);
}
.switch input:checked + .switch-label:after {
  left: 18px;
  background: var(--accent);
}
.switch input:disabled + .switch-label {
  background: #f3f3f3;
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 20px;
  background: none;
  color: var(--primary);
  font-size: 1.28rem;
  z-index: 2012;
  border-radius: 6px;
  border: 1.5px solid transparent;
  padding: 2px 10px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  border: 1.5px solid var(--accent);
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 0;
    width: 100%;
    margin: 0 4px 40px 4px;
    padding: 22px 8px 16px 12px;
  }
}

/* Hide category toggle for 'Essential' (always enabled) */
.cookie-category.essential .switch {
  visibility: hidden;
  pointer-events: none;
}


/* ========================================================================
   ADDITIONAL UTILITIES
======================================================================== */
.gap-20 { gap: 20px !important; }
.m-b-16 { margin-bottom: 16px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }


/* ========================================================================
   A11Y: HIGH CONTRAST FOR TESTIMONIALS/REVIEWS
======================================================================== */
.testimonial-card, .testimonials-slider .testimonial-card, .testimonials-grid .testimonial-card {
  background: var(--secondary);
  color: #123642;
  box-shadow: var(--shadow);
  border: 1px solid #e7eaee;
}
.testimonial-card p { color: #193442; }
.testimonial-card span {
  color: #137760;
  font-family: var(--font-display);
  font-size: 1rem;
}


/* ========================================================================
   MISC
======================================================================== */
::-webkit-input-placeholder { color: #b3bfc6; }
::-moz-placeholder { color: #b3bfc6; }
:-ms-input-placeholder { color: #b3bfc6; }
::placeholder { color: #b3bfc6; }

[tabindex="-1"]:focus {
  outline: none !important;
}

/* Hide elements visually but accessible for assistive tech */
.visually-hidden { 
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/******************************
  END OF MINIMALIST FLEXBOX CSS
******************************/
