/* ============================================
   HAIROLOGY BEVERLY HILLS - GLOBAL STYLES
   ============================================ */

/* CSS Variables */
:root {
  --color-black: #2E3329;
  --color-dark: #83927B;
  --color-cream: #F5F1EA;
  --color-beige: #E8E0D5;
  --color-taupe: #A79D91;
  --color-olive: #83927B;
  --color-olive-light: #A8B5A0;
  --color-white: #FFFFFF;
  --color-text: #2E3329;
  --color-text-light: #6B655E;

  --font-serif: 'NewYork', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  --container: 1280px;
  --section-padding: 6rem;
  --section-padding-mobile: 4rem;

  --header-height: 80px;
  --header-height-mobile: 64px;
}

/* Custom title fonts */
@font-face {
  font-family: 'NewYork';
  src: url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/Hairology/font/NEWYORK.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HuXiaoBoMaoLiang';
  src: url('https://mase-beimei-1253567392.cos.na-siliconvalley.myqcloud.com/webo/flyImage/Hairology/font/%E8%83%A1%E6%99%93%E6%B3%A2%E7%8C%AB%E7%B2%AE%E4%BD%93-LIGHT.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:lang(zh-CN) {
  --font-serif: 'HuXiaoBoMaoLiang', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

:lang(zh-CN) h2,
:lang(zh-CN) h3,
:lang(zh-CN) h4,
:lang(zh-CN) h5,
:lang(zh-CN) h6 {
  font-family: var(--font-sans);
  font-weight: 700;
}

/* Chinese pages typography */
html:lang(zh-CN) body {
  line-height: 1.5;
}

html:lang(zh-CN) .section-title {
  white-space: nowrap;
}

html:lang(zh-CN) h1,
html:lang(zh-CN) h2,
html:lang(zh-CN) h3,
html:lang(zh-CN) h4,
html:lang(zh-CN) h5,
html:lang(zh-CN) h6,
html:lang(zh-CN) .section-title,
html:lang(zh-CN) .hero__title,
html:lang(zh-CN) .hero__headline,
html:lang(zh-CN) .page-hero__title,
html:lang(zh-CN) .brand-intro__title,
html:lang(zh-CN) .brand-story__title,
html:lang(zh-CN) .service-card__title,
html:lang(zh-CN) .service-series__title,
html:lang(zh-CN) .service-split__title,
html:lang(zh-CN) .careers-hero__title,
html:lang(zh-CN) .job-card__title,
html:lang(zh-CN) .careers-apply__title,
html:lang(zh-CN) .careers-benefit-card__title,
html:lang(zh-CN) .contact-info__title,
html:lang(zh-CN) .site-footer__title,
html:lang(zh-CN) .site-header__title {
  line-height: 1.5;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-black);
}

.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-olive);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--color-olive);
  background-color: var(--color-olive);
  color: var(--color-white);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  background-color: transparent;
  color: var(--color-olive);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-olive);
}

.btn-outline:hover {
  background-color: var(--color-olive);
  color: var(--color-white);
}

.btn-light {
  border-color: var(--color-white);
  background-color: var(--color-white);
  color: var(--color-olive);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn-arrow .arrow {
  transition: transform var(--transition-fast);
}

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

/* Link underline */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--transition-fast);
}

.link-underline:hover::after {
  width: 100%;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Promo Modal */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal.active {
  opacity: 1;
  visibility: visible;
}

.promo-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.promo-modal__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 480px);
  max-height: 80vh;
}

.promo-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-black);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.promo-modal__close:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.promo-modal__link {
  display: block;
}

.promo-modal__image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 24px;
}
