/*
Theme Name: MILAISHOES Editorial Preview
Theme URI: https://milaishoes.trad.link/
Author: TTCH
Description: Evidence-aware editorial B2B footwear preview for MILAISHOES.
Version: 0.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: milaishoes
*/

:root {
  --ink: #221f20;
  --muted: #6c6662;
  --paper: #f8f7f7;
  --surface: #ffffff;
  --mist: #d5dee3;
  --leather: #c6976d;
  --teal: #157073;
  --line: #e0dedc;
  --success: #138056;
  --danger: #b42318;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  --shell: 1180px;
  --shadow: 0 24px 70px rgba(34, 31, 32, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 36%, transparent); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.site-main { min-height: 70vh; }
.eyebrow, .ttch-kicker { margin: 0 0 14px; color: var(--leather); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.2vw, 6.3rem); }
h2 { font-size: clamp(2.35rem, 4.3vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { text-wrap: pretty; }
.lead { margin: 20px 0 0; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.section { padding: clamp(68px, 9vw, 112px) 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-mist { background: color-mix(in srgb, var(--mist) 42%, var(--paper)); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lead, .section-dark p { color: rgba(255,255,255,.7); }
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 46px; }
.section-head > p { max-width: 56ch; margin: 0; color: var(--muted); }
.button, .ttch-button, .nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 750; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover, .ttch-button:hover, .nav-cta:hover { transform: translateY(-2px); background: var(--teal); border-color: var(--teal); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }
.button.light { border-color: #fff; background: #fff; color: var(--ink); }
.button.light:hover { border-color: var(--leather); background: var(--leather); color: #fff; }

.utility-bar { background: var(--ink); color: #fff; }
.utility-row { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .06em; }
.utility-row a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(34,31,32,.08); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px); }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-family: var(--body); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 25px; margin-left: auto; font-size: .88rem; font-weight: 650; }
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--ink); transition: right .2s ease; }
.nav a:not(.nav-cta):hover::after, .nav a:not(.nav-cta):focus-visible::after { right: 0; }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.nav-toggle span[aria-hidden] { position: absolute; left: 13px; right: 13px; top: 22px; height: 1px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }

.hero { min-height: min(820px, calc(100vh - 112px)); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr); gap: clamp(52px, 8vw, 104px); align-items: center; padding: 70px 0; }
.hero-copy h1 { max-width: 10.5ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.buying-brief { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.buying-brief li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.shoe-studio { position: relative; min-height: 560px; overflow: hidden; border-radius: 3px; background: linear-gradient(145deg, #f0e7df, #d8e1e4 55%, #b9c9ca); box-shadow: var(--shadow); }
.shoe-studio::before { content: ""; position: absolute; inset: 42px; border: 1px solid rgba(34,31,32,.16); }
.shoe-studio::after { content: ""; position: absolute; width: 390px; height: 160px; left: 72px; top: 185px; border: 2px solid rgba(34,31,32,.68); border-radius: 52% 38% 45% 16%; transform: rotate(-12deg); box-shadow: inset 0 -40px 0 rgba(255,255,255,.18), 30px 34px 0 -22px rgba(34,31,32,.7); }
.studio-label { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; color: rgba(34,31,32,.72); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.studio-label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.studio-orbit { position: absolute; width: 180px; height: 180px; right: -44px; top: -36px; border: 1px solid rgba(34,31,32,.16); border-radius: 50%; box-shadow: -62px 112px 0 16px rgba(255,255,255,.14); }

.category-intro { max-width: 720px; margin-bottom: 48px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.category-card:nth-child(2) { background: var(--mist); }
.category-card:nth-child(3) { background: #ece4dd; }
.category-card .line-art { position: relative; min-height: 210px; border-bottom: 1px solid rgba(34,31,32,.16); }
.category-card .line-art::after { content: ""; position: absolute; width: 76%; height: 32%; left: 10%; top: 35%; border: 1.5px solid rgba(34,31,32,.58); border-radius: 55% 34% 46% 18%; transform: rotate(-8deg); }
.category-card p { margin: 12px 0 22px; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; font-weight: 750; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }

.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.fact { min-height: 190px; padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(3n+2), .fact:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.fact-label { display: block; margin-bottom: 34px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fact strong { display: block; font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.fact p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.process-step { min-height: 280px; padding: 34px; background: var(--ink); }
.process-step span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 70px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: rgba(255,255,255,.62); font-size: .75rem; }
.process-step p { margin: 14px 0 0; }
.market-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.market-panel { min-height: 440px; padding: 42px; background: var(--mist); }
.market-list { display: grid; margin-top: 56px; border-top: 1px solid rgba(34,31,32,.22); }
.market-list span { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(34,31,32,.22); font-family: var(--display); font-size: 1.4rem; }
.market-list span::after { content: "↗"; color: var(--muted); font-family: var(--body); font-size: 1rem; }
.contact-card { padding: clamp(34px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card .email { display: inline-block; margin-top: 24px; border-bottom: 1px solid currentColor; font-size: 1.05rem; font-weight: 700; }

.ttch-featured-products { border-top: 1px solid var(--line); }
.ttch-featured-grid, .ttch-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ttch-featured-card, .ttch-product-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ttch-featured-card a, .ttch-product-card a { display: block; height: 100%; }
.ttch-product-visual { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, #eee4dc, #d6dfe2); }
.ttch-product-visual::after { content: ""; position: absolute; width: 64%; height: 29%; left: 17%; top: 38%; border: 1.5px solid rgba(34,31,32,.55); border-radius: 55% 34% 46% 18%; transform: rotate(-8deg); }
.ttch-product-image { width: 100%; height: 100%; object-fit: cover; }
.ttch-card-body { padding: 24px; }
.ttch-card-body h3 { font-size: 1.65rem; }
.ttch-card-body p { margin: 12px 0; color: var(--muted); }
.ttch-card-link { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 750; }
.featured-products-footer { margin-top: 28px; }
.ttch-shell { width: min(var(--shell), calc(100% - 48px)); margin: 70px auto; }
.ttch-shell > h1 { max-width: 10ch; margin-bottom: 42px; }
.ttch-rfq { width: min(860px, 100%); margin: 0 auto; padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.ttch-rfq h2 { margin-bottom: 28px; }
.ttch-form { display: grid; gap: 17px; }
.ttch-two { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.ttch-field { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.ttch-field input, .ttch-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 13px 14px; background: var(--paper); color: var(--ink); }
.ttch-field textarea { min-height: 138px; resize: vertical; }
.ttch-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .82rem; }
.ttch-honeypot { position: absolute; left: -9999px; }
.ttch-notice { padding: 18px; border: 1px solid var(--line); }
.ttch-notice--success { border-color: var(--success); background: color-mix(in srgb, var(--success) 8%, #fff); color: var(--success); }

.page-wrap, .product-wrap { padding: clamp(56px, 8vw, 104px) 0; }
.entry { max-width: 830px; }
.entry h1 { max-width: 14ch; font-size: clamp(3rem, 6vw, 5.7rem); }
.entry-content { margin-top: 34px; }
.entry-content p, .entry-content li { color: var(--muted); }
.entry-content h2 { margin-top: 1.3em; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.product-art { min-height: 460px; position: relative; background: linear-gradient(150deg, #efe5dd, #d5dfe2); }
.product-art::after { content: ""; position: absolute; width: 66%; height: 28%; left: 17%; top: 38%; border: 2px solid rgba(34,31,32,.58); border-radius: 55% 34% 46% 18%; transform: rotate(-8deg); }
.product-copy h1 { max-width: 12ch; font-size: clamp(3rem, 5vw, 5.2rem); }
.product-copy .lead { margin-bottom: 28px; }
.product-content { max-width: 860px; margin: 64px auto 0; }
.product-content > .ttch-rfq { margin-top: 70px; }
.product-specs { margin: 46px 0; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.spec-list > div { padding: 20px; background: var(--surface); }
.spec-list dt { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.spec-list dd { margin: 8px 0 0; }
.site-footer { padding: 50px 0; border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-row p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .8rem; }

@media (max-width: 920px) {
  .site-shell { width: min(var(--shell), calc(100% - 28px)); }
  .utility-row a { display: none; }
  .header-row { min-height: 70px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; display: none; top: 100%; left: 14px; right: 14px; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; }
  .nav a { padding: 12px; }
  .nav-cta { margin-top: 6px; }
  .hero { min-height: auto; }
  .hero-grid, .section-head, .market-grid, .product-hero { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; padding: 54px 0 68px; }
  .hero-copy h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .shoe-studio { min-height: 390px; }
  .shoe-studio::after { width: 72%; height: 31%; left: 12%; top: 35%; }
  .category-grid, .facts-grid, .process-grid, .ttch-featured-grid, .ttch-product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 370px; }
  .fact, .fact:nth-child(3n+2), .fact:nth-child(3n+3) { padding: 24px 0; border-left: 0; }
  .process-step { min-height: 230px; }
  .process-step span { margin-bottom: 46px; }
  .market-panel { min-height: 380px; padding: 30px; }
  .ttch-shell { width: calc(100% - 28px); margin: 52px auto; }
  .ttch-two, .spec-list, .footer-row { grid-template-columns: 1fr; }
  .product-art { min-height: 340px; order: -1; }
  .footer-row { align-items: start; }
}

@media (max-width: 520px) {
  .hero-grid { gap: 28px; padding: 42px 0 46px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .buying-brief { display: none; }
  .shoe-studio { min-height: 230px; }
  .section { padding: 58px 0; }
  .ttch-rfq { padding: 26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
