/* 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a2340;
  background: #f9fbfd;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0d48ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C1EDFF;
}
ul, ol {
  padding-left: 1.3em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #223265;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; text-shadow: 1px 2px 0 #C1EDFF, 0 6px 40px #4F6C9133; }
h2 { font-size: 2.1rem; margin-bottom: 20px; color: #156de8; }
h3 { font-size: 1.5rem; margin-bottom: 16px; color: #223265; }
h4 { font-size: 1.19rem; margin-bottom: 8px; }
p, li, blockquote {
  font-size: 1rem;
  color: #223265;
}
blockquote {
  font-family: 'Montserrat';
  font-size: 1.2rem;
  color: #223265;
  background: #C1EDFF55;
  border-left: 4px solid #0d48ff;
  padding: 12px 24px;
  margin-bottom: 10px;
  border-radius: 7px;
}
b, strong {
  font-weight: 700;
}

/* SPACING AND CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 #c1edff22;
  transition: box-shadow 0.24s;
}
@media (max-width: 800px) {
  .section {
    padding: 30px 7px;
    margin-bottom: 36px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

/* HEADER NAVIGATION */
header {
  width: 100%;
  background: #223265;
  padding: 0;
  box-shadow: 0 2px 16px #156de833;
  z-index: 199;
  position: relative;
}
header .container {
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
header > a > img {
  height: 38px;
  margin-right: 24px;
  display: block;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #C1EDFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 7px;
  position: relative;
  transition: background 0.2s, color 0.2s, top 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #C1EDFF;
  color: #223265;
  top: -2px;
}
header nav .cta {
  font-size: 1.04rem;
  padding: 10px 24px;
  font-weight: 800;
  border-radius: 20px;
  background: #ff3467;
  color: #fff;
  box-shadow: 0 3px 12px #FF346799;
  transition: background 0.21s, color 0.16s, box-shadow 0.21s;
  margin-left: 10px;
}
header nav .cta.primary:hover, header nav .cta.primary:focus {
  background: #f8bf1f;
  color: #223265;
  box-shadow: 0 4px 22px #f8bf1f77;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #C1EDFF;
  color: #223265;
  border: none;
  border-radius: 10px;
  font-size: 2.2rem;
  padding: 5px 16px;
  margin-left: auto;
  cursor: pointer;
  z-index: 210;
  transition: background 0.14s, color 0.14s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ff3467;
  color: #fff;
  box-shadow: 0 2px 15px #ff346766;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #223265ee;
  z-index: 9999;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 0;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.74,.23,.55,1.14);
  box-shadow: 8px 0 28px #22326555;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  border: none;
  background: #C1EDFF;
  color: #223265;
  font-size: 2rem;
  align-self: flex-end;
  margin-right: 32px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
  z-index: 10001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ff3467;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-left: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  padding: 14px 7px;
  border-radius: 8px;
  font-family: 'Montserrat';
  font-weight: 700;
  transition: background 0.21s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C1EDFF;
  color: #223265;
}

@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1023px) {
  header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0 7px 0;
  }
  header > a > img {
    margin-left: 20px;
    margin-bottom: 0;
  }
}

/* HERO BANNERS & SECTION HEADINGS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section h1 {
  color: #ff3467;
  font-size: 2.8rem;
  margin-bottom: 14px;
}

/* FLEX UTILITIES & MANDATORY PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px #156de855;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px #ff346744, 0 1px 2px #22326509;
  transform: translateY(-2px) scale(1.025);
}
.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;
  background: #C1EDFF;
  border-radius: 18px;
  box-shadow: 0 2px 13px #ff346733, 0 1px 1px #156de810;
  font-family: 'Roboto';
  color: #223265;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  background: none;
  border-left: 4px solid #ff3467;
  padding-left: 15px;
  color: #223265;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #223265;
  font-weight: 700;
  padding-left: 4px;
}

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

/* GENERIC GRIDS FOR HOME & SERVICE CARDS */
.feature-grid,
.service-grid,
.service-list,
.guide-teasers,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature, .service-item, .guide, .blog-list article {
  flex: 1 1 250px;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px #156de830;
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.22s;
  border: 1.5px solid #C1EDFF;
}
.feature:hover, .service-item:hover, .guide:hover, .blog-list article:hover {
  box-shadow: 0 6px 20px #ff346755, 0 1px 2px #22326508;
  transform: translateY(-3px) scale(1.02);
  border-color: #ff3467;
}
.feature img, .service-item img, .guide img {
  height: 48px;
  width: 48px;
  margin-bottom: 9px;
}
.feature h3, .service-item h3, .guide h3 {
  margin-bottom: 6px;
  color: #156de8;
}

/* HOME SERVICE LIST SECTION */
.service-list {
  gap: 24px;
  justify-content: stretch;
}
.service-item {
  align-items: flex-start;
  min-width: 200px;
  max-width: 370px;
  flex: 1 1 220px;
}

/* CUSTOM BUTTONS */
.cta, .guide a.cta, .card a.cta {
  display: inline-block;
  background: #ff3467;
  color: #fff;
  font-family: 'Montserrat';
  font-weight: 800;
  font-size: 1.13rem;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 23px;
  box-shadow: 0 4px 22px #ff346733;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  outline: none;
  transition: background 0.2s, color 0.14s, box-shadow 0.2s, transform 0.13s;
}
.cta:hover, .cta:focus {
  background: #156de8;
  color: #fff;
  box-shadow: 0 8px 26px #156de855;
  transform: translateY(-2px) scale(1.03);
}

/* FOOTER */
footer {
  background: #223265;
  color: #C1EDFF;
  padding: 40px 0 28px 0;
  margin-top: 38px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-branding img {
  height: 32px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  color: #C1EDFF;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 7px;
  font-family: 'Montserrat';
  transition: background 0.17s, color 0.11s;
}
footer nav a:hover, footer nav a:focus {
  background: #ff3467;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #C1EDFF;
  font-size: 0.97rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 5px;
  vertical-align: middle;
  display: inline-block;
}

@media (max-width: 900px) {
  footer .container{
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  .content-wrapper{
    gap: 22px;
  }
  .feature-grid,
  .service-grid,
  .service-list,
  .guide-teasers,
  .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature,
  .service-item,
  .guide,
  .blog-list article {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 11px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ADDITIONAL ELEMENTS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul {
  margin-bottom: 8px;
  padding-left: 26px;
}
.text-section li {
  margin-bottom: 5px;
}

/* VISUAL HIERARCHY: EMPHASIS */
h2 {
  position: relative;
  padding-left: 7px;
}
h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 24px;
  border-radius: 5px;
  background: #ff3467;
  opacity: 0.75;
}

/* Lists with icons */
li img {
  margin-right: 8px;
  vertical-align: middle;
  height: 18px;
  width: 18px;
}

/* Forms (for contact potentially) */
input, textarea, select {
  font-family: 'Roboto';
  font-size: 1rem;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid #C1EDFF;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #ff3467;
  outline: none;
}

/* Animations & Micro-interactions */
.card, .feature, .service-item, .guide, .blog-list article {
  transition: box-shadow 0.2s, border-color 0.19s, transform 0.18s;
}
.cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.21s, color 0.13s, box-shadow 0.18s, transform 0.13s;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: #223265ee;
  color: #C1EDFF;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 22px 24px;
  box-shadow: 0 -5px 22px #22326533;
  font-family: 'Roboto';
  font-size: 1.06rem;
  gap: 30px;
  animation: cookie-in 0.7s cubic-bezier(.67,1.11,.69,.98);
  transition: opacity 0.3s, bottom 0.2s;
}
@keyframes cookie-in {
  from { opacity: 0; bottom: -55px; }
  to   { opacity: 1; bottom: 0; }
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -56px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat';
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.18s, color 0.14s;
}
.cookie-consent-banner .accept {
  background: #ff3467;
  color: #fff;
}
.cookie-consent-banner .accept:hover { background: #156de8; }
.cookie-consent-banner .reject {
  background: #fff;
  color: #223265;
  border: 2px solid #ff3467;
}
.cookie-consent-banner .reject:hover { background: #ff3467; color: #fff; }
.cookie-consent-banner .settings {
  background: transparent;
  color: #C1EDFF;
  text-decoration: underline;
}
.cookie-consent-banner .settings:hover {
  color: #f8bf1f;
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #223265cc;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  animation: modal-in 0.33s cubic-bezier(.74,.14,.59,1.14);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 14px 40px #ff346744;
  max-width: 400px;
  width: 95vw;
  padding: 30px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: #223265;
}
.cookie-modal h3 {
  font-family: 'Montserrat';
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ff3467;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #ff3467;
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  color: #ff3467;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:hover {
  color: #223265;
}
.cookie-modal button {
  padding: 8px 16px;
  border-radius: 17px;
  border: none;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal .accept {
  background: #ff3467;
  color: #fff;
}
.cookie-modal .reject {
  background: #fff;
  color: #223265;
  border: 2px solid #ff3467;
}
.cookie-modal .accept:hover { background: #156de8; }
.cookie-modal .reject:hover { background: #ff3467; color: #fff; }

@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 15px 7px 13px 11px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 16px 8px 20px 8px;
  }
}

/* COLORS & ENERGETIC VIBES */
.section, .card, .feature, .service-item, .guide, .blog-list article {
  border-left: 7px solid #ff3467;
  border-bottom: 2.5px solid #f8bf1f;
  /* yellow energetic edge */
}
@media (max-width: 550px) {
  .section {
    padding: 14px 1.5vw;
    margin-bottom: 18px;
  }
}

/* Misc utility */
.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* Z-INDEX RULES */
header { z-index: 99; }
.mobile-menu { z-index: 1001; }
.cookie-modal-overlay { z-index: 9999; }
.cookie-consent-banner { z-index: 99998; }

/* SCROLLBAR (vibrant accent) */
::-webkit-scrollbar {
  width: 10px;
  background: #22326522;
}
::-webkit-scrollbar-thumb {
  background: #ff3467;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #156de8; }

/* DESKTOP OVERRIDE: KEEP EVERYTHING FLEX */
@media (min-width: 1000px) {
  .feature-grid, .service-list {
    flex-direction: row;
    justify-content: space-between;
  }
  .service-grid, .guide-teasers, .blog-list {
    flex-direction: row;
    gap: 24px;
  }
}
