/* ========================== */
/* CSS RESET & BASE           */
/* ========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background-color: #F1F7F9;
  color: #283143;
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #36526D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #B79CB4;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
hr {
  border: none;
  border-bottom: 1px solid #E1E4EA;
  margin: 24px 0;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
/*=========================*/
/* BRAND TYPOGRAPHY        */
/*=========================*/
h1, h2, h3, h4, h5, h6 {
  color: #283143;
  font-family: 'Montserrat', Georgia, serif;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.13; margin-bottom: 20px; font-weight: 600; }
h2 { font-size: 2rem;   line-height: 1.2; margin-bottom: 18px; font-weight: 600; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; font-weight: 500; }
h4 { font-size: 1.13rem; line-height: 1.3; margin-bottom: 8px; font-weight: 500; }

p, li, span, strong {
  font-family: 'Open Sans', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}

/*=========================*/
/* LAYOUT CONTAINERS       */
/*=========================*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(43,55,71,0.04);
}

/* ============================= */
/* HEADER / NAVIGATION           */
/* ============================= */
header {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(43,82,109,0.03);
  border-bottom: 1px solid #E1E4EA;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
  height: 84px;
}
.logo img {
  display: block;
  height: 54px;
  width: auto;
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-navigation a {
  font-family: 'Montserrat', Times, serif;
  font-size: 1rem;
  color: #283143;
  font-weight: 500;
  padding: 3px 0;
  position: relative;
  transition: color 0.2s;
}
.main-navigation a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: #75587A;
  transition: width 0.22s;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 3px;
}
.main-navigation a:hover::after,
.main-navigation a:focus::after {
  width: 100%;
}
.main-navigation a:hover,
.main-navigation a:focus {
  color: #75587A;
}
.cta-btn {
  background: #36526D;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', Times, serif;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 14px rgba(54,82,109,0.08);
  transition: background 0.2s, box-shadow 0.18s, color 0.23s;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #B79CB4;
  color: #283143;
  box-shadow: 0 8px 24px rgba(54,82,109,0.13);
}

/* ============================= */
/* MOBILE NAVIGATION             */
/* ============================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 120;
  background: #36526D;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  line-height: 44px;
  text-align: center;
  font-size: 2rem;
  border: none;
  box-shadow: 0 2px 8px rgba(54,82,109,0.08);
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #75587A;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(54,82,109,0.98);
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #283143;
  border-radius: 50%;
  font-size: 2rem;
  padding: 5px 13px 10px 13px;
  margin: 26px 24px 10px 0;
  border: none;
  box-shadow: 0 2px 12px rgba(54,82,109,0.09);
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B79CB4;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 36px;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.38rem;
  font-family: 'Montserrat', Times, serif;
  font-weight: 500;
  background: transparent;
  padding: 16px 0;
  letter-spacing: 0.02em;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #75587A;
  color: #fff;
}
@media (max-width: 1020px) {
  header .container {
    gap: 12px;
  }
  .main-navigation a { font-size: 0.96rem; }
  .cta-btn { font-size: 1rem; padding: 10px 24px; }
}
@media (max-width: 900px) {
  header .container {
    gap: 0;
  }
  .main-navigation { gap: 14px; }
}
@media (max-width: 820px) {
  header .container {
    gap: 0;
  }
  .main-navigation { gap: 7px; }
}
@media (max-width: 768px) {
  header .container, footer .container {
    flex-direction: column;
    height: auto;
    gap: 16px;
    align-items: flex-start;
    padding: 8px 14px;
  }
  .main-navigation {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================================== */
/* HERO SECTIONS                        */
/* ===================================== */
.hero {
  background: #F1F7F9;
  min-height: 350px;
  display: flex;
  align-items: center;
  padding: 0 0 40px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  padding: 48px 0 32px 0;
  max-width: 680px;
  align-items: flex-start;
  gap: 26px;
}
.hero h1 {
  font-size: 2.75rem;
  font-family: 'Montserrat', Times, serif;
  color: #36526D;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.19rem;
  color: #283143;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .hero .content-wrapper {
    padding: 24px 0 12px 0;
    align-items: flex-start;
    gap: 16px;
  }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* ==================================== */
/* FLEX LAYOUTS & SPACING PATTERNS     */
/* ==================================== */
.card-container, .content-grid, .features-grid, .feature-list, .service-list,
.skin-care-list, .hair-care-tips, .learning-outcomes,
.ingredient-analysis-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card-container { gap: 24px; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(54,82,109,0.04); margin-bottom: 20px; position: relative; padding: 24px 18px; min-width: 200px; flex: 1 1 240px; transition: box-shadow 0.18s; }
.card:hover, .card:focus-within {
  box-shadow: 0 12px 28px rgba(54,82,109,0.13);
}
.content-grid {
  gap: 20px; justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.testimonial-list {
  gap: 24px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(54,82,109,.08);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 340px;
  min-width: 250px;
  max-width: 420px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card blockquote {
  color: #36526D;
  font-size: 1.15rem;
  font-family: 'Montserrat', Georgia, serif;
  line-height: 1.31;
  margin-bottom: 14px;
}
.testimonial-card .client-name {
  color: #75587A;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  background: #F1F7F9;
  box-shadow: 0 10px 22px rgba(54,82,109,0.17);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 16px;
}
.features-grid > div {
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  box-shadow: 0 2px 12px rgba(54,82,109,.07);
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.features-grid > div:hover,
.features-grid > div:focus-within {
  box-shadow: 0 6px 16px rgba(54,82,109,.16);
}
.service-list, .skin-care-list, .hair-care-tips, .learning-outcomes, .ingredient-analysis-list, .feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.service-list li, .skin-care-list li, .hair-care-tips li, .learning-outcomes li, .ingredient-analysis-list li, .feature-list li {
  padding-left: 0.65em;
  position: relative;
  font-size: 1rem;
}
.service-list li strong,
.feature-list li strong {
  color: #36526D;
  font-family: 'Montserrat', serif;
}

/* Service Details Card Style */
.service-detail {
  background: #F1F7F9;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(54,82,109,0.04);
  padding: 28px 22px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
.service-detail h3 {
  color: #36526D;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Text section */
.text-section {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.74;
}
.text-section p {
  margin-bottom: 16px;
}
.text-section a {
  color: #36526D;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.17s;
}
.text-section a:hover,
.text-section a:focus {
  color: #75587A;
}

/* Contact info */
.contact-info {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 32px;
}
.contact-info .text-section ul {
  margin-bottom: 10px;
}
.contact-info .text-section ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.contact-info .text-section ul li img {
  width: 23px;
  height: 23px;
}

/* =============================== */
/* FOOTER                          */
/* =============================== */
footer {
  background: #FFFFFF;
  border-top: 1px solid #E1E4EA;
  padding: 26px 0 10px 0;
  margin-top: 44px;
  font-size: 0.97rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #283143;
  font-size: 0.98rem;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #75587A;
}
footer .logo img {
  width: 44px;
  height: 44px;
}
footer .text-section {
  font-size: 0.97rem;
  color: #8D94A1;
  max-width: 370px;
  line-height: 1.72;
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  footer .container { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-nav { gap: 14px; }
  footer .text-section { max-width: 100%; }
}
@media (max-width: 640px) {
  .section { padding: 28px 8px; }
  .features-grid > div,
  .testimonial-card,
  .service-detail { min-width: 0; width: 100%; }
  .features-grid { flex-direction: column; gap: 16px; }
  .testimonial-list { flex-direction: column; gap: 18px; }
  .card-container, .content-grid { gap: 9px; }
}

/* ======================== */
/* RESPONSIVE FLEX STACKING*/
/* ======================== */
@media (max-width: 1000px) {
  .contact-info { flex-direction: column; gap: 18px; }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .features-grid, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =================================== */
/* MICRO-INTERACTIONS AND TRANSITIONS  */
/* =================================== */
.section, .card, .features-grid > div, .testimonial-card,
.service-detail, .cta-btn {
  transition: box-shadow 0.18s, background 0.15s, color 0.13s;
}

/* ==================================== */
/* COOKIE CONSENT BANNER                */
/* ==================================== */
.cookie-banner {
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(54,82,109,0.09);
  border-top: 1px solid #E1E4EA;
  padding: 20px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  font-size: 1rem;
  min-height: 50px;
  animation: cookieBannerSlideIn 0.38s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerSlideIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner .cookie-text {
  color: #283143;
  line-height: 1.5;
  max-width: 440px;
  font-size: 0.97rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  border-radius: 23px;
  border: none;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s;
  padding: 8px 22px;
  font-weight: 600;
  margin: 0 3px;
  box-shadow: 0 2px 8px rgba(54,82,109,0.04);
}
.cookie-accept {
  background: #36526D;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #75587A;
  color: #fff;
}
.cookie-reject {
  background: #fff;
  color: #36526D;
  border: 1px solid #36526D;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F1F7F9;
  color: #36526D;
}
.cookie-settings {
  background: #fff;
  color: #75587A;
  border: 1px solid #B79CB4;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #B79CB4;
  color: #fff;
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px 14px 8px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(43,82,109, 0.77);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeIn 0.26s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 42px rgba(54,82,109,0.19);
  min-width: 312px;
  max-width: 98vw;
  padding: 38px 32px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalSlideIn 0.33s cubic-bezier(.77,0,.18,1);
}
@keyframes modalSlideIn { from { transform: translateY(60px); opacity: 0;} to { transform: none; opacity: 1; } }
.cookie-modal h2 {
  font-size: 1.31rem;
  color: #36526D;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-category label {
  font-size: 1.07rem;
  color: #283143;
}
.cookie-toggle {
  width: 38px; height: 22px;
  background: #E1E4EA;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  transition: left 0.18s, background 0.17s;
  box-shadow: 0 0.5px 2px rgba(54,82,109, 0.09);
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: #B79CB4;
}
.cookie-toggle input:checked ~ .toggle-bg {
  background: #B79CB4;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 22px;
  background: #F1F7F9;
  border-radius: 50%;
  width: 32px; height: 32px;
  color: #36526D;
  font-size: 1.4rem;
  border: none;
  box-shadow: 0 2px 19px rgba(183,156,180,0.05);
  transition: background 0.11s;
  line-height: 32px;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #B79CB4;
  color: #fff;
}
.cookie-modal .actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .actions button {
  font-size: 1rem;
  padding: 8px 22px;
}
.cookie-category.essential label {
  color: #909295;
  font-weight: 500;
}
.cookie-category.essential .cookie-toggle {
  background: #E1E4EA;
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-category.essential input[type="checkbox"] + span {
  background: #909295;
}
.cookie-category.essential input[type="checkbox"]:checked + span {
  background: #909295;
}

@media (max-width: 550px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 22px 2vw 16px 2vw;
  }
}

/* ========== UTILITIES ============== */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* =========================== */
/* PRINT OPTIMIZATION         */
/* =========================== */
@media print {
  nav, .cta-btn, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  header, footer {
    box-shadow: none !important;
    border: none !important;
  }
  body { background: #fff; color: #000; }
}
