/* =====================================================
   GLIMMER DRIFT BENESSERE — MINIMALIST STYLE CSS
   Author: Senior CSS Developer & UI Designer (2024)
   ===================================================== */

/* 1. CSS RESET & NORMALIZE (minimal for modern browsers) */
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;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #213040;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  color: #29557A;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.6,.66,.58,1.45);
}
a:hover, a:focus {
  color: #EABF75;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}
button {
  cursor: pointer;
  background: none;
}

/* 2. BRAND FONTS (load Montserrat for display, Roboto for body) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* 3. COLORS (with fallbacks) */
:root {
  --color-primary: #29557A;
  --color-secondary: #EABF75;
  --color-accent: #F7F5F1;
  --color-dark: #213040;
  --color-bg: #fff;
  --color-shadow: rgba(41,85,122,0.05);
  --color-border: #eee;
  --color-input-bg: #f7f7f7;
  --color-success: #44bb77;
  --color-error: #ef5252;
}

/* 4. TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.22;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.24;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--color-dark);
}
blockquote {
  font-style: italic;
  margin-bottom: 8px;
  color: #25324d;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
small {
  font-size: 0.85rem;
  color: #666;
}

/* 5. LAYOUT CONTAINERS & SPACING PATTERNS */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg);
  border-radius: 14px;
  box-shadow: 0 3px 16px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  flex: 1 1 240px;
  min-width: 0;
  transition: box-shadow 0.18s cubic-bezier(.6,.66,.58,1.45), transform 0.22s cubic-bezier(.6,.66,.58,1.45);
}
.card:hover {
  box-shadow: 0 8px 36px rgba(41,85,122,0.11);
  transform: translateY(-6px) scale(1.018);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid, .features-grid, .categories-grid, .services-grid, .advice-teasers, .resources-list {
  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;
  padding: 20px;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  min-width: 0;
  margin-bottom: 24px;
  transition: box-shadow 0.18s, transform 0.19s;
}
.testimonial-card blockquote {
  font-size: 1.02rem;
  color: #213040;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(41,85,122,0.13);
  transform: translateY(-3px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 6. HERO, CTA, & MAJOR SECTIONS */
.hero {
  background: var(--color-accent);
  padding: 50px 0 30px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: 18px;
  margin-bottom: 40px;
  padding: 40px 20px;
  box-shadow: 0 6px 32px var(--color-shadow);
}
.cta-banner h2 {
  color: #fff;
}
.cta-banner .btn-primary {
  margin-bottom: 20px;
}
.services-highlight .services-grid > div,
.features-grid > div,
.categories-grid > div,
.resources-list > div,
advice-teasers > div {
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 26px 18px 18px 18px;
  flex: 1 1 250px;
  min-width: 185px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.17s, transform 0.19s;
}
.services-highlight .services-grid > div:hover,
.features-grid > div:hover,
.categories-grid > div:hover {
  box-shadow: 0 8px 24px rgba(41, 85, 122, 0.10);
  transform: translateY(-6px) scale(1.018);
}

/* 7. BUTTONS */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 28px;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.17s;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.02em;
  margin-top: 10px;
  margin-right: 10px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(234,191,117,0.21);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* 8. NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 0;
  width: 100%;
  z-index: 1020;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 10px;
}
.logo img, .logo-footer img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 0;
  transition: color 0.16s;
  position: relative;
}
.main-nav a.btn-primary {
  margin-left: 18px;
  margin-right: 0;
}
.main-nav a:not(.btn-primary):after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.16s cubic-bezier(.6,.66,.58,1.45);
}
.main-nav a:not(.btn-primary):hover:after,
.main-nav a:not(.btn-primary):focus:after {
  width: 100%;
}

/* Hamburger menu button for mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-primary);
  margin-left: 10px;
  transition: background 0.13s;
  z-index: 1081;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}
/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 85, 122, 0.94);
  transform: translateX(100vw);
  transition: transform 0.29s cubic-bezier(.6,.66,.58,1.45);
  z-index: 1112;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  padding: 22px 22px 14px 14px;
  align-self: flex-end;
  border-radius: 8px;
  margin-right: 8px;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(234,191,117,0.25);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 44px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  padding: 16px 0;
  transition: color 0.15s;
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-secondary);
}

/* hide main nav and show burger on mobile */
@media (max-width: 968px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 969px) {
  .mobile-menu {
    display: none !important;
  }
}

/* 9. FOOTER */
footer {
  background: var(--color-accent);
  color: var(--color-dark);
  padding-top: 36px;
  padding-bottom: 18px;
  box-shadow: 0 -1px 16px var(--color-shadow);
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.logo-footer img {
  height: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  color: #233243;
  font-size: 0.98rem;
}
.footer-bottom {
  border-top: 1px solid #ececec;
  margin-top: 20px;
  padding-top: 10px;
  text-align: center;
  font-size: 0.92rem;
  color: #8792a0;
}

/* 10. FORM & CONTACT DETAILS */
.contact-form-section, .contact-details, .map {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.contact-details .cta-contact {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
}
.cta-contact .btn-secondary {
  min-width: 150px;
}

input[type="text"], input[type="email"], textarea, select {
  border-radius: 7px;
  padding: 13px 14px;
  background: var(--color-input-bg);
  border: 1px solid #dce1e5;
  margin-bottom: 18px;
  font-size: 1rem;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* 11. FEATURED, GRID & SPECIAL CARD GRIDS */
.values ul, .faq ul, .resources-list ul, .self-care-checklist ul, .article-snippets ul {
  padding-left: 20px;
  margin-bottom: 14px;
  list-style: disc outside;
}
.values ul li, .faq ul li, .resources-list ul li {
  margin-bottom: 7px;
  color: var(--color-dark);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 32px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.19s;
}
.service-card:hover {
  box-shadow: 0 7px 28px rgba(41,85,122,0.10);
  transform: translateY(-5px) scale(1.012);
}
.packages .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.package-highlight {
  background: var(--color-bg);
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 24px 16px;
  min-width: 200px;
  margin-bottom: 20px;
  flex: 1 1 220px;
}
.comparison-table {
  flex: 2 1 350px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 16px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.comparison-table table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 14px;
}
.comparison-table th, .comparison-table td {
  border: 1px solid #eee;
  padding: 10px 8px;
  font-size: 0.97rem;
  text-align: center;
}
.comparison-table th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}
.comparison-table td {
  background: #fff;
  color: var(--color-dark);
}

.resources-list {
  gap: 28px;
}
.resources-list > div > img {
  margin-bottom: 10px;
}

.thank-you-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 44px 20px 40px 20px;
  margin-bottom: 60px;
}

/* 12. RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .hero {
    padding: 34px 0 19px 0;
  }
  .section, .cta-banner,
  .contact-form-section, .contact-details, .map {
    padding: 24px 8px;
  }
  .content-wrapper, .card-container,
  .service-list, .content-grid, .features-grid,
  .categories-grid, .services-grid, .advice-teasers,
  .resources-list, .packages .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 510px) {
  h1, .h1 {
    font-size: 1.48rem;
  }
  h2, .h2 {
    font-size: 1.17rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 12px 20px;
  }
}

/* 13. MICRO-INTERACTIONS & TRANSITIONS */
.card, .service-card, .testimonial-card, .package-highlight, .comparison-table, .features-grid > div, .categories-grid > div {
  transition: box-shadow 0.18s cubic-bezier(.6,.66,.58,1.45),
              transform 0.22s cubic-bezier(.6,.66,.58,1.45),
              background 0.15s;
}
.content-wrapper > a.btn-primary {
  margin-bottom: 6px;
  margin-top: 2px;
}

/* 14. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 30px var(--color-shadow);
  border: 1px solid #eee;
  z-index: 1218;
  padding: 28px 16px 20px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(.59,.11,.45,1.59), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .banner-text {
  flex: 1 1 200px;
  color: #25324d;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-top: -2px;
}
.cookie-banner .btn-banner {
  border-radius: 22px;
  font-size: 1rem;
  padding: 9px 24px;
  margin-right: 0;
  margin-top: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
  border: 1px solid var(--color-primary);
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 8px 16px 8px;
  }
  .cookie-banner .banner-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,48,64,0.38);
  z-index: 1234;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.18s;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 46px rgba(41,85,122,0.17);
  padding: 40px 22px 28px 22px;
  max-width: 390px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  animation: modalIn 0.31s cubic-bezier(.6,.66,.58,1.45);
}
@keyframes modalIn {
  from { transform: translateY(70px) scale(.86); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.32rem;
  margin-bottom: 7px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 22px; top: 13px;
  background: none;
  font-size: 1.35rem;
  color: #888;
  border-radius: 8px;
  padding: 2px 9px;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.02rem;
}
.cookie-modal .cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category input[type="checkbox"]:disabled {
  opacity: 0.7;
}
.cookie-modal .cookie-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .btn-banner {
  min-width: 120px;
}

/* 15. SPECIAL UTILITY */
.table-responsive {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: auto;
}

/* Hide content visually but keep for accessibility */
.visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* 16. MISCELLANEOUS SPACING */
.section + .section {
  margin-top: 40px;
}
.card + .card, .service-card + .service-card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 0 !important;
}

/* 17. OVERLAP & Z-INDEX FIXES */
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay {
  z-index: 1200;
}

/* ============
   END OF CSS
 ============ */
