/* 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,
main, 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 { height: 100%; }
body { min-height: 100vh; }
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F7FF;
  color: #003366;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #25A18E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f1578b;
  text-decoration: underline;
}

/* BRAND TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  color: #003366;
  font-weight: 900;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
p, li {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
}
strong {
  font-weight: 800;
  color: #003366;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  color: #25A18E;
  background: rgba(37,161,142,0.08);
  border-left: 6px solid #25A18E;
  padding: 14px 24px 14px 24px;
  margin-bottom: 14px;
  border-radius: 10px;
}

/* PLAYFUL DYNAMIC COLOR POPS */
:root {
  --primary: #003366;
  --secondary: #25A18E;
  --accent: #F7F7FF;
  --fun-pink: #f1578b;
  --fun-yellow: #FFE047;
  --fun-blue: #4099ff;
  --fun-orange: #ffad47;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(64, 153, 255, 0.11), 0 1.5px 5px rgba(255,224,71,0.05);
  transition: box-shadow 0.19s;
}
.section:hover {
  box-shadow: 0 8px 38px rgba(64,153,255,.17), 0 4px 18px rgba(255,224,71,0.09);
}

.text-section {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 1.5px 7px rgba(0,51,102,0.06);
}

/* FLEXBOX MANDATORY LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 26px rgba(64,153,255,.09);
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 0;
  transition: transform 0.16s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-7px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 10px 32px rgba(241,87,139,0.09), 0 2px 16px rgba(255,224,71,0.13), 0 3px 16px rgba(0,51,102,0.09);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 18px rgba(37, 161, 142, 0.09);
  border-left: 5px solid var(--fun-yellow);
  font-size: 1.1rem;
  color: #19192b;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card blockquote {
  color: #003366;
  background: none;
  border-left: none;
  padding: 0;
  font-size: 1.14rem;
}
.testimonial-card span {
  font-weight: 700;
  margin-left: 18px;
  color: var(--fun-pink);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* UL w. icon inside content (Why Choose Dexvalon) */
ul li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 28px;
  width: 28px;
  border-radius: 7px;
  background: #fff7d9;
}
ul li {
  margin-bottom: 16px;
  font-size: 1.05rem;
  position: relative;
  padding-left: 0;
}
ul li strong {
  color: #25A18E;
  margin-right: 4px;
}


/* CALLOUT BANNER / INFO */
.callout {
  background: #FFE047;
  color: #19192b;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 14px rgba(255,173,71,0.15);
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}
.callout strong {
  color: #003366;
}

/* CTA BUTTON */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #25A18E 60%, #4099ff 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.22rem;
  padding: 16px 34px;
  margin: 16px 0 22px 0;
  border-radius: 38px;
  box-shadow: 0px 7px 30px rgba(37,161,142,0.14);
  border: none;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background 0.22s, box-shadow .23s, transform 0.14s;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.cta-button:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(255,224,71,0.12);
  opacity: 0;
  transition: opacity .2s;
  z-index: 0;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #4099ff 60%, #25A18E 100%);
  color: #fff;
  box-shadow: 0px 12px 40px rgba(241,87,139,.16);
  transform: translateY(-4px) scale(1.04) rotate(-1.5deg);
}
.cta-button:focus:after, .cta-button:hover:after {
  opacity: .39;
}

/* SERVICE CARD (on /services.html) */
.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(64,153,255,0.09);
  padding: 32px 26px;
  margin-bottom: 24px;
  transition: box-shadow 0.17s, transform 0.17s;
  border-left: 6px solid #4099ff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.service-card h2 {
  font-size: 1.4rem;
  color: #25A18E;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
.service-card p {
  font-size: 1.07rem;
}
.service-card:hover {
  box-shadow: 0 7px 40px rgba(64,153,255,0.14);
  transform: rotate(0.8deg) scale(1.015);
}

/* HEADER, NAV, FOOTER */
header {
  background: #fff;
  border-bottom: 4px solid #25A18E;
  box-shadow: 0 2px 10px rgba(64,153,255,0.07);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 20px;
}
header img {
  height: 48px;
  margin-right: 20px;
  border-radius: 14px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #003366;
  padding: 6px 8px;
  border-radius: 8px;
  position: relative;
  transition: color 0.16s, background 0.12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFE047;
  color: #25A18E;
}

footer {
  background: #003366;
  color: #fff;
  font-size: 1rem;
  border-top: 5px solid #25A18E;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 20px 20px;
}
footer nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
footer a {
  color: #25A18E;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}
footer a:hover {
  color: #FFE047;
  text-decoration: underline;
}

/* HAMBURGER MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #FFE047;
  color: #25A18E;
  border: none;
  padding: 6px 14px 4px 14px;
  border-radius: 50%;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.14s;
  box-shadow: 0 2px 9px rgba(255,173,71,0.13);
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f1578b;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 84vw;
  max-width: 330px;
  background: #fff;
  box-shadow: 2px 0 40px rgba(0,0,0,0.18);
  z-index: 1400;
  transform: translateX(-110%);
  transition: transform 0.33s cubic-bezier(.77,.07,.29,.96);
  padding: 28px 24px 16px 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #FFE047;
  color: #f1578b;
  border: none;
  font-size: 2rem;
  padding: 6px 14px 4px 14px;
  margin-bottom: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(255,173,71,.11);
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f1578b;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 14px 7px 14px 0px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE047;
  color: #25A18E;
}

/* Hide mobile menu by default; show on active (js toggles .open) */

/* RESPONSIVE: MOBILE NAV */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN: SECTION & FLEX STACKS */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;padding-top: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

/* SPACING ALIGNED TO SYSTEM (8px, 20px, 24px, 32px, etc.) */
.section, .content-wrapper, .text-section, .callout, .service-card, .testimonial-card {
  margin-bottom: 24px;
}

/* COOKIES BANNER */
.cookies-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 18px rgba(37,161,142,0.11);
  border-top: 6px solid #25A18E;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #003366;
  animation: cookiesBannerSlideIn 0.6s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes cookiesBannerSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  90% { transform: translateY(-5px); opacity: .9; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookies-banner p { margin-bottom: 0; }
.cookies-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.cookies-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 22px;
  border: none;
  border-radius: 18px;
  transition: background .15s, color .15s;
  box-shadow: 0 1px 8px rgba(241,87,139,.08);
}
.cookies-actions .accept {
  background: #25A18E;
  color: #fff;
}
.cookies-actions .accept:hover,.cookies-actions .accept:focus{
  background: #4099ff;
  color: #fff;
}
.cookies-actions .reject {
  background: #f1578b;
  color: #fff;
}
.cookies-actions .reject:hover,.cookies-actions .reject:focus {
  background: #003366;
  color: #fff;
}
.cookies-actions .settings {
  background: #FFE047;
  color: #003366;
  border: 2px solid #003366;
}
.cookies-actions .settings:hover,.cookies-actions .settings:focus {
  background: #fff;
  color: #25A18E;
}

/* COOKIES MODAL */
.cookies-modal-overlay {
  position: fixed;
  z-index: 3500;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46, 45, 78, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookies-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookies-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(0,51,102,0.24), 0 2px 10px rgba(255,224,71,0.13);
  max-width: 420px;
  padding: 32px 28px 28px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #003366;
  animation: cookiesModalPopIn 0.33s cubic-bezier(.77,-0.09,.29,1.09);
  position: relative;
  display: flex;
  flex-direction: column;
}
@keyframes cookiesModalPopIn {
  0% { transform: scale(.4) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookies-modal h3 {
  font-size: 1.25rem;
  color: #25A18E;
  margin-bottom: 18px;
  font-weight: 900;
}
.cookies-modal ul {
  padding-left: 19px;
  margin-bottom: 14px;
}
.cookies-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
  font-size: 1.07em;
}
.cookies-modal input[type=checkbox] {
  accent-color: #25A18E;
  width: 24px;
  height: 24px;
}
.cookies-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}
.cookies-modal .modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 22px;
  border: none;
  border-radius: 16px;
  background: #25A18E;
  color: #fff;
  transition: background .14s;
}
.cookies-modal .modal-actions .close {
  background: #f1578b;
  color: #fff;
}
.cookies-modal .modal-actions .close:hover,.cookies-modal .modal-actions .close:focus {
  background: #003366;
}
.cookies-modal .modal-actions .save {
  background: #4099ff;
}
.cookies-modal .modal-actions .save:hover, .cookies-modal .modal-actions .save:focus {
  background: #25A18E;
}

/* RESPONSIVE ORDER & SPACING */
@media (max-width: 1200px) {
  .container { max-width: 970px; }
}
@media (max-width: 1024px) {
  .container { max-width: 800px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { max-width: 95vw; padding: 0 7vw; }
  section {
    padding: 18px 0 24px 0;
    margin-bottom: 36px;
  }
  .section { padding: 24px 7px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .cta-button { font-size: 1.03rem; padding: 13px 19px; }
  .service-card { padding: 19px 13px; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start; gap: 12px;
    padding: 17px;
  }
  .cookies-banner {
    flex-direction: column;
    gap: 24px;
    font-size: 0.97rem;
    padding: 17px 8px 24px 8px;
    text-align: left;
  }
}
@media (max-width: 600px) {
  main, .content-wrapper,
  .section, .card, .service-card, .card-container, .content-grid, .text-image-section {
    padding: 0;
  }
  .testimonial-card, .callout { padding: 10px 8px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
  .container { max-width: 100vw; padding: 0 3vw; }
  .cookies-modal { padding: 18px 7px 18px 7px; }
}

/* FLEXBOX DIRECTION CHANGES FOR MOBILE */
@media (max-width: 900px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: flex-start !important;
  }
}

/* Accessibility: FOCUS STATES */
a:focus, .cta-button:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2px dotted #f1578b;
  outline-offset: 3px;
}

/* Animated playful underlines for links */
a {
  position: relative;
  overflow: visible;
}
a:not(.cta-button):after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: #FFE047;
  transform: scaleX(0);
  transition: transform .23s cubic-bezier(.57,1.52,.57,.68);
}
a:hover:after, a:focus:after {
  transform: scaleX(1);
}

/* 404 & Thank-you special case  */
.text-section .cta-button:last-child {
  margin-top: 18px;
  margin-bottom: 8px;
}

/* Fun animated highlight shimmer */
.cta-button {
  background-size: 200% 100%;
  animation: playfulBtnShimmer 3s linear infinite;
}
@keyframes playfulBtnShimmer {
  0% {background-position: 100% 0;}
  100% {background-position: 0 0;}
}

/* Animated playful icon shake for LI icons */
ul li img {
  animation: playfulWobble 2.5s ease-in-out infinite;
}
@keyframes playfulWobble {
  0% { transform: rotate(0deg) scale(1.0); }
  2% { transform: rotate(-10deg) scale(1.08); }
  5% { transform: rotate(12deg) scale(1.08); }
  8% { transform: rotate(-3deg) scale(1.05); }
  10% { transform: rotate(0deg) scale(1.0); }
  100% { transform: rotate(0deg) scale(1.0); }
}

/* FINISH: Utility for hidden elements */
.hidden { display: none !important; }

/* Ensure all major cards/sections get a minimum 20px margin for no overlap */
.section, .card, .service-card, .testimonial-card, .footer, .callout {
  margin-bottom: 24px;
}

/* Ensure no overlap of elements on any device */
.card, .service-card, .testimonial-card, .callout {
  margin-right: 0;
  margin-left: 0;
}
