/* --- 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; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F2F6FA; color: #263238; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; background: transparent; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* --- BRAND FONTS & COLORS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
:root {
  --color-primary: #15456A;
  --color-secondary: #F2F6FA;
  --color-accent: #F9B233;
  --color-dark: #263238;
  --color-light: #fff;
  --color-artistic1: #ed4887;
  --color-artistic2: #2cd3ae;
  --color-artistic3: #7b5cff;
  --color-neutral: #eeeeee;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-secondary);
  min-height: 100vh;
}

main {
  flex: 1 1 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 1px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--color-artistic1);
  text-shadow: 1px 2px 0 var(--color-accent), 0 1px 8px rgba(121,0,90,0.05);
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-artistic2);
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-artistic3);
  margin-bottom: 8px;
}
h4, h5, h6 {
  color: var(--color-primary);
}
p, ul, ol, address, .text-section, .subheadline {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-dark);
  line-height: 1.66;
}
dt, strong, b {
  font-weight: 700;
}

.subheadline {
  font-size: 1.2rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  opacity: 0.86;
}


/* --- ARTISTIC DECORATIVE ELEMENTS --- */
.hero {
  background: linear-gradient(120deg, var(--color-secondary) 70%, var(--color-artistic1) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 30px;
  width: 190px;
  height: 190px;
  background: var(--color-artistic2);
  border-radius: 50%;
  opacity: 0.13;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero .content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-section {
  background: var(--color-artistic3);
  color: var(--color-light);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(123,92,255,0.08);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
}
.cta-section h2, .cta-section p {
  color: var(--color-light);
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
}


/* --- CONTAINER & WRAPPING --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
  border-radius: 16px;
}
section:last-child {
  margin-bottom: 0;
}

/* --- NAVIGATION --- */
header {
  background: var(--color-light);
  box-shadow: 0 2px 16px rgba(21,69,106,0.05);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 64px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  outline: none;
}
nav a.cta, .cta {
  background: var(--color-artistic1);
  color: var(--color-light) !important;
  padding: 10px 28px;
  border-radius: 32px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(249,178,51,0.07);
  transition: background 0.18s, transform 0.16s;
  margin-left: 12px;
  border: none;
  outline: none;
}
nav a.cta:hover, .cta:hover, nav a.cta:focus, .cta:focus {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  transform: translateY(-2px) scale(1.04);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  color: var(--color-artistic1);
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 130;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21, 69, 106, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 20px 0 20px;
  transition: transform 0.4s cubic-bezier(.47,1.64,.41,.8);
  transform: translateX(-100vw);
  z-index: 2000;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 28px;
  margin-right: 10px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-top: 0px;
}
.mobile-nav a {
  color: var(--color-light);
  font-size: 1.2rem;
  padding: 8px 0;
  width: 100%;
  border-radius: 8px;
  font-family: var(--font-display);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* --- FLEXBOX LAYOUT PATTERNS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  align-items: stretch;
}
.features-grid > div {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(33,51,79,0.07);
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 24px;
  min-width: 220px;
  min-height: 200px;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-artistic3);
  transition: box-shadow 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 28px rgba(249,178,51,0.12);
  border-left-color: var(--color-artistic2);
}
.features-grid img {
  width: 38px;
  height: 38px;
  display: inline-block;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(33,51,79,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 16px;
  min-width: 220px;
  min-height: 140px;
  transition: box-shadow 0.16s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(123,92,255,0.17);
}
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: var(--color-light);
  box-shadow: 0 2px 18px rgba(21,69,106,0.07);
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex-wrap: wrap;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow 0.23s, border-color 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(237,72,135,.10);
  border-left-color: var(--color-artistic1);
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.07rem;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-primary);
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- FORMS, LISTS, ETC. --- */
ul, ol {
  margin-bottom: 16px;
  padding-left: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  padding-left: 16px;
  position: relative;
}
ul li:before {
  content: '•';
  color: var(--color-artistic1);
  position: absolute;
  left: 0;
  top: 0.4em;
  font-size: 1.2em;
}

address {
  margin-bottom: 12px;
  font-style: normal;
  color: var(--color-artistic3);
  font-size: 1rem;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 42px 0 15px 0;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -3px 32px rgba(33,51,79,0.07);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 7px;
}
.footer-nav a {
  color: var(--color-artistic2);
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: color 0.1s;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  align-items: center;
}
.footer-contact img {
  width: 18px;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-meta {
  font-size: .97rem;
  opacity: 0.72;
  margin-top: 12px;
}

/* --- BUTTONS & INTERACTION --- */
button, .cta, a.cta {
  cursor: pointer;
  font-family: var(--font-display);
  border: none;
  transition: background 0.15s, color 0.13s, box-shadow 0.12s, transform 0.16s;
}
button:active, .cta:active, a.cta:active {
  transform: scale(0.97);
}

/* --- ARTISTIC HIGHLIGHT EFFECTS --- */
h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-accent);
  margin-top: 8px;
  margin-bottom: 6px;
}
h2, h3 {
  position: relative;
  z-index: 1;
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: var(--color-artistic2);
  color: var(--color-dark);
  box-shadow: 0 -3px 20px rgba(33,51,79,0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 3000;
  padding: 24px 10vw 24px 22vw;
  animation: bannerfadein 0.45s cubic-bezier(.56,.06,.41,.95);
  font-size: 1rem;
}
@keyframes bannerfadein {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  margin: 0;
  color: var(--color-dark);
  max-width: 400px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 24px;
  border-radius: 18px;
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0px;
  transition: background 0.18s, color 0.14s;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-artistic1);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-artistic2);
  color: var(--color-dark);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,69,106,0.8);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.35s cubic-bezier(.56,.06,.41,.95);
}
@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--color-light);
  border-radius: 20px;
  min-width: 320px;
  max-width: 99vw;
  max-height: 87vh;
  padding: 38px 27px 22px 27px;
  box-shadow: 0 6px 48px rgba(21,69,106,0.16);
  position: relative;
  animation: modalshow 0.37s cubic-bezier(.42,1.32,.57,.79);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalshow {
  0% { transform: translateY(70px) scale(0.8); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-artistic1);
  margin-bottom: 12px;
}
.cookie-modal-close {
  background: none;
  border: none;
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 2;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--color-primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-neutral);
  border-radius: 12px;
  position: relative;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle.active {
  background: var(--color-accent);
}
.cookie-toggle input[type=checkbox] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 12px;
  background: var(--color-primary);
  transition: left 0.16s, background 0.19s;
}
.cookie-toggle.active .cookie-toggle-knob {
  left: 22px;
  background: var(--color-artistic1);
}
.cookie-category .desc {
  font-size: .98rem;
  color: #444;
  opacity: 0.77;
  margin-left: 6px;
}
.cookie-modal .cookie-footer {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}


/* --- MEDIA QUERIES / RESPONSIVENESS --- */
@media (max-width: 1100px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 780px;
  }
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container, .content-wrapper { padding: 0 6px; }
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 48px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 6px;
  }
  section, .cta-section {
    padding: 20px 6px;
    margin-bottom: 32px;
  }
  .testimonial-card, .card {
    padding: 16px 9px;
    margin-bottom: 18px;
  }
  .hero {
    min-height: 180px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .hero .content-wrapper {
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 8vw;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-banner-buttons {
    gap: 9px;
    flex-wrap: wrap;
  }
  .cookie-modal {
    min-width: 96vw;
    padding: 33px 7px 16px 7px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 0.99rem; }
  .cookie-modal { padding: 12px 3px 12px 3px; }
}

/* --- INTERACTIONS & ANIMATIONS --- */
.cta, nav a.cta, .cta-section .cta {
  position: relative;
  overflow: hidden;
}
.cta:after, nav a.cta:after, .cta-section .cta:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.11);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s;
}
.cta:active:after, nav a.cta:active:after, .cta-section .cta:active:after {
  opacity: 0.64;
  transition: none;
}

a, button {
  transition: background 0.17s, color 0.17s, transform 0.09s;
}
a:active, button:active {
  transform: scale(0.97);
}


/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-artistic3);
  border-radius: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-secondary);
}

/* --- ENSURE NO OVERLAPS, PROPER SPACING --- */
section, .cta-section, .testimonial-card, .features-grid > div, .card {
  margin-bottom: 20px;
}

/* --- HIGH CONTRAST IN TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  color: #222;
  border-left: 6px solid var(--color-accent);
}
.testimonial-card p, .testimonial-card strong {
  color: #1e2c40;
}

/* --- HIDE ELEMENTS UNTIL JS MOUNTS (for banner/modal) --- */
.cookie-banner[hidden], .cookie-modal-overlay[hidden], .mobile-menu[hidden] {
  display: none !important;
}
