/*
 | TAJ Public UI — Redesign V2
 | Contemporary perfume-house interface. Restrained type scale, image-led layout,
 | deliberate motion. Colors/fonts are defined only in theme.css.
 */

.site-body {
    font-size: var(--type-base);
    line-height: 1.65;
    background: var(--surface-page);
}

.site-header {
    height: 74px;
    border-bottom: 1px solid var(--site-header-border);
    background: var(--site-header-solid);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    height: 100%;
    margin: 0 auto;
    gap: 24px;
}

.brand-mark {
    min-width: 116px;
    gap: 8px;
}

.brand-word {
    font-size: 23px;
    letter-spacing: .09em;
}

.brand-mark small {
    font-size: var(--type-micro);
    letter-spacing: .12em;
}

.site-nav {
    gap: clamp(20px, 2.7vw, 42px);
}

.site-nav a {
    position: relative;
    padding: 27px 0 24px;
    font-size: 13px;
    font-weight: 700;
}

.site-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 18px;
    height: 1px;
    background: var(--taj-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-header-search {
    width: 158px;
    min-height: 38px;
    border-radius: 8px;
}

.site-header-search input {
    font-size: 12px;
}

.locale-switcher button,
.site-menu-button {
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px;
}

/* Generic typography: only supporting text gets lifted. */
.section-kicker {
    font-size: var(--type-xs);
    letter-spacing: .12em;
}

.section-heading h2,
.custom-editorial h2,
.story-copy h2,
.contact-intro h2,
.product-block-heading h2,
.product-section-head h2 {
    font-family: var(--font-ar-display);
    letter-spacing: 0;
}

.section-heading p,
.custom-editorial p,
.story-copy p,
.contact-intro p,
.product-lead,
.product-story-copy p,
.catalog-hero p {
    font-size: 15px;
    line-height: 1.9;
}

.button-primary,
.button-outline,
.button-light,
.catalog-search-submit,
.catalog-search-reset,
.text-link {
    font-size: 13px;
}

.button-primary,
.button-outline,
.button-light,
.catalog-search-submit {
    min-height: 44px;
    border-radius: 8px;
}

/* Landing hero — strong but not oversized. */
.hero-section {
    min-height: min(800px, calc(100dvh - 74px));
    grid-template-columns: minmax(340px, .86fr) minmax(420px, 1.14fr);
    border-bottom: 1px solid var(--site-dark-rule);
}

.hero-copy {
    padding: clamp(54px, 7vw, 104px) clamp(28px, 5vw, 76px);
    justify-content: center;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-family: var(--font-ar-display);
    font-size: clamp(44px, 6.2vw, 78px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.hero-copy > p {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.95;
}

.hero-actions {
    margin-top: 27px;
}

.hero-footnote,
.hero-scroll,
.hero-vertical-word {
    font-size: var(--type-micro);
}

.hero-visual {
    min-height: 620px;
    border-inline-start: 1px solid var(--site-dark-rule);
}

.hero-image-wrap {
    height: 100%;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s var(--ease-out), filter .8s var(--ease-out);
}

.hero-section:hover .hero-image-wrap img {
    transform: scale(1.018);
}

/* Landing sections */
.landing-section,
.experience-section,
.story-section,
.contact-section {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    margin-inline: auto;
}

.landing-section {
    padding-block: clamp(70px, 8vw, 118px);
}

.section-heading {
    gap: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--site-dark-rule);
    padding-bottom: 20px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(30px, 3.7vw, 50px);
    line-height: 1.3;
}

.section-heading > p {
    max-width: 520px;
    color: var(--site-copy-muted);
}

/* Product cards: flat editorial, no fake floating AI-card effect. */
.perfume-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.perfume-card-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--site-card-border);
    border-radius: 3px;
    background: var(--site-panel-warm);
}

.perfume-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 680ms var(--ease-out), filter 680ms var(--ease-out);
}

.perfume-card:hover .perfume-card-media img {
    transform: scale(1.035);
}

.perfume-badge {
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: var(--type-micro);
}

.perfume-card-copy {
    padding: 16px 1px 0;
}

.perfume-card-meta {
    gap: 10px;
    color: var(--text-secondary);
    font-size: var(--type-micro);
}

.perfume-card h3 {
    margin: 7px 0 8px;
    font-family: var(--font-en-serif);
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 500;
    line-height: 1.1;
}

html[lang='ar'] .perfume-card h3 {
    font-family: var(--font-ar-display);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.4;
}

.perfume-card-copy > p {
    min-height: 0;
    margin: 0 0 12px;
    color: var(--site-copy-muted);
    font-size: 13px;
    line-height: 1.8;
}

.perfume-accord-list {
    gap: 6px 12px;
    margin: 12px 0 14px;
}

.perfume-accord-list span {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--site-gold-soft-line);
    border-radius: 0;
    font-size: 11px;
}

/* Collection section: restrained split layout. */
.collection-editorial {
    min-height: 600px;
    grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
    padding-block: 30px;
    border-block: 1px solid var(--site-dark-rule);
}

.collection-copy h2 {
    margin: 8px 0 14px;
    font-family: var(--font-ar-display);
    font-size: clamp(32px, 4.3vw, 56px);
    line-height: 1.28;
}

.collection-copy p {
    font-size: 14px;
    line-height: 1.9;
}

.collection-stack {
    min-height: 520px;
}

.collection-frame {
    border-radius: 2px;
}

/* Full banner: photography first, copy compact. */
.inline-banner {
    width: 100%;
    max-width: none;
    min-height: 560px;
    padding: 0;
    overflow: hidden;
    border-block: 1px solid var(--site-dark-rule);
}

.inline-banner > picture,
.inline-banner > picture img {
    width: 100%;
    height: 100%;
}

.inline-banner > picture img {
    object-fit: cover;
}

.inline-banner-copy {
    max-width: 560px;
    padding: clamp(32px, 6vw, 86px);
}

.inline-banner-copy h2 {
    font-family: var(--font-ar-display);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.3;
}

.inline-banner-copy p {
    font-size: 14px;
    line-height: 1.9;
}

/* Olfactive experience */
.experience-section {
    padding-block: clamp(80px, 9vw, 128px);
}

.experience-intro {
    max-width: 840px;
}

.experience-intro h2 {
    margin: 9px 0 14px;
    font-family: var(--font-ar-display);
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.32;
}

.experience-intro p {
    max-width: 680px;
    font-size: 15px;
}

.experience-grid {
    margin-top: 44px;
    gap: 34px;
}

.experience-product,
.accord-panel {
    border-radius: 3px;
}

.experience-product h3 {
    font-size: clamp(28px, 3vw, 42px);
}

.experience-product p,
.accord-panel-head,
.accord-row {
    font-size: 13px;
}

.note-pyramid {
    margin-top: 34px;
}

.note-layer {
    min-height: 96px;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 1px solid var(--site-dark-rule);
}

.note-layer-title span,
.note-layer-index,
.note-chips span {
    font-size: 11px;
}

.note-layer-title h3 {
    font-size: 20px;
}

/* Story/contact: editorial split without giant type. */
.story-section,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 86px);
    padding-block: clamp(80px, 9vw, 126px);
    border-top: 1px solid var(--site-dark-rule);
}

.story-copy h2,
.contact-intro h2 {
    margin: 9px 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.3;
}

.story-quote blockquote {
    font-family: var(--font-ar-display);
    font-size: clamp(24px, 3vw, 39px);
    line-height: 1.65;
}

.contact-form {
    border-radius: 3px;
}

.contact-form label > span {
    font-size: 12px;
}

.contact-form input,
.contact-form textarea {
    font-size: 14px;
}

/* Footer: functional, not oversized. */
.site-footer {
    padding: 52px 0 26px;
}

.site-footer-grid,
.site-footer-bottom {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
}

.footer-brand h2 {
    max-width: 480px;
    font-family: var(--font-ar-display);
    font-size: clamp(25px, 2.8vw, 38px);
    line-height: 1.45;
}

.footer-kicker,
.footer-links h3,
.footer-links a,
.footer-contact a,
.site-footer-bottom {
    font-size: var(--type-xs);
}

/* Catalog page */
.catalog-hero {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    min-height: 330px;
    padding: 82px 0 44px;
}

.catalog-hero h1 {
    max-width: 780px;
    margin: 10px 0 13px;
    font-family: var(--font-ar-display);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.28;
}

.catalog-hero-count {
    font-size: clamp(50px, 7vw, 94px);
    opacity: .28;
}

.catalog-search-shell,
.public-catalog-list,
.catalog-pagination,
.catalog-empty,
.catalog-next-phase {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    margin-inline: auto;
}

.catalog-search-panel {
    border-radius: 3px;
}

.catalog-field > span,
.catalog-result-bar,
.catalog-search-actions {
    font-size: 12px;
}

.catalog-field input,
.catalog-field select {
    font-size: 13px;
}

.public-catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 58px) clamp(18px, 2.6vw, 38px);
    padding-block: 54px 84px;
}

.catalog-pagination a,
.catalog-pagination span {
    min-width: 40px;
    min-height: 40px;
    border-radius: 6px;
    font-size: 12px;
}

/* Product experience */
.product-experience-page {
    font-size: var(--type-base);
}

.product-hero {
    min-height: calc(100dvh - 74px);
    grid-template-columns: minmax(430px, 1.1fr) minmax(380px, .9fr);
}

.product-hero-gallery {
    min-height: 640px;
}

.product-hero-copy {
    padding: clamp(48px, 7vw, 96px) clamp(26px, 5vw, 74px);
}

.product-overline,
.product-story-label,
.product-scroll-link,
.product-facts dt,
.product-note-layer > header span,
.product-accord-meta,
.variant-summary,
.product-sequence {
    font-size: 11px;
}

.product-hero-copy h1 {
    margin: 10px 0 13px;
    font-family: var(--font-en-serif);
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 500;
    line-height: 1;
}

html[lang='ar'] .product-hero-copy h1 {
    font-family: var(--font-ar-display);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.3;
}

.product-lead {
    max-width: 620px;
    font-size: 15px;
}

.variant-options button,
.product-tags span,
.product-accord-row,
.product-note-card,
.product-facts dd {
    font-size: 12px;
}

.product-story,
.product-accords-section,
.product-notes-section,
.related-products-section {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    margin-inline: auto;
    padding-block: clamp(68px, 8vw, 112px);
}

.product-story-copy h2,
.product-block-heading h2,
.product-section-head h2 {
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.35;
}

.product-story-mark {
    font-size: clamp(72px, 12vw, 180px);
    opacity: .08;
}

.product-accords-grid {
    gap: 9px;
}

.product-accord-row {
    min-height: 58px;
    border-radius: 4px;
}

.product-note-card {
    border-radius: 3px;
}

.related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Shared reveal animation. */
.ui-enter-ready {
    opacity: 0;
    transform: translateY(12px);
}

.ui-enter-ready.ui-entered {
    opacity: 1;
    transform: none;
    transition:
        opacity 520ms var(--ease-out) var(--ui-delay, 0ms),
        transform 520ms var(--ease-out) var(--ui-delay, 0ms);
}

@media (max-width: 1100px) {
    .site-nav {
        gap: 18px;
    }

    .hero-section,
    .product-hero {
        grid-template-columns: 1fr 1fr;
    }

    .public-catalog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        height: 66px;
    }

    .site-header-inner {
        width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    }

    .site-nav,
    .site-header-search {
        display: none;
    }

    .hero-section,
    .product-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        order: 2;
        padding: 42px 22px 56px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 10vw, 58px);
    }

    .hero-visual {
        order: 1;
        min-height: 58dvh;
        max-height: 660px;
        border-inline-start: 0;
        border-bottom: 1px solid var(--site-dark-rule);
    }

    .landing-section,
    .experience-section,
    .story-section,
    .contact-section,
    .catalog-hero,
    .catalog-search-shell,
    .public-catalog-list,
    .catalog-pagination,
    .catalog-empty,
    .catalog-next-phase,
    .product-story,
    .product-accords-section,
    .product-notes-section,
    .related-products-section,
    .site-footer-grid,
    .site-footer-bottom {
        width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    }

    .collection-editorial,
    .story-section,
    .contact-section,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .collection-stack {
        min-height: 440px;
    }

    .product-hero-gallery {
        min-height: 62dvh;
        max-height: 700px;
    }

    .product-hero-copy {
        padding: 42px 20px 56px;
    }
}

@media (max-width: 620px) {
    .landing-section {
        padding-block: 62px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading h2,
    .story-copy h2,
    .contact-intro h2,
    .experience-intro h2 {
        font-size: 31px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy > p {
        font-size: 14px;
    }

    .public-catalog-list,
    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .catalog-hero {
        min-height: 260px;
        padding-top: 58px;
    }

    .catalog-hero h1 {
        font-size: 38px;
    }

    .catalog-hero-count {
        font-size: 54px;
    }

    .catalog-search-top {
        grid-template-columns: 1fr;
    }

    .catalog-search-actions,
    .catalog-result-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-hero-copy h1,
    html[lang='ar'] .product-hero-copy h1 {
        font-size: 40px;
    }

    .product-note-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove decorative numbering/gimmicks; the composition itself carries the hierarchy. */
.hero-vertical-word,
.note-layer-index {
    display: none;
}

.hero-footnote {
    gap: 10px;
}

.experience-number {
    font-family: var(--font-en-sans);
    font-size: var(--type-micro);
    letter-spacing: .12em;
}


/* V5 custom typography */
.site-body,
.site-body button,
.site-body input,
.site-body select,
.site-body textarea {
    font-family: var(--font-ar-body);
}
.site-nav,
.site-header-actions,
.site-footer-nav,
.locale-switcher,
.site-mobile-menu {
    font-family: var(--font-ar-kufi);
}
html[lang="en"] .site-body,
html[lang="en"] .site-body button,
html[lang="en"] .site-body input,
html[lang="en"] .site-body select,
html[lang="en"] .site-body textarea,
html[lang="en"] .site-nav,
html[lang="en"] .site-header-actions,
html[lang="en"] .site-footer-nav,
html[lang="en"] .locale-switcher,
html[lang="en"] .site-mobile-menu {
    font-family: var(--font-en-ui);
}


/* V6 safe-area correction: never pin public content to viewport edges. */
.site-header-inner,
.site-footer-grid,
.site-footer-bottom,
.landing-section,
.experience-section,
.story-section,
.contact-section,
.catalog-shell,
.page-shell {
    width: min(var(--layout-max), calc(100% - var(--layout-gutter) - var(--layout-gutter)));
    margin-inline: auto;
}

.site-footer {
    padding-inline: 0;
}

@media (max-width: 900px) {
    .site-header-inner,
    .site-footer-grid,
    .site-footer-bottom,
    .landing-section,
    .experience-section,
    .story-section,
    .contact-section,
    .catalog-shell,
    .page-shell {
        width: calc(100% - var(--layout-gutter) - var(--layout-gutter));
    }
}
