/*
Theme Name: BeLocal Japan
Theme URI: https://belocaljapan.com
Author: BeLocal Japan
Author URI: https://belocaljapan.com
Description: Official theme for BeLocal Japan. Cultural authority platform and store based in Kamakura. Deep lacquer red and warm parchment palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: belocal
Tags: blog, e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BeLocal Japan Theme — Main Stylesheet
   Palette: #760000 / #9b4f4f / #F6F2EE / #1A0F0F
   Fonts: Cormorant Garamond + DM Sans + Shippori Mincho
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Shippori+Mincho:wght@500;600;700&family=DM+Sans:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --c-parchment:  #F6F2EE;
  --c-cream:      #EDE7E0;
  --c-paper:      #FAF7F4;
  --c-dark:       #140C0C;
  --c-ink:        #1A0F0F;
  --c-ink-soft:   #362020;
  --c-stone:      #8A7B78;
  --c-burgundy:   #760000;
  --c-wine:       #9b4f4f;
  --c-blush:      #C08080;
  --c-bordeaux:   #4D0000;
  --c-rule:       #DDD5D0;
  --c-rule-light: #EAE2DC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-jp:      'Shippori Mincho', serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:        1080px;
  --ease:         0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--c-parchment);
  color: var(--c-ink-soft);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { max-width: 65ch; font-weight: 400; }
.jp { font-family: var(--font-jp); }

/* ── Layout helpers ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section-alt    { background: var(--c-cream); }
.section-paper  { background: var(--c-paper); }

/* ── Accent ──────────────────────────────────────────────── */
.rule { width: 36px; height: 1px; background: var(--c-burgundy); margin: 1rem 0; }
.rule-full { width: 100%; height: 1px; background: var(--c-rule); margin: 2rem 0; }
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-stone);
}
.card-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-burgundy);
  margin-bottom: 0.6rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--c-burgundy); color: var(--c-paper); border: 1px solid var(--c-burgundy); }
.btn-primary:hover { background: var(--c-wine); border-color: var(--c-wine); color: var(--c-paper); }
.btn-outline { background: transparent; color: var(--c-ink); border: 1px solid var(--c-rule); }
.btn-outline:hover { border-color: var(--c-burgundy); color: var(--c-burgundy); }
.btn-outline-light { background: transparent; color: var(--c-paper); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: var(--c-blush); color: var(--c-blush); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-rule-light);
  padding: 1.75rem;
  transition: border-color var(--ease), transform var(--ease);
}
.card:hover { border-color: var(--c-burgundy); transform: translateY(-2px); }

/* ── Site Header / Nav ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
}
.site-header .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
}
.site-header .site-logo img { height: 36px; width: auto; display: block; }
.site-header .site-logo a { display: flex; align-items: center; }

/* Primary nav */
.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-stone);
  transition: color var(--ease);
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--c-ink); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--c-burgundy);
  border-bottom: 1px solid var(--c-burgundy);
  padding-bottom: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink-soft);
  margin: 4px 0;
  transition: all var(--ease);
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: var(--c-stone);
  padding: 3.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-parchment);
  margin-bottom: 0.75rem;
}
.footer-brand .footer-logo span { color: var(--c-blush); }
.footer-tagline { font-size: 0.85rem; line-height: 1.7; max-width: 28ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-parchment);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.85rem; font-weight: 400; transition: color var(--ease); color: var(--c-stone); }
.footer-col a:hover { color: var(--c-blush); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #2E2026;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #5A4E52;
}
.footer-bottom a { color: inherit; text-decoration: underline; }

/* ── Fade-in ─────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Pull quote ──────────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-ink);
  border-left: 2px solid var(--c-burgundy);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  max-width: 44ch;
  line-height: 1.5;
}

/* ── Article cards (archive/blog) ───────────────────────── */
.post-card {
  background: var(--c-paper);
  border: 1px solid var(--c-rule-light);
  transition: border-color var(--ease), transform var(--ease);
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { border-color: var(--c-burgundy); transform: translateY(-2px); }
.post-card .post-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.post-card .post-card-img-ph {
  aspect-ratio: 3/2;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--c-stone);
}
.post-card .post-card-body { padding: 1.25rem 1.5rem 1.75rem; }
.post-card .post-card-body h2,
.post-card .post-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--c-ink);
}
.post-card .post-card-body p { font-size: 0.85rem; color: var(--c-stone); max-width: 100%; }
.post-card .post-card-meta {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--c-rule-light);
  font-size: 0.72rem;
  color: var(--c-stone);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--ease);
  border-radius: 0;
  appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--c-burgundy); }
input::placeholder, textarea::placeholder { color: var(--c-stone); }
textarea { min-height: 140px; resize: vertical; line-height: 1.7; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-rule);
    padding: 1rem 2rem 1.5rem;
    z-index: 99;
  }
  .primary-nav.open ul { flex-direction: column; gap: 1rem; }
  .nav-toggle { display: block; }
}

/* ── WordPress core classes ──────────────────────────────── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--c-stone); text-align: center; margin-top: 0.4rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
}
