/* ==============================================
   STYLES: components.css
   Buttons, cards, CTAs, header, footer, nav
   Reusable component styles only
   ============================================== */


/* --- Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--duration) var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header__logo-img {
    height: 40px;
  }
}


/* --- Desktop Nav --- */

.nav {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--duration) var(--ease-out);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: none !important;
  margin-left: var(--space-xs);
  white-space: nowrap;
  font-size: var(--text-xs);
  padding: 10px 20px;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .nav {
    gap: var(--space-lg);
  }

  .nav__link {
    font-size: var(--text-sm);
  }

  .nav__cta {
    display: inline-flex !important;
    font-size: var(--text-xs);
    padding: 12px 24px;
  }
}


/* --- Language Switcher --- */

.lang-switch {
  display: none;
  position: relative;
  margin-left: var(--space-sm);
  border-left: 1px solid var(--color-border-light);
  padding-left: var(--space-sm);
}

.lang-switch__trigger {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration) var(--ease-out);
  background: none;
  border: none;
}

.lang-switch__trigger:hover {
  color: var(--color-text);
}

.lang-switch__arrow {
  font-size: 8px;
  transition: transform var(--duration) var(--ease-out);
}

.lang-switch--open .lang-switch__arrow {
  transform: rotate(180deg);
}

.lang-switch__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration) var(--ease-out),
              visibility var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
  z-index: 200;
}

.lang-switch--open .lang-switch__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: block;
  transition: color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.lang-switch__link:hover {
  color: var(--color-text);
  background-color: var(--color-bg-warm);
}

.lang-switch__link--active {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

@media (min-width: 1024px) {
  .lang-switch {
    display: block;
  }
}

/* Mobile language switcher */
.lang-switch--mobile {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.lang-switch--mobile .lang-switch__link {
  font-size: var(--text-sm);
  padding: 8px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  display: inline-block;
}

.lang-switch--mobile .lang-switch__link--active {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}


/* --- Mobile Menu Toggle --- */

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: all var(--duration) var(--ease-out);
  transform-origin: center;
}

.menu-toggle--open .menu-toggle__line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle--open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle--open .menu-toggle__line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}


/* --- Mobile Nav Overlay --- */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  transition: color var(--duration) var(--ease-out);
  letter-spacing: var(--tracking-wide);
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

.mobile-nav__cta {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  padding: 12px 28px;
}


/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  padding: 0;
  letter-spacing: var(--tracking-wide);
}

.btn--ghost::after {
  content: ' →';
  transition: transform var(--duration) var(--ease-out);
  display: inline-block;
}

.btn--ghost:hover {
  color: var(--color-text);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}


/* --- Treatment Card --- */

.treatment-card {
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.treatment-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.treatment-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.treatment-card__summary {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
}

.treatment-card__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--duration) var(--ease-out);
}

.treatment-card__link:hover {
  color: var(--color-text);
}


/* --- CTA Block --- */

.cta-block {
  text-align: center;
  padding: var(--space-2xl) var(--gutter);
}

.cta-block__heading {
  margin-bottom: var(--space-sm);
}

.cta-block__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}


/* --- Trust Point --- */

.trust-point {
  padding: var(--space-md) 0;
}

.trust-point__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.trust-point__description {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}


/* --- Footer --- */

.footer {
  background-color: var(--color-text);
  color: var(--color-bg-warm);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__upper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer__upper {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  margin-bottom: var(--space-sm);
}

.footer__logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__tagline {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-bg-warm);
  margin-bottom: var(--space-xs);
  transition: color var(--duration) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-bg);
}

.footer__lower {
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 768px) {
  .footer__lower {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  transition: color var(--duration) var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--color-bg-warm);
}
