/* ========================================================
   Sparkle Drive - Scandinavian Clean CSS Style
   Only Flexbox layouts. Responsive. Mobile burger nav & cookie consent.
======================================================== */

/* ========== 1. 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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F4F7FA;
  color: #2A3643;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #375477;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #66A497;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ========== 2. Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #2A3643;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #375477;
  word-break: break-word;
}
p {
  margin-bottom: 16px;
  color: #2A3643;
}
strong {
  font-weight: 600;
}
.mission-statement {
  font-style: italic;
  color: #66A497;
}

/* ========== 3. Layout Containers ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(55, 84, 119, 0.06);
  transition: box-shadow 0.2s;
}
.section:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 8px;
  }
}

/* ========== 4. Main Navigation ========== */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(55,84,119,0.04);
  padding: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1140px;
  margin: 0 auto;
}
.main-nav > a img {
  height: 36px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  color: #2A3643;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.cta-btn {
  margin-left: 28px;
}
.main-nav ul li a:not(.cta-btn):hover, 
.main-nav ul li a:not(.cta-btn):focus {
  background: #F4F7FA;
  color: #375477;
}

/* ========== 5. CTA Button ========== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #375477;
  color: #fff !important;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 10px 26px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(102,164,151,0.06);
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.19s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #66A497;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow:0 4px 16px rgba(102,164,151,0.13);
}

/* ========== 6. Burger/Menu (Mobile Nav) ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 24px;
  background: #375477;
  color: #fff;
  border-radius: 6px;
  font-size: 2.1rem;
  padding: 4px 13px;
  border: none;
  cursor: pointer;
  z-index: 222;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #66A497;
  color: #fff;
}
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(244,247,250, 0.96);
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.32s cubic-bezier(.6,-0.03,.47,1.04);
  z-index: 5555;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #375477;
  font-size: 2.5rem;
  margin: 18px 24px 0 0;
  padding: 0 7px;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 5560;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #66A497;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  padding: 34px 36px;
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #2A3643;
  padding: 9px 0;
  border-radius: 5px;
  margin-bottom: 11px;
  background: none;
  transition: background 0.08s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #EAF0F6;
  color: #375477;
}
@media (max-width: 1020px) {
  .main-nav {
    max-width: 97vw;
  }
}
@media (max-width: 880px) {
  .main-nav ul {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav ul,
  .main-nav a.cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* ========== 7. Hero Section ========== */
.hero {
  background: linear-gradient(90deg,#F4F7FA 70%,#EAF0F6 100%);
  padding: 0;
  margin-bottom: 28px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  text-align: left;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 44px 0 32px;
  max-width: 660px;
}
.hero h1 {
  color: #375477;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .hero .content-wrapper {
    padding: 24px 0 18px;
  }
}

/* ========== 8. Features, Cards, Sections ========== */
.features {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper {
  gap: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px 18px 22px 18px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 320px;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(55,84,119,0.07);
  transition: box-shadow 0.15s, transform 0.14s;
}
.feature-item img {
  height: 46px;
  width: auto;
  margin-bottom: 8px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 7px 30px rgba(102,164,151,0.14);
  transform: translateY(-3px) scale(1.03);
}

/* Lists used for benefits, habits, tips etc. */
.benefits-list, .tip-list, .habit-list, .checklists, .service-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 0;
}
.benefits-list li, .tip-list li, .habit-list li, .checklists li, .service-highlights ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #2A3643;
  font-size: 1rem;
  padding: 7px 0 7px 0;
}
.benefits-list img, .tip-list img, .habit-list img {
  height: 19px;
  width: 19px;
}

/* Services/Workshops List */
.service-list, .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(55,84,119,0.07);
  padding: 23px 18px;
  min-width: 240px;
  max-width: 450px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.14s, transform 0.12s;
}
.service-item h3 span {
  color: #66A497;
  font-weight: 500;
  font-size: 1.02rem;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 10px 36px rgba(55,84,119,0.09);
  transform: translateY(-1px) scale(1.017);
}

/* Cards, Card Grid */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 22px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(55,84,119,0.09);
  transition: box-shadow 0.16s, transform 0.12s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 30px rgba(55,84,119,0.12);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Text Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ========== 9. Testimonials ========== */
.testimonials {
  background: #F4F7FA;
  padding: 36px 0;
}
.testimonials .content-wrapper {
  gap: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(55,84,119,0.10);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 530px;
  transition: box-shadow 0.17s, transform 0.12s;
}
.testimonial-card blockquote {
  font-size: 1.14rem;
  color: #2A3643;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card p strong {
  color: #375477;
  font-size: 1.02rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 36px rgba(102,164,151,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* ========== 10. About / Team Sections ========== */
.team-section {
  display: flex;
  flex-direction: row;
  gap: 38px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.about-methods ul, .about-team ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 0;
}
.about-methods ul li, .about-team ul li {
  font-size: 1rem;
  color: #2A3643;
  padding-left: 0;
}

/* ========== 11. Contact Section ========== */
.contact-details {
  margin-bottom: 28px;
  background: #F4F7FA;
  border-radius: 10px;
  padding: 19px 24px 18px;
  color: #2A3643;
  box-shadow: 0 2px 8px rgba(55,84,119,0.07);
}
.address-map {
  background: #EAF0F6;
  min-height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.97rem;
  color: #375477;
  margin-bottom: 12px;
}

/* ========== 12. Footer ========== */
footer {
  background: #375477;
  color: #fff;
  padding: 34px 0 14px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav ul a {
  color: #EAF0F6;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav ul a:hover, .footer-nav ul a:focus {
  color: #66A497;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
  color: #EAF0F6;
}
.footer-contact img {
  height: 16px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
}

/* ========== 13. Legal/Thank You Text Sections ========== */
.legal, .thank-you {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(55,84,119,0.08);
  margin-bottom: 60px;
  padding: 40px 18px;
}
.text-section {
  margin-bottom: 10px;
}
.text-section ul {
  padding-left: 18px;
  list-style: disc;
  margin-top: 8px;
  color: #2A3643;
}
.text-section li {
  margin-bottom: 6px;
}

/*******************
 14. Responsive Layouts - FLEX ONLY
*******************/
@media (max-width: 1024px) {
  .feature-grid,
  .service-list,
  .workshop-list,
  .content-grid,
  .card-container,
  .footer-nav, .team-section {
    gap: 16px;
  }
}
@media (max-width: 800px) {
  .team-section,
  .footer-nav {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 728px) {
  .feature-grid,
  .service-list,
  .workshop-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card,
  .feature-item,
  .service-item,
  .card {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/*************************
 15. Other Utility Classes
*************************/
.hide {
  display: none !important;
}
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}

/*****************************
 16. Cookie Consent Banner
******************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 22px rgba(55,84,119,0.09);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 32px;
  font-size: 1rem;
  color: #2A3643;
  transition: transform 0.29s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  background: #66A497;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px 19px;
  font-size: 1.01rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  margin-left: 10px;
  margin-right: 4px;
  transition: background 0.17s, color 0.16s;
  box-shadow: 0 2px 6px rgba(102,164,151,0.09);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #375477;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #F4F7FA;
  color: #375477;
  border: 1px solid #e3e7ea;
  margin-left: 10px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #66A497;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 16px 10px;
    font-size: 0.98rem;
  }
}

/*********************************
 17. Cookie Preferences Modal
*********************************/
.cookie-modal-overlay {
  position: fixed; z-index: 10002;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(55,84,119,0.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 40px rgba(55,84,119,0.15);
  max-width: 400px;
  width: 90vw;
  padding: 38px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: bounceIn 0.37s cubic-bezier(.24,1.76,.47,.99);
}
@keyframes bounceIn {
  0% { transform: scale(.87); opacity: 0; }
  55% { transform: scale(1.03); opacity: 1; }
  78% { transform: scale(.97); }
  100% { transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  margin-bottom: 11px;
}
.cookie-modal .cookie-toggle {
  margin-left: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  background: none;
  color: #375477;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 1px 8px;
  transition: color 0.2s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #66A497;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  min-width: 105px;
}

/*********************************
 18. Misc Microinteractions
*********************************/
input[type="checkbox"], .cookie-toggle {
  accent-color: #66A497;
}
::-webkit-input-placeholder { color: #B4C6DE; }
::-moz-placeholder { color: #B4C6DE; }
:-ms-input-placeholder { color: #B4C6DE; }
::placeholder { color: #B4C6DE; }

/* ========== Fine tuning for Scandinavian Clean Aesthetic ========== */
/* Rounded corners, soft borders, subtle shadow, lots of whitespace */
.bg-accent { background: #F4F7FA; }
.bg-secondary { background: #66A497; color: #fff; }
.text-primary { color: #375477; }
.text-secondary { color: #66A497; }
.shadow-hover {
  transition: box-shadow 0.15s, transform 0.09s;
}
.shadow-hover:hover {
  box-shadow: 0 7px 26px rgba(102,164,151,0.11);
  transform: translateY(-2px) scale(1.025);
}
.rounded {
  border-radius: 12px;
}
/**************************************
 19. Print - ensure backgrounds remain white
**************************************/
@media print {
  body, .section, .hero, .testimonials, .legal, .thank-you, .features, .card, .service-item {
    background: #fff !important;
    color: #2A3643 !important;
  }
  a { color: #375477 !important; }
  .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
