/* --- 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF8F1;
  color: #3F4654;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #447380;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover,
a:focus {
  color: #218C64;
}
ul, ol {
  padding-left: 20px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
  box-sizing: border-box;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #447380;
  --primary-dark: #174759;
  --secondary: #F6E9B2;
  --secondary-light: #FFF8F1;
  --accent: #34654C;
  --highlight: #218C64;
  --pastel-pink: #F5CEDC;
  --pastel-blue: #DCECF8;
  --pastel-green: #D6F3DF;
  --pastel-yellow: #FFF7E5;
  --pastel-mint: #E6F0EB;
  --white: #FFFFFF;
  --black: #20262F;
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--secondary-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul, ol, blockquote {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #4e5562;
}
blockquote {
  padding: 18px 28px;
  margin: 16px 0;
  background: var(--pastel-blue);
  border-left: 5px solid var(--primary);
  color: var(--primary-dark);
  font-style: italic;
  border-radius: 8px;
}
strong {
  font-weight: 700;
  color: var(--accent);
}

/* --- CONTAINER & WRAPPERS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 #e4e5ed22;
  padding: 40px 26px;
  margin-bottom: 40px;
  transition: box-shadow 0.2s;
}

/* --- FLEXBOX UTILITIES & SECTIONS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  padding: 24px 20px;
  background: var(--pastel-mint);
  border-radius: 18px;
  box-shadow: 0 4px 16px #e9e4f3a0;
  transition: transform 0.18s, box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 6px 28px #C2D7F876, 0 2px 5px #34654C18;
}

.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;
  background: var(--pastel-pink);
  border-radius: 18px;
  box-shadow: 0 2px 12px #beccd44a;
  margin-bottom: 20px;
  min-width: 0;
  color: #3B4049;
}
.testimonial-card strong {
  color: var(--primary-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-blue);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 240px;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white);
  border: none;
  border-radius: 28px;
  padding: 15px 36px;
  box-shadow: 0 2px 9px #97c8c31a;
  margin: 14px 0;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.22s, transform 0.13s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--highlight), var(--primary));
  box-shadow: 0 4px 16px #218C6439;
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 10px 30px;
  cursor: pointer;
  transition: border-color .19s, background .22s, color .18s;
  margin: 8px 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--pastel-blue);
  color: var(--accent);
  border-color: var(--highlight);
}

/* --- HEADER & NAV --- */
header {
  background: var(--pastel-blue);
  box-shadow: 0 2px 16px #C1E6FB22;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  position: relative;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  transition: background 0.23s, color 0.19s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--pastel-green);
  color: var(--highlight);
}
header .btn-primary {
  font-size: 1.05rem;
  margin-left: 22px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .22s;
  z-index: 1500;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244, 230, 250, 0.95);
  backdrop-filter: blur(2.5px);
  box-shadow: 0 0 38px #a5d3c860;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.8,0.1,0.13,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2100;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 330px;
  margin: 60px 24px 0 32px;
  gap: 14px;
}
.mobile-nav a {
  padding: 18px 12px;
  border-radius: 16px;
  font-size: 1.15rem;
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #dceee8;
  background: var(--pastel-mint);
  margin-bottom: 2px;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--green-accent, var(--highlight));
}

@media (max-width: 1100px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 12px;
  }
  header .container {
    gap: 12px;
    padding: 12px 10px;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 9px; }
  .main-nav { gap:12px; }
}
@media (max-width: 820px) {
  .content-wrapper {
    padding: 26px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 16px;
    right: 18px;
  }
  header .container {
    justify-content: flex-start;
    gap: 14px;
  }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(95deg, #f8e7ee 0%, #e9f8fa 100%);
  padding: 0 0 60px 0;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px;
}
.hero .content-wrapper {
  box-shadow: none;
  background: transparent;
  max-width: 650px;
  text-align: center;
  padding: 45px 4vw 0 4vw;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.15rem;
  color: #6a707d;
}
@media (max-width: 520px) {
  .hero .content-wrapper { padding: 35px 4vw 0 4vw;}
  .hero h1 { font-size: 1.32rem;}
}

/* --- SERVICE LISTS, FAQ ETC. --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--pastel-mint);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px #DCECF87B;
  margin-bottom: 8px;
  font-size: 1rem;
  transition: box-shadow 0.22s, transform 0.14s;
}
.service-list > div:hover {
  box-shadow: 0 4px 24px #34654C10,
              0 2px 6px #F6E9B26B;
  transform: scale(1.02);
}
.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.faq > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--pastel-pink);
  border-radius: 15px;
  padding: 18px 16px 15px 16px;
  box-shadow: 0 2px 7px #E7DDF27D;
}

/* --- INPUTS/NEWSLETTER FORM --- */
input[type="email"] {
  padding: 12px 18px;
  border-radius: 22px;
  border: 1px solid var(--pastel-blue);
  background: var(--white);
  font-size: 1rem;
  color: #495168;
  width: 220px;
  transition: border 0.2s;
  margin-right: 10px;
}
input[type="email"]:focus {
  border: 1px solid var(--primary);
}

/* --- FOOTER --- */
footer {
  background: var(--pastel-blue);
  box-shadow: 0 -2px 10px #B2CCE622;
  padding: 34px 0 0 0;
  color: #3a3e4b;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 2px solid #F6E9B2;
  padding-bottom: 18px;
}
.footer-top nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-top nav a {
  color: var(--primary-dark);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .19s;
}
.footer-top nav a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 13px 0 7px 0;
  font-size: 0.97rem;
}
.footer-navigation {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
}
.footer-navigation a {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.96rem;
}
.footer-navigation a:hover,
.footer-navigation a:focus {
  color: var(--highlight);
  text-decoration: underline;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 10px 0 0 0;
}
.footer-social a img {
  filter: grayscale(16%) sepia(0.1) brightness(0.92);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: none;
}
@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap:12px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px;}
}
@media (max-width: 540px) {
  .footer-top, .footer-bottom { flex-direction: column; gap:13px; align-items: flex-start;}
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--pastel-blue);
  box-shadow: 0 -2px 22px #c9e6fa55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px 22px 24px;
  z-index: 2105;
  transition: transform 0.34s cubic-bezier(0.77,0.01,0.13,1), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
  gap: 24px;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150%);
}
.cookie-banner-message {
  flex: 1 1 55vw;
  color: #436075;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 10px 23px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.21s, color 0.12s;
  cursor: pointer;
}
.btn-cookie-accept {
  background: var(--highlight);
  color: var(--white);
  box-shadow: 0 1px 5px #34654C22;
}
.btn-cookie-accept:hover { background: #17bd87; }
.btn-cookie-reject {
  background: #E1EDF2;
  color: var(--primary);
}
.btn-cookie-reject:hover { background: #ffede8; color: #a8575d; }
.btn-cookie-settings {
  background: var(--pastel-yellow);
  color: var(--primary-dark);
}
.btn-cookie-settings:hover { background: var(--secondary); color: var(--accent); }
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 18px 7vw 16px 6vw;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248, 233, 242, 0.95);
  backdrop-filter: blur(2px);
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.31s;
}
.cookie-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 22px;
  padding: 40px 24px 30px 24px;
  box-shadow: 0 10px 38px #e8e3f388, 0 2px 8px #B6EBD380;
  max-width: 370px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.08rem;
  color: #3e4658;
  position: relative;
}
.cookie-modal-content h3 {
  margin: 0 0 12px 0;
  color: var(--primary);
  font-size: 1.3rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
}
.cookie-category .is-essential {
  font-size: 0.99rem;
  font-style: italic;
  color: #AFB7B3;
  margin-left: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--accent);
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--primary-dark);
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar { width: 9px; background: var(--pastel-blue); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #f0dbb2; }

hr { border: 0; border-top: 2px solid var(--secondary); margin: 25px 0; }

/* --- RESPONSIVE FLEX ADJUSTMENTS --- */
@media (max-width: 900px) {
  .service-list, .faq, .content-grid, .card-container, .feature-list {
    flex-direction: column;
    gap: 21px;
  }
  .text-image-section { flex-direction: column; gap:19px; }
}
@media (max-width: 540px) {
  .section { padding: 28px 3vw; margin-bottom: 34px; }
  h1, .hero h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .content-wrapper { padding: 17px 5px; }
}

/* --- VISUAL HIERARCHY AND SHADOWS --- */
.card, .feature-item, .service-list > div {
  box-shadow: 0 2px 10px #C1B6FA17;
  border: 1.5px solid #e5f1ea;
}

/* --- ADDITIONAL SPACING CLASSES --- */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }
.gap-4 { gap: 32px !important; }

/* --- MICRO-INTERACTIONS --- */
.card, .service-list > div, .feature-item, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover, .service-list > div:hover, .feature-item:hover {
  box-shadow: 0 10px 36px #C2D7F845, 0 2px 7px #218C6420;
  transform: translateY(-5px) scale(1.025);
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px #F6E9B257, 0 1px 3px #34654C16;
  transform: scale(1.011);
}

/* --- TESTIMONIAL CONTRAST --- */
.testimonial-card {
  background: var(--pastel-pink);
  color: #222942;
}
.testimonial-card p { color: #3e4658; }
.testimonial-card strong { color: var(--primary-dark); }
.testimonial-card div { font-size: 1.35rem; color: var(--highlight);}

/* --- ACCESSIBILITY (FOCUS) --- */
a, button, .btn-primary, .btn-secondary, input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2.5px solid #c6eed6;
  outline-offset: 1.5px;
}

/* --- SUCCESS / THANK-YOU PAGE --- */
.thank-you-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

/* --- SPECIAL FLEX CASES --- */
/* For .footer-bottom, .footer-top gap already enforced above */
/* For testimonial row spacing */
.testimonial-card + .testimonial-card {
  margin-top: 18px;
}

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