/* ======== CSS RESET & BASE ======== */
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;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F0F0F5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1A2A3A;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======== CSS VARIABLES (w/ Fallbacks) ======== */
:root {
  --primary: #1A2A3A;
  --secondary: #F0F0F5;
  --accent: #3FA34D;
  --accent-alt: #FF487A; /* Artistic pop color for creative accents */
  --info-bg: #E6FFD9;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}


/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  color: var(--primary);
  font-weight: bold;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
p, ul, ol, li, a, span, label, strong {
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
}
strong {
  font-weight: bold;
}
p {
  margin-bottom: 16px;
}

/* Artistic Font Flair */
h1, h2 {
  font-family: 'Roboto Slab', serif;
  text-shadow: 0 2px 12px rgba(63,163,77, 0.12), 0 1px 0 var(--accent-alt);
  letter-spacing: 2px;
}


/* ========== LAYOUT ========== */
.container {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 20px;
}
.content-wrapper {
  margin-top: 10px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.88);
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(26,42,58,0.10);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 280px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(31, 42, 58, 0.10);
  padding: 24px 20px;
  transition: transform .22s cubic-bezier(.77,0,.18,1), box-shadow .22s;
  position: relative;
  border: 2.5px solid var(--accent-alt);
  z-index: 1;
}
.card:hover,
.card:focus {
  transform: translateY(-8px) scale(1.025) rotate(-1deg);
  box-shadow: 0 10px 38px 0 rgba(63, 163, 77, 0.17);
  border-color: var(--accent);
  z-index: 2;
}
.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;
  background: #fff;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 3px 16px rgba(26,42,58,0.11);
  margin-bottom: 24px;
  max-width: 520px;
  border-left: 6px solid var(--accent-alt);
  border-right: 6px solid var(--accent);
  color: #222;
  font-style: italic;
  position: relative;
}
.testimonial-card strong {
  font-style: normal;
  color: var(--primary);
  margin-left: 10px;
  font-size: 1.025em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--info-bg);
  padding: 18px 18px 18px 54px;
  border-radius: 15px;
  margin-bottom: 16px;
  min-width: 240px;
  position: relative;
}
.feature-item img {
  position: absolute;
  left: 16px; top: 20px;
  width: 26px;
  height: 26px;
}

/* General Lists Styles */
ul, ol {
  margin-left: 0;
  padding-left: 0;
}
ul li,
ol li {
  margin-bottom: 12px;
  line-height: 1.66;
  position: relative;
  padding-left: 0;
}
ul li img {
  width: 22px; height: 22px; margin-right: 10px; vertical-align: middle;
  transform: translateY(3px);
}
/* Artistic bullet for list items */
ul li:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-alt) 65%, var(--accent) 100%);
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
ul li img + strong:before, ul li img:before {
  content: none !important;
}

/* Blockquotes and code (artistic flair) */
blockquote {
  background: rgba(255,232,247,0.25);
  border-left: 4px solid var(--accent-alt);
  margin: 20px 0 24px 0;
  padding: 16px 28px;
  font-style: italic;
  border-radius: 9px;
}


/* ========== BUTTONS & INTERACTIONS ========== */
.cta-btn {
  background: linear-gradient(96deg, var(--accent-alt), var(--accent) 70%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 36px;
  font-family: var(--font-display), serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(63,163,77,0.12);
  margin-top: 17px;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  position: relative;
  transition: background 0.3s, transform .20s cubic-bezier(.74,.42,.3,1), box-shadow 0.20s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(96deg, var(--accent), var(--accent-alt) 70%);
  transform: scale(1.045) translateY(-3px) rotate(-2deg);
  box-shadow: 0 9px 48px 0 rgba(255,72,122,0.12);
  outline: none;
}
nav.main-nav a.cta-btn {
  margin-left: 18px;
}

/* 
======== HEADER, NAVIGATION & MOBILE MENU ======== */
header {
  background: #fff;
  box-shadow: 0 4px 32px rgba(26,42,58,0.07);
  position: sticky;
  top: 0;
  z-index: 300;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 24px;
  height: 68px;
}
.main-nav img {
  height: 46px;
  margin-right: 24px;
}
.main-nav a, .main-nav a:visited {
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 7px 14px;
  border-radius: 26px;
  transition: color .17s, background .14s;
  letter-spacing: 0.2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent-alt);
  background: rgba(63,163,77,0.09);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent-alt);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  position: absolute;
  right: 22px;
  top: 12px;
  cursor: pointer;
  z-index: 502;
  transition: box-shadow 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(63,163,77,0.15);
  outline: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,42,58,0.97);
  z-index: 510;
  padding: 0 0;
  transform: translateX(-100%);
  transition: transform 0.27s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--accent-alt);
  color: #fff;
  border: none;
  font-size: 2.3rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1005;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: center;
  padding-top: 80px;
  gap: 14px;
}
.mobile-nav a, .mobile-nav a:visited {
  color: #fff;
  font-family: var(--font-display), serif;
  font-size: 1.4rem;
  background: none;
  padding: 11px 18px;
  border-radius: 36px;
  margin-bottom: 6px;
  font-weight: 700;
  transition: background .18s, color .18s, transform .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-alt);
  color: #fff;
  transform: scale(1.08) skew(-2deg);
}
.mobile-nav a:last-child {
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  margin-top: 16px;
}


/* Hide main nav on mobile */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}


/* ========== FOOTER ========== */
footer {
  background: #1A2A3A;
  color: #fff;
  padding: 38px 0 18px 0;
  margin-top: 48px;
}
footer .container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  opacity: 0.92;
  transition: color 0.15s, text-shadow .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-alt);
  text-shadow: 0 1px 9px rgba(255,72,122,0.23);
}
.footer-contact {
  font-size: 0.97rem;
  margin-bottom: 7px;
  opacity: .85;
  letter-spacing: 0.08px;
}
.footer-contact a {
  color: var(--accent-alt);
  font-weight: bold;
}
.legal-info {
  opacity: .77;
  font-size: 0.955rem;
}


/* ========== SECTION STYLING ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 25px 7px;
    margin-bottom: 34px;
  }
}


/* Distinct background for hero/front sections for artistic effect */
section:first-of-type {
  background: linear-gradient(112deg, #F0F0F5 60%, #F9F2FC 110%);
  border-bottom-left-radius: 60px 44px;
  border-bottom-right-radius: 120px 120px;
  box-shadow: 0 10px 60px 0 rgba(255,72,122,.09);
}


/* ========== RESPONSIVE FLEXBOX, ALIGNMENT & SPACING ========== */
@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 99vw;
  }
  .feature-item {
    min-width: unset;
  }
}


/* ======= LINKS & INTERACTIONS ======= */
a {
  color: var(--accent-alt);
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline solid var(--accent-alt) 2px;
  outline: none;
}


/* ========== FORM ELEMENTS (if any appear in future) ========== */
input, select, textarea, button {
  font-family: var(--font-body), sans-serif;
  font-size: 1.07rem;
  border-radius: 7px;
  border: 1.5px solid var(--accent-alt);
  padding: 8px 13px;
  background: #fff;
  margin-bottom: 15px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  outline: 1.5px solid var(--accent-alt);
}


/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(26,42,58,0.20);
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 17px 22px 17px 22px;
  transition: transform 0.3s ease, opacity 0.28s;
}
.cookie-consent-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-btn {
  border: none;
  border-radius: 36px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(63,163,77,0.09);
  margin-right: 3px;
  transition: background 0.23s, transform .17s;
}
.cookie-btn.accept {
  background: var(--accent);
}
.cookie-btn.reject {
  background: var(--accent-alt);
}
.cookie-btn.settings {
  background: #F0F0F5;
  color: var(--primary);
  border: 1.5px solid var(--accent-alt);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07);
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent-alt);
  color: #fff;
  border-color: var(--accent-alt);
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px 13px 10px;
  }
}

/* Modal for Cookie Preferences */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,34,58,0.82);
  z-index: 1180;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s, transform 0.3s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.97);
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 28px;
  max-width: 370px;
  padding: 34px 21px 26px 21px;
  box-shadow: 0 8px 42px 0 rgba(63,163,77,0.21);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 13px;
  background: none;
  border: none;
  color: var(--accent-alt);
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1105;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
  outline: none;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
  font-size: 1.1rem;
}
.cookie-modal-category .toggle {
  margin-left: auto;
}
.cookie-modal-category .toggle[disabled] {
  opacity: 0.6;
}
.cookie-modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

/* Artistic animated toggle for cookies */
.toggle {
  width: 36px;
  height: 20px;
  background: #F0F0F5;
  border-radius: 9px;
  border: 1.5px solid var(--accent-alt);
  position: relative;
  cursor: pointer;
  transition: background .19s;
}
.toggle:after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent-alt);
  transition: left .18s, background .21s;
}
.toggle[aria-checked="true"] {
  background: var(--accent);
}
.toggle[aria-checked="true"]:after {
  left: 16px;
  background: var(--accent);
}
.toggle[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.22s cubic-bezier(.77,0,.18,1),
              background 0.25s cubic-bezier(.77,0,.18,1),
              color 0.17s cubic-bezier(.77,0,.18,1),
              border-color .13s,
              transform 0.21s cubic-bezier(.74,.42,.3,1);
}


/* ========== CREATIVE/ARTISTIC ELEMENTS ========== */
/* Art paint blob on the left as SVG as decorative (absolutely positioned, visually hidden on mobile) */
@media (min-width: 1200px) {
  body:before {
    content: '';
    background: url('../assets/paint-blob.svg') no-repeat left top/400px auto;
    position: fixed;
    z-index: 0;
    left: 0; top: 0;
    width: 400px; height: 520px;
    pointer-events: none;
    opacity: 0.11;
    mix-blend-mode: multiply;
  }
}


/* ========== RESPONSIVE & MOBILE ADJUSTMENTS ========== */
@media (max-width: 650px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.44rem; }
  .footer-nav, .footer-contact { flex-direction: column; gap: 8px; }
}
@media (max-width: 400px) {
  h1, h2 { font-size: 1.17rem !important; }
  .container { padding: 0 4px; }
}

/* ======= SPACING GUARDRAILS (NO OVERLAP) ======= */
.card, .testimonial-card, .feature-item, .section, .content-wrapper {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .feature-item:last-child, .section:last-child {
  margin-bottom: 0 !important;
}

/* Artistic line divider for creative look */
.section:not(:first-child) {
  border-top: 3px dashed var(--accent-alt);
  margin-top: 25px;
}

/* Hide scrollbar for smooth artistic touch */
body::-webkit-scrollbar {
  width: 12px;
  background: #F0F0F5;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, var(--accent-alt), var(--accent));
  border-radius: 6px;
}


/* ========== PRINT STYLES ========== */
@media print {
  header, .mobile-menu, footer, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
}
