/* === CSS RESET & NORMALIZE === */
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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23272e;
  background: #f7fafc;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* === VARIABLES (WITH FALLBACKS) === */
:root {
  --brand-primary: #255A88;
  --brand-secondary: #14A77F;
  --brand-accent: #FFFFFF;
  --brand-dark: #23272e;
  --brand-light: #f7fafc;
  --shadow-main: 0 4px 24px rgba(36,75,133,0.08);
  --radius-main: 18px;
}

/* === BODY & FONT === */
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--brand-dark, #23272e);
  background: var(--brand-light);
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.text-section h2 {
  margin-top: 30px;
  margin-bottom: 16px;
}
p, li, dd {
  font-size: 1rem;
  line-height: 1.6;
}
strong, b {
  font-weight: 700;
}
small {
  font-size: 0.9em;
}

/* === LAYOUT CONTAINER === */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}
main > section:not(.hero):not(.legal):not(.thankyou):not(.testimonials):not(.contact):not(.services-overview) {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--brand-accent);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 40px 20px 50px 20px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.hero h1 {
  color: var(--brand-accent);
}
.hero p {
  color: #f2f8fb;
  margin-bottom: 26px;
  max-width: 540px;
}
.hero .cta-btn {
  margin-top: 10px;
}

/* === HEADER / NAVIGATION === */
header {
  width: 100%;
  background: var(--brand-accent);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(37,90,136,0.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  height: 68px;
}
header > a img {
  height: 42px;
  margin-right: 30px;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: 10px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.22s, color 0.22s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cta-btn {
  background: linear-gradient(100deg, var(--brand-secondary) 40%, var(--brand-primary) 100%);
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 30px;
  margin-left: auto;
  box-shadow: 0 2px 9px rgba(36,75,133,0.08);
  transition: background 0.18s, transform 0.18s, box-shadow 0.22s;
  border: 0;
  outline: none;
  display: inline-block;
  letter-spacing: 0.02em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(100deg, var(--brand-primary), var(--brand-secondary));
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(36,75,133,0.14);
}
.cta-btn.secondary {
  background: linear-gradient(90deg, #ffffff 40%, #e2f2ed 100%);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-secondary);
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: linear-gradient(90deg, var(--brand-secondary) 40%, var(--brand-primary) 100%);
  color: var(--brand-accent);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: var(--brand-accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 120;
  transition: background 0.18s;
  margin-left: 24px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-primary);
  color: var(--brand-accent);
  z-index: 200;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.42s cubic-bezier(0.7,0,0.3,1), opacity 0.3s;
  transform: translateX(-100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  animation: menuSlideIn 0.34s cubic-bezier(0.63,0.02,0.43,1);
}
@keyframes menuSlideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  background: transparent;
  color: var(--brand-accent);
  font-size: 2rem;
  border: none;
  margin: 19px 0 25px 30px;
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 30px;
}
nav.mobile-nav a {
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  border-radius: 10px;
  padding: 9px 4px 9px 2px;
  transition: background 0.22s, color 0.22s;
}
nav.mobile-nav a:hover,
nav.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* === MAIN & WRAPPER === */
main {
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
  min-height: 70vh;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === FEATURE GRID (flex only) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 28px 24px 32px 24px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(20, 167, 127,0.14);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  color: var(--brand-secondary);
  font-size: 1.22rem;
  margin-bottom: 7px;
}

/* === TESTIMONIALS === */
.testimonials {
  margin-bottom: 60px; 
  padding: 40px 0 0 0;
}
.testimonials .container {
  /* inherits padding from .container */
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 30px 22px 30px;
  min-width: 270px;
  max-width: 350px;
  background: #f7fafc;
  color: #25334d;
  border-radius: var(--radius-main);
  box-shadow: 0 4px 16px rgba(37,90,136,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-weight: 400;
  color: #263560;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--brand-secondary);
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 16px 24px rgba(36,75,133,0.10);
  transform: translateY(-3px) scale(1.015);
}

/* === PRICING TABLES & LISTS === */
table {
  width: 100%;
  border-spacing: 0;
  margin-bottom: 24px;
  border-radius: var(--radius-main);
  overflow: hidden;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #e5f6f4;
  color: var(--brand-primary);
  padding: 14px 8px;
  text-align: left;
}
tbody td {
  font-size: 1rem;
  color: var(--brand-dark);
  background: #fff;
  padding: 12px 8px;
  border-bottom: 1px solid #e5f6f4;
}
tbody tr:last-child td {
  border-bottom: none;
}
ul, li {
  margin-bottom: 6px;
}
ul {
  padding-left: 0;
}

/* === CONTACT / MAP SECTIONS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #e2f2ed;
  padding: 22px 18px;
  border-radius: 16px;
  margin-left: 24px;
}
.map-placeholder p {
  margin-top: 6px;
  color: var(--brand-primary);
}

/* === FLEX UTILS FOR SPACING === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
  background: #fff;
  padding: 32px 24px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(20,167,127,0.11);
  transform: translateY(-2px) scale(1.01);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === SERVICES OVERVIEW BUTTONS === */
.services-overview .cta-btn {
  margin-top: 24px;
}

/* === LEGAL & THANK YOU PAGES === */
.legal, .thankyou {
  background: var(--brand-accent);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal .text-section, .thankyou .text-section {
  gap: 18px;
}
.legal h1, .thankyou h1 {
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.thankyou .cta-btn {
  margin-top: 25px;
}

/* === FOOTER === */
footer {
  background: #e5f6f4;
  padding: 34px 0 24px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.19s;
  border-radius: 7px;
  padding: 5px 12px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
footer small {
  display: block;
  color: #224469;
  text-align: center;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .footer-nav {
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 180px;
    padding: 23px 17px;
  }
}

@media (max-width: 768px) {
  /* Header nav becomes burger */
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    padding: 11px 19px;
    font-size: 1rem;
  }
  header {
    padding: 0 10px;
    height: 62px;
  }
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .hero {
    min-height: 220px;
    padding-bottom: 12px;
  }
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 17px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
  }
  .testimonials .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonials .content-wrapper {
    align-items: stretch;
  }
  .map-placeholder {
    margin-left: 0;
    width: 100%;
    padding: 14px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 22px 10px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 35px;
  }
  .legal, .thankyou {
    padding: 22px 8px;
  }
  footer {
    padding: 17px 0 12px 0;
    margin-top: 13px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 14px;
  }
  .footer-nav {
    gap: 8px;
    font-size: 0.95rem;
  }
}

/* === HOVER & MICRO-INTERACTIONS === */
a, button {
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.20s;
}
a:focus, button:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* === BLOCKQUOTE STYLES === */
blockquote {
  margin: 18px 0;
  padding: 18px 30px;
  border-left: 5px solid var(--brand-secondary);
  background: #e5f6f4;
  color: var(--brand-primary);
  font-size: 1.12rem;
  font-style: italic;
  border-radius: 0 20px 20px 0;
  max-width: 600px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0; right:0;
  background: #ffffff;
  color: #224469;
  box-shadow: 0 -2px 14px rgba(20,167,127,0.09);
  z-index: 300;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  gap: 18px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.28s, transform 0.36s;
  font-size: 1rem;
}
.cookie-consent.visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-content {
  flex: 1;
  min-width: 230px;
  max-width: 490px;
}
.cookie-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-radius: 20px;
  border: none;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 2px 8px rgba(20,167,127,0.07);
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
}
.cookie-btn.secondary {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cookie-btn.settings {
  background: #f7fafc;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal-background {
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,90,136,0.32);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-background.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #224469;
  border-radius: var(--radius-main);
  width: 95vw;
  max-width: 430px;
  padding: 32px 28px;
  box-shadow: 0 8px 38px rgba(36,75,133,0.17);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalFadeIn 0.32s cubic-bezier(0.65, 0.01, 0.3, 1);
}
@keyframes modalFadeIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 22px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--brand-secondary);
}
.cookie-modal-title {
  font-size: 1.34rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category .toggle-switch {
  width: 44px;
  height: 22px;
  background: #e5eafd;
  border-radius: 14px;
  position: relative;
  transition: background 0.18s;
  margin-left: auto;
}
.cookie-category input[type=checkbox] {
  display: none;
}
.cookie-category .switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px; height: 18px;
  background: var(--brand-primary);
  border-radius: 50%;
  transition: left 0.16s, background 0.15s;
  box-shadow: 0 1px 3px rgba(37,90,136, 0.1);
}
.cookie-category input[type=checkbox]:checked + .switch-slider {
  left: 24px;
  background: var(--brand-secondary);
}
.cookie-category.essential .toggle-switch {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-category-label {
  font-size: 1rem;
  color: var(--brand-dark);
}
.cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 8px;
    max-width: 97vw;
  }
  .cookie-modal-close {
    right: 10px;
    top: 4px;
  }
}

/* === END === */
