/* ===== 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 {
  background: #F6F3EF;
  color: #24455C;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid #A4B7C9;
  padding: 10px 16px;
  font-size: 1rem;
}

/* ======= BRAND FONT & COLORS ======= */
:root {
  --primary: #24455C;
  --secondary: #A4B7C9;
  --accent: #F6F3EF;
  --bright1: #FFD95A;
  --bright2: #60D7F7;
  --bright3: #FF78A6;
  --alert: #ED3C5B;
  --card-bg: #fff;
  --shadow: 0 4px 20px 0 rgba(36, 69, 92, 0.09);
  --radius: 22px;
}

/* ======= BASE STRUCTURE ======= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  box-shadow: var(--shadow);
  animation: sectionPop 0.8s cubic-bezier(0.25,1.4,0.6,1) both;
}
@keyframes sectionPop {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.text-section {
  margin-bottom: 20px;
}

ul, .content-grid ul, .section ul {
  margin-top: 12px;
}

ul li, .section ul li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--bright2);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bright1);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.8rem;
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--bright3);
  text-shadow: 1px 3px 0 var(--bright2), 0px 0px 2px rgba(36,69,92,0.11);
  animation: bounceIn 1s cubic-bezier(0.4,2,0.6,1.2) both;
}
@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.7) translateY(60px); }
  60% {opacity:1; transform: scale(1.1) translateY(-12px); }
  to { opacity:1; transform: none; }
}
h2 {
  font-size: 2rem;
  color: var(--primary);
}
h3 {
  font-size: 1.25rem;
  color: var(--bright1);
}
h4, h5 {
  font-size: 1.1rem;
}
p, li, a {
  font-size: 1rem;
  line-height: 1.7;
}
p, ul, ol {
  color: var(--primary);
}
strong {
  color: var(--bright3);
  font-weight: 700;
}

/* ======= HEADER & NAV ======= */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 4px 16px 0 rgba(36, 69, 92, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
header img {
  max-height: 48px;
  margin-right: 18px;
}
.desktop-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.desktop-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}
.desktop-nav a.cta {
  background: linear-gradient(90deg, var(--bright1) 65%, var(--bright3) 100%);
  color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(255,217,90,0.10);
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 16px;
  letter-spacing: 0.5px;
  animation: bounceIn 0.7s cubic-bezier(0.4,2,0.6,1.2) both;
}
.desktop-nav a:hover {
  background: var(--bright1);
  color: var(--primary);
}
.desktop-nav a.cta:hover {
  background: linear-gradient(90deg, var(--bright3) 20%, var(--bright2) 95%);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(255,120,166,0.17);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  background: var(--bright1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--bright3);
  color: var(--accent);
}

/* ======= MOBILE MENU ======= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  z-index: 99;
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(0.66, 0, 0.34, 1.05);
  box-shadow: 0 2px 32px 0 rgba(36,69,92,0.20);
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--primary);
  background: var(--bright2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 22px;
  box-shadow: 0 2px 16px 0 rgba(96,215,247, 0.1);
  border: none;
}
.mobile-menu-close:hover {
  background: var(--bright3);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.16s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bright2);
  color: #fff;
}

/* ======= HERO SECTION ======= */
.hero {
  margin-bottom: 60px;
  background: linear-gradient(90deg, var(--bright1) 44%, var(--bright2) 99%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-top: 52px;
  padding-bottom: 52px;
  animation: heroAnim 1s cubic-bezier(0.45,1.5,0.5,1) both;
}
@keyframes heroAnim {
  from { opacity: 0; transform: scale(0.98) translateY(34px); }
  to { opacity: 1; transform: none; }
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.3rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--bright3), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero .cta {
  margin-top: 8px;
}

/* ======= CARDS & GRIDS FLEXBOX ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-width: 270px;
  transition: box-shadow 0.24s, transform 0.28s;
}
.card:hover {
  box-shadow: 0 8px 44px 0 rgba(255,120,166, 0.13), 0 1.5px 10px 0 rgba(96,215,247, 0.11);
  transform: translateY(-6px) scale(1.04);
}
.stats-box {
  background: var(--bright2);
  color: var(--primary);
  border-radius: 18px;
  flex: 1 1 120px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 18px 0 rgba(96,215,247, 0.13);
  padding: 20px 10px 16px 10px;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: box-shadow 0.18s, transform 0.2s;
}
.stats-box h3 {
  font-size: 2.2rem;
  margin-bottom: 2px;
}
.stats-box:hover {
  box-shadow: 0 8px 25px 0 rgba(255,217,90, 0.12);
  transform: translateY(-5px) scale(1.03);
}

.feature-grid, .service-list, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div, .service-list > div, .blog-post-list > div {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 18px;
  flex: 1 1 240px;
  min-width: 240px;
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.18s, transform 0.2s;
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.feature-grid > div:hover, .service-list > div:hover, .blog-post-list > div:hover {
  box-shadow: 0 10px 34px 0 rgba(36,69,92,0.16);
  transform: scale(1.02) rotate(-0.5deg);
}
.feature-grid img, .service-list img {
  max-width: 44px;
  margin-bottom: 4px;
}

/* ======= CARDS FOR BLOG & SERVICES ======= */
.blog-post-list > div h3 {
  font-size: 1.25rem;
  color: var(--bright2);
  margin-bottom: 10px;
}
.blog-post-list > div p {
  color: var(--primary);
  margin-bottom: 0px;
}

/* ======= TESTIMONIALS ======= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(36, 69, 92, 0.12);
  margin-bottom: 24px;
  margin-top: 14px;
  min-width: 220px;
  max-width: 600px;
  border-left: 6px solid var(--bright3);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: #222;
  font-size: 1.09rem;
  font-style: italic;
  line-height: 1.55;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--bright3);
  font-weight: 600;
  font-size: 0.99rem;
  margin-left: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,120,166, 0.09);
  border-left: 6px solid var(--bright2);
}

/* ======= BUTTONS & CTAs ======= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--bright1) 55%, var(--bright3) 95%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.09rem;
  padding: 12px 32px;
  min-width: 160px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 3px 22px 0 rgba(255,217,90, 0.07);
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.19s, box-shadow 0.23s;
  outline: none;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--bright3) 8%, var(--bright2) 92%);
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(255,120,166, 0.19);
  transform: scale(1.04) rotate(-1deg);
}
.cta:active {
  background: var(--bright2);
}

/* ======= CONTACT & MAP ======= */
.address-map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}
.address-map img {
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(96,215,247, 0.10);
  max-width: 340px;
}

/* ======= FOOTER ======= */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 10px 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
footer img {
  max-height: 42px;
  margin-bottom: 8px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 6px;
}
.footer-menu a {
  color: var(--bright2);
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.17s, color 0.15s;
  padding: 5px 9px;
  border-radius: 9px;
}
.footer-menu a:hover {
  background: var(--bright1);
  color: var(--primary);
}
footer p {
  color: var(--accent);
  font-size: 0.97rem;
  text-align: center;
  opacity: 0.75;
}

/* ======= COOKIES BANNER & MODAL ======= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--bright1);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 105;
  padding: 24px 12px 18px 12px;
  box-shadow: 0 -2px 24px 0 rgba(36, 69, 92, 0.12);
  gap: 18px;
  animation: cookieIn 0.7s cubic-bezier(0.35,1.6,0.5,1) both;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 0px;
}
.cookie-btn {
  background: var(--bright3);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  padding: 10px 28px;
  margin: 0 2px;
  box-shadow: 0 2px 14px 0 rgba(255,120,166, 0.12);
  transition: background 0.15s, color 0.13s, box-shadow 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--bright2);
  color: var(--primary);
}
.cookie-btn.setting {
  background: var(--bright2);
  color: var(--primary);
  font-weight: 700;
  border: 2px solid var(--primary);
}
.cookie-btn.setting:hover {
  background: var(--primary);
  color: var(--accent);
}

/* 
COOKIE MODAL 
*/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(36,69,92, 0.32);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalPopIn 0.4s cubic-bezier(0.25,1.3,0.7,1) both;
}
@keyframes cookieModalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(40px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  padding: 34px 24px 28px 24px;
  border-radius: 24px;
  box-shadow: 0 4px 40px 0 rgba(36,69,92,0.21);
  min-width: 340px;
  max-width: 95vw;
  animation: cookieModalCardPop 0.6s cubic-bezier(0.32,1.1,0.53,1.18) both;
}
@keyframes cookieModalCardPop {
  from { opacity: 0; transform: scale(0.92) }
  to { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
  font-size: 1.07rem;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--bright2);
  width: 20px; height: 20px;
  margin-right: 6px;
}
.cookie-category.essential input[type='checkbox'] {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 16px; right: 15px;
  font-size: 28px;
  color: var(--primary);
  background: var(--bright2);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  z-index: 115;
  transition: background 0.14s;
}
.cookie-modal .close:hover {
  background: var(--alert);
  color: #fff;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1000px) {
  .container { max-width: 99vw; }
}
@media (max-width: 900px) {
  .desktop-nav { gap: 18px; }
  .feature-grid > div, .service-list > div, .blog-post-list > div { min-width: 190px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 98vw; padding: 0 8px; }
  header .container { padding: 14px 8px; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .feature-grid, .service-list, .blog-post-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .blog-post-list > div, .stats-box {
    min-width: 98%;
    width: 100%;
    margin-bottom: 12px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 14px 8px;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .address-map img {
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  html { font-size: 13px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.26rem; }
  .cta, .cookie-btn { font-size: .93rem; padding: 10px 20px; }
  .container { padding: 0 3vw; }
  .cookie-modal { padding: 16px 7px 14px 7px; min-width: 94vw; }
  .hero { padding-top: 23px; padding-bottom: 22px; }
}

/* ======= OTHER INTERACTIVE/ANIMATION ======= */
.card, .feature-grid > div, .stats-box, .testimonial-card, .service-list > div, .blog-post-list > div {
  animation: cardEnterAnim 0.85s cubic-bezier(0.23,1.17,0.52,1.08) both;
}
@keyframes cardEnterAnim {
  from { opacity: 0; transform: scale(0.98) translateY(18px); }
  to { opacity:1; transform: none; }
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--bright3);
  box-shadow: 0 2px 9px 0 rgba(255,120,166,0.07);
}

/* ======= SPECIAL FLEXBOX PATTERNS (MANDATORY) ======= */
.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) {
  .text-image-section {
    flex-direction: column;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======= MISC. ENERGETIC/PLAYFUL EXTRAS ======= */
h1, h2, h3, .cta  { letter-spacing: 0.5px; }
.cta {
  box-shadow: 0 3px 20px 0 rgba(96,215,247, 0.10), 0 0.5px 3px 0 rgba(255,120,166,0.07);
  animation: ctaWiggle 2s infinite cubic-bezier(0.5,1.7,0.6,1.2);
}
@keyframes ctaWiggle {
  0%,100% { transform: scale(1) rotate(0); }
  4% { transform: scale(1.04) rotate(-2deg); }
  7% { transform: scale(0.98) rotate(2deg); }
  12% { transform: scale(1.03) rotate(-1deg); }
  40%,60% {  transform: scale(1) rotate(0); }
}
.feature-grid > div, .stats-box, .service-list>div {
  animation: floatCard 5s infinite alternate cubic-bezier(0.6,1,0.6,0.98);
  will-change: transform;
}
@keyframes floatCard {
  0% { transform: translateY(0); }
  93% { transform: translateY(-5px) scale(1.01); }
  100% { transform: translateY(0); }
}

/* ====== UTILITIES ======= */
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.center { text-align: center !important; }

/* ====== Z-INDEX MANAGEMENT ======= */
header { z-index: 30; }
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 105; }
.cookie-modal-overlay { z-index: 110; }

/* Print basic accessibility: focus indicators */
a:focus, .cta:focus, button:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 2px var(--bright2), 0 2px 9px 0 rgba(255,217,90,0.15);
  outline: none;
}

/* Hide cookie-modal by default. JS toggles .show */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.show { display: flex; }

/* Hide mobile menu by default. JS toggles .open */
.mobile-menu { display: flex; pointer-events: none; opacity: 0; }
.mobile-menu.open { pointer-events: auto; opacity: 1; }

/* ======= END ======= */
