/*
Theme Name: Guangheng
Theme URI: https://guanghengtechglobal.com
Author: Guangheng Technology LLC
Description: Editorial outdoor apparel storefront for Guangheng.
Version: 1.0.0
Text Domain: guangheng
*/

:root {
  --ink: #18211a;
  --paper: #f7f6f1;
  --white: #ffffff;
  --forest: #214c39;
  --moss: #69805f;
  --clay: #b75f43;
  --sun: #e7c85f;
  --line: #d8dbd2;
  --muted: #626b63;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; z-index: 100000; top: 16px; left: 16px;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: var(--white); color: var(--ink);
}
.site-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.announcement {
  min-height: 34px; display: flex; align-items: center; justify-content: center;
  padding: 7px 16px; background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase;
}
.site-header {
  position: relative; z-index: 30; background: rgba(247,246,241,.98);
  border-bottom: 1px solid rgba(24,33,26,.14);
}
.header-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  min-height: 78px; gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--ink); border-radius: 50%;
  font-family: Georgia, serif; font-size: 19px;
}
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 23px; text-transform: uppercase; }
.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav a, .header-actions a { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.primary-nav a { position: relative; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--ink); transition: right .2s ease;
}
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link, .menu-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid transparent; background: transparent; color: var(--ink);
}
.icon-link:hover, .menu-toggle:hover { border-color: var(--ink); }
.icon-link svg, .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-count {
  display: grid; place-items: center; position: absolute; transform: translate(12px,-12px);
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 50%;
  background: var(--clay); color: white; font-size: 10px; font-weight: 700;
}
.menu-toggle { display: none; }

.hero {
  position: relative; min-height: min(720px, calc(100vh - 112px)); overflow: hidden;
  display: flex; align-items: center; background: #d9c7a8;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,25,18,.67) 0%, rgba(14,25,18,.22) 43%, rgba(14,25,18,0) 70%); }
.hero-copy { position: relative; z-index: 2; width: min(620px, 52%); padding: 80px 0; color: white; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(46px, 5.3vw, 82px); line-height: 1.02; font-weight: 500; }
.hero p { max-width: 540px; margin: 22px 0 30px; font-size: 18px; }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: white; font-size: 13px; font-weight: 800; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--forest); color: white; transform: translateY(-1px);
}
.button-light { background: white; color: var(--ink); border-color: white; }
.button-light:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.trust-strip { background: var(--forest); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.trust-item span { font-size: 12px; opacity: .86; text-transform: uppercase; }

.section { padding: 86px 0; }
.section-white { background: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2, .editorial-copy h2, .page-header h1 {
  margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; font-weight: 500;
}
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.text-link { font-size: 12px; font-weight: 800; text-transform: uppercase; border-bottom: 1px solid currentColor; }

.category-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.category-tile {
  position: relative; min-height: 430px; overflow: hidden; background: #ddd;
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-tile:hover img { transform: scale(1.025); }
.category-label { position: absolute; left: 22px; bottom: 22px; padding: 11px 15px; background: white; font-weight: 800; text-transform: uppercase; }

.products-grid, .woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px 18px;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .product-card { width: auto !important; margin: 0 !important; float: none !important; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #efeee9; }
.product-image-wrap img, .woocommerce ul.products li.product a img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .35s ease; }
.product-card:hover .product-image-wrap img, .woocommerce ul.products li.product:hover a img { transform: scale(1.025); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; background: var(--sun); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product-meta { padding-top: 14px; }
.product-meta h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; margin: 0 0 4px !important; font-family: Georgia, serif; font-size: 18px !important; font-weight: 500; }
.product-meta .price, .woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 14px !important; font-weight: 700 !important; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 12px; min-height: 42px; }

.editorial { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 590px; background: var(--ink); color: white; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
.editorial-copy p { max-width: 560px; color: rgba(255,255,255,.8); }
.editorial-copy .button { align-self: flex-start; margin-top: 15px; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.value h3 { margin: 16px 0 7px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.value p { margin: 0; color: var(--muted); }
.value-number { font-size: 12px; font-weight: 800; color: var(--clay); }

.newsletter { background: var(--sun); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px,4vw,52px); font-weight: 500; }
.newsletter-form { display: flex; }
.newsletter-form input { min-width: 0; flex: 1; min-height: 50px; padding: 12px 16px; border: 1px solid var(--ink); background: rgba(255,255,255,.72); }

.site-footer { padding: 64px 0 28px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 46px; }
.footer-brand p { max-width: 350px; color: rgba(255,255,255,.67); }
.footer-column h3 { margin: 0 0 17px; font-size: 12px; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: rgba(255,255,255,.72); font-size: 14px; }
.footer-column a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.6); font-size: 12px; }

.page-header { padding: 72px 0 30px; }
.page-content { max-width: 900px; padding-bottom: 90px; }
.page-content h2 { margin-top: 42px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.page-content h3 { margin-top: 28px; font-size: 18px; }
.page-content a { text-decoration: underline; }
.policy-meta { color: var(--muted); font-size: 13px; }

.woocommerce .woocommerce-breadcrumb { margin: 28px 0; color: var(--muted); font-size: 12px; }
.woocommerce div.product { padding-bottom: 80px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 60px; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(34px,4vw,54px); font-weight: 500; line-height: 1.08; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 22px; }
.woocommerce div.product form.cart .variations select { min-height: 46px; border: 1px solid var(--line); padding: 8px; }
.woocommerce .quantity .qty { min-height: 48px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--forest); background: white; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--forest); }
.woocommerce table.shop_table { border-radius: 0; background: white; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 46px; padding: 10px 12px; border: 1px solid #bcc2bb; }

@media (max-width: 980px) {
  .site-shell { width: min(100% - 32px, var(--max)); }
  .header-row { grid-template-columns: 1fr auto; min-height: 68px; }
  .menu-toggle { display: inline-grid; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px 16px;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px; }
  .header-actions .account-link { display: none; }
  .hero-copy { width: min(620px, 70%); }
  .products-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-tile:first-child { grid-column: 1 / -1; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 430px; }
  .values-grid { gap: 24px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 24px, var(--max)); }
  .announcement { font-size: 10px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .header-actions { gap: 2px; }
  .hero { min-height: 610px; align-items: flex-end; }
  .hero-media { object-position: 63% center; }
  .hero::after { background: linear-gradient(0deg, rgba(14,25,18,.82) 0%, rgba(14,25,18,.2) 72%, rgba(14,25,18,0) 100%); }
  .hero-copy { width: 100%; padding: 50px 0 42px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 15px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 24px; }
  .section-head h2 { font-size: 36px; }
  .products-grid, .woocommerce ul.products { gap: 24px 10px; }
  .product-meta h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile:first-child { grid-column: auto; }
  .category-tile { min-height: 390px; }
  .editorial-image { min-height: 380px; }
  .editorial-copy { padding: 52px 24px; }
  .values-grid, .newsletter-inner, .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
}

