/* =====================
   QuartzLife - Style CSS
   =====================
   Soft Pastel Theme | Flexbox Only | Responsive | Animations | Cookie Banner
*/

/* =========================
   CSS RESET & BASE NORMALIZE
   ========================= */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9FCFE;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #22303a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #0A415D;
  text-decoration: none;
  transition: color 0.17s;
}

a:focus {
  outline: 2px solid #FFC6C8;
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #0A415D;
  margin-bottom: 10px;
  font-weight: 600;
}
h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.5rem; line-height: 1.22; margin-bottom: 16px; }
h3 { font-size: 1.15rem; line-height: 1.18; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; }

p, li, blockquote {
  font-size: 1rem;
  color: #22303a;
}
blockquote {
  margin: 0 0 12px 0;
  font-size: 1.13rem;
  color: #174062;
  font-style: italic;
}

strong {
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 0 auto;
}

/* ==================
   COLORS & PASTELS
   ================== */
:root {
  --ql-blue: #0A415D;
  --ql-orange: #FF7043;
  --ql-accent: #F3F9FB;
  --ql-deep-blue: #174062;
  --ql-mint: #C6ECE7;
  --ql-lilac: #E7E6FB;
  --ql-light-pink: #FFC6C8;
  --ql-yellow: #FFE8B3;
  --ql-soft-violet: #F6E1FD;
  --ql-bg-main: #F9FCFE;
}

body {
  background: var(--ql-bg-main);
}

/* Hero & Soft Pastel Color Gradients */
.hero {
  background: linear-gradient(120deg,
      var(--ql-lilac) 0%, var(--ql-accent) 65%, var(--ql-mint) 100%);
  padding: 60px 0 50px 0;
}

.hero h1, .hero h2 {
  color: var(--ql-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
}

.hero p {
  font-size: 1.13rem;
  color: #45525e;
  margin-bottom: 18px;
}


/* =============
   HEADER & NAV
   ============= */
header {
  background: var(--ql-bg-main);
  box-shadow: 0 2px 12px 0 rgba(20,66,93,0.05);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
  min-height: 65px;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  height: 42px;
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  color: var(--ql-blue);
  border-radius: 6px;
  padding: 6px 13px;
  transition: background 0.14s, color 0.13s;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--ql-mint);
  color: var(--ql-orange);
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, var(--ql-blue) 0%, var(--ql-lilac) 100%);
  background-color: var(--ql-blue);
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  box-shadow: 0 2px 12px rgba(170,170,200,0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  margin-left: 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, var(--ql-orange) 15%, var(--ql-yellow) 80%);
  color: var(--ql-blue);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(241,123,88,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: var(--ql-lilac);
  border: none;
  font-size: 2rem;
  color: var(--ql-blue);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.15s;
  cursor: pointer;
  margin-left: 8px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--ql-light-pink);
  color: var(--ql-orange);
}

/* ==========
   MOBILE NAV
   ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 100vw;
  width: 93vw;
  max-width: 340px;
  background: linear-gradient(120deg, var(--ql-lilac) 40%, var(--ql-mint) 100%);
  box-shadow: -3px 0 24px 8px rgba(30,40,60,0.08);
  z-index: 55;
  padding: 38px 28px 26px 24px;
  transition: left 0.32s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu.open {
  left: calc(100vw - min(93vw, 340px));  /* Slide in from right */
}
.mobile-menu .mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--ql-blue);
  font-size: 1.7rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  color: var(--ql-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 11px 2px;
  border-radius: 7px;
  color: var(--ql-blue);
  background: none;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--ql-light-pink);
  color: var(--ql-orange);
}

/* Overlay (when menu is open) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  z-index: 54;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,48,58,0.23);
  transition: opacity 0.2s;
}
.mobile-menu.open ~ .mobile-menu-overlay {
  display: block;
  opacity: 1;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 0 !important;
    margin-right: 6px;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 32px 14px 24px 16px;
  }
}


/* ===============
   FOOTER / BOTTOM
   =============== */
footer {
  background: var(--ql-accent);
  margin-top: 80px;
  box-shadow: 0 -2px 18px rgba(10,65,93,0.03);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  padding: 30px 20px 22px 20px;
  min-height: 90px;
}
footer img {
  height: 56px;
  margin-right: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-right: 16px;
}
.footer-nav a {
  color: #39506b;
  font-size: 0.97rem;
  border-radius: 6px;
  padding: 2px 9px;
  transition: color 0.15s, background 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--ql-lilac);
  color: var(--ql-orange);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.97rem;
  color: #5c778c;
}
@media (max-width: 900px){
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
  }
}

/* ================
   SECTION & PANELS
   ================ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
}

.features, .services {
  background: linear-gradient(120deg,
      var(--ql-mint) 0%, var(--ql-accent) 80%, var(--ql-soft-violet) 100%);
  border-radius: 26px;
  margin-bottom: 60px;
}

section.cta {
  background: linear-gradient(90deg,
      var(--ql-yellow) 20%, var(--ql-light-pink) 90%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

section.about, section.contact,
section.values, section.legal {
  background: var(--ql-accent);
  border-radius: 18px;
  margin-bottom: 60px;
}

@media (max-width: 680px){
  section, section.features, section.services, section.cta, section.about, section.contact {
    padding: 30px 0;
    margin-bottom: 36px;
    border-radius: 15px;
  }
}

/* ==========================
   FLEXBOX UTILITY CONTAINERS
   (MUST MATCH REQUIREMENTS!)
   ========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 24px rgba(125, 164, 170, 0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 22px 21px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--ql-lilac);
  border-radius: 18px;
  box-shadow: 0 2px 16px 5px rgba(180,150,255,0.08);
  margin-bottom: 24px;
  max-width: 380px;
  min-width: 0;
  border: 1px solid #e3e3fa;
  transition: box-shadow .18s, transform .17s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 30px 2px rgba(127,90,175,0.08);
  transform: scale(1.022);
}

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

/* ================
   FEATURES & CARDS
   ================ */
.feature-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}
.feature,
.service {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 12px rgba(191, 171, 255, 0.09);
  flex: 1 1 215px;
  min-width: 230px;
  max-width: 330px;
  padding: 25px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.12s, transform 0.13s;
}
.feature:hover,
.service:hover,
.card:hover {
  box-shadow: 0 10px 28px 7px rgba(255,180,225,0.13);
  transform: translateY(-4px) scale(1.025);
  z-index: 1;
}
.feature img,
.service img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--ql-mint);
  box-shadow: 0 2px 6px rgba(42,147,169,0.04);
  margin-bottom: 9px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 16px;
  align-items: stretch;
}
.testimonial-author {
  color: var(--ql-blue);
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: right;
  width: 100%;
  margin-top: -10px;
}

@media (max-width: 900px) {
  .feature-grid,
  .service-list,
  .testimonial-list {
    gap: 20px;
  }
  .feature, .service,
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 680px) {
  .feature-grid,
  .service-list,
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* =============
   LISTS & ICONS
   ============= */
ul {
  padding-left: 0;
}
ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 1.01rem;
  color: #2D4159;
}
ul li img {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ql-mint);
}

/* ===========
   LEGAL PAGE
   =========== */
section.legal {
  background: var(--ql-accent);
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(125,164,170,0.05);
  margin-bottom: 60px;
}
section.legal h1 {
  font-size: 1.30rem;
  color: var(--ql-blue);
}
section.legal ul {
  margin-top: 12px;
}

/* =============
   RESPONSIVE
   ============= */
@media (max-width: 900px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.19rem; }
  .hero { padding: 38px 0 30px 0; }
  .container { padding: 0 14px; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 768px) {
  .section { margin-bottom: 36px; padding: 28px 8px; }
  .card-container, .content-grid, .testimonial-list {
    gap: 13px;
  }
  .content-grid, .testimonial-list, .card-container {
    flex-direction: column;
    align-items: stretch !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .hero h1, section.hero h1, .hero h2 {
    font-size: 1.22rem !important;
  }
}

/* ===================
   BUTTONS & INTERACTIONS
   =================== */
button, .cta-btn {
  transition: background 0.2s, color 0.13s, box-shadow 0.16s, transform 0.13s;
  outline: none;
}
button:active, .cta-btn:active {
  transform: scale(.97);
}

/* ================
    MICRO EFFECTS
   ================ */
.card, .feature, .service, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .feature:hover, .service:hover, .testimonial-card:hover {
  box-shadow: 0 10px 28px 7px rgba(93,77,172,0.12);
  transform: translateY(-3px) scale(1.0185);
  z-index: 2;
}

.cta-btn:active {
  background: var(--ql-blue);
  color: #fff;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--ql-light-pink);
  outline-offset: 2px;
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--ql-mint) 60%, var(--ql-soft-violet) 100%);
  color: #174062;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 38px 22px 32px;
  box-shadow: 0 -2px 22px 0 rgba(80,80,120,0.10);
  border-radius: 18px 18px 0 0;
  font-size: 1rem;
  max-width: 610px;
  margin: 0 auto;
  right: 0;
  left: 0;
  opacity: 1;
  pointer-events: auto;
  animation: cookieBannerAppear 0.5s cubic-bezier(.16,1.08,.23,1) 1;
}
@keyframes cookieBannerAppear {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  border: none;
  border-radius: 18px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.16s;
  margin-left: 0;
}
.cookie-banner .cookie-accept {
  background: var(--ql-orange);
  color: #fff;
  font-weight: 700;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #ffb491;
  color: var(--ql-blue);
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: var(--ql-blue);
  border: 1px solid var(--ql-orange);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--ql-light-pink);
}
.cookie-banner .cookie-settings {
  background: var(--ql-accent);
  color: var(--ql-blue);
  border: 1px solid #bbe2e3;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--ql-mint);
  color: var(--ql-orange);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 9px 12px 14px;
    font-size: 0.98rem;
    max-width: 97vw;
  }
  .cookie-banner__buttons {
    margin-top: 8px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-bg {
  display: none;
  position: fixed;
  top:0;left:0;right:0;bottom:0;
  background: rgba(34,48,58,0.21);
  z-index: 160;
}
.cookie-modal-bg.open {
  display: block;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 8px 46px 6px rgba(170, 159, 230, 0.23);
  z-index: 161;
  width: 98vw;
  max-width: 400px;
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalAppear 0.37s cubic-bezier(.16,1.08,.23,1);
}
@keyframes modalAppear {
  from { transform: translate(-50%, 80%); opacity: 0.3; }
  to { transform: translate(-50%,-50%); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.17rem;
  font-weight: 600;
  color: var(--ql-blue);
  margin-bottom: 10px;
}
.cookie-modal .cookie-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 30px; height: 18px;
  border-radius: 10px;
  background: var(--ql-mint);
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--ql-orange);
}
.cookie-modal .cookie-toggle::before {
  content: '';
  display: block;
  background: #fff;
  border-radius: 50%;
  width: 15px; height: 15px;
  position: absolute;
  left: 2px; top: 1.5px;
  transition: left 0.17s;
  box-shadow: 0 1px 2px rgba(45,80,81,0.09);
}
.cookie-modal .cookie-toggle:checked::before {
  left: 13px;
}
.cookie-modal .cookie-toggle[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 13px;
  padding: 8px 17px;
  cursor: pointer;
  background: var(--ql-yellow);
  color: var(--ql-blue);
}
.cookie-modal button.cookie-close {
  background: transparent;
  color: var(--ql-blue);
  border: none;
}
.cookie-modal button.cookie-save {
  background: var(--ql-orange);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 600px){
  .cookie-modal { padding:18px 7px 18px 7px; max-width:95vw; }
  .cookie-modal h2 { font-size:1rem; }
}

/* ===========
   SOCIALS
   =========== */
.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 14px;
  color: var(--ql-blue);
  font-size: 1.22rem;
}
.footer-socials a {
  color: var(--ql-blue);
  transition: color 0.18s;
}
.footer-socials a:hover {
  color: var(--ql-orange);
}

/* ===============
   UTILITY CLASSES
   =============== */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 26px; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 15px; }
.gap-3 { gap: 24px; }

/* ==============
   PRINT OPTIMIZE
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-bg { display: none; }
  main { padding: 0; }
}

/* ==================
   END OF STYLE.CSS
   ================== */
