/* -----------------------------------------------------------
   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, strong, sub, sup, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, footer, header, nav, section, main, article, aside, figure, figcaption, details, summary {
  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%; }
article, aside, details, figcaption, figure, footer, header, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F1ECE7;
  color: #21222A;
  font-family: 'Lato', Arial, Verdana, sans-serif;
  font-size: 16px;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -----------------------------------------------------------
   BASIC LAYOUT & CONTAINERS
------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(58,39,70,0.06), 0 1.5px 4px 0 rgba(122, 92, 151, 0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -----------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #3A2746;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;   margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, a, blockquote {
  font-family: 'Lato', Arial, Verdana, sans-serif;
  color: #23233a;
  font-size: 1rem;
  margin-bottom: 0;
}
blockquote {
  font-size: 1.175rem;
  font-style: italic;
  color: #3A2746;
  margin: 0 0 8px 0;
}
strong {
  font-weight: 700;
  color: #3A2746;
}
small {
  font-size: 0.92rem;
  color: #666;
}
.tagline {
  display: inline-block;
  font-family: 'Lato', Arial, Verdana, sans-serif;
  color: #7A5C97;
  background: #ECE6F8;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 1.125rem;
}

ul, ol {
  padding-left: 1.5em;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li:not(.feature-item):before {
  content: '\2022';
  color: #7A5C97;
  position: absolute;
  left: -1.3em;
}

/* -----------------------------------------------------------
   BUTTONS
------------------------------------------------------------*/
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: #3A2746;
  color: #fff !important;
  border-radius: 8px;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 7px rgba(58,39,70,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-top: 12px;
  text-decoration: none;
}
.btn-primary:focus,
.btn-primary:hover {
  background: #7A5C97;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(122,92,151,0.13), 0 2px 7px rgba(58,39,70,0.10);
  outline: none;
}

/* -----------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1.5px 9px 0 rgba(58,39,70,0.06);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 0;
  padding: 0 20px;
}
header img {
  max-height: 46px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav a {
  font-size: 1.04rem;
  color: #3A2746;
  font-weight: 500;
  position: relative;
  transition: color 0.18s;
  padding: 6px 2px;
}
nav a:focus, nav a:hover {
  color: #7A5C97;
}

.header .btn-primary {
  margin-left: 32px; /* For desktop layout, separate from nav */
  margin-top: 0;
}

header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #3A2746;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 102;
  transition: color 0.17s;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  color: #7A5C97;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #3A2746;
  color: #fff;
  z-index: 110;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.25s, transform 0.33s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.33s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.27s, transform 0.37s cubic-bezier(0.45,0,0.35,1), visibility 0s;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 26px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 120;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: #7A5C97; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 36px;
  gap: 22px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Lato', Arial, Verdana, sans-serif;
  padding: 10px 0;
  font-weight: 600;
  border-radius: 4px;
  width: 100%;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #7A5C97;
  color: #fff;
}

@media (max-width: 1040px) {
  header .container {
    gap: 16px;
    padding: 0 12px;
  }
  nav {
    gap: 19px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* -----------------------------------------------------------
   HERO SECTIONS
------------------------------------------------------------*/
.hero {
  background: #ECE6F8;
  padding: 52px 0 50px 0;
  border-radius: 0 0 26px 26px;
  margin-bottom: 32px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 730px;
  gap: 24px;
}

/* -----------------------------------------------------------
   FLEX-BASED CONTENT LAYOUTS
------------------------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  box-shadow: 0 1.5px 8px 0 rgba(122, 92, 151, 0.045);
  border-radius: 12px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  padding: 30px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 16px 0 rgba(58,39,70,0.09);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  width: 38px; height: 38px; margin-bottom: 2px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1.5px 7px 0 rgba(58,39,70,0.08);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.21s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(122,92,151,0.07);
  transform: translateY(-3px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

/* -----------------------------------------------------------
   TESTIMONIALS
------------------------------------------------------------*/
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8F7FC;
  color: #23233a;
  padding: 20px 24px;
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(122,92,151,0.07);
  max-width: 360px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 16px;
  min-height: 140px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.testimonial-card blockquote {
  color: #3A2746;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card p {
  font-size: 0.99rem;
  color: #444a61;
  margin: 0;
}
.testimonial-card strong {
  color: #22203A;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(58,39,70,0.083);
  transform: translateY(-3px) scale(1.02);
}

/* -----------------------------------------------------------
   FOOTER
------------------------------------------------------------*/
footer {
  background: #3A2746;
  padding: 38px 0 22px 0;
  color: #fff;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  margin-top: 60px;
  box-shadow: 0 -4px 16px rgba(58,39,70,0.045);
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #ECE6F8;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.18s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #E7CDEF;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 0.98rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ECE6F8;
}
footer img {
  width: 21px;
  height: 21px;
  display: inline-block;
}
footer > .container > span {
  margin-top: 24px;
  font-size: 0.98rem;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .footer-nav, .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-contact {
    margin-bottom: 12px;
  }
}

/* -----------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #23233a;
  box-shadow: 0 -2px 18px 0 rgba(58, 39, 70, 0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  z-index: 500;
  min-height: 60px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.45,0,0.32,1), opacity 0.2s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.45,0,0.32,1), opacity 0.2s;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-consent-banner button {
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #ECE6F8;
  color: #3A2746;
  transition: background 0.15s, color 0.15s;
  margin-left: 0;
}
.cookie-consent-banner button.accept {
  background: #3A2746;
  color: #fff;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #7A5C97;
}
.cookie-consent-banner button.reject {
  background: #d1d3df;
  color: #3A2746;
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: #ECE6F8;
  color: #7A5C97;
}
.cookie-consent-banner button.settings {
  background: #fff;
  border: 1px solid #7A5C97;
  color: #7A5C97;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #ECE6F8;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,22,53,0.33);
  z-index: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  padding: 30px 28px 22px 28px;
  border-radius: 16px;
  box-shadow: 0 7px 44px -8px rgba(58,39,70,0.18);
  width: 95%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.22s, opacity 0.18s;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #3A2746;
  cursor: pointer;
  z-index: 3;
  padding: 2px;
}
.cookie-category {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #23233a;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #7A5C97;
  margin-left: 16px;
}
.cookie-category .cookie-essential {
  color: #8e89a9;
  font-size: 0.96rem;
  font-weight: 500;
  margin-left: 10px;
}

.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 16px;
}
.cookie-modal button {
  padding: 8px 17px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #ECE6F8;
  color: #3A2746;
  transition: background 0.15s, color 0.15s;
  margin-left: 0;
}
.cookie-modal button.save {
  background: #3A2746;
  color: #fff;
}
.cookie-modal button.save:hover,
.cookie-modal button.save:focus {
  background: #7A5C97;
}
.cookie-modal button.cancel {
  background: #fff;
  border: 1px solid #7A5C97;
  color: #7A5C97;
}
.cookie-modal button.cancel:hover,
.cookie-modal button.cancel:focus {
  background: #ECE6F8;
}

/* -----------------------------------------------------------
   RESPONSIVE DESIGN & SPACING
------------------------------------------------------------*/
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
  .section {
    padding: 22px 4px;
    border-radius: 10px;
    margin-bottom: 38px;
  }
  .hero {
    padding: 30px 0 24px 0;
    border-radius: 0 0 14px 14px;
    margin-bottom: 19px;
  }
  .hero .content-wrapper {
    gap: 17px;
  }
  .feature-grid {
    gap: 12px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: 99vw;
    width: 100%;
    padding: 16px 13px 16px 13px;
    gap: 10px;
  }
  .testimonials {
    gap: 13px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 99vw;
    width: 100%;
    padding: 18px 10px;
    margin-bottom: 11px;
    gap: 9px;
  }
  .footer-nav {
    gap: 11px;
  }
  .footer-contact {
    gap: 10px;
    font-size: 0.93rem;
  }
  footer {
    padding: 16px 0 13px 0;
    border-radius: 9px 9px 0 0;
    margin-top: 34px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px 11px 10px;
    font-size: 0.96rem;
    left: 3vw;
    right: 3vw;
    min-height: 44px;
    border-radius: 10px 10px 0 0;
  }
  .cookie-consent-banner .cookie-actions {
    gap: 7px;
  }
  .cookie-modal {
    padding: 14px 9px 14px 15px;
    border-radius: 8px;
    max-width: 97vw;
  }
}

@media (max-width: 610px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.05rem; }
}

/* -----------------------------------------------------------
   MICRO-INTERACTIONS / TRANSITIONS
------------------------------------------------------------*/
a, .btn-primary, .testimonials .testimonial-card, .feature-grid > div,
.card, .footer-nav a, .mobile-menu, .cookie-consent-banner, .cookie-modal, .cookie-consent-banner button, .mobile-nav a {
  transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}

/* Focus indicators */
a:focus-visible, .btn-primary:focus-visible, button:focus-visible, .cookie-modal button:focus-visible, .cookie-consent-banner button:focus-visible {
  outline: 2px solid #7A5C97;
  outline-offset: 2px;
}

/* HIDE OUTLINES only for mouse users */
:focus:not(:focus-visible) {
  outline: none !important;
}

/* -----------------------------------------------------------
   GENERAL UTILITY CLASSES
------------------------------------------------------------*/
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* -----------------------------------------------------------
  END OF CSS
------------------------------------------------------------*/
