/* ================= RESET & BASE =============== */
html {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7FAFF;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #F7FAFF;
  color: #1A2233;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
ul, ol {
  margin: 0;
  padding: 0 0 0 1.2em;
  list-style-position: inside;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: #153462;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.13;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin: 0 0 18px 0;
}
a {
  color: #123158;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:focus {
  outline: 2px dotted #E29819;
  outline-offset: 2px;
}
a:hover, a:active {
  text-decoration: none;
  color: #E29819;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 11px 15px;
  border-radius: 16px;
  border: 1px solid #D7E7F7;
  background: #F5F8FA;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  resize: vertical;
  transition: border-color 0.18s;
  color: #1A2233;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #E29819;
  background: #FFF;
}
button, .btn-primary, .btn-secondary, .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 8px 0 rgba(46, 87, 131, 0.06);
  text-decoration: none;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #E29819 !important;
}
.btn-primary {
  background-color: #AEE2FF;
  color: #123158;
  border: 2px solid #7EC7E8;
  box-shadow: 0 2px 12px rgba(46, 87, 131, 0.08);
}
.btn-primary:hover, .btn-primary:focus {
  background: #E5F6FC;
  color: #123158;
  border-color: #E29819;
}
.btn-secondary {
  background: #FFF9EC;
  color: #E29819;
  border: 2px solid #FFEABF;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFF3DF;
  color: #123158;
  border-color: #E29819;
}

/* ================= SOFT PASTEL PALETTE =============== */
:root {
  --pastel-blue: #AEE2FF;
  --pastel-lilac: #DBD2FF;
  --pastel-mint: #C9F6E0;
  --pastel-yellow: #FFF9EC;
  --pastel-coral: #FFD6D1;
  --pastel-pink: #FFE5F6;
  --pastel-accent: #E29819;
  --primary: #123158;
  --bg-main: #F7FAFF;
  --card-bg: #FFFFFF;
  --border-soft: #E6EEF5;
  --shadow: 0 2px 16px 0 rgba(80, 105, 155, 0.09);
}

/* ================= LAYOUT STRUCTURE =============== */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 0;
}
.text-section {
  background: var(--pastel-yellow);
  border-radius: 28px;
  padding: 32px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= SECTION SPACING (MANDATORY) =============== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
@media (max-width: 768px) {
  section {
    padding: 28px 0 28px 0;
    margin-bottom: 40px;
  }
}

/* ================= HEADER / NAVIGATION =============== */
header {
  width: 100%;
  background: linear-gradient(90deg, #AEE2FF 0%, #DBD2FF 80%);
  box-shadow: 0 2px 10px 0 rgba(90, 100, 142, 0.06);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
  max-width: 1160px;
  margin: 0 auto;
}
.main-nav > a img {
  height: 46px;
  width: auto;
  margin-right: 14px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  color: #153462;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 18px;
  transition: background 0.15s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--pastel-blue);
  color: #E29819;
}
.main-nav .btn-primary {
  margin: 0 0 0 18px;
  min-width: 140px;
}

/* ================= MOBILE MENU =============== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #153462;
  cursor: pointer;
  margin: 0 18px 0 0;
}
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 92vw;
  max-width: 430px;
  background: linear-gradient(105deg, #C9F6E0 10%, #AEE2FF 90%);
  box-shadow: -2px 0 24px 0 rgba(100, 120, 155, 0.13);
  z-index: 111;
  transform: translateX(105%);
  transition: transform 0.37s cubic-bezier(.56,.22,.05,1.07);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #153462;
  font-size: 2rem;
  align-self: flex-end;
  padding: 22px 32px 12px 0;
  cursor: pointer;
  z-index: 121;
  transition: color 0.17s;
}
.mobile-menu-close:hover {
  color: #E29819;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 26px 0 38px;
}
.mobile-nav a {
  color: #153462;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 9px;
  transition: background .16s, color .16s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-pink);
  color: #E29819;
}
@media (max-width: 1020px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 110;
  }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================= HERO & SECTIONS =============== */
.latest-teasers, .blog-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.latest-teasers article, .blog-feed article {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  flex: 1 1 350px;
  min-width: 240px;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 0;
  color: #183059;
}
.latest-teasers article:hover, .blog-feed article:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 6px 26px 0 rgba(46,87,131,0.18);
}
.latest-teasers article h3, .blog-feed article h3 {
  margin-bottom: 8px;
}

/* ================= FEATURES & SERVICES =============== */
.features-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.feature-card, .service-card {
  background: linear-gradient(180deg, #FFF9EC 10%, #AEE2FF 85%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 20px 23px 20px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-card img, .service-card img {
  height: 36px; width: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(187, 202, 255, 0.11));
}
.feature-card h3, .service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.service-highlights ul {
  margin-top: 0;
  padding: 0 0 0 1.3em;
  font-size: 1.01rem;
  color: #42546B;
}

/* ================= BLOG CATEGORIES =============== */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 8px 0 24px 0;
}
.blog-categories span {
  color: #153462;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
}
.blog-categories a {
  background: var(--pastel-lilac);
  color: #476183;
  padding: 7px 16px;
  border-radius: 13px;
  text-decoration: none;
  margin: 0 7px 0 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.97rem;
  transition: background 0.15s, color 0.15s;
}
.blog-categories a:hover, .blog-categories a:focus {
  background: var(--pastel-accent);
  color: #fff;
}

/* ================= NEWSLETTER FORM =============== */
form {
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 410px;
}
form label {
  margin-bottom: 4px;
}
form input, form textarea {
  margin-bottom: 10px;
}

/* ================= CARD PATTERNS (MANDATORY) =============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
}
@media (max-width: 768px){
  .features-grid, .services-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ================= TESTIMONIAL CARDS =============== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, #C9F6E0 14%, #AEE2FF 92%);
  border-radius: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  color: #23334C;
  font-size: 1.07rem;
}
.testimonial-card blockquote {
  margin: 0 0 0 0;
  font-style: italic;
  color: #183059;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card cite {
  font-size: 0.98rem;
  color: #5F6F8F;
  font-style: normal;
  margin-left: 22px;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 11px;
  }
  .testimonial-card cite {
    margin-left: 0;
  }
}

/* ================= FOOTER =============== */
footer {
  background: linear-gradient(100deg, #DBD2FF 13%, #AEE2FF 93%);
  color: #123158;
  font-size: 1rem;
  box-shadow: 0 -1px 24px rgba(100,150,187,0.04);
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0;
}
.footer-logo img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}
.footer-nav a {
  color: #153462;
  text-decoration: none;
  font-size: 15.5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 5px 0;
  border-radius: 8px;
  transition: background 0.13s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-accent);
  color: #fff;
}
.footer-contact {
  margin-bottom: 18px;
  color: #325075;
  font-size: 15px;
}
.footer-contact a {
  color: #E29819;
  text-decoration: underline;
}
.footer-legal {
  align-self: flex-end;
  color: #6377A7;
  font-size: 13.5px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-width: unset;
  }
}

/* ================= FAQ & ADDRESS BLOCK =============== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.faq-list > div {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px 0 rgba(180,190,240,0.08);
  padding: 18px 20px 8px 20px;
  color: #253267;
  margin-bottom: 0;
}
.faq-list strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #153462;
  font-size: 1.08rem;
  margin-bottom: 4px;
  display: block;
}
.address-block {
  background: var(--pastel-lilac);
  border-radius: 17px;
  padding: 20px 18px;
  box-shadow: 0 1px 6px 0 rgba(110,150,200,0.07);
  color: #324362;
  margin-top: 22px;
  margin-bottom: 20px;
  font-size: 1.01rem;
}
.address-block h3 {
  margin: 0 0 8px 0;
  font-size: 1.13rem;
}

/* ================= STUDY/SPOTLIGHT CARD =============== */
.study-summary {
  background: var(--pastel-coral);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(140,118,110,0.06);
  color: #213144;
}

/* ================= FEATURE-ITEMS =============== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========== COOKIE CONSENT BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(95deg, #FFF3DF 50%, #FFD6D1 100%);
  color: #213144;
  box-shadow: 0 -2px 24px 0 rgba(200,110,110,0.06);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 1300;
  gap: 16px;
  font-size: 1.01rem;
  align-items: flex-start;
  animation: cookiebanner-in 0.65s cubic-bezier(.48,.21,.29,1.01);
}
@keyframes cookiebanner-in {
  0% { transform: translateY(90%) scale(1.02); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-banner strong {
  color: #E29819;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 19px;
  font-size: 0.95rem;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
  margin: 0 0 0 0;
}
.cookie-accept {
  background: var(--pastel-blue);
  color: #123158;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #DBD2FF;
}
.cookie-reject {
  background: var(--pastel-lilac);
  color: #123158;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--pastel-coral);
}
.cookie-settings {
  background: transparent;
  color: #E29819;
  border: 2px solid #E29819;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #FFE5F6;
  color: #123158;
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(93, 85, 100, 0.29);
  z-index: 1320;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinbg 0.2s;
}
@keyframes fadeinbg {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: #FFF9EC;
  border-radius: 23px;
  box-shadow: 0 8px 38px 0 rgba(170, 120, 66, 0.12);
  padding: 34px 26px 27px 26px;
  max-width: 400px;
  width: 90vw;
  color: #213144;
  position: relative;
  animation: cookiepopup-in .44s cubic-bezier(.48,.21,.29,1.01);
}
@keyframes cookiepopup-in {
  0% { transform: translateY(60px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0; margin-bottom: 16px;
  color: #E29819;
  font-size: 1.4rem;
}
.cookie-categories {
  margin: 22px 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 1.02rem;
}
.cookie-category label {
  margin-bottom: 0;
  font-size: 1.03rem;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px; accent-color: #E29819;
}
.cookie-category .always-on {
  font-size: 0.97rem;
  color: #7F7FA5;
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 19px;
  background: none;
  color: #123158;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
}
.cookie-modal-close:hover {
  color: #E29819;
}

/* ============ MEDIA QUERIES FOR RESPONSIVENESS ============ */
@media (max-width: 720px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  .section, section, .text-section, .card {
    padding: 16px 10px;
  }
  .footer-logo img {
    height: 34px;
  }
}
@media (max-width: 530px) {
  .container {
    padding: 0 6px;
  }
  .footer-nav {
    font-size: 14px;
  }
}

/* ========== UTILITY: VISUALLY HIDDEN (for accessibility) ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== MICRO-INTERACTIONS ========== */
.btn-primary, .btn-secondary, .cookie-btn {
  box-shadow: 0 2px 12px rgba(46,87,131,0.07);
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F7FAFF;
  border-radius: 15px;
}
::-webkit-scrollbar-thumb {
  background: #DBD2FF;
  border-radius: 15px;
}
::-webkit-scrollbar-thumb:hover {
  background: #AEE2FF;
}

/* ========== INPUT TOGGLE SWITCH FOR COOKIES (if any) ========== */
input[type="checkbox"] {
  accent-color: #E29819;
}

/* ========== ENFORCE MINIMUM SPACING BETWEEN ELEMENTS ========== */
.card, .feature-card, .service-card, .testimonial-card, .study-summary, .address-block, .faq-list > div, .text-section {
  margin-bottom: 20px;
}
.latest-teasers article, .blog-feed article {
  margin-bottom: 0;
}

/* ========== CONSISTENT VERTICAL RHYTHM ========== */
section > .container > .content-wrapper:not(:last-child) {
  margin-bottom: 28px;
}

/* ========== PREVENT OVERLAPPING ========== */
.card-container, .services-list, .features-grid, .content-grid, .blog-feed, .latest-teasers {
  gap: 24px !important;
}

/* ========== FONT FACE ========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');
