/*
Theme Name: Mirror Edge Storefront
Theme URI: https://www.mirroredgenetworks.com/
Author: Mirror Edge Networks
Description: A modern, quote-led WooCommerce theme for luxury home cinema, hi-fi and design services.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: mirror-edge
*/

:root {
  --ink: #0b0d0e;
  --ink-soft: #151819;
  --paper: #f4f0e7;
  --paper-bright: #f8f7f3;
  --white: #fff;
  --muted: #a8aaa7;
  --muted-dark: #656966;
  --rule: #2a2d2f;
  --yellow: #ffd400;
  --yellow-dark: #d5b200;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.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 { min-height: 100vh; }
.site-width { width: min(100%, var(--content)); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--yellow { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: .98; }
h1 { font-size: clamp(3.3rem, 8.5vw, 8rem); }
h2 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); }
h3 { line-height: 1.2; }

.site-header {
  position: absolute; z-index: 20; inset: 0 0 auto; color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-header--solid { position: relative; color: var(--paper); background: var(--ink); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; letter-spacing: .04em; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; font-size: .9rem; text-transform: uppercase; }
.brand-copy small { margin-top: .26rem; color: var(--muted); font-size: .58rem; letter-spacing: .18em; }
.primary-nav { display: flex; justify-content: center; gap: clamp(1.2rem, 2.5vw, 2.5rem); }
.primary-nav a { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.menu-toggle { display: none; width: 44px; height: 44px; color: inherit; border: 1px solid currentColor; background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; content: ""; }
.button, .wp-element-button, button[type="submit"], input[type="submit"] {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: .78rem 1.25rem; border: 1px solid var(--yellow); border-radius: 3px;
  color: var(--ink); background: var(--yellow); font-size: .73rem; font-weight: 750;
  letter-spacing: .12em; line-height: 1; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover, button[type="submit"]:hover { background: var(--paper); border-color: var(--paper); transform: translateY(-1px); }
.button--ghost { color: var(--paper); background: transparent; border-color: rgba(255,255,255,.45); }
.button--ghost:hover { color: var(--ink); }
.text-link { display: inline-flex; gap: .65rem; align-items: center; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.text-link::after { content: "↗"; color: var(--yellow-dark); }

.hero { position: relative; min-height: min(900px, 100vh); color: var(--paper); background: var(--ink); overflow: hidden; }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,8,.92) 0%, rgba(5,7,8,.62) 43%, rgba(5,7,8,.14) 78%); content: ""; }
.hero-media { position: absolute; inset: 0 0 0 42%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.hero-inner { position: relative; z-index: 2; min-height: min(900px, 100vh); display: flex; align-items: flex-end; padding-top: 150px; padding-bottom: clamp(4rem, 9vh, 7rem); }
.hero-copy { max-width: 880px; }
.hero h1 { max-width: 980px; margin-bottom: 1.5rem; }
.hero-deck { max-width: 580px; margin-bottom: 2rem; color: #d3d0c8; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-note { position: absolute; right: var(--pad); bottom: 2rem; z-index: 3; color: #d3d0c8; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { padding-block: clamp(5rem, 9vw, 9rem); }
.section--dark { color: var(--paper); background: var(--ink); }
.section--paper { background: var(--paper-bright); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 390px); gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin-bottom: .5rem; color: var(--muted-dark); }
.section--dark .section-heading p { color: var(--muted); }

.category-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.category-tile { position: relative; min-height: 480px; padding: 2rem; overflow: hidden; border-right: 1px solid var(--rule); }
.category-tile:last-child { border-right: 0; }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: grayscale(.15); transition: transform .55s ease, opacity .3s ease; }
.category-art { position: absolute; inset: 0; overflow: hidden; background: var(--ink-soft); }
.category-art::before, .category-art::after { position: absolute; content: ""; }
.category-art::before { width: 72%; aspect-ratio: 1; left: 14%; top: 10%; border: 1px solid rgba(255,212,0,.38); border-radius: 50%; }
.category-art::after { width: 1px; height: 74%; left: 50%; top: 5%; background: linear-gradient(var(--yellow), transparent); transform: rotate(34deg); transform-origin: bottom; }
.category-art span { position: absolute; top: 1.6rem; right: 1.8rem; color: rgba(255,255,255,.18); font-family: var(--serif); font-size: 5rem; line-height: 1; }
.category-tile--design .category-art { background: linear-gradient(145deg, #25292a, #0b0d0e 62%); }
.category-tile--design .category-art::before { width: 55%; left: 23%; top: 16%; border-radius: 0; transform: rotate(45deg); }
.category-tile--design .category-art::after { width: 80%; height: 1px; left: 10%; top: 48%; background: linear-gradient(90deg, transparent, var(--yellow), transparent); transform: none; }
.category-tile::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.88)); content: ""; }
.category-tile:hover img { transform: scale(1.035); opacity: .72; }
.category-copy { position: absolute; z-index: 2; inset: auto 2rem 2rem; }
.category-copy h3 { max-width: 280px; margin-bottom: .6rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.5rem); font-weight: 400; }
.category-copy p { margin: 0; color: #c9c7c0; }

.product-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d4d1c9; }
.product-card { padding: 1.5rem 1.25rem 1.5rem 0; border-right: 1px solid #d4d1c9; }
.product-card + .product-card { padding-left: 1.25rem; }
.product-card:last-child { border-right: 0; }
.product-media { display: grid; min-height: 260px; place-items: center; margin-bottom: 1.4rem; background: #efede7; overflow: hidden; }
.product-media img { max-height: 210px; object-fit: contain; mix-blend-mode: multiply; }
.product-placeholder { width: 72%; aspect-ratio: 1.8; border-radius: 4px; background: linear-gradient(145deg, #202426, #080a0b); box-shadow: 0 24px 40px rgba(20,20,20,.18); }
.product-card .brand-label { margin-bottom: .55rem; color: var(--muted-dark); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.product-card h3 { min-height: 2.4em; margin-bottom: .65rem; font-size: 1.05rem; }
.product-card .treatment { color: var(--muted-dark); font-size: .78rem; }
.product-card .text-link { margin-top: 1.1rem; }

.service-split { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 680px; }
.service-visual { position: relative; display: grid; min-height: 680px; place-items: center; overflow: hidden; color: var(--paper); background: radial-gradient(circle at 50% 42%, #222728 0, #111415 38%, #080a0b 72%); }
.service-visual::before, .service-visual::after { position: absolute; content: ""; }
.service-visual::before { width: min(64%, 520px); aspect-ratio: 1; border: 1px solid rgba(255,212,0,.44); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); }
.service-visual::after { inset: 7%; border: 1px solid rgba(255,255,255,.08); }
.service-mark { position: relative; z-index: 1; display: grid; width: min(68%, 480px); }
.service-mark__label, .service-mark__caption { font-size: .67rem; font-weight: 700; letter-spacing: .18em; line-height: 1.7; text-transform: uppercase; }
.service-mark strong { margin: 1rem 0; color: var(--yellow); font-family: var(--serif); font-size: clamp(6rem, 14vw, 12rem); font-weight: 400; letter-spacing: -.08em; line-height: .8; }
.service-mark__line { width: 100%; height: 1px; margin: 1.4rem 0; background: linear-gradient(90deg, var(--yellow), rgba(255,212,0,0)); }
.service-mark__caption { color: var(--muted); }
.service-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); background: var(--yellow); }
.service-copy h2 { max-width: 620px; }
.service-copy p { max-width: 540px; }
.service-copy .text-link::after { color: var(--ink); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid var(--rule); }
.process-step { padding: 1.5rem 1.5rem 0 0; border-right: 1px solid var(--rule); }
.process-step + .process-step { padding-left: 1.5rem; }
.process-step:last-child { border-right: 0; }
.process-step span { display: block; margin-bottom: 2.4rem; color: var(--yellow); font-family: var(--serif); font-size: 2rem; }
.process-step h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.process-step p { color: var(--muted); font-size: .84rem; }

.store-hero { padding: clamp(5rem, 10vw, 10rem) 0 clamp(3rem, 6vw, 5rem); color: var(--paper); background: var(--ink); }
.store-hero h1 { max-width: 1000px; margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 7rem); }
.store-hero p { max-width: 620px; color: var(--muted); }
.woocommerce-breadcrumb { margin: 0 0 2rem !important; color: var(--muted) !important; font-size: .72rem !important; letter-spacing: .1em; text-transform: uppercase; }
.shop-shell { padding-block: 4rem 7rem; }
.shop-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 3rem; padding-bottom: 1.25rem; border-bottom: 1px solid #d4d1c9; }
.shop-toolbar select, .woocommerce-ordering select { min-height: 46px; padding: .7rem 2.5rem .7rem .8rem; border: 1px solid #c8c5be; background: var(--white); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 !important; margin: 0 !important; border-top: 1px solid #d4d1c9; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 1.5rem !important; border-right: 1px solid #d4d1c9; border-bottom: 1px solid #d4d1c9; }
.woocommerce ul.products li.product:nth-child(3n) { border-right: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 2.6em; color: var(--ink); font-size: 1rem !important; line-height: 1.3; }
.woocommerce ul.products li.product img { aspect-ratio: 1.25; object-fit: contain; padding: 1.5rem; background: #efede7; }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: .9rem !important; }
.woocommerce ul.products li.product .button { margin-top: 1rem !important; }
.mirror-treatment { margin: .55rem 0 0; color: var(--muted-dark); font-size: .75rem; }

.product-detail { padding-block: clamp(4rem, 8vw, 8rem); }
.product-detail > .product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(2.5rem, 6vw, 7rem); }
.product-detail .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.product-detail .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.product-detail .product_title { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 400; line-height: 1; }
.quote-panel { margin: 2rem 0; padding: 1.5rem; border-left: 4px solid var(--yellow); background: #efede7; }
.quote-panel strong { display: block; margin-bottom: .4rem; }
.quote-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.25rem; }
.quote-actions .button--dark { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.quote-actions .button--dark:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.quote-page { padding-block: clamp(4rem, 9vw, 8rem); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); gap: clamp(3rem, 8vw, 8rem); }
.quote-intro h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
.quote-intro p { max-width: 490px; color: var(--muted-dark); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.quote-form .field--full { grid-column: 1 / -1; }
.quote-form label { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.quote-form input, .quote-form textarea, .quote-form select { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid #bdbab2; border-radius: 2px; background: var(--white); }
.quote-form textarea { min-height: 150px; resize: vertical; }
.form-notice { grid-column: 1 / -1; padding: 1rem; border-left: 4px solid var(--yellow); background: #ece9e1; }

.site-footer { padding: 5rem 0 2rem; color: var(--paper); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 3rem; }
.footer-brand p { max-width: 360px; color: var(--muted); }
.footer-col h3 { margin-bottom: 1rem; color: var(--yellow); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: .55rem; color: #d0cec8; font-size: .84rem; }
.store-identity { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .76rem; line-height: 1.65; }
.store-identity p { margin: 0; }
.store-identity strong { color: var(--paper); }
.store-identity a { color: #d0cec8; }
.store-identity .payment-provider { margin-top: .7rem; color: var(--paper); }
.footer-base { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .7rem; }

@media (max-width: 980px) {
  .primary-nav { display: none; position: fixed; inset: 88px 0 0; padding: 3rem var(--pad); flex-direction: column; justify-content: flex-start; background: var(--ink); }
  .menu-open .primary-nav { display: flex; }
  .primary-nav a { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; text-transform: none; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .category-rail { grid-template-columns: 1fr; }
  .category-tile { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .product-rail { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(2) { border-right: 0; }
  .product-card:nth-child(3) { padding-left: 0; border-top: 1px solid #d4d1c9; }
  .product-card:nth-child(4) { border-top: 1px solid #d4d1c9; }
  .service-split, .product-detail > .product, .quote-grid { grid-template-columns: 1fr; }
  .service-visual { min-height: 460px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products li.product:nth-child(3n) { border-right: 1px solid #d4d1c9; }
  .woocommerce ul.products li.product:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { min-height: 76px; gap: 1rem; }
  .brand-copy { display: none; }
  .primary-nav { top: 76px; }
  .hero { min-height: 760px; }
  .hero-media { inset: 0; opacity: .64; }
  .hero::after { background: linear-gradient(180deg, rgba(5,7,8,.36), rgba(5,7,8,.94) 72%); }
  .hero-inner { min-height: 760px; padding-top: 130px; }
  .hero-note { display: none; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.1rem); }
  .section-heading { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-rail, .process-steps, .woocommerce ul.products { grid-template-columns: 1fr; }
  .product-card, .product-card + .product-card, .woocommerce ul.products li.product { padding: 1.5rem 0 !important; border-right: 0 !important; border-bottom: 1px solid #d4d1c9; }
  .service-visual { min-height: 340px; }
  .service-mark { width: min(72%, 360px); }
  .service-mark strong { font-size: clamp(5.2rem, 29vw, 8rem); }
  .quote-form { grid-template-columns: 1fr; }
  .quote-form > * { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
