/* -------------------------------------------------------
  CSS RESET & BASELINE NORMALIZE
------------------------------------------------------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F9F9F9;
  color: #274C77;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: disc inside; margin: 0 0 1.25em 0; }
strong { font-weight: 600; }

/* -------------------------------------------------------
  BRAND PALETTE: Soft Pastel Vibe
------------------------------------------------------- */
:root {
  --primary: #274C77;
  --secondary: #F9F9F9;
  --accent: #F67218;
  --accent-dark: #B34800;
  --pastel-blue: #BFD6F6;
  --pastel-pink: #FFD6E0;
  --pastel-yellow: #FBE6A2;
  --pastel-green: #C9E4CA;
  --pastel-violet: #ECD4FE;
  --soft-shadow: 0 2px 24px 0 rgba(80,77,152,0.09);
  --radius: 18px;
}

/* Fallbacks for older browsers */
body { background: var(--secondary, #F9F9F9); }

/* Fonts for Web */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,400italic,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 0.65em;
}
h1 { font-size: 2.2rem; line-height: 1.18; }
h2 { font-size: 1.6rem; margin-top: 30px; }
h3 { font-size: 1.18rem; }
h4, h5, h6 { font-size: 1rem; }
p, li { font-family: 'Lato', Arial, Helvetica, sans-serif; font-size: 1rem; color: #274C77; }
.subheadline { font-size: 1.1rem; color: #56617f; margin-bottom: 1.2em; }

/* Links */
a:hover, a:focus { color: var(--accent); text-decoration: underline; }

/* -------------------------------------------------------
  LAYOUT CONTAINERS & FLEXBOX LAYOUTS (ONLY FLEX, NO GRID)
------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

/* Services/Feature Cards */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.service-teaser {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 24px 20px;
  min-width: 220px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  transition: box-shadow .18s, transform .18s;
  border: 1px solid #ECECEC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-teaser:hover, .card:hover {
  box-shadow: 0 6px 32px 0 rgba(80,77,152,0.15);
  transform: translateY(-3px) scale(1.02);
  border-color: #b8d9ff;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 24px;
  min-width: 210px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
}

.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;
}

.text-section {
  background: #fffaf5;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  margin-bottom: 20px;
  font-size: 1.07rem;
  color: #26324d;
  border-left: 7px solid #BFD6F6;
  transition: box-shadow .15s, border-color .15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(90,127,170,0.08);
  border-left: 7px solid var(--accent);
}
.testimonial-card strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* -------------------------------------------------------
  HERO SECTION: Pastel Highlight
------------------------------------------------------- */
.hero {
  background: linear-gradient(112deg, var(--pastel-blue) 60%, var(--pastel-pink) 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 12px 36px 0 rgba(117,162,188,0.08);
  padding: 50px 0 50px 0;
  margin-bottom: 36px;
}
.hero h1 { color: var(--primary); font-size: 2.4rem; }
.hero .subheadline { color: #455281; }

/* -------------------------------------------------------
  BUTTONS & CTAs
------------------------------------------------------- */
.cta-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 28px;
  font-size: 1.08rem;
  letter-spacing: .025em;
  margin-top: 18px;
  box-shadow: 0 2px 8px 0 rgba(252,106,7,0.06);
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .12s;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(246,114,24,0.10);
  transform: scale(1.04) translateY(-2px);
  text-decoration: none;
}

button, .btn {
  font-family: inherit;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  padding: 11px 26px;
  background: var(--pastel-blue);
  color: var(--primary);
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .12s;
  box-shadow: 0 2px 8px 0 rgba(80,77,152,0.06);
  margin-right: 13px;
  margin-bottom: 6px;
}
button:hover, .btn:hover {
  background: var(--pastel-yellow);
  color: var(--accent-dark);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  font-size: 1rem;
  color: #6A80A8;
  padding: 4px 9px;
  border-radius: 12px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover { color: var(--accent); background: var(--pastel-yellow); }

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.98rem;
  color: #3e4e7f;
  gap: 14px;
}
footer {
  background: linear-gradient(90deg, var(--pastel-blue) 45%, var(--pastel-green) 100%);
  margin-top: 60px;
  border-radius: 24px 24px 0 0;
  padding: 36px 0 28px 0;
  box-shadow: 0 -2px 24px 0 rgba(90,127,170,0.09);
}

/* -------------------------------------------------------
  HEADER, NAVIGATION & MOBILE MENU
------------------------------------------------------- */
header {
  width: 100%;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(90,127,170,0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 14px 18px 10px;
  justify-content: flex-start;
}
.main-nav img { height: 38px; margin-right: 14px; }
.main-nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.06rem;
  border-radius: 20px;
  padding: 5px 12px;
  transition: background .14s, color .13s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--pastel-pink);
  color: var(--accent-dark);
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 41;
  font-size: 2.1rem;
  background: var(--pastel-blue);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--primary);
  outline: none;
  transition: background .12s;
}
.mobile-menu-toggle:hover {
  background: var(--pastel-yellow);
  color: var(--accent-dark);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 99;
  transform: translateX(-100%);
  transition: transform .34s cubic-bezier(.86,0,.07,1);
  box-shadow: 4px 0 24px 0 rgba(34,34,34,0.11);
  padding: 38px 24px 30px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.1rem;
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color .13s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--primary);
  padding: 9px 0 9px 3px;
  border-radius: 7px;
  width: calc(100% - 10px);
  display: block;
  transition: background .09s, color .12s;
}
.mobile-nav a:hover {
  color: var(--accent-dark);
  background: var(--pastel-pink);
}

/* Hide Main Nav & Show Mobile Toggle on Small Screens */
@media (max-width: 1020px) {
  .main-nav { gap: 15px; }
}
@media (max-width: 880px) {
  .main-nav { gap: 7px; }
  .main-nav a { font-size: 0.98rem; padding: 5px 7px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* -------------------------------------------------------
  LAYOUT RESPONSIVENESS & MOBILE ADJUSTMENTS
------------------------------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 920px) {
  .container { max-width: 98vw; }
  .services-list, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section, .hero, footer {
    padding-left: 5px;
    padding-right: 5px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
    padding: 14px 6px;
  }
  .services-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-teaser, .card {
    min-width: unset;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card { padding: 13px 7px; font-size: 1rem; }
  .footer-nav { gap: 7px; font-size: 0.93rem; }
  .footer-info img { height: 28px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .hero { padding: 36px 0 30px 0; margin-bottom: 18px; border-radius: 0 0 20px 20px; }
  footer { border-radius: 14px 14px 0 0; padding-top: 18px; }
}
@media (max-width: 520px) {
  .container { max-width: 100vw; padding: 0 4px; }
  .hero { padding: 22px 0 18px 0; }
  h1 { font-size: 1.18rem; }
  .cta-btn { font-size: 0.99rem; padding: 10px 15px; }
}

/* -------------------------------------------------------
  COOKIE CONSENT BANNER & MODAL
------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1110;
  background: #FFFFFFEE;
  box-shadow: 0 -2px 32px 0 rgba(50,50,50,0.12);
  padding: 22px 22px 18px 22px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  font-size: 0.98rem;
  transition: transform .38s cubic-bezier(.9,0,.18,1);
}
.cookie-consent-banner.hide {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-consent-msg {
  color: #26324d;
  max-width: 480px;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--pastel-blue);
  color: var(--primary);
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 26px;
  font-size: 0.97rem;
  border: none;
  cursor: pointer;
  transition: background .12s, color .13s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--pastel-yellow);
  color: var(--accent-dark);
}
.cookie-btn.settings {
  background: var(--pastel-green);
  color: var(--primary);
}
.cookie-btn:focus, .cookie-btn:hover {
  filter: brightness(1.09);
  outline: 2px solid var(--pastel-violet);
}
@media (max-width: 720px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 10px 15px 10px;
    font-size: 0.95rem;
  }
  .cookie-consent-msg { max-width: 100%; }
  .cookie-consent-actions { justify-content: center; }
}

/* Cookie Preferences Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1120;
  background: rgba(39,76,119,0.24);
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  display: flex;
  pointer-events: auto;
  animation: fadeInBg 0.32s linear;
}
@keyframes fadeInBg {
  from { background: rgba(39,76,119,0); }
  to   { background: rgba(39,76,119,0.24); }
}
.cookie-modal {
  background: #fff;
  padding: 38px 27px 27px 27px;
  border-radius: 22px;
  box-shadow: 0 10px 54px 0 rgba(80,77,152,0.13);
  min-width: 330px;
  max-width: 96vw;
  min-height: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modalUp 0.36s cubic-bezier(.52,.15,.39,.86);
}
@keyframes modalUp {
  from { transform: translateY(140px) scale(0.89); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 17px;
  background: none;
  color: var(--primary);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover { color: var(--accent-dark); }

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 16px 0 0 0;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--pastel-blue);
  padding: 12px 10px;
  border-radius: 11px;
  font-size: 1rem;
}
.cookie-category .toggle {
  margin-right: 8px;
}
.cookie-category.essential .toggle { pointer-events: none; opacity: .64; }
.cookie-category.essential { background: var(--pastel-green); }
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 8px;
  width: 100%;
  justify-content: flex-end;
}
@media (max-width: 545px) {
  .cookie-modal { padding: 19px 8px 12px 8px; }
  .cookie-modal-overlay { padding: 10px 0; }
  .cookie-modal-footer { flex-direction: column; gap: 7px; }
}

/* Custom switches for options */
.cookie-toggle-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #deecfc;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background .16s;
}
.cookie-toggle-switch:checked {
  background: var(--pastel-violet);
}
.cookie-toggle-switch::after {
  content: '';
  display: block;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 4px;
  box-shadow: 0 1px 3px rgba(80,77,152,0.10);
  transition: left .16s;
}
.cookie-toggle-switch:checked::after { left: 18px; }

/* -------------------------------------------------------
  MICROINTERACTIONS/ANIMATIONS
------------------------------------------------------- */
.cta-btn, button, .btn, .cookie-btn {
  transition: background .13s, color .13s, transform .12s, box-shadow .12s;
}
.card, .service-teaser, .testimonial-card {
  transition: box-shadow .13s, border-color .13s, transform .13s;
}
.card:active, .service-teaser:active {
  transform: scale(0.98) translateY(2px);
  box-shadow: 0 2px 14px 0 rgba(80,77,152,0.09);
}

/* -------------------------------------------------------
  OTHER CLASS UTILITIES & ACCESSIBILITY
------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
[tabindex='-1']:focus { outline: none !important; }
:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* -------------------------------------------------------
  SPACING UTILITIES (CONSISTENT MARGIN/PADDING)
------------------------------------------------------- */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* -------------------------------------------------------
  PRINT OPTIMIZATION
------------------------------------------------------- */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body { color: #000; background: #fff; }
}
