/*
Theme Name: Shinto Earth Craft
Theme URI: https://shintoearthcraft.com.au
Author: Shinto Earth Craft
Description: Official theme for Shinto Earth Craft — Japanese furniture and restored knives, Melbourne. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shinto
Tags: e-commerce, woocommerce, dark, minimal
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #09080A;
  --charcoal: #111010;
  --ash: #191818;
  --stone: #222020;
  --paper: #EDE8E0;
  --paper-dim: #9A9288;
  --muted: #5A5550;
  --border: rgba(237,232,224,0.07);
  --border-light: rgba(237,232,224,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: var(--charcoal);
  color: var(--paper);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,8,10,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-main {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--paper);
}
.nav-logo-sub {
  font-size: 8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  border: 0.5px solid var(--border-light);
  padding: 9px 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.nav-cta:hover { border-color: var(--paper-dim); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 96vh;
  overflow: hidden;
}
.hero-left {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.hero-kanji {
  position: absolute;
  top: 40px;
  left: 48px;
  font-family: 'Shippori Mincho', serif;
  font-size: 160px;
  font-weight: 400;
  color: rgba(237,232,224,0.03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--muted);
}
.hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 70px;
  font-weight: 400;
  line-height: 1.02;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.hero-jp {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  color: rgba(237,232,224,0.18);
  letter-spacing: 0.22em;
  margin-bottom: 30px;
}
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 340px;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 12px; }
.btn-light {
  display: inline-block;
  background: var(--paper);
  color: var(--black);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 30px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-light:hover { background: #D8D0C4; color: var(--black); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 26px;
  text-decoration: none;
  border: 0.5px solid var(--border-light);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--paper-dim); color: var(--paper); }
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}
.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 35%);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(237,232,224,0.25);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 0.5px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(237,232,224,0.25));
}

/* ── PHIL STRIP ── */
.phil-strip {
  background: var(--ash);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 24px 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.phil-item { text-align: center; }
.phil-jp {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  color: rgba(237,232,224,0.35);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.phil-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.phil-div {
  width: 0.5px;
  height: 36px;
  background: var(--border-light);
}

/* ── SECTIONS ── */
.section { padding: 96px 60px; }
.section-dark { background: var(--black); }
.section-mid { background: var(--ash); }
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 0.5px;
  background: var(--muted);
}
.section-h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.08;
  margin-bottom: 48px;
}

/* ── FURNITURE GRID ── */
.furn-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2px;
}
.furn-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.furn-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.4s, transform 0.6s ease;
}
.furn-card:hover img { filter: brightness(0.8); transform: scale(1.03); }
.furn-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.furn-card-placeholder span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.furn-main img, .furn-main .furn-card-placeholder { min-height: 520px; }
.furn-side { display: flex; flex-direction: column; gap: 2px; }
.furn-side .furn-card img,
.furn-side .furn-card-placeholder { min-height: 259px; }
.furn-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(9,8,10,0.88) 0%, transparent 100%);
}
.furn-cat {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237,232,224,0.45);
  margin-bottom: 6px;
}
.furn-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 4px;
}
.furn-price { font-size: 12px; color: var(--paper-dim); }
.view-all {
  display: inline-block;
  margin-top: 32px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--muted);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.view-all:hover { color: var(--paper); border-color: var(--paper); }

/* ── YAKISUGI SPLIT ── */
.yaki-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.yaki-img {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.yaki-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
}
.yaki-content {
  background: var(--stone);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.yaki-content h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 20px;
}
.yaki-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 36px;
  max-width: 400px;
}

/* ── KNIFE GRID ── */
.knife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
}
.knife-card {
  background: var(--ash);
  overflow: hidden;
  cursor: pointer;
}
.knife-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.4s, transform 0.6s ease;
}
.knife-card:hover img { filter: brightness(0.88); transform: scale(1.03); }
.knife-card-placeholder {
  width: 100%;
  height: 340px;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.knife-card-placeholder span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.knife-info {
  padding: 22px 26px;
  border-top: 0.5px solid var(--border);
}
.knife-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0.5px solid var(--border-light);
  padding: 4px 10px;
  margin-bottom: 10px;
}
.knife-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  color: var(--paper);
  margin-bottom: 6px;
}
.knife-detail {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.knife-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}
.knife-price { font-size: 14px; color: var(--paper); }
.knife-link {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--muted);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.knife-link:hover { color: var(--paper); border-color: var(--paper); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 2px;
  margin-top: 48px;
}
.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.4s, transform 0.6s ease;
}
.gallery-item:hover img { filter: brightness(0.85); transform: scale(1.04); }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-placeholder span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── COMMISSION ── */
.commission {
  background: var(--black);
  border-top: 0.5px solid var(--border);
  padding: 96px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.commission h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 46px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.1;
}
.commission p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 32px;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 0.5px solid var(--border);
  padding: 44px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: rgba(237,232,224,0.2);
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin: 0; }
.footer-links a {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,232,224,0.18);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--muted); }
.footer-right {
  font-size: 10px;
  color: rgba(237,232,224,0.15);
  text-align: right;
}

/* ── INNER PAGES ── */
.page-header {
  background: var(--black);
  padding: 80px 60px 60px;
  border-bottom: 0.5px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.1;
}
.page-content {
  padding: 60px;
  max-width: 820px;
  margin: 0 auto;
}
.page-content h2, .page-content h3 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
  color: var(--paper);
  margin: 32px 0 14px;
}
.page-content h2 { font-size: 32px; }
.page-content h3 { font-size: 24px; }
.page-content p { font-size: 15px; color: var(--muted); line-height: 1.95; margin-bottom: 20px; }
.page-content a { color: var(--paper-dim); }
.page-content ul, .page-content ol { padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 2; }

/* ── SINGLE POST ── */
.post-header {
  background: var(--black);
  padding: 80px 60px 60px;
  border-bottom: 0.5px solid var(--border);
}
.post-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.1;
  max-width: 760px;
}
.post-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
}
.post-body {
  padding: 60px;
  max-width: 760px;
  margin: 0 auto;
}
.post-body h2, .post-body h3 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
  color: var(--paper);
  margin: 40px 0 16px;
}
.post-body h2 { font-size: 32px; }
.post-body h3 { font-size: 24px; }
.post-body p { font-size: 16px; color: var(--muted); line-height: 2; margin-bottom: 22px; }
.post-body img { max-width: 100%; height: auto; margin: 32px 0; }
.post-body a { color: var(--paper-dim); }

/* ── ARCHIVE / BLOG ── */
.archive-page { background: var(--charcoal); min-height: 60vh; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  padding: 2px;
}
.archive-card {
  background: var(--ash);
  border: none;
  transition: background 0.2s;
}
.archive-card:hover { background: var(--stone); }
.archive-card a { text-decoration: none; color: inherit; display: block; }
.archive-card-img { width: 100%; height: 240px; overflow: hidden; background: var(--stone); }
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: filter 0.3s; }
.archive-card:hover .archive-card-img img { filter: brightness(0.85); }
.archive-card-body { padding: 28px; }
.archive-card-date {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.archive-card-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.25;
  margin-bottom: 12px;
}
.archive-card-excerpt { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ── 404 ── */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  padding: 60px;
}
.error-page .error-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 160px;
  color: rgba(237,232,224,0.04);
  line-height: 1;
  margin-bottom: 0;
}
.error-page h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 80px;
  font-weight: 400;
  color: rgba(237,232,224,0.1);
  line-height: 1;
  margin-bottom: 24px;
}
.error-page h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 16px;
}
.error-page p { font-size: 13px; color: var(--muted); margin-bottom: 36px; }

/* ── WP UTILS ── */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 55vh; }
  .hero-left { padding: 48px 24px 56px; }
  .hero h1 { font-size: 46px; }
  .phil-strip { padding: 18px 20px; gap: 0; justify-content: space-around; }
  .section { padding: 60px 20px; }
  .furn-grid { grid-template-columns: 1fr; }
  .yaki-split { grid-template-columns: 1fr; }
  .yaki-img { height: 300px; }
  .yaki-content { padding: 48px 24px; }
  .knife-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .commission { grid-template-columns: 1fr; padding: 60px 20px; gap: 32px; }
  .commission h2 { font-size: 36px; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 32px 20px; }
  .footer-right { text-align: center; }
  .page-header { padding: 48px 20px 36px; }
  .page-content { padding: 40px 20px; }
  .post-header { padding: 48px 20px 36px; }
  .post-body { padding: 40px 20px; }
}
