/* 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;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #FAFBFD; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font-family: inherit; outline: none; border-radius: 0; }
:focus-visible { outline: 2px solid #7EC6E3; outline-offset: 2px; }
hr { border: 0; border-top: 1px solid #F2F2F2; margin: 24px 0; }

/* BRAND FONTS & COLORS ---------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --primary: #255275;
  --secondary: #7EC6E3;
  --accent: #F2F2F2;
  --highlight: #FFD13C;
  --fun-pink: #FF70B2;
  --fun-green: #70FFBE;
  --body-bg: #FAFBFD;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
}

body {
  background: var(--body-bg);
  color: #23313E;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}

/* TYPOGRAPHY & HEADINGS --------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.15;
}
h1 {
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--fun-pink);
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}
p, li, dd {
  font-size: 1rem;
  color: #283B50;
  margin-bottom: 12px;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}
dl.faq-list {
  margin-bottom: 24px;
}
dl.faq-list dt {
  font-weight: 700;
  color: var(--fun-pink);
  font-family: var(--heading-font);
  font-size: 1.08rem;
  margin-top: 16px;
}
dl.faq-list dd {
  margin-left: 0;
  color: var(--primary);
  font-size: 1rem;
}
strong, b { font-weight: 700; }

/* CONTAINER, SECTIONS, LAYOUT FLEX----------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.section, section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 22px rgba(62,173,255,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section { max-width: 740px; }

/* FLEX LAYOUTS from requirements ------------ */
.card-container, .blog-posts, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card, .service-item, .testimonial-card, .content-wrapper > article {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
}
.card, .service-item {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(62,173,255,0.11);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .service-item:hover {
  box-shadow: 0 8px 32px rgba(255,112,178,0.10), 0 1.5px 5px rgba(39,173,255,0.07);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(39,82,117,0.13);
  min-width: 270px;
  border-radius: 22px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  flex: 1;
  color: #23313E;
  font-size: 1.05rem;
}
.testimonial-card span {
  font-size: 0.99rem;
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION --------------------------------- */
.hero {
  background: linear-gradient(105deg, var(--secondary) 75%, var(--fun-pink) 100%);
  padding: 50px 0 60px 0;
  border-radius: 0 0 36px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255,112,178,0.06);
  margin-bottom: 64px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 var(--fun-green);
  letter-spacing: -2px;
  font-family: var(--heading-font);
}
.hero p {
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}

/* FUN DECORATIVE ELEMENTS ---------------------- */
.hero:before, .hero:after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.13;
}
.hero:before {
  width: 320px; height: 320px;
  right: -120px; top: -100px;
  background: var(--fun-pink);
}
.hero:after {
  width: 120px; height: 120px;
  left: -30px; bottom: -40px;
  background: var(--fun-green);
}

/* BUTTONS -------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff!important;
  border: none;
  border-radius: 16px;
  padding: 14px 32px;
  font-family: var(--heading-font);
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 18px rgba(39,82,117,0.10), 0 1.5px 5px rgba(39,173,255,0.08);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 7px 28px rgba(255,112,178,0.13);
  outline: none;
}
.btn-primary:active {
  background: var(--fun-pink);
  color: #fff;
  box-shadow: 0 3px 18px rgba(39,82,117,0.09);
  transform: scale(0.96);
}

/* Service Price highlight */
.service-price {
  color: var(--fun-green);
  background: rgba(112,255,190,0.08);
  padding: 2px 15px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* SPECIAL ELEMENTS: Blog, Categories, Search --- */
.blog-search {
  margin: 16px 0 12px 0;
  width: 100%;
}
.blog-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  font-size: 1.08rem;
  background: #fff;
  font-family: var(--body-font);
  box-shadow: 0 2px 12px rgba(39,82,117,0.04);
  transition: border 0.16s;
}
.blog-search input:focus {
  border-color: var(--fun-pink);
  outline: none;
}
.categories {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px 0;
  font-size: 1.03rem;
  color: var(--fun-pink);
  font-weight: 600;
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.categories li {
  color: var(--primary);
  background: var(--fun-green);
  border-radius: 18px;
  padding: 4px 14px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.categories li:hover {
  background: var(--fun-pink);
  color: #fff;
}

.blog-posts {
  margin-top: 16px;
}
.blog-posts article {
  background: var(--accent);
  padding: 22px 18px;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(62,173,255,0.07);
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-posts article:hover {
  box-shadow: 0 7px 38px rgba(39,82,117,0.12);
  transform: rotate(1deg) scale(1.04);
}
.blog-posts h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 9px;
  font-family: var(--heading-font);
}
.blog-posts a {
  display: inline-block;
  color: var(--fun-pink);
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.14s, text-decoration 0.14s;
  font-size: 1rem;
}
.blog-posts a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.categories span {
  font-family: var(--heading-font);
}

.certifications span {
  font-size: 0.95rem;
  padding: 2px 16px;
  margin: 0 2px;
  border-radius: 16px;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
}

/* HEADER NAVIGATION ------------------------------ */
header {
  background-color: #fff;
  box-shadow: 0 6px 24px rgba(62,173,255,0.10);
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 0 9px 0;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.05rem;
}
.main-nav a {
  color: var(--primary);
  padding: 9px 16px;
  border-radius: 12px;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--fun-pink);
  box-shadow: 0 2px 8px rgba(39,173,255,0.11);
  outline: none;
}
.main-nav img {
  height: 44px; width: auto;
  margin-right: 20px;
}

/* Hide hamburger by default, show only on mobile */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 26px;
  top: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 1.65rem;
  font-weight: 900;
  z-index: 102;
  box-shadow: 0 2px 14px rgba(62,173,255,0.10);
  border: 0;
  transition: background 0.15s, transform 0.17s;
}
.mobile-menu-toggle:active {
  background: var(--fun-pink);
  transform: scale(0.96);
}

/* MOBILE MENU OVERLAY ----------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,82,117,0.91);
  z-index: 1200;
  transform: translateX(-105vw);
  transition: transform 0.33s cubic-bezier(0.42,0.1,0.23,1.0);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  color: #fff;
  background: var(--fun-pink);
  font-size: 2.2rem;
  border-radius: 50%;
  margin: 22px 22px 0 0;
  align-self: flex-end;
  padding: 6px 18px 6px 18px;
  font-weight: bold;
  z-index: 1001;
  border: 0;
  box-shadow: 0 3px 10px rgba(39,82,117,0.18);
  transition: background 0.16s, transform 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--fun-green);
  color: var(--primary);
  transform: scale(1.08);
  outline: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  align-items: flex-start;
  padding: 25px 24px 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--heading-font);
  font-size: 1.21rem;
  font-weight: 800;
  padding: 12px 0 10px 0;
  border-radius: 12px;
  transition: background 0.15s, color 0.17s, transform 0.16s;
  width: 100%;
  display: block;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-green);
  color: var(--primary);
  padding-left: 12px;
  outline: none;
  transform: translateX(5px) scale(1.04);
}

/* Show/hide menu with JS adds/removes .active on .mobile-menu */

/* FOOTER STYLES ------------------------------ */
footer {
  background: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: 80px;
  box-shadow: 0 -3px 34px rgba(62,173,255,0.07);
  font-size: 0.96rem;
  color: var(--primary);
  padding: 30px 0 15px 0;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 56px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.footer-nav a {
  font-family: var(--heading-font);
  color: var(--fun-pink);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
  padding: 2px 4px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  background: var(--secondary);
  outline: none;
}
.footer-contact p, .footer-contact a {
  color: var(--primary);
  font-size: 0.97rem;
  margin-bottom: 4px;
}
.footer-contact a {
  text-decoration: underline;
  color: var(--fun-pink);
  font-weight: 500;
  transition: color 0.14s;
}
.footer-contact a:hover{ color: var(--primary); }

/* CARD CONTAINERS (from requirements) ----------- */
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; }
.service-list { gap: 24px; }

/* Map/Contact placeholder ----------------------- */
.map-placeholder {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--heading-font);
  font-style: italic;
  border-radius: 18px;
  padding: 20px;
  margin: 14px 0 0 0;
  text-align: center;
  box-shadow: 0 1.5px 12px rgba(39,173,255,0.10);
}

/* Animations & Microinteractions --------------- */
@keyframes floaty {
  0%   { transform: translateY(0px) rotate(-1deg); }
  50%  { transform: translateY(-6px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}
.card:hover, .service-item:hover {
  animation: floaty 1.15s ease-in-out;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(62,173,255,0.11);
}

/* Cookie Consent Banner (fixed bottom) --------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -7px 32px rgba(62,173,255,0.13);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 10px 20px 10px;
  animation: cookie-slide-in 0.54s;
}
@keyframes cookie-slide-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--primary);
  font-size: 1.09rem;
  margin: 0 18px 0 0;
  font-family: var(--body-font);
}
.cookie-consent-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 21px;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.14s;
}
.cookie-btn.settings {
  background: var(--fun-pink);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.05);
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--fun-green);
  color: #23313E;
}

/* Cookie Preferences Modal ---------------------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,82,117,0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: cookie-modal-in 0.34s;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 8px 48px rgba(62,173,255,0.19);
  min-width: 320px;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-family: var(--heading-font);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 0 0;
}
.cookie-category label {
  font-size: 1.01rem;
  color: var(--primary);
  font-family: var(--body-font);
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--secondary);
  border-radius: 18px;
  transition: background 0.19s;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-toggle:checked {
  background: var(--fun-pink);
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-toggle:checked:after {
  left: 19px;
  background: var(--secondary);
}
.cookie-modal-close {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--fun-pink);
  color: #fff;
  font-size: 1.4rem;
  border: none;
  border-radius: 50%;
  padding: 3px 11px;
  font-family: var(--heading-font);
  box-shadow: 0 3px 10px rgba(39,82,117,0.13);
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--fun-green);
  color: var(--primary);
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* RESPONSIVE ---------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-wrap: wrap;
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero h1 { font-size: 1.7rem; }
  .section, section { padding: 20px 7px; border-radius: 16px; }
  .testimonial-card, .card, .service-item {
    flex: 1 1 100%; min-width: 0;
    box-shadow: 0 2px 12px rgba(62,173,255,0.13);
  }
  .card-container, .content-grid, .service-list, .blog-posts {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper { gap: 12px; }
  .footer-logo img { height: 40px; }
  .categories ul { gap: 7px; }
  .text-image-section { flex-direction: column; gap: 16px; }
}
@media (max-width: 540px) {
  .footer-contact p, .footer-contact a { font-size: 0.92rem; }
  .hero {
    border-radius: 0 0 20px 20px;
    padding: 31px 0 28px 0;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 4px 16px 4px;
  }
  .cookie-consent-banner p { margin-bottom: 7px; }
  .cookie-consent-buttons { gap: 7px; }
  .cookie-modal-content { padding: 18px 10px 18px 10px; }
}

/* ACCESSIBILITY & USABILITY ------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* REMOVE GRID PROPERTIES - Flexbox Only. All layout containers above use only display: flex and flex-* properties */
