/* ------------------ 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.6;
  background: #FAFBFA;
  color: #2b2b2b;
  font-family: "Roboto", Arial, sans-serif;
  letter-spacing: 0.02em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #295A80;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5278C2;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
}

/* -------------- VARIABLES (fallbacks included) -------------- */
:root {
  --primary: #295A80;
  --primary-rgb: 41,90,128;
  --secondary: #81B29A;
  --accent: #F1F1F1;
  --btn-gradient: #397bba;
  --shadow: rgba(41,90,128,0.07) 0px 2px 12px, rgba(41,90,128,0.05) 0px 8px 40px;
  --radius: 22px;
  --font-display: 'Montserrat', system-ui, Arial, sans-serif;
  --font-body: 'Roboto', system-ui, Arial, sans-serif;
  --font-art: 'Montserrat', 'Roboto', fantasy, sans-serif;
}

/* -------------- TYPOGRAPHY & COLORS --------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: 2px;
  font-family: var(--font-art);
  text-shadow: 0 2px 0 #b7eacc, 1px 2px 5px rgba(41,90,128,0.09);
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-family: var(--font-art);
  letter-spacing: 1.5px;
}
h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--secondary);
}
h4 {
  font-size: 1.1rem;
}
p, li, span, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #282828;
  margin-bottom: 10px;
}
strong {
  color: var(--primary);
  font-weight: 600;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.23em;
  font-style: italic;
  margin-bottom: 18px;
  letter-spacing: 1.2px;
}

/* -------------- CONTAINER & SECTIONS --------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -------------- HEADER & NAVIGATION --------------- */
header {
  background: #fff;
  box-shadow: 0 4px 22px -10px rgba(var(--primary-rgb), 0.10);
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  position: relative;
  padding: 6px 8px;
  transition: color 0.2s;
  border-radius: 8px;
}
nav a.btn-primary {
  margin-left: 16px;
}
nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .25s;
  border-radius: 2px;
  position: absolute;
  left: 40%;
  bottom: 1px;
}
nav a:hover:after {
  width: 60%;
}
nav a:hover {
  color: var(--secondary);
  background: #f2fff9;
}
nav a.btn-primary:hover {
  color: #fff;
  background: var(--primary);
}

/* ------------- MOBILE MENU ------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 7px 13px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s;
  z-index: 31;
  box-shadow: 0 1px 8px 0 rgba(41,90,128, 0.11);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg,#f6fcfa 70%,#c6f3e8 100%);
  box-shadow: 0 4px 16px 0 rgba(41,90,128, 0.30);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.6,1.94,.5,.74);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 45px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 15px;
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 91;
  padding: 4px 10px;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  padding-left: 24px;
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  color: var(--primary);
  padding: 14px 2px 12px 0;
  border-radius: 8px;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:hover {
  background: #e7f2fc;
  color: var(--secondary);
}

@media (max-width: 992px) {
  nav {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --------------- HERO SECTIONS --------------- */
.hero {
  background: linear-gradient(100deg, #f9fff6 60%, #e2f5fe 160%);
  padding: 58px 0 38px 0;
  border-radius: var(--radius);
  min-height: 280px;
  margin-bottom: 46px;
  box-shadow: 0 8px 32px 0 rgba(41,90,128,0.10);
}
.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 660px;
}
.hero h1 span {
  background: var(--secondary);
  color: #fff;
  border-radius: 10px;
  padding: 0 8px;
}


/* ------------- BUTTONS ------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  margin-top: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 14px 0 rgba(41,90,128,.06);
  cursor: pointer;
  transition: background 0.22s, transform 0.14s, box-shadow 0.16s;
  outline: none;
}
.btn-primary:active {
  transform: scale(0.97);
  background: #184063;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 5px 26px 0 rgba(41,90,128,.13);
}


/* ------------- FLEX LAYOUTS + RESPONSIVE ONLY BY FLEXBOX -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 28px 24px;
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 99%;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 42px 0 rgba(41,90,128,0.17);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9fff6;
  border: 1px solid var(--accent);
  border-radius: 19px;
  box-shadow: 0 2px 10px 0 rgba(41,90,128,0.04);
  flex: 1 1 340px;
  min-width: 240px;
  max-width: 96vw;
  margin-bottom: 24px;
}
.testimonial-card p {
  color: #222;
  background: none;
  margin-bottom: 6px;
  font-size: 1.03rem;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1.04em;
}
.star-rating img {
  height: 22px;
  width: 22px;
  margin-right: 2px;
  filter: drop-shadow(0 1px 2px #fff0c8) drop-shadow(0 2px 2px #ffd70090);
}


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

/* ------------- UNIQUE ARTISTIC / CREATIVE LAYOUTS ----------- */
.feature-grid,
.benefit-list,
.article-preview-grid,
.service-categories,
.checklist {
  
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
.feature-grid > div, .benefit-list > li, .service-categories > li, .article-preview-grid > article, .checklist > li {
  background: #fff;
  border: 2px dashed var(--secondary);
  border-radius: 13px;
  box-shadow: 0 2px 18px -6px rgba(129,178,154,0.09);
  padding: 20px;
  flex: 1 1 230px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.feature-grid > div:hover, .benefit-list > li:hover, .service-categories > li:hover, .article-preview-grid > article:hover, .checklist > li:hover {
  background: #fcfefb;
  border-color: var(--primary);
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 12px 34px 0 rgba(129,178,154,0.19);
}
.feature-grid img, .benefit-list img, .service-categories img {
  margin-bottom: 8px;
  height: 32px;
}

.article-preview-grid > article h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-art);
}
.article-preview-grid > article p {
  font-size: 1rem;
  line-height: 1.5;
}

.faq-accordion > div {
  margin-bottom: 18px;
  background: #f6fffe;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  box-shadow: 0 1px 7px 0 rgba(129,178,154,0.07);
}
.faq-accordion h3 {
  margin-bottom: 7px;
  color: var(--primary);
}

.checklist > li, .benefit-list > li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1.1rem;
}
.checklist img, .benefit-list img {
  height: 21px;
  margin-top: 4px;
}

/* ------------ COOKIE CONSENT BANNER --------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fdfaf7 70%, #e1ffef 130%);
  color: #1b2328;
  z-index: 999;
  box-shadow: 0 -2px 18px 0 rgba(41,90,128,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 28px 22px 28px;
  gap: 16px;
  animation: cookieBannerAppear 1s cubic-bezier(.5, .06, .22, .95) 1;
  font-family: var(--font-body);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner__btn {
  border: none;
  padding: 8px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.2s;
  font-size: 1rem;
}
.cookie-banner__btn.reject {
  background: #e44f4f;
}
.cookie-banner__btn.settings {
  background: var(--secondary);
  color: #232323;
}
.cookie-banner__btn:hover {
  background: #174765;
}
.cookie-banner__btn.reject:hover {
  background: #b80c0c;
}
.cookie-banner__btn.settings:hover {
  background: #aedcca;
}

.cookie-modal {
  position: fixed;
  left: 0;
  top: 0; right: 0;
  bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(29,46,57,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: modalAppear 0.45s cubic-bezier(.4,.8,.2,1.3);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
@keyframes modalAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  border-radius: 21px;
  padding: 34px 28px 30px 28px;
  min-width: 310px;
  max-width: 90vw;
  box-shadow: 0 6px 40px 0 rgba(41,90,128,0.17);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 13px;
  right: 17px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f7fcfa;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1.02rem;
  border: 1px solid #e9eaea;
}
.cookie-modal__category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
  margin-right: 3px;
}

.cookie-modal__category.essential input {
  accent-color: var(--primary);
}
.cookie-modal__category.essential label {
  opacity: 0.8;
  font-weight: 600;
}
.cookie-modal__category .cookie-toggle-label {
  font-family: var(--font-body);
  font-size: 1.05em;
  letter-spacing: 0.03em;
}
.cookie-modal__actions {
  display: flex;
  gap: 18px;
}

/* ----------- END COOKIE CONSENT ----------- */

/* --------------- FOOTER --------------- */
footer {
  background: linear-gradient(96deg,#fff 60%,#f7fdf8 110%);
  padding: 34px 0 10px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  margin-top: 52px;
  box-shadow: 0 -2px 18px 0 rgba(41,90,128, 0.04);
}
footer .container {
  flex-wrap: wrap;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex: 1 1 230px;
}
.footer-branding span {
  font-size: 1.15rem;
  color: var(--secondary);
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  flex: 1 1 130px;
}
.footer-menu a {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #333;
  flex: 1 1 220px;
}
.footer-contact img {
  height: 17px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex: 1 1 60px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: transform 0.12s, filter 0.12s;
  filter: grayscale(.2) brightness(1.07);
}
.footer-social a:hover img {
  filter: none;
  transform: scale(1.12) rotate(-8deg);
}

/* -------------- OTHER COMPONENTS ------------ */
.form-hint, .map-hint, .address-block {
  background: #e8f4fa;
  padding: 14px 18px;
  border-radius: 9px;
  margin-top: 11px;
  margin-bottom: 13px;
  font-size: 0.98em;
  color: var(--primary);
}
.contact-details ul {
  margin-top: 8px;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img {
  height: 19px;
  vertical-align: middle;
  margin-right: 5px;
}
.address-block img {
  height: 15px;
  margin-right: 7px;
}

/* --------------- VISUAL HIERARCHY & ANIMATION ------------ */
.card, .feature-grid > div, .benefit-list > li, .service-categories > li, .article-preview-grid > article, .section, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.19s, border-color 0.19s;
}
.section {
  animation: sectionFadeIn 0.63s cubic-bezier(.54, .03, .14, 1) 1;
}
@keyframes sectionFadeIn {
  0% { opacity: 0; transform: translateY(50px); }
  70% { opacity: 1; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ------------- RESPONSIVE MEDIA QUERIES ------------- */
@media (max-width: 1100px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 992px) {
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 47px;
  }
  .benefit-list, .feature-grid, .service-categories, .article-preview-grid, .card-container {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .hero {
    padding: 31px 0 24px 0;
    min-height: 140px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
  }
  .footer-social {
    margin-top: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.2rem; }
  .btn-primary {
    font-size: 0.98rem;
    padding: 10px 18px;
    border-radius: 12px;
  }
}

/* ------------- ARTISTIC / CREATIVE ELEMENTS ------------ */
h1, h2, h3 {
  text-rendering: geometricPrecision;
  font-family: var(--font-art);
  text-shadow: 0 3px 21px #f1fcfa, 0 2px 13px #c8fff3;
}
.feature-grid > div, .benefit-list > li, .service-categories > li, .article-preview-grid > article {
  position: relative;
}
.feature-grid > div:before,
.benefit-list > li:before,
.service-categories > li:before,
.article-preview-grid > article:before {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 48px; height: 48px;
  background: radial-gradient(rgba(129,178,154,0.16), transparent 60%);
  pointer-events: none;
  border-radius: 100%;
  z-index: 0;
  animation: popShadow 3s infinite ease-in-out alternate;
}
@keyframes popShadow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
/* Decorative paint splashes for extra artistic feel */
.section:after {
  content: "";
  display: block;
  position: absolute;
  right: -21px; bottom: -34px;
  width: 56px; height: 54px;
  background: url('../assets/deco-splash.svg') no-repeat center/contain;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

/* Remove paint splash if asset not available */
@media (max-width: 768px) {
  .section:after {
    display: none;
  }
}

/* ------------- UTILITY CLASSES ------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mt-0 { margin-top: 0 !important; }
.gap-0 { gap: 0 !important; }

/* -------------- Misc -------------- */
::-webkit-input-placeholder { color: #74a1b9; opacity: 1; }
::-moz-placeholder { color: #74a1b9; opacity: 1; }
:-ms-input-placeholder { color: #74a1b9; opacity: 1; }
::placeholder { color: #74a1b9; opacity: 1; }

::-webkit-scrollbar {width: 10px;background: #e0f1fc;}
::-webkit-scrollbar-thumb {background: #b3cfdb;border-radius: 9px;}
