/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #25334a;
  background-color: #FAFBFF;
  min-height: 100vh;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, #F5F7FA 0%, #F6F2FF 100%);
}
a {
  color: #244575;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #bba874;
  outline-offset: 2px;
}
a:hover {
  color: #bba874;
}
ul, ol {
  margin: 0 0 1em 1.4em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
h1,h2,h3,h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: bold;
  color: #1a3261;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.15rem;
}
h4 {
  font-size: 1.04rem;
}
p {
  margin-bottom: 1.1em;
  color: #34425a;
}
strong, b {
  font-weight: 700;
  color: #244575;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border: none;
  border-radius: 12px;
}

/* SOFT PASTEL PALETTE */
:root {
  --brand-primary: #244575;
  --brand-secondary: #F5F7FA;
  --brand-accent: #BBA874;
  --pastel-pink: #F0E8F8;
  --pastel-blue: #E7F0FA;
  --pastel-green: #E9F7F2;
  --pastel-yellow: #FEF8E3;
  --pastel-purple: #F5F2FD;
  --text-dark: #1a3261;
  --text-light: #ffffff;
  --shadow-main: 0 4px 24px 0 rgba(80,80,115,0.08);
  --shadow-subtle: 0 2px 8px 0 rgba(134,147,169,0.05);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-blue);
  border-radius: 26px;
  box-shadow: var(--shadow-main);
}
/* Helper: avoid section bg for hero/last */
main>section:first-child {
  background: var(--pastel-purple);
}
main>section:last-child {
  background: var(--pastel-green);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

/* FLEXBOX SPACING SYSTEMS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--pastel-purple);
  border-radius: 20px;
  box-shadow: var(--shadow-subtle);
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 300px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px 0 rgba(187,168,116,0.12);
  transform: translateY(-3px) scale(1.025);
}
.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;
  background: var(--pastel-yellow);
  border-radius: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(174,184,191,0.07);
  color: var(--text-dark);
  min-width: 240px;
  max-width: 400px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(187,168,116,0.090);
  transform: translateY(-2px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--pastel-pink);
  border-radius: 16px;
  padding: 22px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.features-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(36,69,117,0.08);
  transform: translateY(-3px) scale(1.03);
}


/* MAIN NAVIGATION */
header {
  width: 100%;
  background: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  box-shadow: 0 2px 12px 0 rgba(36,69,117,0.03);
  position: relative;
  z-index: 100;
}
header a img {
  height: 36px;
  margin-right: 18px;
  border-radius: 0;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-left: 14px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #244575;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.20s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: #E7F0FA;
  color: #BBA874;
}

.cta-button {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #bba874 40%, #ffeec4 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(36,69,117,0.06);
  padding: 12px 30px;
  margin-left: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.20s, color 0.22s, box-shadow 0.18s;
}
.cta-button:focus {
  outline: 2px solid #244575;
  outline-offset: 1px;
}
.cta-button:hover {
  background: linear-gradient(90deg, #e4daaa 40%, #bba874 100%);
  color: #244575;
  box-shadow: 0 6px 18px 0 rgba(187,168,116,0.13);
}

/* SUBHEADLINE */
.subheadline {
  font-size: 1.12rem;
  font-weight: 400;
  color: #7081A1;
  margin-bottom: 12px;
}

/* USPs and BADGES */
.usp-list ul {
  margin: 0 0 0 20px;
  color: #4760aa;
  font-size: 1.02rem;
}
.trust-badges {
  font-size: 0.96rem;
  color: #6b778d;
  margin-top: 0.6em;
}

/* TEAM GRID */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.team-profile {
  background: var(--pastel-green);
  padding: 20px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  min-width: 180px;
  flex: 1 1 210px;
}

/* TESTIMONIAL SLIDER & SECTION */
.testimonial-slider, .testimonial-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #25334a;
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card span {
  color: #907e3e;
  font-size: 0.99rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-top: 10px;
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--brand-primary);
  color: var(--text-light);
  padding: 60px 0 36px 0;
  margin-top: 50px;
  box-shadow: 0 -2px 16px rgba(36,69,117,0.05);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.95;
  font-size: 0.99rem;
  transition: color 0.18s, opacity 0.2s;
}
.footer-menu a:hover {
  color: #bba874;
  opacity: 1;
}
.footer-brand, .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
}
.footer-brand {
  flex: 1 1 220px;
  max-width: 340px;
  min-width: 180px;
}
.footer-brand img {
  background: transparent;
  border-radius: 0;
  margin-bottom: 8px;
  width: 46px;
  height: auto;
}
.footer-brand span {
  color: #e9e9ea;
  font-size: 0.98rem;
}
.footer-contact a,
.footer-contact div{
  color: #f9f8fa;
  opacity: 0.93;
  font-size: 0.97rem;
}
.footer-contact a:hover {
  color: #ffeec4;
  text-decoration: underline;
}

/* CONTACT INFORMATION */
.contact-information {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--pastel-blue);
  border-radius: 14px;
  padding: 18px 18px 13px 18px;
  margin-bottom: 24px;
  font-size: 1.04rem;
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-list h3 {
  color: #244575;
  margin-bottom: 5px;
}
.faq-list p {
  color: #495669;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1600;
  background: rgba(244,248,254,0.97);
  box-shadow: 0 -2px 20px 0 rgba(36,69,117,0.07);
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  animation: slideInUp 0.38s cubic-bezier(.38,1.23,.25,1) both;
}
@keyframes slideInUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #244575;
  margin-right: 24px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: #e9e8f6;
  color: #244575;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 4px 0 rgba(125,169,207,0.04);
  transition: background 0.22s, color 0.18s, box-shadow 0.17s;
}
.cookie-btn:focus {
  outline: 2px solid #bba874;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #bba874 40%, #feefb0 100%);
  color: #244575;
}
.cookie-btn.accept:hover {
  background: #beae69;
  color: #ffffff;
}
.cookie-btn.reject {
  background: #f5e7ea;
  color: #B22525;
}
.cookie-btn.reject:hover {
  background: #eed8dc;
}
.cookie-btn.settings {
  background: #e5e8f8;
  color: #244575;
}
.cookie-btn.settings:hover {
  background: #d1e1fa;
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 2000;
  background: rgba(42,57,87, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .22s both;
}
@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}
.cookie-modal__dialog {
  background: #fffefa;
  border-radius: 20px 20px 0 0;
  max-width: 96vw;
  width: 480px;
  margin-bottom: 0;
  box-shadow: 0 -4px 38px rgba(187,168,116,0.09);
  padding: 34px 30px 26px 30px;
  animation: popUp .29s cubic-bezier(.38,.6,.2,1) both;
}
@keyframes popUp {
  from { transform: translateY(100px) scale(.97); }
  to { transform: translateY(0) scale(1); }
}
.cookie-modal__title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.24rem;
  color: #244575;
  margin-bottom: 8px;
}
.cookie-pref-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-pref-category input:disabled+label {
  font-weight: 700;
  color: #aaaaaa;
}
.cookie-modal__footer {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1102;
  height: 46px;
  width: 46px;
  background: #e7f0fa;
  color: #244575;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 16px 0 rgba(36,69,117,0.05);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #bba874;
}
.mobile-menu-toggle:hover {
  background: #bba874;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #e7f0fa;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.44,1.21,.16,1);
  box-shadow: 2px 0 32px 0 rgba(36,69,117,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  font-size: 2.25rem;
  color: #244575;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  transition: background 0.14s, color 0.12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #bba874;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 20px 32px 0 32px;
}
.mobile-nav a {
  color: #244575;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid #dfebfc;
  transition: color 0.18s, background 0.14s;
  border-radius: 6px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #bba874;
  background: #f3f5fa;
}

/* DISPLAY SYSTEM FOR RESPONSIVENESS */
@media (max-width: 1080px) {
  .container {
    max-width: 94vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .footer-brand, .footer-contact {
    min-width: 100px;
    max-width: 100%;
    font-size: 0.97rem;
  }
}
@media (max-width: 880px) {
  .features-grid, .testimonial-slider, .testimonial-section {
    flex-direction: column;
    gap: 18px;
  }
  .team-section {
    flex-direction: column;
  }
  .footer-brand, .footer-contact {
    min-width: 120px;
  }
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 13px 6vw 13px 6vw;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 14px;
    margin-bottom: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-brand,.footer-contact,.footer-menu {
    min-width: 80px !important;
    max-width: 100%;
    font-size: 0.95rem;
  }
  .footer-menu, .footer-contact {
    margin-bottom: 18px;
  }
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  .section {
    padding: 26px 6vw;
    margin-bottom: 38px;
    border-radius: 18px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .features-grid > div, .team-profile, .testimonial-card, .card {
    min-width: 60vw;
    flex: 1 1 100%;
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .features-grid, .testimonial-slider, .testimonial-section {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .footer-brand, .footer-contact {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 0.97rem; }
  .section { padding: 18px 2vw; margin-bottom: 24px;}
  .footer-brand, .footer-contact, .footer-menu {
    font-size: 0.91rem;
    word-break: break-word;
    min-width: 0;
    max-width: 100vw;
  }
  .container { max-width: 100vw; padding: 0 8px;}
  .card, .card-container, .features-grid > div, .testimonial-card, .team-profile {
    min-width: 0;
    max-width: 100vw;
    padding: 12px 8px !important;
  }
  .cookie-banner__text { margin-right: 4px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 6px; border-radius: 10px 10px 0 0; }
  .cookie-modal__dialog { width: 98vw; padding: 18px 9px 14px 11px; }
}

/* UTILITIES */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--pastel-blue);
  border-radius: 12px;
  padding: 20px 18px 17px 18px;
}

/* Table Styling if needed */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0 2em 0;
}
th, td {
  padding: 10px;
  border: 1px solid #e4e8ef;
}
th {
  background: #f2e6ff;
  color: #244575;
  font-weight: 700;
}

/* FORM INPUTS (generic, even if mostly mailto) */
input[type=text], input[type=email], textarea {
  border-radius: 6px;
  border: 1.5px solid #c0cbdf;
  font-size: 1rem;
  padding: 10px 13px;
  background: #f6f8fb;
  color: #244575;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  outline: 2px solid #bba874;
  outline-offset: 1px;
  border-color: #bba874;
}

button, input[type=submit] {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #bba874;
  color: #244575;
  padding: 11px 30px;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(36, 69, 117, 0.04);
  cursor: pointer;
  transition: background 0.23s, color 0.13s, box-shadow 0.16s;
}
button:hover, input[type=submit]:hover {
  background: #ffe8a6;
  color: #244575;
}
button:focus, input[type=submit]:focus {
  outline: 2px solid #244575;
}

/* Animate on hover */
a, button, .cta-button, .card, .testimonial-card, .features-grid > div {
  transition: box-shadow 0.20s, transform 0.18s, background 0.18s, color 0.13s;
}

/* Accessibility underline on main nav for focus */
.main-nav a:focus-visible {
  outline: 2px solid #bba874;
  outline-offset: 2px;
}

/* Miscellaneous */
::-webkit-selection { background: #F0E8F8; color: #244575; }
::selection { background: #F0E8F8; color: #244575; }

/* Responsive hiding for Cookie Modal if closed (JS should manage state) */
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }
