/* RESET & NORMALIZATION */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
a, img, strong, em, 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.5;
  background: #F7F7FA;
  color: #1A355B;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  background: #F7F7FA;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1A355B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8DC0E6;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  display: block;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

/* SPACING AND CONTAINERS */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 4px solid #8DC0E6;
  box-shadow: 0 2px 10px 0 rgba(26,53,91,.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
}
header a img {
  height: 44px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #1A355B;
  padding: 6px 12px;
  border-radius: 5px;
  position: relative;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #8DC0E6;
  color: #1A355B;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 12px 32px;
  border-radius: 30px;
  background: #1A355B;
  color: #fff;
  border: none;
  box-shadow: 0 3px 24px rgba(26,53,91,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.28s;
  margin-left: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #8DC0E6;
  color: #1A355B;
  box-shadow: 0 6px 32px rgba(26,53,91,0.12);
}

/* BURGER MENU (mobile) */
.mobile-menu-toggle {
  display: none;
  background: #1A355B;
  color: #fff;
  font-size: 30px;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: 18px;
  z-index: 200;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8DC0E6;
}
/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.8,.04,.39,1.02);
  z-index: 3000;
  padding-top: 48px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #8DC0E6;
  color: #1A355B;
  font-size: 30px;
  border: none;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  position: absolute;
  top: 17px; right: 22px;
  cursor: pointer;
  z-index: 3200;
  transition: background 0.14s;
}
.mobile-menu-close:focus {
  outline: 2px solid #1A355B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 50px 28px 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A355B;
  padding: 10px 0;
  transition: color 0.22s, background 0.19s;
  border-radius: 7px;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  color: #fff;
  background: #8DC0E6;
  padding-left: 10px;
}

@media (max-width: 990px) {
  header .container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .main-nav {
    gap: 16px;
  }
  .cta-btn {
    margin-left: 12px;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 10px;
    font-size: 16px;
    padding: 10px 24px;
  }
}

/* HERO & HEADINGS (CREATIVE ARTISTIC) */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #1A355B;
  text-shadow: 2px 2px 0 #8DC0E6, 6px 6px 0 #f1f1f7;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1A355B;
  margin-bottom: 12px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #8DC0E6;
  margin: 10px 0 6px 0;
  letter-spacing: 0.01em;
}
.content-wrapper > p, .content-wrapper > ul, .content-wrapper > ol {
  font-size: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #263255;
  line-height: 1.7;
  margin-bottom: 12px;
}
ul li, ol li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ARTISTIC ELEMENTS */
.hero-section {
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
  background: linear-gradient(135deg, #8DC0E6 50%, #F7F7FA 100%);
  border-radius: 30px;
  box-shadow: 0 8px 36px rgba(26,53,91,.16);
  gap: 24px;
  overflow: hidden;
}

/* FEATURE GRID / CARD PATTERNS */
.feature-grid, .services-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item, .service-item, .team-profile {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(26,53,91,.10);
  padding: 28px 22px 24px 22px;
  flex: 1 1 245px;
  max-width: 340px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.21s;
  border: 2.5px solid #8DC0E6;
}
.feature-item:hover,
.service-item:hover,
.team-profile:hover {
  box-shadow: 0 8px 32px rgba(26,53,91,0.14), 0 2px 1px #8DC0E6;
  transform: translateY(-4px) scale(1.03);
}
.feature-item img {
  height: 42px;
  width: 42px;
  margin-bottom: 5px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-list .feature-item {
  flex: 1 1 200px;
  background: #8DC0E6;
  color: #fff;
  border: none;
}
.feature-list .feature-item span {
  color: #1A355B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-left: 14px;
}

.services-grid {
  margin-bottom: 30px;
}
.service-item {
  border: 2.5px solid #1A355B;
  background: #f8fbfe;
}

.team-grid {
  gap: 24px;
  margin-bottom: 36px;
}
.team-profile {
  background: #fff;
  border: 2.5px solid #8DC0E6;
}

/* CARDS & LISTS - MODERN / CREATIVE */
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(26,53,91,.11);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow .22s, transform .16s;
  border: 2.5px solid #8DC0E6;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(26,53,91,0.14), 0 2px 1px #8DC0E6;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 18px 20px;
}

/* BLOG & POST STYLES */
.blog-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.blog-post {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 13px rgba(26,53,91,0.08);
  border-left: 5px solid #8DC0E6;
  padding: 18px 20px 14px 22px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.blog-post:hover {
  box-shadow: 0 8px 26px rgba(26,53,91,0.14);
  border-left: 5px solid #1A355B;
}
.featured-post {
  background: #8DC0E6;
  color: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  font-size: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.featured-post h3 {
  color: #fff;
  margin-bottom: 10px;
}

/* TESTIMONIAL STYLES */
.testimonial-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #1A355B;
  border-radius: 16px;
  box-shadow: 0 5px 26px rgba(26,53,91,0.10);
  min-width: 210px;
  flex: 1 1 280px;
  border: 2px solid #8DC0E6;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border-color 0.18s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px 0 rgba(26,53,91,0.15);
  border-color: #1A355B;
}
.testimonial-card p {
  font-size: 18px;
  color: #222a44;
  margin-bottom: 9px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 16px;
  color: #1A355B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.testimonial-card .star-rating {
  color: #ffc934;
  font-size: 21px;
  letter-spacing: 1px;
  margin-top: 1px;
}

/* MAP & CONTACT INFO */
.contact-info,
.map {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(26,53,91,0.07);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  color: #1A355B;
}
.contact-info img,
.footer-contact img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

/* CTA SECTION */
.cta-section, .cta-section h3 {
  align-items: center;
  text-align: center;
}

/* FOOTER */
footer {
  background: #1A355B;
  color: #fff;
  padding: 35px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}
.footer-brand img {
  height: 36px;
}
.footer-contact {
  font-size: 15px;
  color: #f7fafc;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #8DC0E6;
  font-size: 15px;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1A355B;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 22px 18px 20px 18px;
  z-index: 5000;
  box-shadow: 0 -4px 18px rgba(26,53,91,0.10);
  font-size: 16px;
  animation: slideUp 0.38s cubic-bezier(.61,.23,.5,1.01);
}
@keyframes slideUp {
  0% {transform: translateY(100%);} 100% {transform: translateY(0);}
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 9px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  background: #8DC0E6;
  color: #1A355B;
  cursor: pointer;
  margin-left: 0px;
  font-size: 16px;
  box-shadow: 0 2px 13px rgba(141,192,230,0.05);
  transition: background 0.17s, color 0.15s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #8DC0E6;
  color: #1A355B;
}
.cookie-btn.reject {
  background: #F93160;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid #8DC0E6;
  color: #8DC0E6;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1A355B;
  color: #fff;
  border-color: #1A355B;
  box-shadow: 0 3px 20px rgba(26,53,91,0.13);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,53,91, .55);
  justify-content: center;
  align-items: center;
  animation: fadeIn .30s ease;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn {
  0% {opacity: 0;} 100% {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 410px;
  padding: 32px 30px 26px 30px;
  box-shadow: 0 10px 38px rgba(26,53,91,.21);
  font-size: 17px;
  color: #1A355B;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: popOpen .28s cubic-bezier(.65,.05,.51,1.14);
}
@keyframes popOpen {
  0% {transform: scale(.92); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
.cookie-modal h2 {
  color: #1A355B;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-modal input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #8DC0E6;
}
.cookie-modal input[type=checkbox][disabled]{
  opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 19px;
  font-size: 25px;
  background: none;
  border: none;
  color: #8DC0E6;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:focus {
  color: #F93160;
}

/* RESPONSIVE: MOBILE FIRST */
@media (max-width: 1140px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 27px;
  }
  .hero-section {
    padding: 18px 12px 20px 12px;
    border-radius: 25px;
  }
  .footer-brand {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .hero-section {
    gap: 18px;
  }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }
  .feature-grid, .testimonial-list, .testimonial-slider, .services-grid, .team-grid, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .service-item, .team-profile, .testimonial-card, .card, .blog-post{
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .container {
    padding: 0 7px;
  }
  .hero-section {
    padding: 14px 7px 17px 7px;
    border-radius: 21px;
  }
  .footer-brand {
    font-size: 13.5px;
  }
  .footer-contact, .footer-nav {
    font-size: 13px;
  }
  .cta-btn {
    font-size: 15px;
    padding: 9px 15px;
  }
  section {
    padding: 30px 6px;
  }
  .mobile-menu-toggle {
    width: 41px;
    height: 41px;
    font-size: 25px;
    margin-left: 8px;
  }
  .mobile-menu-close {
    font-size: 24px;
    width: 36px;
    height: 36px;
    top: 10px; right: 12px;
  }
}
@media (max-width: 600px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 400px) {
  .cookie-modal {
    padding: 20px 10px 16px 10px;
    font-size: 15.5px;
  }
  .cookie-banner {
    padding: 12px 7px;
    font-size: 14px;
  }
  .cta-btn {
    padding: 8px 7px;
    font-size: 14px;
  }
}

/* MICRO-INTERACTIONS & EFFECTS */
.card, .testimonial-card, .feature-item, .service-item, .blog-post, .team-profile {
  transition: box-shadow .20s, border-color .18s, transform .17s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover, .service-item:hover, .blog-post:hover, .team-profile:hover {
  box-shadow: 0 7px 30px rgba(26,53,91,0.14);
  cursor: pointer;
}
.cta-btn:active {
  transform: scale(0.98);
}

/* TEXT-IMAGE SECTIONS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
}

/* MANDATORY SPACING & FLEX PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BREAKPOINT FLEX DIRECTION COLUMN */
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    align-items: center;
  }
  .content-grid, .card-container, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* Z-INDEX and OVERLAP MANAGEMENT */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 999;
}

/* ENSURE MINIMUM SPACING BETWEEN CARDS */
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item, .service-item + .service-item, .team-profile + .team-profile {
  margin-left: 0;
}

/* ACCENT ARTISTIC DECORATIONS (OPTIONAL, PURE CSS) */
.hero-section:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -62px; right: -58px;
  background: #fff;
  opacity: 0.13;
  width: 200px; height: 200px;
  border-radius: 100%;
  z-index: 0;
}
.hero-section:before {
  content: "";
  display: block;
  position: absolute;
  top: -40px; left: -50px;
  background: #8DC0E6;
  opacity: 0.18;
  width: 120px;
  height: 120px;
  border-radius: 55% 45% 65% 35% / 50% 60% 60% 50%;
  z-index: 0;
}

/* UTILITY CLASSES */
.hide { display: none!important; }
.visible { display: block!important; }
.center { text-align: center; justify-content: center; align-items: center; }

/* ACCESSIBLE FOCUS STATES */
:focus-visible {
  outline: 2.5px solid #F93160;
  outline-offset: 3px;
}

/* END OF CSS - ALL LAYOUTS FLEXBOX ONLY, NO GRID! */
