/* =====================
   Foundation
   ===================== */
.container-fluid {
  padding: 0;
}

section {
  display: flex;
  padding: 80px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

@media (max-width: 600px) {
  section {
    padding: 40px 20px;
  }
}

.wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1170px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

@media (max-width: 600px) {
  .column {
    gap: 28px;
  }
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  align-self: stretch;
  margin: 0 auto;
  width: 100%;
}

.headline * {
  text-align: center;
  width: 100%;
}

.heading {
  line-height: 120%;
}

.heading > * {
  /* font: inherit; */
  /* color: inherit; */
}

@media (max-width: 600px) {
  .headline {
    gap: 24px;
  }
}

.subheading {
  font-family: "Futura Std", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #65554b;
  margin: 0;
}

.description {
  font-family: "Auto Pro", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c2b33;
  margin: 0;
}

.description > * {
  font: inherit;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-family: "Goudy Oldstyle Std", "Georgia", serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: #65554b;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

h1 {
  font-size: 64px !important;
}
h2 {
  font-size: 48px !important;
}
h3 {
  font-size: 36px !important;
}
h4 {
  font-size: 32px !important;
}
h5 {
  font-size: 28px !important;
}
h6 {
  font-size: 24px !important;
}

@media (max-width: 600px) {
  h1 {
    font-size: 44px !important;
  }
  h2 {
    font-size: 32px !important;
  }
  h3 {
    font-size: 28px !important;
  }
  h4 {
    font-size: 24px !important;
  }
  h5 {
    font-size: 24px !important;
  }
  h6 {
    font-size: 22px !important;
  }
}

section p,
section ul {
  margin: 0 0 32px;
  padding: 0;
  font-size: 20px !important;
  font-weight: 400;
  line-height: 140%;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@media (max-width: 820px) {
  section p,
  section ul {
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  section p {
    font-size: 16px !important;
  }
}

/* Links & Buttons */
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid #006892;
  color: #006892;
  font-family: "Auto Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
  text-decoration: none;
}

.button.white {
  color: #fff;
  border-color: #fff;
}

.button.white:hover {
  background: #fff;
  color: #006892;
}

.button.solid.blue {
  background: #006892;
  color: #fff;
  border-color: #006892;
}

.button.solid.teal {
  background: #58bdc7;
  color: #fff;
  border-color: #58bdc7;
}

.button.solid.green {
  background: #006892;
  color: #fff;
  border-color: #006892;
  border-radius: 4px;
}

/* =====================
             Hero
             ===================== */
.hero-section {
  padding-top: 80px;
  background-position: center;
  position: relative;
  overflow: hidden;
  height: 54vh;
  background-size: cover;
}

.hero-section .background-video {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.3;
}

.hero-section .wrap {
  position: relative;
  z-index: 1;
}

.hero-section * {
  color: #fff;
}

.hero-section .headline {
  max-width: 740px;
  text-shadow: 2px 5px 4px rgba(0, 0, 0, 0.24);
}

.hero-section .description {
  max-width: 660px;
}

.hero-section .description p {
  font-size: 24px;
}

@media (max-width: 600px) {
  .hero-section .description p {
    font-size: 20px;
  }
}

/* =====================
             CTA Banner
             ===================== */
.cta-banner {
  padding: 20px;
  background-color: #eee7dc;
}

.cta-banner .wrap {
  align-items: center;
}

.cta-banner .cta-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  flex-shrink: 0;
  max-width: 100%;
  justify-content: center;
}

.cta-banner .image-column {
  width: 160px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner .image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .text-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 24px 32px;
  align-self: center;
}

.cta-banner .headline {
  gap: 16px;
  align-items: flex-start;
}

.cta-banner .headline .heading * {
  text-align: left;
  font: inherit !important;
  color: inherit;
}

.cta-banner .headline .heading {
  font-family: "Auto Pro", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.08;
  color: #006892;
  max-width: 390px;
}

.cta-banner .links a {
  padding: 8px 12px;
}

@media (max-width: 820px) {
  .cta-banner .image-column {
    width: 33%;
  }

  .cta-banner .text-column {
    padding: 24px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .cta-banner .headline .heading {
    font-size: 20px;
  }
}

/* =====================
             Facial Treatments Intro
             ===================== */
.facial-treatments-intro .column {
  gap: 60px;
  align-items: center;
}

.facial-treatments-intro .headline {
  max-width: 700px;
}

/* Category Cards Grid */
.treatment-categories-grid {
  display: flex;
  gap: 32px;
  width: 100%;
}

.category-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: #eee7dc;
  padding: 8px;
  gap: 8px;
}

.category-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 12px;
  text-align: left;
}

.category-heading {
  font-family: "Auto Pro", sans-serif;
  font-size: 28px !important;
  font-weight: 500;
  line-height: 1.1;
  color: #65554b;
}

.category-description {
  font-family: "Auto Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c2b33;
  margin: 0;
}

.category-link {
  padding-top: 4px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.learn-more:hover {
  opacity: 0.8;
}

.learn-more span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px 12px;
  font-family: "Futura Std", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: #a38d80;
  white-space: nowrap;
}

.learn-more .learn-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #b4a297;
  color: #fff;
  flex-shrink: 0;
}

.learn-more .learn-more-icon svg {
  width: 32px;
  height: 32px;
  transform: rotate(180deg);
}

@media (max-width: 820px) {
  .facial-treatments-intro .column {
    gap: 32px;
  }

  .treatment-categories-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .category-heading {
    font-size: 24px !important;
  }

  .category-card {
    max-width: 330px;
    width: 100%;
  }

  .category-info {
    gap: 20px;
    padding: 16px 12px;
  }
}

/* =====================
             Treatment Category Sections
             ===================== */
.treatment-category {
  background: linear-gradient(180deg, hsl(34 33% 94% / 1) 0%, hsl(34 33% 96% / 1) 100%);
}

.treatment-category .column {
  align-items: flex-start;
}

.treatment-category .headline {
  gap: 28px;
  align-items: flex-start;
  max-width: 480px;
}

/* Treatments Slider */
.treatments-slider {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

/* Small call-to-action guiding users to pick a treatment tab */
.treatments-slider-label {
  margin: 0 0 4px;
  font-family: "Auto Pro", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a7b6e;
}

/* Tabs */
.treatments-tabs {
  display: flex;
  align-items: flex-start;
  background: #eee7dc;
  height: 51px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.treatments-tabs::-webkit-scrollbar {
  display: none;
}

.treatment-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  box-sizing: content-box;
  padding: 20px 24px;
  align-self: stretch;
  flex-shrink: 0;
  font-family: "Auto Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #65554b;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, padding 0.35s ease,
    border-radius 0.35s ease, box-shadow 0.35s ease;
}

.treatment-tab:not(.active):hover {
  background: rgba(0, 0, 0, 0.04)
}

.treatment-tab {
  border: 1px solid transparent;
}

.treatment-tab.active {
  background: #b4a297;
  color: #fff;
  border-color: #b4a297;
}

.treatment-tab-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 8px;
}

@media (min-width: 821px) {
  /* Desktop: wrapped pill labels, all visible by default. */
  .treatments-tabs {
    box-sizing: border-box;
    position: relative;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    height: auto;
    padding: 12px;
    overflow: visible;
  }

  .treatment-tab {
    align-self: auto;
    padding: 8px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #b4a297;
  }
}

@media (max-width: 600px) {
  .treatments-slider-label {
    margin: 0 0 2px;
    font-size: 13px;
  }
}

/* Panels */
.treatments-panels {
  width: 100%;
}

.treatment-panel {
  display: none;
}

.treatment-panel.active {
  display: flex;
  align-items: center;
}

/* Text Column */
.treatment-panel .treatment-text {
  flex: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  align-self: stretch;
  padding: 48px 40px;
  background: #fff;
  position: relative;
}

.treatment-panel .info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.treatment-panel .treatment-title {
  font-family: "Goudy Oldstyle Std", "Georgia", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  color: #006892;
}

.treatment-panel .treatment-description,
.treatment-panel .treatment-description p {
  font-family: "Auto Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c2b33;
  width: 100%;
}

.see-details-link {
  font-family: "Futura Std", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: #65554b;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.see-details-link:hover {
  opacity: 0.7;
}

/* Treatment Meta (duration & price) */
.treatment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1;
  color: #1c2b33;
}

.treatment-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #1c2b33;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .treatment-meta {
    font-size: 16px;
  }
}

/* Buttons */
.buttons {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Product Upsell */
.product-upsell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.product-upsell-label {
  font-size: 16px !important;
  line-height: 1.1;
  color: #65554b;
  margin: 0;
}

.product-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(195, 181, 172, 0.5);
  width: 100%;
}

.product-card .product-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  font-family: "Auto Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  color: #5e4f45;
}

.product-card .product-name {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.product-card .product-name a {
  color: inherit;
  text-decoration: none;
}

.product-card .product-name a:hover {
  text-decoration: underline;
}

/* Image Column */
.treatment-panel .treatment-image {
  flex: 50%;
  min-width: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.treatment-panel .treatment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 400 / 500;
}

/* =====================
             Details Popup
             ===================== */
.treatment-details-popup {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(101, 85, 75, 0.6);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.treatment-details-popup.active {
  display: flex;
}

.treatment-details-popup .details-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  max-height: 100%;
  overflow-y: auto;
}

.treatment-details-popup .details-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.treatment-details-popup .details-close:hover {
  opacity: 1;
}

.treatment-details-popup .details-close svg {
  width: 100%;
  height: 100%;
}

.details-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.details-group h4 {
  font-family: "Auto Pro", sans-serif;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.4;
  color: #65554b;
}

.details-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.details-group ul li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  font-family: "Auto Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c2b33;
  margin: 0;
}

.details-group ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #65554b;
  margin-top: 8px;
}

/* =====================
             Responsive
             ===================== */
@media (max-width: 820px) {
  .treatment-category .column {
    gap: 24px;
  }

  /* Slider container gets rounded corners on mobile */
  .treatments-slider {
    border-radius: 20px;
    position: relative;
  }

  /* Tabs become dropdown trigger on mobile */
  .treatments-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Hide all non-active tabs (dropdown menu handles the list) */
  .treatment-tab {
    display: none;
  }

  /* Active tab is always visible as dropdown trigger */
  .treatment-tab.active {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.8);
    color: #65554b;
    box-sizing: border-box;
    height: auto;
    padding: 12px;
    font-size: 18px;
    text-align: left;
    gap: 8px;
  }

  /* Truncate the trigger name so the chevron stays visible.
     min-width: 0 lets the flex item shrink below its content width. */
  .treatment-tab.active .treatment-tab-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Chevron indicator on active tab */
  .treatment-tab.active::after {
    content: "";
    width: 24px;
    height: 24px;
    margin-left: auto;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
    background-color: #b4a297;
    border-radius: 99px;
  }

  /* Rotate chevron when dropdown is open */
  .treatments-tabs.dropdown-open .treatment-tab.active::after {
    transform: rotate(180deg);
  }

  /* Absolutely positioned dropdown menu */
  .treatments-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #eee7dc;
    z-index: 20;
    display: flex;
    flex-direction: column;
    border-top: 1px solid hsl(0deg 0% 0% / 28%);
    box-shadow: 0 24px 20px -8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
  }

  .treatments-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    font-family: "Auto Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #65554b;
    text-align: left;
    background: #fcfbf8;
    border: none;
    border-bottom: 1px solid rgb(195 181 172 / 40%);
    cursor: pointer;
    transition: background-color 0.15s ease;
  }

  /* Truncate long treatment names with an ellipsis instead of wrapping.
     min-width: 0 lets the flex item shrink below its content width. */
  .treatments-dropdown-menu .dropdown-item-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .treatments-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
  }

  .treatments-dropdown-menu .dropdown-item:hover {
    background: hsl(36.67deg 34.62% 89.8%);
  }

  /* Active item in dropdown gets distinct styling */
  .treatments-dropdown-menu .dropdown-item.is-active {
    color: hsl(23.08deg 14.77% 34.51% / 48%);
    background: rgb(0 0 0 / 2%);
  }

  /* Panel layout: image on top, text below */
  .treatment-panel.active {
    flex-direction: column-reverse;
  }

  .treatment-panel .treatment-text {
    padding: 36px 24px;
  }

  .treatment-panel .treatment-image {
    width: 100%;
  }

  .treatment-panel .treatment-image img {
    aspect-ratio: 1 / 1;
  }

  .treatment-panel .treatment-title {
    font-size: 24px !important;
  }

  .treatment-panel .info {
    gap: 28px;
  }

  .buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .treatment-panel .button.solid.blue,
  .treatment-panel .button.solid.teal {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 12px;
  }

  .treatment-details-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
  }

  .treatment-details-popup .details-card {
    max-height: calc(100vh - 32px);
  }

  .product-card {
    gap: 12px;
  }

  .product-upsell-label {
    font-size: 14px !important;
  }

  .product-card .product-info {
    font-size: 14px;
    gap: 4px;
  }

  .product-card .product-image {
    width: 40px;
    height: 40px;
  }
}
