/* ═══════════════════════════════════════════════════════════════════════
   HairStyleMojo — Homepage SEO Template Styles
   v2.0: Editorial beauty brand redesign — uses design-tokens.css vars.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────── */
.hsm-homepage {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

.hsm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Typography ────────────────────────────────────────────────────── */
.hsm-section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    text-align: center;
    margin-bottom: 14px;
    color: var(--charcoal);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-section-title--left {
    text-align: left;
}

.hsm-section-desc {
    font-size: 16px;
    color: var(--charcoal-mid);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.hsm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.hsm-btn--primary {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.hsm-btn--primary:hover {
    background: var(--charcoal-dark, #1A202C);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.hsm-btn--secondary {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--border);
}

.hsm-btn--secondary:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
    text-decoration: none;
}

.hsm-btn--large {
    padding: 16px 40px;
    font-size: 15px;
}

.hsm-link {
    color: var(--charcoal-mid);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.hsm-link:hover {
    color: var(--charcoal);
}

/* ── Placeholder boxes ─────────────────────────────────────────────── */
.hsm-placeholder-box {
    width: 100%;
    aspect-ratio: auto;
    max-width: 680px;
    background: var(--gray-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.hsm-placeholder-box span {
    font-size: 13px;
    color: var(--charcoal-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Hero Image ───────────────────────────────────────────────────── */
.hsm-hero__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */
.hsm-hero {
    background: var(--white);
    padding: 100px 0 80px;
    position: relative;
}

.hsm-hero .hsm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hsm-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.hsm-hero__subtitle {
    font-size: 17px;
    color: var(--charcoal-mid);
    margin-bottom: 36px;
    line-height: 1.75;
    max-width: 500px;
}

.hsm-hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hsm-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ══════════════════════════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════════════════════════ */
.hsm-trust {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.hsm-trust__grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsm-trust__item {
    text-align: center;
    flex: 1;
    padding: 0 32px;
    border-left: 1px solid var(--border);
}

.hsm-trust__item:first-child {
    border-left: none;
}

.hsm-trust__number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-trust__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.hsm-trust__divider {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════════════ */
.hsm-how {
    padding: 80px 0;
    background: var(--white);
}

.hsm-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.hsm-how__step {
    text-align: center;
}

.hsm-how__icon {
    margin-bottom: 20px;
}

.hsm-how__num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    color: var(--border);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hsm-how__connector {
    display: none;
}

.hsm-how__step-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.hsm-how__step-text {
    font-size: 14px;
    color: var(--charcoal-mid);
    line-height: 1.7;
}

.hsm-how__cta {
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════
   SEMANTIC PILLAR BLOCKS — slider with editorial images
   ══════════════════════════════════════════════════════════════════════ */
.hsm-pillars {
    padding: 80px 0;
    background: var(--gray-100);
}

/* ── Dot navigation (tab bar) ─────────────────────────────────────── */
.hsm-pillars__dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hsm-pillars__dot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.hsm-pillars__dot:hover,
.hsm-pillars__dot:focus {
    border-color: var(--charcoal-light);
    background: var(--white);
    color: inherit;
}

.hsm-pillars__dot--active,
.hsm-pillars__dot--active:hover,
.hsm-pillars__dot--active:focus {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.hsm-pillars__dot-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal-light);
    line-height: 1;
}

.hsm-pillars__dot--active .hsm-pillars__dot-num {
    color: rgba(255,255,255,0.5);
}

.hsm-pillars__dot-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--charcoal-mid);
    white-space: nowrap;
}

.hsm-pillars__dot--active .hsm-pillars__dot-label {
    color: var(--white);
}

/* ── Slider container ─────────────────────────────────────────────── */
.hsm-pillars__slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
}

.hsm-pillars__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Individual slide ─────────────────────────────────────────────── */
.hsm-pillar {
    min-width: 100%;
    display: grid;
    grid-template-columns: 420px 1fr;
    background: var(--white);
}

.hsm-pillar__img-wrap {
    overflow: hidden;
    height: 100%;
    min-height: 360px;
}

.hsm-pillar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hsm-pillar__body {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hsm-pillar__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--charcoal);
    margin: 0 0 16px;
    line-height: 1.25;
}

.hsm-pillar__title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.hsm-pillar__title a:hover {
    color: var(--blue);
}

.hsm-pillar__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal-mid);
    margin: 0 0 24px;
}

.hsm-pillar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hsm-pillar__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--gray-100);
    color: var(--charcoal-mid);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.hsm-pillar__link:hover {
    background: var(--charcoal);
    color: var(--white);
}

/* ── Slider arrows ────────────────────────────────────────────────── */
.hsm-pillars__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 18px;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.hsm-pillars__arrow:hover:not(:disabled),
.hsm-pillars__arrow:focus:not(:disabled) {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.hsm-pillars__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.hsm-pillars__arrow--prev { left: 16px; }
.hsm-pillars__arrow--next { right: 16px; }

/* ══════════════════════════════════════════════════════════════════════
   CATEGORY GRID
   ══════════════════════════════════════════════════════════════════════ */
.hsm-categories {
    padding: 80px 0;
    background: var(--gray-100);
}

.hsm-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.hsm-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border);
}

.hsm-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--charcoal);
}

.hsm-cat-card__thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.hsm-cat-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.hsm-cat-card:hover .hsm-cat-card__thumb img {
    transform: scale(1.04);
}

.hsm-cat-card__thumb--empty {
    background: var(--gray-100);
}

.hsm-cat-card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    margin: 14px 0 4px;
    text-align: center;
    padding: 0 12px;
}

.hsm-cat-card__count {
    font-size: 13px;
    color: var(--charcoal-light);
    padding-bottom: 16px;
}

.hsm-categories__more {
    text-align: center;
}

/* Category Paths */
.hsm-category-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 24px;
}

.hsm-category-path {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.hsm-category-path__hub {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
    text-decoration: none;
}

.hsm-category-path__hub:hover {
    color: var(--blue);
    text-decoration: none;
}

.hsm-category-path__children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hsm-category-path__child {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--charcoal-mid);
    background: var(--gray-100);
    line-height: 1.2;
    text-decoration: none;
    transition: var(--transition);
}

.hsm-category-path__child:hover {
    color: var(--charcoal);
    border-color: var(--charcoal-light);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════
   AI SHOWCASE
   ══════════════════════════════════════════════════════════════════════ */
.hsm-showcase {
    padding: 80px 0;
    background: var(--white);
}

.hsm-showcase__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hsm-showcase__text p {
    font-size: 16px;
    color: var(--charcoal-mid);
    margin-bottom: 16px;
    line-height: 1.7;
}

.hsm-showcase__features {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}

.hsm-showcase__features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal-mid);
}

.hsm-showcase__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 16px;
}

.hsm-showcase__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Showcase Portraits ───────────────────────────────────────────── */
.hsm-showcase__portraits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 500px;
}

.hsm-showcase__portrait {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.hsm-showcase__portrait--featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

/* ══════════════════════════════════════════════════════════════════════
   VIRTUAL HAIR COLOR TRY-ON
   ══════════════════════════════════════════════════════════════════════ */
.hsm-color-tryon {
    padding: 80px 0;
    background: var(--gray-100);
}

.hsm-color-tryon__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.hsm-color-tryon__card {
    background: var(--white);
    border-radius: 16px;
    padding: 0 20px 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.hsm-color-tryon__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hsm-color-tryon__swatch {
    height: 80px;
    border-radius: 16px 16px 0 0;
    margin: 0 -20px 20px;
    width: calc(100% + 40px);
}

.hsm-color-tryon__card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.hsm-color-tryon__card p {
    font-size: 14px;
    color: var(--charcoal-mid);
    line-height: 1.6;
    margin: 0;
}

.hsm-color-tryon__cta {
    text-align: center;
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════════
   EDITOR PICKS / TOP GUIDES
   ══════════════════════════════════════════════════════════════════════ */
.hsm-picks {
    padding: 80px 0;
    background: var(--gray-100);
}

.hsm-picks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hsm-post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
}

.hsm-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--charcoal);
}

.hsm-post-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.hsm-post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.hsm-post-card:hover .hsm-post-card__img img {
    transform: scale(1.04);
}

.hsm-post-card__body {
    padding: 20px;
}

.hsm-post-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
    color: var(--charcoal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsm-post-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--charcoal-light);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.hsm-post-card__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--charcoal-mid);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsm-post-card__meta {
    font-size: 13px;
    color: var(--charcoal-light);
}

/* ══════════════════════════════════════════════════════════════════════
   POPULAR STYLES
   ══════════════════════════════════════════════════════════════════════ */
.hsm-popular {
    padding: 80px 0;
    background: var(--white);
}

.hsm-popular__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.hsm-thumb-card {
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
}

.hsm-thumb-card:hover {
    text-decoration: none;
    color: var(--charcoal);
}

.hsm-thumb-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.hsm-thumb-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.hsm-thumb-card:hover .hsm-thumb-card__img {
    border-color: var(--charcoal-light);
}

.hsm-thumb-card:hover .hsm-thumb-card__img img {
    transform: scale(1.04);
}

.hsm-thumb-card__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsm-popular__more {
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════════════════ */
.hsm-faq {
    padding: 80px 0;
    background: var(--gray-100);
}

.hsm-faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hsm-faq__item {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.hsm-faq__item:hover {
    border-color: var(--charcoal-light);
}

.hsm-faq__item[open] {
    border-color: var(--charcoal-light);
}

.hsm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: var(--transition);
}

.hsm-faq__question::-webkit-details-marker {
    display: none;
}

.hsm-faq__question::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--charcoal-light);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    margin-left: 16px;
    transition: var(--transition);
}

.hsm-faq__item[open] .hsm-faq__question::after {
    content: '−';
    background: var(--charcoal);
    color: var(--white);
}

.hsm-faq__answer {
    padding: 0 24px 24px;
}

.hsm-faq__answer p {
    font-size: 15px;
    color: var(--charcoal-mid);
    line-height: 1.75;
    margin: 0;
}

.hsm-faq__answer a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}

.hsm-faq__answer a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════════════════════════════════════ */
.hsm-final-cta {
    padding: 80px 0;
    background: var(--charcoal);
    text-align: center;
}

.hsm-final-cta__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hsm-final-cta__text {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}

.hsm-final-cta .hsm-btn--primary {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.hsm-final-cta .hsm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    color: var(--charcoal);
}

/* ══════════════════════════════════════════════════════════════════════
   STICKY MOBILE CTA
   ══════════════════════════════════════════════════════════════════════ */
.hsm-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .hsm-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 12px 16px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }

    .hsm-sticky-cta__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        background: var(--charcoal);
        color: var(--white) !important;
        font-family: var(--font-body);
        font-size: 15px;
        font-weight: 500;
        border-radius: 100px;
        text-decoration: none;
    }

    .hsm-sticky-cta__btn:hover {
        text-decoration: none;
        color: var(--white);
    }

    .hsm-final-cta {
        padding-bottom: 100px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hsm-hero {
        padding: 72px 0 56px;
    }

    .hsm-hero .hsm-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hsm-hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hsm-hero__ctas {
        justify-content: center;
    }

    .hsm-hero__visual {
        order: -1;
    }

    .hsm-pillar {
        grid-template-columns: 320px 1fr;
    }

    .hsm-pillar__img-wrap {
        min-height: 300px;
    }

    .hsm-pillar__body {
        padding: 28px 32px;
    }

    .hsm-pillar__title {
        font-size: 20px;
    }

    .hsm-pillars__dot-label {
        display: none;
    }

    .hsm-pillars__dot {
        padding: 8px 14px;
    }

    .hsm-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hsm-category-paths {
        grid-template-columns: 1fr;
    }

    .hsm-showcase__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hsm-showcase__portraits {
        max-width: 100%;
        margin: 0 auto;
    }

    .hsm-showcase__text {
        order: 1;
    }

    .hsm-section-title--left {
        text-align: center;
    }

    .hsm-picks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hsm-popular__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hsm-color-tryon__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hsm-how__steps {
        gap: 32px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .hsm-container {
        padding: 0 20px;
    }

    .hsm-hero {
        padding: 48px 0 40px;
    }

    .hsm-hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .hsm-hero__ctas .hsm-btn {
        width: 100%;
        max-width: 300px;
    }

    .hsm-section-title {
        font-size: 24px;
    }

    .hsm-section-desc {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hsm-trust__grid {
        flex-wrap: wrap;
    }

    .hsm-trust__item {
        flex: 0 0 50%;
        padding: 16px 0;
        border-left: none;
    }

    .hsm-trust__item:nth-child(1),
    .hsm-trust__item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .hsm-how__steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hsm-how, .hsm-pillars, .hsm-categories, .hsm-showcase, .hsm-color-tryon,
    .hsm-picks, .hsm-popular, .hsm-faq, .hsm-final-cta {
        padding: 56px 0;
    }

    .hsm-pillar {
        grid-template-columns: 1fr;
    }

    .hsm-pillar__img-wrap {
        min-height: 200px;
        max-height: 240px;
    }

    .hsm-pillar__body {
        padding: 20px;
    }

    .hsm-pillar__title {
        font-size: 18px;
    }

    .hsm-pillar__text {
        font-size: 14px;
    }

    .hsm-pillars__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hsm-pillars__arrow--prev { left: 8px; }
    .hsm-pillars__arrow--next { right: 8px; }

    .hsm-color-tryon__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hsm-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hsm-picks__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hsm-popular__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hsm-final-cta__title {
        font-size: 24px;
    }

    .hsm-btn--large {
        padding: 14px 32px;
        font-size: 14px;
    }

    .hsm-faq__question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .hsm-faq__answer {
        padding: 0 18px 18px;
    }

    .hsm-faq__answer p {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RTL — Hebrew (he) and Arabic (ar)
   ══════════════════════════════════════════════════════════════════════ */
[dir="rtl"] .hsm-homepage {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .hsm-homepage .hsm-section-title--left {
    text-align: right;
}

[dir="rtl"] .hsm-homepage .hsm-showcase__features li {
    padding-right: 28px;
    padding-left: 0;
}

[dir="rtl"] .hsm-homepage .hsm-showcase__features li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .hsm-homepage .hsm-faq__question::after {
    margin-right: 16px;
    margin-left: 0;
}

[dir="rtl"] .hsm-homepage .hsm-category-path__children {
    justify-content: flex-end;
}

[dir="rtl"] .hsm-homepage .hsm-trust__item {
    border-left: none;
    border-right: 1px solid var(--border);
}

[dir="rtl"] .hsm-homepage .hsm-trust__item:first-child {
    border-right: none;
}
