/* ========== CSS RESET & BASE ========== */
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 {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F6FA;
  color: #18384A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video {
  max-width: 100%;
  display: block;
}
a {
  color: #27B49C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #18384A;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #18384A;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}

p, .text-section li, .content-wrapper li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #204B6F;
}
strong { font-weight: bold; }
blockquote {
  background: #27B49C11;
  border-left: 4px solid #27B49C;
  padding: 14px 20px;
  font-style: italic;
  color: #18384A;
  margin: 20px 0;
  border-radius: 6px;
}

/* Typography adjustments for smaller screens */
@media (max-width: 500px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  p, li {
    font-size: 0.95rem;
  }
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ========== SECTIONS & SPACING ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 36px 0 rgba(24, 56, 74, 0.07);
  position: relative;
}
section:last-of-type { margin-bottom: 0; }

@media (max-width: 800px) {
  section {
    margin-bottom: 40px;
    padding: 28px 6px;
    border-radius: 14px;
  }
}

/* ========== NAVIGATION HEADER ========== */
header {
  background: #18384A;
  box-shadow: 0 2px 16px 0 rgba(24,56,74,0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1101;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 68px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  padding: 10px 14px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.main-nav a.cta-primary {
  background: #27B49C;
  color: #fff;
  margin-left: auto;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 18px 0 rgba(39, 180, 156,0.13);
  transition: background 0.2s, transform 0.18s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #18384A;
  color: #27B49C;
  transform: scale(1.07);
}
.main-nav a:hover, .main-nav a:focus {
  background: #27B49C;
  color: #fff;
}
.main-nav img {
  height: 44px;
  margin-right: 5px;
}

/* Hide main nav on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
}


/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  background: #27B49C;
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(39, 180, 156,0.13);
  cursor: pointer;
  z-index: 1203;
  transition: background 0.15s, box-shadow 0.16s, transform 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #18384A;
  color: #27B49C;
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #18384A;
  z-index: 1202;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.7,.1,.31,1);
  box-shadow: 0 8px 36px 0 rgba(24,56,74,0.15);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 26px 28px 12px 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.16s;
  z-index: 1203;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #27B49C;
  transform: scale(1.22);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 16px 0;
  width: 90vw;
  border-radius: 9px;
  text-align: center;
  margin-bottom: 2px;
  transition: background .18s, color .18s, transform .09s;
  background: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #27B49C;
  color: #18384A;
  transform: scale(1.04);
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== HERO/ACTION BUTTONS ========== */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 7px;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s, transform 0.12s;
  text-transform: uppercase;
  box-shadow: 0 3px 16px 0 rgba(27, 180, 156, 0.09);
}
.cta-primary {
  background: #27B49C;
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #18384A;
  color: #27B49C;
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  background: #18384A;
  color: #27B49C;
  border: 2px solid #27B49C;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #27B49C;
  color: #fff;
  border-color: #18384A;
  transform: translateY(-2px) scale(1.04);
}

/* ========== FEATURE GRIDS & FLEX LAYOUTS ========== */
.feature-grid, .service-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.feature-grid > div, .service-grid > div {
  background: #F5F6FA;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 rgba(39, 180, 156, 0.06);
  padding: 22px 20px 20px 20px;
  min-width: 240px;
  flex: 1 1 240px;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 2.5px solid #27B49C22;
  margin-bottom: 20px;
  transition: border 0.18s, box-shadow 0.22s, transform 0.12s;
  position: relative;
}
.feature-grid > div:hover, .service-grid > div:hover {
  box-shadow: 0 8px 30px 0 #27B49C33;
  border: 2.5px solid #27B49C;
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.feature-grid img, .service-grid img {
  width: 56px;
  min-width: 48px;
  height: auto;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F5F6FA;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(24,56,74, 0.05);
  padding: 24px;
  flex: 1 1 300px;
  transition: box-shadow 0.17s, transform 0.13s;
  min-width: 220px;
  max-width: 340px;
}
.card:hover {
  box-shadow: 0 8px 30px 0 #27B49C33;
  transform: scale(1.02);
  z-index: 3;
}
.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) {
  .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(24,56,74, 0.09);
  margin-bottom: 20px;
  border-left: 5px solid #27B49C;
  margin-top: 0;
  color: #18384A;
  min-width: 0;
}
.testimonial-card p {
  margin: 0 0 4px 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: #204B6F;
  line-height: 1.45;
}
.testimonial-card span {
  color: #27B49C;
  font-weight: bold;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 16px;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 14px;
    font-size: 0.95rem;
  }
  .testimonial-card span { margin-left: 0; }
}

/* ========== FEATURE ITEM FLEX ========== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== TEXT SECTIONS ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

/* ========== FOOTER ========== */
footer {
  background: #18384A;
  color: #fff;
  border-radius: 18px 18px 0 0;
  margin-top: 40px;
  box-shadow: 0 -2px 20px 0 rgba(13,40,65,0.08);
  padding: 30px 0 18px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #27B49C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  transition: color 0.19s, transform 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-size: 1rem;
}
.footer-brand img {
  height: 32px;
}
@media (max-width: 600px) {
  .footer-nav { gap: 12px; font-size: 1rem; flex-direction: column; }
  .footer-brand {
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
  }
}

/* ========== LIST ITEMS ========== */
ul, ol {
  margin-bottom: 18px;
  margin-top: 6px;
}

.text-section ul, .content-wrapper ul {
  margin-left: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.text-section li, .content-wrapper li {
  font-size: 1rem;
  color: #204B6F;
  line-height: 1.5;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #18384A;
  color: #fff;
  z-index: 1500;
  box-shadow: 0 -2px 28px 0 rgba(24,56,74, 0.13);
  padding: 18px 20px 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: transform 0.35s cubic-bezier(.62,2.16,.38,.95);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  color: #fff;
  margin-right: 16px;
  font-size: 1rem;
  max-width: 420px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 7px;
  font-weight: 700;
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(39,180,156,.09);
  margin: 0 2px;
  transition: background 0.19s, color 0.11s, transform 0.10s;
}
.cookie-banner .accept {
  background: #27B49C;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
  color: #27B49C;
}
.cookie-banner .reject {
  background: #ff3c6a;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #fff;
  color: #ff3c6a;
}
.cookie-banner .settings {
  background: #18384A;
  border: 1.5px solid #27B49C;
  color: #27B49C;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #27B49C;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner, .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .cookie-banner p { margin-right: 0; }
}

/* ========== COOKIE CONSENT MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,56,74,0.60);
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #18384A;
  max-width: 420px;
  width: 96vw;
  padding: 32px 22px 22px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 38px 0 #27B49C33, 0 1.2px 2.2px 0 #18384A11;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalSlide .37s cubic-bezier(.7,.01,.56,1.5);
}
@keyframes cookieModalSlide {
  0% { transform: scale(0.89) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #18384A;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  padding:6px 0;
}
.cookie-modal .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #18384A;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 32px;
  height: 20px;
  accent-color: #27B49C;
}
.cookie-modal .cookie-category input:disabled {
  accent-color: #bababa;
  opacity: 0.7;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.cookie-modal .accept {
  background: #27B49C;
  color: #fff;
}
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: #18384A;
  color: #27B49C;
}
.cookie-modal .reject {
  background: #ff3c6a;
  color: #fff;
}
.cookie-modal .reject:hover, .cookie-modal .reject:focus {
  background: #18384A;
  color: #ff3c6a;
}
.cookie-modal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #18384A;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 1552;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  color: #27B49C;
}

/* ========== MISC: HR & CODE ========== */
hr {
  border: none;
  border-top: 2px solid #27B49C44;
  margin: 32px 0;
}
code, pre {
  font-family: 'Fira Mono', monospace;
  background: #f4fbfa;
  padding: 1px 7px;
  border-radius: 6px;
  color: #27B49C;
  font-size: 0.97rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 12px;
  background: #F5F6FA;
}
::-webkit-scrollbar-thumb {
  background: #27B49C;
  border-radius: 11px;
}

/* ========== VIBRANT EFFECTS ========== */
section {
  border: 2px solid #27B49C22;
  box-shadow: 0 9px 40px 0 #27B49C18;
}

/* Deco color splashes (optional): can be positioned absolutely if used as true decor only */
.decoration-splash {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.19;
}

/* ========== FORM ELEMENTS ========== */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #27B49C55;
  border-radius: 7px;
  padding: 10px 14px;
  outline: none;
  background: #fff;
  margin-bottom: 14px;
  transition: border 0.19s, box-shadow 0.13s;
  color: #18384A;
}
input:focus, textarea:focus, select:focus {
  border-color: #27B49C;
  box-shadow: 0 0 0 2px #27B49C33;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #204B6F;
  margin-bottom: 4px;
}

/* ========== ANIMATIONS/MICRO-INTERACTIONS ========== */
.cta-primary, .cta-secondary, .main-nav a, .mobile-nav a {
  transition: background 0.2s, color 0.2s, box-shadow 0.14s, transform 0.11s;
}
.feature-grid > div, .service-grid > div, .card {
  transition: box-shadow 0.18s, border 0.14s, transform 0.12s;
}
section, .testimonial-card {
  transition: box-shadow 0.19s;
}

/* ========== HIGH CONTRAST FOR REVIEWS/TESTIMONIALS ========== */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #18384A !important;
}

/* ========== UTILITIES ========== */
.hide { display: none !important; }
.visible { display: block !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 900px) {
  .feature-grid > div, .service-grid > div, .card {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .content-wrapper {
    max-width: 99vw;
    padding: 0;
  }
  section {
    padding: 16px 2vw;
    margin-bottom: 25px;
  }
  .card, .feature-grid > div, .service-grid > div {
    min-width: unset;
    padding: 13px 12px 12px 12px;
  }
}

/* ========== ELECTRIC COLOR SPLASHES (OPTIONAL VIBRANT DECOR) ========== */
/* To accentuate the VIBRANT_ENERGETIC theme, optional color bursts/icons can be placed absolutely using .decoration-splash */

/* ========== END CSS ========== */
