/* --- 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #f3fafc;
  color: #15191d;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.63,.09,.97,.63);
}

/* --- BRAND COLORS --- */
:root {
  --color-primary: #186999;
  --color-secondary: #12755d;
  --color-accent: #f3fafc;
  --color-electric-yellow: #ffe900;
  --color-energy-orange: #ff7200;
  --color-magenta: #ff0d88;
  --color-electric-blue: #30aaff;
  --text-dark: #15191d;
  --text-light: #fff;
  --shadow-high: 0 6px 32px 0 rgba(24, 105, 153, 0.10);
  --shadow-card: 0 2px 16px 0 rgba(24,105,153,0.10);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900|Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.35rem; line-height: 1.22; }
h4 { font-size: 1.12rem; line-height: 1.25; }
h5, h6 { font-size: 1rem; }

.lead, .lead-text {
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}
small {
  color: #666;
  font-size: 0.93em;
}

p {
  margin-bottom: 14px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  transition: transform 0.22s cubic-bezier(.5,1.7,.45,.56), box-shadow 0.18s ease;
  border: 2px solid var(--color-primary);
}
.card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 32px -2px #30aaff33;
  border-color: var(--color-magenta);
  z-index: 2;
}

/* Utility: Spacing and Alignment patterns */
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 22px -3px #18699917;
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-electric-blue);
  max-width: 480px;
  color: #15191d;
  position: relative;
  z-index: 1;
}
.testimonial-card strong {
  color: var(--color-energy-orange);
  letter-spacing: 0.2px;
}

/* Ensure color contrast for testimonials */
.testimonial-card p {
  color: #1a2130;
  font-size: 1.01em;
}


/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  padding: 0 0 2px 0;
  box-shadow: 0 2px 12px 0 #30aaff12;
  position: sticky;
  top: 0;
  z-index: 49;
  width: 100%;
}
header > a img {
  height: 48px;
  margin: 10px 25px 10px 0;
}
header > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
header nav a {
  padding: 10px 16px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
  color: var(--color-primary);
  font-size: 1.08em;
}
header nav a.cta {
  background: linear-gradient(90deg, #30aaff 0%, #ff0d88 100%);
  color: #fff;
  box-shadow: 0 2px 8px #12755d12;
  padding: 10px 22px;
  border: none;
  font-weight: 900;
  font-size: 1.13em;
  border-radius: 32px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: linear-gradient(90deg, #ff7200 0%, #30aaff 100%);
  color: #fff;
  box-shadow: 0 5px 28px -6px #ff0d8833;
  outline: none;
}
header nav a:hover:not(.cta),
header nav a:focus:not(.cta) {
  color: var(--color-energy-orange);
  background: #eafcee;
}
header > nav {
  flex-wrap: wrap;
}

/* Mobile burger menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-magenta);
  font-size: 2.1rem;
  margin-left: auto;
  cursor: pointer;
  z-index: 51;
  padding: 6px 14px;
  transition: background 0.20s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ffe90022;
  border-radius: 50%;
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #186999 8%, #30aaff 65%, #ff0d88 100%);
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 20px 12px 28px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 2px 40px 0 #12755d11;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 24px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #ffe900;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.38em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 14px 12px 14px 0;
  border-radius: 0 32px 32px 0;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ff0d88;
  color: #ffe900;
  outline: none;
}

@media (max-width: 1020px) {
  header > nav {
    gap: 2px;
  }
  header > a img {
    margin-right: 10px;
  }
}

@media (max-width: 900px) {
  header > nav {
    gap: 0;
  }
}

@media (max-width: 820px) {
  .container {
    max-width: 99vw;
  }
}

@media (max-width: 900px) {
  header > nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 36px 6px;
  }
  h1 { font-size: 2.10rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.16rem; }

  .testimonial-card { max-width: 99vw; }
  .container { padding: 0 5px; }
  header > a img { height: 40px; }
}

@media (max-width: 540px) {
  .section { padding: 27px 2px; }
}

/* --- BUTTONS & CTAs --- */
.cta, .btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.13em;
  padding: 12px 30px;
  border-radius: 32px;
  background: linear-gradient(90deg, #186999 0%, #30aaff 45%, #ff0d88 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 14px 0 #ff0d8830;
  transition: background 0.2s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  text-align: center;
  margin: 10px 12px 10px 0;
  position: relative;
  z-index: 1;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: linear-gradient(90deg, #ffe900 0%, #12755d 85%, #ff7200 100%);
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.02) rotate(-1deg);
  box-shadow: 0 8px 23px -5px #ffe90055;
  outline: none;
}
.btn-secondary {
  background: linear-gradient(90deg, #12755d 0%, #30aaff 100%);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ffe900;
  color: var(--color-primary);
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px 0 #18699911;
  overflow: hidden;
  font-size: 1rem;
}
thead th {
  font-family: 'Montserrat', sans-serif;
  background: var(--color-electric-blue);
  color: #fff;
  padding: 14px 5px;
  font-size: 1.11em;
}
tbody td {
  padding: 10px 6px;
  border-bottom: 1px solid #e2eafc;
  color: #227;
}
tr:last-child td {
  border-bottom: none;
}

/* --- LISTS & FEATURES --- */
ul {
  margin-bottom: 22px;
  padding-left: 16px;
  list-style: none;
}
ul li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 1.5em;
  font-size: 1.07em;
}
ul li::before {
  content: '';
  position: absolute;
  display: inline-block;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #12755d 45%, #ff0d88 100%);
  border-radius: 50%;
}
ol li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 2em;
  font-size: 1.07em;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  box-shadow: 0 -2px 18px #30aaff11;
  padding: 34px 0 34px 0;
  font-size: 1em;
  color: #24405b;
  margin-top: 50px;
  width: 100%;
  flex-shrink: 0;
}
footer .container {
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 8px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.01em;
  border-radius: 3px;
  padding: 1px 4px;
  transition: background 0.18s, color 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-magenta);
  background: #f8edb7;
  outline: none;
}
footer p {
  text-align: center;
  margin: 4px 0;
  font-size: 0.98em;
  color: #24405b;
}
footer img {
  display: inline-block;
  height: 18px;
  margin-right: 4px;
  vertical-align: sub;
}


/* --- RESPONSIVE FLEX FOR LAYOUT SECTIONS --- */
@media (min-width: 700px) {
  .content-wrapper {
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .content-wrapper > * {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .content-wrapper,
  .text-image-section,
  .content-grid,
  .card-container,
  .feature-item {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
}
@media (max-width: 512px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.13rem; }
}


/* --- MICRO-INTERACTIONS, HIGHLIGHTS --- */
.cta:active, .btn:active {
  transform: scale(0.97);
}
.card:active {
  transform: scale(0.98) rotate(0.5deg);
}

/* Highlight effect for sections */
.section {
  background: linear-gradient(100deg, #f3fafc 80%, #12755d09 100%);
  border-left: 8px solid var(--color-electric-blue);
  box-shadow: var(--shadow-card);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 5px solid var(--color-energy-orange);
  box-shadow: 0 -2px 16px -4px #18699922;
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 14px 28px;
  font-size: 1.06em;
  animation: slideUpBanner 0.7s cubic-bezier(.1,.97,.43,1) 1;
}
@keyframes slideUpBanner {
  0% { transform: translateY(110%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 250px;
  color: #15191d;
  margin-right: 16px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1em;
  padding: 8px 15px;
  border-radius: 24px;
  border: none;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.14s;
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.cookie-reject {
  background: #ff0d88;
}
.cookie-banner button.cookie-settings {
  background: #ffe900;
  color: #15191d;
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--color-secondary);
  color: #fff;
  outline: none;
  transform: scale(1.04);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--color-primary);
  color: #ffe900;
}
.cookie-banner button.cookie-reject:hover {
  background: #24405b;
  color: #ff0d88;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(18, 105, 153, 0.74);
  align-items: center;
  justify-content: center;
  animation: appearOverlay 0.24s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes appearOverlay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 420px;
  width: 90vw;
  padding: 32px 26px 24px 26px;
  box-shadow: 0 6px 30px -6px #30aaff55;
  position: relative;
  animation: popUpModal 0.27s cubic-bezier(.1,.97,.43,1) 1;
}
@keyframes popUpModal {
  0% { transform: scale(0.7) translateY(40px); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--color-primary);
  margin-bottom: 7px;
  font-size: 1.14em;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1em;
  margin-bottom: 12px;
}
.cookie-modal input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #ff0d88;
  font-size: 1.5em;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 2;
}
.cookie-modal .cookie-modal-close:focus, .cookie-modal .cookie-modal-close:hover {
  color: #30aaff;
}
.cookie-modal .cookie-category {
  margin-bottom: 14px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* --- FORMS (if any in the future) --- */
input, select, textarea {
  border: 1.5px solid var(--color-electric-blue);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 10px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-magenta);
}

/* --- MISC UTILITY CLASSES --- */
.hide { display: none !important; }
.show { display: block !important; }
.text-center { text-align: center; }

/* --- VIBRANT/ENERGETIC VISUALS --- */
::-webkit-scrollbar {
  width: 10px;
  background: #f3fafc;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,#30aaff 10%,#ff0d88 95%);
  border-radius: 20px;
}
::-webkit-selection {
  background: #ff0d88;
  color: #ffe900;
}
::selection {
  background: #ff0d88;
  color: #ffe900;
}

/* --- DYNAMIC ACCENTS --- */
header,
.card, .cta, .btn, .section, .cookie-banner, .testimonial-card {
  transition: box-shadow 0.19s, border-color 0.16s, transform 0.19s;
}

/* --- ANIMATION CLASSES (for entrance, section, etc.) --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp {
  animation: fadeInUp 0.66s cubic-bezier(.12,.87,.85,1.06) both;
}

/* --- ACCESSIBILITY & FOCUS STYLE --- */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #ff0d88;
  outline-offset: 2px;
}

/* --- SUPPORT FOR CONTENT IMAGES/ELEMENTS IN TEXT-SECTION --- */
.text-section img {
  max-width: 54px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 8px;
}

/* --- MARGINS & WHITE SPACE --- */
section, .section, .card, .testimonial-card, .feature-item, .content-wrapper, .content-grid, .card-container {
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .section {
    margin-bottom: 60px;
  }
}

/* --- ENSURE NO OVERLAPPING & ENOUGH SPACING --- */
.card, .testimonial-card, .section, .feature-item {
  margin-bottom: 20px;
}

/* --- Z-INDEX STACKING --- */
header { z-index: 49; }
.mobile-menu { z-index: 200; }
.cookie-banner {z-index: 999;}
.cookie-modal-overlay {z-index: 1001;}

/* --- PRINT OPTIMIZATION (basic) --- */
@media print {
  header, nav, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
}
