/* ===================================================================
   Cosmic Shadow – Vibrant Energetic Responsive CSS Framework
   Author: cosmic-shadow.com
   Brand colors: #17304A (primary), #4D77A5 (secondary), #FFD43B (accent)
   Vibrant, energetic, and consistent! Flexbox ONLY.
===================================================================== */
/* ------ CSS RESET & BASE TYPOGRAPHY ------ */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F8F9FC;
  color: #17304A;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%; height: auto;
  display: block;
}
a { color: #17304A; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #FFD43B; }
ul, ol { list-style: none; }

/* ------ FONT IMPORTS (Google Fonts) ------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

/* ------ TYPOGRAPHY / HEADINGS ------ */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800; letter-spacing: -0.01em;
  color: #17304A;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4, h5 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol, li, dl, dd {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #17304A;
  margin-bottom: 8px;
  line-height: 1.7;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* ------ BRAND COLORS ------ */
:root {
  --cs-primary: #17304A;
  --cs-secondary: #4D77A5;
  --cs-accent: #FFD43B;
  --cs-bg-light: #F8F9FC;
  --cs-bg-card: #fff;
  --cs-text: #17304A;
  --cs-muted: #65799B;
}

/* ------ GENERIC CONTAINERS ------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Vertical space between content blocks */
}

/* ------ SECTION SPACING ------- */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ------ HEADER / NAVIGATION ------ */
header {
  background: var(--cs-primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 16px rgba(23,48,74,0.09);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}
header img[alt="Cosmic Shadow"] {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background .18s, color .18s;
}
nav a:not(.btn-primary):hover, nav a:not(.btn-primary):focus {
  background: var(--cs-accent); color: var(--cs-primary);
}
.btn-primary {
  background: var(--cs-accent);
  color: var(--cs-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 28px;
  padding: 10px 28px;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 rgba(255,212,59,0.12),0 1.5px 4px 0 rgba(23,48,74, 0.06);
  border: 0;
  cursor: pointer;
  outline: none;
  transition: background .18s, color .18s, transform .09s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff24c;
  color: var(--cs-primary);
  box-shadow: 0 4px 16px 0 rgba(255,212,59,0.18);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--cs-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 24px;
  padding: 10px 24px;
  margin-left: 0;
  border: none;
  box-shadow: 0 1.5px 4px 0 rgba(77,119,165, 0.11);
  cursor: pointer;
  outline: none;
  transition: background .18s, color .18s, transform .09s;
  position: relative;
  z-index: 1;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--cs-accent);
  color: var(--cs-primary);
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger / Mobile nav toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--cs-accent);
  color: var(--cs-primary);
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 20px;
  z-index: 102;
  cursor: pointer;
  transition: background .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fff24c;
}

/* ------ MOBILE MENU OVERLAY ------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,48,74,0.97);
  color: #fff;
  z-index: 3000;
  display: none;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
}
.mobile-menu.active {
  display: flex;
  animation: mobMenuSlideIn .5s cubic-bezier(.68,-0.55,.27,1.55) 1;
}
@keyframes mobMenuSlideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #FFD43B;
  border: none;
  font-size: 2.3rem;
  margin: 24px 24px 0 0;
  padding: 0;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 42px;
  gap: 26px;
  padding-left: 40px;
  width: 92vw;
}
.mobile-nav a {
  color: #FFD43B;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border .19s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #FFD43B;
}

/* ------ LAYOUT FLEX PATTERNS (FLEX ONLY) ------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--cs-bg-card);
  border-radius: 18px;
  box-shadow: 0 8px 32px -6px rgba(77,119,165,.18);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 15px 45px -10px #FFD43B44, 0 1.5px 11px 0 #17304A33;
  transform: translateY(-5px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe3;
  color: #17304A;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 3px 12px 0 #FFD43B44, 0 1.5px 9px 0 #17304A13;
  font-size: 1.12rem;
  min-width: 250px;
}
.testimonial-card p {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  color: #242C32;
}
.testimonial-card div {
  align-self: flex-end;
  font-size: 1.05rem; font-weight: 700;
  color: #4D77A5;
}
.testimonial-card span {
  color: #FFD43B;
  margin-left: 6px;
  font-size: 1.2em;
  text-shadow: 0 0 2px #FFD43B88;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Spacing between list items with icons */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
ul li img, ol li img {
  width: 26px; height: 26px;
  display: inline-block;
}

/* ------ BUTTONS & INTERACTIONS ------ */
button, .btn-primary, .btn-secondary {
  cursor: pointer;
  border: none;
  transition: box-shadow .14s, transform .11s, background .18s;
}
button:active {
  transform: scale(0.96);
}

/* ------ SECTION BACKGROUNDS ------ */
section:nth-child(odd) {
  background: #F8F9FC;
}
section:nth-child(even) {
  background: #FFFDE7;
}

/* ------ FOOTER ------ */
footer {
  background: var(--cs-primary);
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-top: 30px;
  padding: 0;
}
footer .container {
  padding: 34px 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  width: 52px; height: 52px;
}
.footer-contact {
  max-width: 275px;
}
.footer-contact img[alt] {
  width: 18px; height: 18px; margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-menu a {
  color: #FFD43B; font-weight: 600; font-family: 'Montserrat', Arial, sans-serif;
  transition: color .19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #fff24c;
}
.footer-social {
  display: flex; gap: 16px; align-items: center;
}
.footer-social a img {
  filter: brightness(1.2);
  width: 32px;
  transition: filter .18s, transform .17s;
}
.footer-social a:hover img {
  filter: drop-shadow(0 0 7px #FFD43Bcc);
  transform: scale(1.08) rotate(-4deg);
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 4500;
  background: rgba(23,48,74, 0.97);
  color: #fff;
  box-shadow: 0 -2px 16px 0 #17304A44;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 6vw;
  font-size: 1.02rem;
  animation: cookieDrop .5s ease;
}
@keyframes cookieDrop {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0%); opacity:1; }
}
.cookie-banner p {
  margin: 0; max-width: 560px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fff;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-banner button {
  background: var(--cs-accent);
  color: var(--cs-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 19px;
  padding: 9px 22px;
  border: none;
  transition: background .18s, color .16s, box-shadow .12s;
  box-shadow: 0 1px 6px #FFD43B44;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--cs-primary);
  border: 2px solid var(--cs-accent);
  margin-left: 5px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff24c;
  color: var(--cs-primary);
  box-shadow: 0 4px 12px #FFD43B55;
}

/* ------ COOKIE MODAL ------ */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.92);
  background: #fff;
  color: #17304A;
  z-index: 5200;
  border-radius: 22px;
  box-shadow: 0 4px 40px #17304A44, 0 2px 16px #FFD43B33;
  min-width: 325px;
  max-width: 92vw;
  min-height: 270px;
  padding: 38px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
  animation: cookieModalIn .5s cubic-bezier(.65,0,0,1.08);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%,-38%) scale(.8); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--cs-primary);
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px; font-weight: 600;
  margin-bottom: 14px;
  user-select: none;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--cs-accent);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 17px;
  margin-top: 12px;
  align-items: center;
}
.cookie-modal .cookie-close-btn {
  background: #fff;
  color: var(--cs-primary);
  border: 2px solid var(--cs-accent);
  margin-left: 10px;
}

/* ------ GENERIC FORMS ------ */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1.3px solid #4D77A5;
  font-size: 1rem;
  margin-bottom: 14px;
  box-shadow: 0 1px 8px #17304A11;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #FFD43B;
  border-color: #FFD43B;
  background: #FFFDE4;
}

/* ------ TABLES & DEFINITION LISTS ------ */
dt { font-weight: 700; margin-top: 12px; color: var(--cs-primary);
  font-family: 'Montserrat', Arial, sans-serif; }
dd { margin-bottom: 7px; margin-left: 18px; color: var(--cs-muted); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 7px; border-bottom: 1px solid #E0E8F2; }
th { background: #FFD43B; color: #17304A; font-weight: 700; text-align: left; }

/* ------ RESPONSIVE LAYOUT ------ */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .footer-contact, .footer-menu, .footer-social, .footer-brand {
    min-width: unset; max-width: unset;
  }
  .footer-menu { flex-direction: row; gap: 16px; }
  footer .content-wrapper {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    height: 62px;
    padding: 0 12px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section, section {
    padding: 32px 6vw;
    margin-bottom: 38px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .footer-contact, .footer-menu, .footer-brand, .footer-social {
    width: 100%; max-width: 100%;
  }
  .footer-menu { flex-direction: column; gap: 8px; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 0;
  }
  .testimonial-card {
    font-size: 0.98rem;
    flex-direction: column;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 21px 4vw;
    gap: 17px;
    font-size: 0.98rem;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  .container, .section, section {
    padding-left: 0; padding-right: 0;
  }
  .card {
    padding: 14px 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    min-width: 0; padding: 24px 10px;
  }
}

/* ------ VISUAL EFFECTS & MICRO-INTERACTIONS ------ */
.card:before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -28px; top: -28px;
  width: 58px; height: 58px;
  background: var(--cs-accent);
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
  box-shadow: 0 0 44px 0 #FFD43B55;
}
.card:hover:before {
  opacity: 0.25;
  box-shadow: 0 0 80px 0 #FFD43B88;
}

.btn-primary, .btn-secondary {
  box-shadow: 0 2px 10px 2px #FFD43B11, 0 1px 2px 0 #17304A0c;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(.97);
}

/* --- GENERAL UTILITY CLASSES (SPACING) --- */
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --- Accessibility: FOCUS VISIBLE --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid #FFD43B;
  outline-offset: 2px;
}

/* --- SPECIAL: Z-INDEX LAYERS FOR NAV & COOKIES --- */
header,
footer,
.main,
.cookie-banner,
.cookie-modal,
.mobile-menu { z-index: initial; }

/* --- Hide scroll on mobile nav open --- */
body.menu-open {
  overflow: hidden;
}

/* ------ END Cosmic Shadow CSS Framework ------ */