/* --- 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, main, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #224B79;
  --secondary: #E4E8EE;
  --accent: #0AA858;
  --white: #FFF;
  --black: #21242C;
  --gray: #e4e8ee;
  --danger: #e45c38;
  --warning: #ffd600;
  --success: #18d67b;
  --bg-hero: #DEF5F6;
  --shadow: 0 4px 16px rgba(34,75,121,0.08), 0 2px 8px rgba(34,75,121,0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--secondary);
}
body {
  color: var(--black);
  background: var(--white);
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}

/* --- GENERAL LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
}

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

/* --- TYPOGRAPHY --- */
h1, .hero h1, .cta-section h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 3px 0 var(--accent), 0 6px 10px rgba(34,75,121,0.05);
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--black);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
strong {
  font-weight: bold;
  color: var(--accent);
}

/* --- FUN, PLAYFUL FONT HEADERS --- */
h1, h2, h3, .cta-section h2, .cta-section h1 {
  letter-spacing: 1px;
  text-transform: none;
}

/* --- FLEXBOX PATTERNS --- */
.features-grid,
.services-list,
.service-panels,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}

.feature, .service, .service-panel, .feature-list li {
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: transform .18s cubic-bezier(.56,1.47,.58,1), box-shadow .18s;
  min-width: 230px;
}
.feature:hover, .service:hover, .service-panel:hover, .feature-list li:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 36px 0 rgba(34,75,121,0.13);
  z-index: 2;
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--secondary);
  padding: 24px 26px 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 360px;
  transition: box-shadow .2s, transform .2s;
  border-left: 6px solid var(--accent);
  font-size: 1.1em;
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.04em;
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: 0.98em;
  color: var(--primary);
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.1em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,75,121,0.16);
  transform: scale(1.025);
}

/* --- HERO & CTA --- */
.hero {
  background: var(--bg-hero);
  padding: 48px 0 38px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section {
  margin-bottom: 0;
  padding-bottom: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cta-section h2, .cta-section h1 {
  color: var(--white);
  text-shadow: 0 3px 5px rgba(34,75,121,0.13);
}
.cta-section .button {
  margin-top: 18px;
}

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  box-shadow: 0 2px 8px rgba(34,75,121,0.10);
  margin-right: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .14s;
  position: relative;
  outline: none;
}
.button.primary {
  background: var(--primary);
  color: var(--white);
}
.button.secondary {
  background: var(--accent);
  color: var(--white);
}
.button.danger {
  background: var(--danger);
  color: var(--white);
}
.button:hover, .button:focus {
  background: #009159;
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(34,75,121,0.18);
}
.button:active {
  background: #007944;
  transform: scale(0.97);
}

/* --- NAVIGATION --- */
header {
  padding: 0;
  margin-bottom: 24px;
  box-shadow: 0 3px 8px rgba(34,75,121,0.06);
  background: var(--white);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0 20px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color .17s, border .2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  text-decoration: underline wavy var(--accent) 1.5px;
}
header img {
  height: 38px;
}
header .button.primary {
  margin-left: 24px;
  font-size: 1.10rem;
  padding: 10px 22px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  padding: 8px 18px 8px 15px;
  position: absolute;
  top: 19px;
  right: 24px;
  z-index: 51;
  transition: background .2s;
  cursor: pointer;
  box-shadow: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .44s cubic-bezier(.71,1.8,.39,.87);
  z-index: 200;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  margin: 20px 18px 10px 18px;
  align-self: flex-end;
  transition: color .2s;
  cursor: pointer;
  z-index: 2;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 36px 36px 36px;
  gap: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  padding: 14px 0;
  transition: color .18s;
  border-radius: 6px;
  line-height: 1.3;
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(10,168,88,0.08);
}
/* HIDE NAV ON MOBILE */
@media (max-width: 980px) {
  .main-nav,
  header .button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* SHOW NAV ON DESKTOP */
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0 24px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 9px 0 rgba(34,75,121,0.07);
  margin-top: 42px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 36px;
}
.footer-menu a {
  color: var(--white);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.83;
  transition: color .17s, opacity .1s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.99rem;
}
.footer-info img {
  height: 34px;
  margin-bottom: 12px;
}
.footer-info a {
  color: var(--accent);
}

/* --- LISTS AND TEXT BLOCKS --- */
.text-section {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: 36px 28px 30px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.text-section h1, .text-section h2, .text-section h3 {
  margin-bottom: 15px;
}
.text-section ul {
  margin-left: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section li {
  padding-left: 0.8em;
  position: relative;
}
.text-section li::before {
  content: '◆';
  color: var(--accent);
  position: absolute;
  left: -1em;
  font-size: 0.85em;
  top: 2px;
}

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.map-embed {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-hero);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 10px;
  font-size: 1.02em;
  color: var(--primary);
}

/* --- TEAM BRIEF --- */
.team-brief {
  margin-top: 17px;
  background: var(--gray);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 18px 18px 20px;
  font-size: 1.05em;
  font-family: 'Roboto', Arial, sans-serif;
}
.team-brief h3 {
  color: var(--accent);
  font-size: 1.11rem;
}
.team-brief ul {
  gap: 5px;
  margin-bottom: 0;
}
.team-brief li::before {
  content: '👥';
  color: var(--primary);
  left: -1.3em;
  font-size: 0.97em;
}

/* --- SERVICE/PANEL SECTIONS --- */
.services-list, .service-panels {
  width: 100%;
  gap: 24px;
  margin-bottom: 8px;
}
.service, .service-panel {
  min-width: 220px;
  flex: 1 1 270px;
}
.service-panel strong, .service strong {
  font-size: 1.04em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- FEATURE LISTS --- */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-list li {
  min-width: 220px;
  flex: 1 1 275px;
}
.feature-list a {
  color: var(--accent);
  text-decoration: underline dotted;
  font-weight: 500;
  font-size: 1.03em;
  transition: color .13s;
}
.feature-list a:hover {
  color: var(--primary);
  text-decoration: underline solid;
}

/* --- RESPONSIVE FLEX: TEXT-IMAGE SECTIONS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- MISCELLANEOUS CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-hero);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 200px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* --- SPACING AND HIERARCHY --- */
.section + .section {
  margin-top: 20px;
}

h1 + p, h2 + p, h2 + ul, h3 + p {
  margin-top: 6px;
}

.card + .card, .service + .service, .service-panel + .service-panel, .testimonial-card + .testimonial-card {
  margin-top: 0 !important;
}

/* --- DECORATION: PLAYFUL BUBBLES FOR HERO & CTA --- */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  right: 4vw;
  top: 30px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  opacity: 0.11;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floaty-bubble 3.7s linear infinite alternate;
}
@keyframes floaty-bubble {
  0% { transform: translateY(0); }
  85% { transform: translateY(-16px) scale(1.14); }
  100% { transform: translateY(8px) scale(1.07); }
}
.cta-section::after {
  content: '';
  display: block;
  position: absolute;
  left: 5vw;
  bottom: 30px;
  width: 46px;
  height: 46px;
  background: var(--white);
  opacity: 0.13;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floaty-bubble2 3.2s ease-in-out infinite alternate;
}
@keyframes floaty-bubble2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-13px) scale(0.92); }
}

/* --- HOVER AND FOCUS MICRO-INTERACTION --- */
.feature img, .service img {
  width: 44px;
  margin-bottom: 7px;
  transition: transform .25s cubic-bezier(.51,1.56,.41,.87);
}
.feature:hover img, .service:hover img {
  transform: scale(1.18) rotate(-6deg);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 18px 0 rgba(34,75,121,0.15);
  padding: 22px 24px 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  z-index: 9999;
  font-size: 0.98em;
  border-radius: 22px 22px 0 0;
  transition: bottom .42s cubic-bezier(.23,1.04,.57,.96);
}
.cookie-banner.hide {
  bottom: -120px;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  flex: 1 1 0;
  margin-right: 10px;
  font-size: 1.06em;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cookie-banner .button {
  font-size: 0.97em;
  padding: 8px 16px;
  margin: 0 6px 0 0;
  border-radius: 8px;
}
.cookie-banner .button.secondary {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner .button.danger {
  background: var(--danger);
}
.cookie-banner .button:focus {
  outline: 3px dashed var(--primary);
  outline-offset: 2px;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34,75,121,0.23);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .22s;
}
@keyframes fadein { from{opacity: 0;} to {opacity:1;} }
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  min-width: 322px;
  max-width: 94vw;
  box-shadow: 0 9px 64px rgba(34,75,121,0.18);
  padding: 36px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: popupmodal .38s cubic-bezier(.43,1.51,.56,.98);
  position: relative;
}
@keyframes popupmodal {
  from { transform: translateY(65px) scale(0.93); opacity:0.2; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal h3 {
  margin-bottom: 18px;
  font-size: 1.34rem;
  color: var(--primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.05em;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: var(--primary);
  opacity: 0.52;
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal .button {
  font-size: 0.99em;
  padding: 7px 16px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  font-size: 1.5rem;
  background: none;
  color: var(--danger);
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-close:focus {
  outline: 2px solid var(--accent);
}

/* --- MEDIA QUERIES RESPONSIVENESS --- */
@media (max-width: 1150px) {
  .features-grid, .services-list, .feature-list, .service-panels, .testimonials-slider {
    gap: 18px;
  }
}
@media (max-width: 890px) {
  .features-grid, .services-list, .feature-list, .service-panels, .testimonials-slider {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature, .service, .service-panel, .feature-list li, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 0 20px;
  }
  .footer-menu {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 12px;
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    max-width: 100vw;
    padding: 0 7vw;
  }
  .section {
    padding: 24px 7vw;
  }
  .content-wrapper {
    padding: 0 0 0 0;
  }
  .hero {
    padding: 27px 0 22px 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 1em;
    border-radius: 0;
    padding: 16px 12px 16px 12px;
  }
  .cookie-modal {
    padding: 20px 9vw 22px 9vw;
    min-width: 0;
    max-width: 100vw;
  }
  .feature, .service, .service-panel, .feature-list li {
    padding: 18px 14px;
    font-size: 1em;
  }
  .team-brief {
    padding: 13px 10px 13px 13px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .container {
    padding: 0 2vw;
  }
  .section {
    padding: 14px 2vw;
  }
  .hero, .cta-section {
    padding: 14px 2vw;
  }
  h1, .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.05rem; }
  .footer-info img {
    height: 25px;
  }
  .feature, .service, .feature-list li {
    font-size: 0.97em;
  }
  .team-brief, .testimonial-card {
    font-size: 0.98em;
    padding: 10px 8px 10px 11px;
  }
}

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