/*
Theme Name: EAOY Fashion
Theme URI: https://www.hyeaoyfashion.com/
Author: EAOY Fashion
Description: Editorial B2B apparel theme designed for Elementor templates and WordPress content editing.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: eaoy-fashion
*/

:root {
    --ink: #252525;
    --muted: #6f706d;
    --line: #dedfd9;
    --paper: #f7f6f1;
    --white: #fff;
    --accent: #8b0c09;
    --accent-dark: #600907;
    --focus: #1e6f8f;
    --max-width: 1240px;
    --gutter: clamp(20px, 4vw, 64px);
    --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link.screen-reader-text {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; min-width: 0; scroll-margin-top: var(--header-height); }
.site-main > *, .site-main :target { scroll-margin-top: var(--header-height); }
.site-main, .site-footer { overflow-wrap: anywhere; }
.container > *, .header-inner > * { min-width: 0; }
.container { width: min(100% - (2 * var(--gutter)), var(--max-width)); margin-inline: auto; }
.narrow { max-width: 780px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { display: flex; align-items: center; flex: 0 1 180px; }
.site-title { font-family: Georgia, serif; font-size: 24px; line-height: 1.1; letter-spacing: .04em; text-decoration: none; }
.site-description { display: none; }
.primary-navigation ul, .footer-navigation ul { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a, .language-switcher a { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { display: flex; gap: 8px; }
.language-switcher a + a::before { content: '/'; margin-right: 8px; color: var(--muted); }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: 8px 12px; cursor: pointer; }

.button, .wp-block-button__link, .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover, .wp-block-button__link:hover, .elementor-button:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }
.button--light { border-color: var(--white); background: transparent; }
.button--light:hover { background: var(--white); color: var(--ink); }
.text-link { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.hero { position: relative; min-height: min(760px, calc(100vh - 82px)); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .84; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 20, .70), rgba(20, 20, 20, .08) 75%); }
.hero__content { position: relative; z-index: 1; padding-block: clamp(88px, 14vh, 160px) clamp(60px, 10vh, 110px); }
.hero h1 { max-width: 720px; margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(46px, 7vw, 92px); font-weight: 400; line-height: .98; }
.hero p { max-width: 510px; margin: 0 0 30px; color: rgba(255, 255, 255, .88); font-size: 19px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding-block: clamp(68px, 9vw, 132px); }
.section--paper { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-heading h2, .page-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(35px, 5vw, 62px); font-weight: 400; line-height: 1.05; }
.section-heading p { max-width: 460px; margin: 0; color: var(--muted); }
.page-header { padding-block: 90px 64px; border-bottom: 1px solid var(--line); }
.page-header p { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }

/* Banner page headers (photo background + scrim) */
.page-header--image {
    position: relative;
    padding-block: clamp(96px, 15vw, 168px) clamp(64px, 9vw, 104px);
    border-bottom: 0;
    background-color: var(--ink);
    background-image: var(--page-header-image);
    background-size: cover;
    background-position: center 55%;
    color: var(--white);
}
.page-header--image-short { padding-block: clamp(76px, 11vw, 120px) clamp(52px, 7vw, 80px); }
.page-header--image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 18, 18, .78), rgba(18, 18, 18, .30) 78%); }
.page-header--image > .container { position: relative; z-index: 1; }
.page-header--image h1 { color: var(--white); }
.page-header--image p { color: rgba(255, 255, 255, .86); }
.page-header--image .eyebrow { color: #f0b8b3; }
.page-header--image .term-description { margin-top: 22px; color: rgba(255, 255, 255, .86); }

/* Editorial image grids */
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.editorial-grid__item { margin: 0; overflow: hidden; background: var(--paper); }
.editorial-grid__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.editorial-grid__item:hover img { transform: scale(1.04); }
.editorial-grid__item--wide { grid-column: span 2; }
.editorial-grid__item--tall { grid-row: span 2; }

@media (prefers-reduced-motion: reduce) {
    .editorial-grid__item:hover img { transform: none; }
}

.category-grid, .product-grid, .article-grid, .process-grid, .metric-grid { display: grid; gap: 18px; }
.category-grid { grid-template-columns: repeat(3, 1fr); }
.category-card { position: relative; min-height: 360px; overflow: hidden; background: var(--ink); color: var(--white); }
.category-card__image { width: 100%; height: 100%; object-fit: cover; opacity: .76; transition: transform .35s ease, opacity .35s ease; }
.category-card:hover .category-card__image { transform: scale(1.04); opacity: .9; }
.category-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.category-card__body { position: absolute; z-index: 1; inset: auto 24px 22px; }
.category-card .eyebrow, .category-card a:hover { color: var(--white); }
.category-card .image-placeholder { background: linear-gradient(135deg, #45413b, #292724); opacity: 1; }
.category-card a:focus-visible { outline-color: var(--white); }
.category-card h3 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.category-card a { text-decoration: none; }

.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-card { border-top: 1px solid var(--line); }
.product-card__image { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.image-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e8e4da, #f8f7f2); }
.product-card__body { padding: 20px 0 6px; }
.product-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.15; }
.product-card p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); }

.metric-grid { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 26px 10px 26px 0; }
.metric strong { display: block; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1; }
.metric span, .metric dt { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.metric dd { margin: 12px 0 0; }
.product-detail-image { max-width: 860px; margin: 0 auto 56px; }
.product-detail-image img { margin-inline: auto; }
.product-specifications { margin-top: 70px; padding: clamp(20px, 4vw, 48px); }
.product-specifications .metric-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.process-grid { grid-template-columns: repeat(4, 1fr); counter-reset: process; }
.process-step { padding-top: 18px; border-top: 1px solid var(--ink); }
.process-step::before { counter-increment: process; content: '0' counter(process); display: block; margin-bottom: 30px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.process-step h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.process-step p { margin: 0; color: var(--muted); }

.article-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { padding-top: 18px; border-top: 1px solid var(--line); }
.article-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.15; }
.article-card p { color: var(--muted); }
.article-card__meta { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { padding-block: 70px 24px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.site-footer h2, .site-footer h3 { margin: 0 0 16px; font-family: Georgia, serif; font-weight: 400; }
.site-footer p { max-width: 350px; margin: 0; color: rgba(255, 255, 255, .72); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #f5c3be; }
.footer-navigation ul { display: block; columns: 2; }
.footer-navigation li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .55); font-size: 12px; }

.entry-content > * { max-width: 780px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: var(--max-width); }
.entry-content h2, .entry-content h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.15; }
.entry-content h2 { margin-top: 56px; font-size: 38px; }
.entry-content h3 { margin-top: 36px; font-size: 28px; }
.entry-content p, .entry-content li { color: #42433f; }

@media (max-width: 1024px) {
    .header-inner { min-height: 72px; flex-wrap: wrap; gap: 16px; padding-block: 12px; }
    :root { --header-height: 112px; }
    .site-branding { flex: 1 1 160px; }
    .navigation-ready .menu-toggle { display: inline-block; }
    .primary-navigation { order: 4; flex-basis: 100%; width: 100%; padding-top: 16px; border-top: 1px solid var(--line); }
    .navigation-ready .primary-navigation { display: none; }
    .navigation-ready .primary-navigation.is-open { display: block; max-height: 60vh; overflow-y: auto; }
    .primary-navigation ul { display: block; }
    .primary-navigation ul ul { padding-left: 18px; }
    .primary-navigation a { display: inline-block; padding-block: 8px; }
    .header-actions { flex-wrap: wrap; }
    .category-grid, .product-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .header-actions { gap: 8px; }
    .header-actions .button { display: inline-flex; min-height: 40px; padding: 8px 12px; font-size: 11px; }
    .menu-toggle { flex: 0 0 auto; padding: 7px 9px; font-size: 12px; }
    .language-switcher a { font-size: 10px; }
    .header-inner { gap: 8px; }
    .site-title { font-size: 20px; }
    .language-switcher { gap: 4px; }
    .hero { min-height: 660px; }
    .hero h1 { font-size: clamp(42px, 13vw, 64px); }
    .hero p { font-size: 17px; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 16px; }
    .category-grid, .product-grid, .article-grid, .process-grid, .metric-grid, .editorial-grid { grid-template-columns: 1fr; }
    .editorial-grid__item--wide { grid-column: auto; }
    .category-card { min-height: 300px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid > :first-child { grid-column: auto; }
    .footer-bottom { display: block; }
    .footer-bottom > * + * { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .category-card:hover .category-card__image,
    .product-card:hover .product-card__image img { transform: none; }
}
