/* CSS 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #134074;
  background: #F2F6FC;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/**** BRAND COLORS ****/
:root {
  --primary: #134074;
  --secondary: #37718E;
  --accent: #F2F6FC;
  --bright1: #50B5E0;
  --bright2: #F9CD36;
  --bright3: #FF6248;
  --gray-light: #e4eaf2;
  --success: #53D769;
  --danger: #ff6863;
  --black: #181B1F;
  --white: #fff;
}

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

/**** TYPOGRAPHY ****/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: var(--primary);
}
h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
p, li, a {
  font-size: 1rem;
  color: var(--primary);
}
p {
  margin-bottom: 1em;
  line-height: 1.6;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
strong {
  font-weight: 700;
  color: var(--secondary);
}
a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--bright1);
  text-decoration: underline;
}

/**** LAYOUT CONTAINERS ****/
.container {
  width: 94%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(55, 113, 142, 0.08);
  position: relative;
}
.content-wrapper {
  width: 100%;
  /* gap provided at feature/testimonial level */
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 28px 22px;
  border-radius: 22px;
  box-shadow: 0 3px 16px rgba(55,113,142,0.09);
  margin-bottom: 20px;
  position: relative;
  min-width: 245px;
  transition: box-shadow 0.25s, transform 0.22s;
  flex: 1 1 230px;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(80,181,224,0.14), 0 2px 8px 0 rgba(249,205,54,0.04);
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
}

/**** HERO SECTION ****/
.hero {
  background: linear-gradient(150deg, var(--bright1) 70%, var(--bright2) 100%);
  border-radius: 0 0 40px 40px;
  padding-top: 36px;
  padding-bottom: 56px;
  margin-bottom: 54px;
  box-shadow: 0 8px 44px rgba(80,181,224,0.15);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 230px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 18px;
  text-shadow: 2px 2px 12px rgba(55,113,142,0.15);
}
.hero p {
  color: var(--white);
  font-size: 1.16rem;
  margin-bottom: 30px;
}
.hero .cta-btn {
  background: var(--bright2);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(255,98,72,0.10);
}

/**** HEADER & NAVIGATION ****/
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(80, 181, 224, 0.06);
  z-index: 30;
  position: relative;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 18px 0;
}
.logo img {
  max-height: 42px;
  vertical-align: middle;
  transition: transform 0.18s;
}
.logo:hover img {
  transform: scale(1.07) rotate(-4deg);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  padding: 6px 0px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a.active {
  color: var(--bright3);
  border-bottom: 2px solid var(--bright3);
}

/**** CTA BUTTONS ****/
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-size: 1.00rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--bright3);
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249, 205, 54, 0.14);
  transition: background .22s, box-shadow .22s, transform .16s;
  text-shadow: 1px 2px 8px rgba(19,64,116,0.13);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--bright2);
  color: var(--primary);
  box-shadow: 0 7px 22px rgba(55,113,142,0.10);
  transform: scale(1.045) rotate(-2deg);
}

/**** FLEXBOX STRUCTURE AS REQUIRED ****/
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 30px;
  background: var(--white);
  box-shadow: 0 3px 16px rgba(80,181,224,0.15);
  border-radius: 22px;
  margin-bottom: 20px;
  max-width: 450px;
  min-width: 220px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.19s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 0.8em;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--secondary);
  align-self: flex-end;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(249,205,54,0.13), 0 2px 8px 0 rgba(80,181,224,0.08);
  transform: scale(1.025) rotate(1deg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** CARDS: Used for service/features, responsive ****/
.feature-grid > div, .card-container > div {
  background: var(--white);
  border-radius: 22px;
  padding: 26px 18px 24px 18px;
  box-shadow: 0 3px 16px rgba(80,181,224,0.13);
  min-width: 220px;
  min-height: 200px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s, transform .18s;
  cursor: pointer;
  z-index: 1;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px rgba(255,98,72,0.13), 0 2px 8px 0 rgba(249, 205, 54, 0.08);
  transform: scale(1.04) rotate(-2deg);
  z-index: 2;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 1.5px 6px rgba(80,181,224,0.10);
  animation: bounceIn 0.7s;
}
@keyframes bounceIn {
  0% { transform: scale(0.85) translateY(30px); opacity: 0; }
  60% { transform: scale(1.05) translateY(-6px); opacity: 1; }
  100% { transform: scale(1.0) translateY(0);}
}

/**** FOOTER ****/
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 24px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 40px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-flex > a img {
  max-height: 48px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat';
  font-weight: 600;
  transition: color .18s;
  font-size: 1rem;
  text-decoration: none;
}
footer nav a:hover {
  color: var(--bright1);
}
.contact-footer p, .contact-footer a {
  color: var(--accent);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.contact-footer img {
  max-height: 18px;
  margin-right: 7px;
}
of .footer-flex > a, .contact-footer {
  min-width: 210px;
}

/**** ANIMATED SECTION DECOR (for playful dynamic) ****/
.section:before, .section:after {
  content: '';
  display: block;
  position: absolute;
  border-radius: 60% 35% 60% 38% / 45% 75% 18% 72%;
  opacity: 0.15;
  z-index: 0;
}
.section:before {
  background: var(--bright1);
  width: 80px;
  height: 50px;
  top: -24px;
  left: -12px;
  animation: limpshine 7s infinite linear alternate-reverse;
}
.section:after {
  background: var(--bright2);
  width: 60px;
  height: 36px;
  bottom: -18px;
  right: -19px;
  animation: limpshine 6s 1.4s infinite linear alternate-reverse;
}
@keyframes limpshine {
  0% { transform: scale(1) rotate(4deg); }
  100% { transform: scale(1.12) rotate(-7deg); }
}

/**** UL LIST ICONS ****/
ul li::before {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.6em;
  margin-bottom: -0.2em;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--bright2), var(--bright1));
}
ul li {
  position: relative;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.54;
  margin-bottom: 0.6em;
  list-style-type: none;
  font-family: 'Roboto';
}
ol li {
  padding-left: 0.25em;
}

/**** IMAGE & TEXT SECTION (ROW direction at desktop, COLUMN on mobile) ****/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section img {
  max-width: 150px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(55,113,142,0.10);
  transition: transform 0.2s;
}
.text-image-section img:hover {
  transform: scale(1.05) rotate(-2deg);
}

/**** MOBILE MENU ****/
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bright3);
  background: var(--white);
  padding: 5px 13px;
  border: 2px solid var(--bright3);
  border-radius: 11px;
  cursor: pointer;
  margin-left: 13px;
  transition: background .16s, color .2s, border .2s;
  z-index: 130;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--bright3);
  color: var(--white);
  border: 2px solid var(--bright2);
}
.mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.6,0,0.4,1);
  box-shadow: 0 0 42px rgba(19,64,116,0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  color: var(--bright2);
  border: none;
  cursor: pointer;
  margin: 22px 20px 0 0;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--bright3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 48px 28px 0 38px;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color .16s, border-bottom .20s;
  border-radius: 4px;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: var(--bright2);
  border-bottom: 2px solid var(--bright2);
}

/**** RESPONSIVE DESIGN ****/
@media (max-width: 1020px) {
  .feature-grid, .testimonials, .footer-flex, .content-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-flex {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2.0rem;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.20rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero {
    padding-bottom: 28px;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 0;
    padding-right: 0;
    width: 99%;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .header-flex {
    gap: 10px;
  }
  header nav{
    display: none;
  }
  .cta-btn {
    margin-left: 10px;
    padding: 10px 20px;
    font-size: 0.99rem;
  }
  .feature-grid, .testimonials, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .testimonial-card, .card, .card-container > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .text-section, .text-image-section { flex-direction: column; gap: 18px; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav{
    display: flex !important;
  }
}

/**** COOKIE CONSENT BANNER ****/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -3px 20px rgba(55,113,142,0.09);
  z-index: 1000;
  padding: 24px 18px 24px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  font-size: 1rem;
  animation: bannermovein 0.5s;
}
@keyframes bannermovein {
  0% { transform: translateY(50px); opacity: 0;}
  100% { transform: translateY(0); opacity: 1;}
}
.cookie-banner__text { flex: 2 1 260px; }
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat';
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 18px;
  border: none;
  background: var(--bright2);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(249, 205, 54,0.08);
  margin-right: 3px;
  transition: background .18s, color .18s, transform 0.12s;
}
.cookie-btn.accept { background: var(--bright2); color: var(--primary); }
.cookie-btn.reject { background: var(--danger); color: var(--white); }
.cookie-btn.settings { background: var(--bright1); color: var(--white); }
.cookie-btn:active, .cookie-btn:hover {
  background: var(--bright3);
  color: var(--white);
  transform: translateY(-1px) scale(1.04);
}

/**** COOKIE PREFS MODAL ****/
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1400;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(19, 64, 116, 0.58);
  align-items: center;
  justify-content: center;
  animation: modalin 0.25s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes modalin {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal__content {
  background: var(--white);
  color: var(--black);
  max-width: 420px;
  width: 90%;
  padding: 27px 22px 19px 22px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(80,181,224,0.15);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal__header h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-modal__close {
  background: transparent;
  border: none;
  font-size: 1.55rem;
  color: var(--bright3);
  cursor: pointer;
}
.cookie-modal__prefs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-switch input[type='checkbox'] { 
  width: 32px; height: 18px; 
  accent-color: var(--bright2); 
  margin-right: 7px;
}
.cookie-switch label {
  color: var(--primary);
}
.cookie-switch .always-on {
  font-style: italic;
  font-size: 0.93em;
  color: var(--secondary);
}

/**** ANIMATIONS & MICRO-INTERACTIONS ****/
section, .card, .testimonial-card, .feature-grid > div {
  animation: fadeInUp 0.68s cubic-bezier(.35,.85,.44,1) both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/**** ACCESSIBLE FOCUS STYLES ****/
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px dotted var(--bright1);
  outline-offset: 2px;
}

/**** UTILITY CLASSES ****/
.hide {
  display: none !important;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/**** Z-INDEX SAFE ****/
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1000;
}

/**** FORMS (if any are present) ****/
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 14px;
  padding: 10px 14px;
  transition: border .16s;
  margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--bright2);
  outline: none;
}
label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 4px;
}

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