/* =====================
   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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* ===================
   CUSTOM VARIABLES
   =================== */
:root {
  --color-primary: #1F2937;
  --color-secondary: #93C5FD;
  --color-accent: #E5E7EB;
  --color-white: #fff;
  --color-black: #171717;
  --color-error: #d32f2f;
  --shadow-md: 0 4px 16px 0 rgba(31,41,55,0.08), 0 1.5px 3px 0 rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px -4px rgba(31, 41, 55, 0.13), 0 3px 8px 0 rgba(0,0,0,0.10);
  --radius-base: 16px;
  --radius-card: 24px;
  --transition: 0.28s cubic-bezier(0.52,0,0.45,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===============
   TYPOGRAPHY BASE
   =============== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.6;
}
strong { font-weight: 700; }

/* ===================
   LAYOUT UTILITY CLASSES
   =================== */
.container {
  width: 100%;
  max-width: 1220px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .section { padding: 32px 0; }
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===================
   MAIN NAVIGATION
   =================== */
header {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 84px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 2px solid transparent;
  padding: 8px 4px 10px 4px;
  transition: color var(--transition), border-color var(--transition);
  border-radius: 5px;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-secondary);
  background: rgba(147,197,253,0.10);
}
.main-nav .cta-button {
  margin-left: 12px;
  padding: 12px 28px;
  font-size: 1.05rem;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ===================
   MOBILE MENU OVERLAY
   =================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 32px 16px 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 48px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  padding: 10px 0;
  border-radius: 5px;
  outline: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(147,197,253,0.13);
}
@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

/* ====================
   HERO SECTION STYLES
   ==================== */
.hero {
  background: var(--color-secondary);
  padding: 64px 0 48px 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: 0 6px 20px -8px rgba(31,41,55,0.20);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  text-shadow: 0 3px 24px rgba(31,41,55,0.10);
  margin-bottom: 4px;
}
.hero p {
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.hero .cta-button {
  font-size: 1.13rem;
}
@media (max-width: 600px) {
  .hero {
    padding: 44px 0 22px 0;
    border-radius: 0 0 12px 12px;
  }
  .hero h1 { font-size: 1.75rem; }
}

/* ==========================
   FLEXBOX UTILITY CONTAINERS
   ========================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.features-grid > div {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 290px;
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px 20px 18px 20px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.features-grid > div:hover,
.features-grid > div:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02);
}
.features-grid img {
  width: 46px; height: 46px;
  margin-bottom: 6px;
  filter: drop-shadow(0 1.5px 8px rgba(31,41,55,0.09));
}

/* CARDS: General */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  flex: 1 1 360px;
  margin-bottom: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.01);
}

.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;
}
@media (max-width: 768px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  margin-bottom: 22px;
  border-radius: var(--radius-card);
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  max-width: 560px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-family: var(--font-display);
  color: var(--color-black);
  font-weight: 700;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 600px) {
  .testimonial-card { padding: 16px; }
}

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

/* =====================
   CTA BUTTONS & LINKS
   ===================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 14px 36px;
  margin-top: 8px;
  box-shadow: 0 2.5px 16px -2.5px rgba(31, 41, 55, 0.17);
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  box-shadow: 0 4px 32px -8px var(--color-secondary), 0 6px 16px -6px #1F293717;
  transform: scale(1.06) translateY(-2.5px);
}

/* =====================
   LISTS
   ===================== */
ul {
  list-style: disc inside;
  margin-left: 18px;
  margin-bottom: 16px;
}
li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding-left: 4px;
}

/* =====================
   CONTACT & DETAILS
   ===================== */
.contact-notice {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-base);
  font-size: 1.06rem;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  box-shadow: 0 -3px 16px -6px rgba(31,41,55,0.19);
  margin-top: 52px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 0 26px 0;
}
.footer-main > div {
  flex: 1 1 220px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a {
  display: inline-flex;
  background: var(--color-secondary);
  border-radius: 50%;
  padding: 6px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}
footer h3 {
  color: var(--color-secondary);
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 9px;
  font-family: var(--font-display);
}
footer p, footer a {
  color: var(--color-accent);
  font-size: 1em;
}
footer a { text-decoration: none; }
footer a:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.copyright {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-accent);
  font-size: 0.93rem;
  padding-bottom: 18px;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }
}

/* =====================
   RESPONSIVE STYLES
   ===================== */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .footer-main, .features-grid, .card-container, .content-grid {
    gap: 18px;
  }
  .hero .container, .footer-main, .container {
    padding: 0 8px;
  }
}
@media (max-width: 600px) {
  .section, .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 22px 20px 18px 20px;
  z-index: 1110;
  box-shadow: 0 -3px 12px -2px rgba(31,41,55,0.19);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  transition: transform var(--transition), opacity var(--transition);
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.6;
}
.cookie-btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  outline: none;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  margin-top: 4px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-error);
  color: var(--color-white);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(31,41,55,0.36);
  z-index: 1111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 35px 28px 30px 28px;
  min-width: 300px;
  max-width: 92vw;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: cookieModalIn 0.52s cubic-bezier(0.77,0,0.175,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translateY(68px) scale(0.93); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.14rem;
  font-family: var(--font-display);
  margin-bottom: 6px;
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal .toggle {
  width: 34px; height: 20px;
  background: var(--color-accent);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--color-secondary);
  margin-left: 8px;
}
.cookie-modal .toggle input[type=checkbox] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-modal .toggle span {
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-secondary);
  position: absolute;
  left: 2px; top: 2px;
  transition: left var(--transition), background var(--transition);
}
.cookie-modal .toggle input[type=checkbox]:checked + span {
  left: 14px;
  background: var(--color-primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: var(--color-secondary);
  border: none;
  color: var(--color-primary);
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================
   GEOMETRIC VISUAL ACCENTS
   ======================== */
.features-grid > div::after,
.card::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -14px;
  width: 56px; height: 20px;
  background: var(--color-secondary);
  border-radius: 50% 33% 67% 50%/50% 24% 76% 51%;
  opacity: 0.18;
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}
.features-grid > div:hover::after,
.card:hover::after {
  opacity: 0.30;
  filter: blur(2px);
}

/* accessibility & selection */
::-moz-selection { background: var(--color-secondary); color: var(--color-primary); }
::selection { background: var(--color-secondary); color: var(--color-primary); }
:focus-visible { outline: 2.5px solid var(--color-secondary); outline-offset: 1.5px; }

/* ========================
   SPECIAL THANK-YOU/INFO
   ======================== */
.thank-you {
  text-align: center;
  padding: 44px 10px;
}
.thank-you ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0 0;
}
/* ===============
   PRINT STYLES
   =============== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  .section { margin-bottom: 28px !important; }
  body { background: #fff; color: #000; }
}
