/*
Theme Name: Shang Taekwondo Heritage
Theme URI: https://shangtaekwondo.com/
Author: Shang Taekwondo
Description: A responsive, installable theme reconstructed from the original James Shang Taekwondo website, with separate editable pages.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: shang-taekwondo
*/

:root {
  --ink: #171512;
  --paper: #f7f3e9;
  --cream: #fffdf7;
  --red: #a51d24;
  --red-dark: #711218;
  --gold: #d3a53a;
  --muted: #686157;
  --line: #ded4c2;
  --shadow: 0 18px 50px rgba(35, 24, 15, .13);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(23,21,18,.96); color: #fff; backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 9px 11px; color: #f8f2e8; text-decoration: none; font-size: .86rem; font-weight: 700; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--gold); }
.menu-toggle { display: none; border: 1px solid #6f685e; background: transparent; color: white; border-radius: 8px; padding: 8px 11px; font: inherit; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 83% 15%, rgba(211,165,58,.27), transparent 27%), linear-gradient(120deg, #141210 0%, #2b201b 58%, #4f1218 100%); color: white; }
.hero::after { content: ""; position: absolute; inset: auto -5% -130px 35%; height: 250px; border: 1px solid rgba(211,165,58,.25); transform: rotate(-8deg); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; padding-block: 78px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-weight: 800; font-size: .78rem; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.045em; }
.hero-copy { max-width: 680px; margin: 26px 0 34px; color: #e7dfd3; font-size: 1.14rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #1d1710; text-decoration: none; font-weight: 850; letter-spacing: .02em; }
.button:hover { background: #e1b953; color: #17120c; }
.button-secondary { margin-left: 8px; background: transparent; color: #fff; }
.button-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border: 1px solid rgba(211,165,58,.37); border-radius: 50%; }
.hero-mark img { width: min(320px, 90%); border-radius: 50%; box-shadow: 0 26px 70px rgba(0,0,0,.48); }

.section { padding-block: 90px; }
.section-dark { background: #1c1915; color: #fff; }
.section-header { max-width: 760px; margin-bottom: 38px; }
.section-header h2, .page-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.035em; }
.section-header p { color: var(--muted); }
.section-dark .section-header p { color: #cfc6b8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); box-shadow: 0 8px 24px rgba(35,24,15,.05); }
.card .number { color: var(--red); font-weight: 900; font-size: .78rem; letter-spacing: .14em; }
.card h3 { margin: 24px 0 12px; font-size: 1.55rem; }
.card p { color: var(--muted); }
.card a { font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-copy h2 { margin: 0 0 20px; font-size: clamp(2.2rem, 4vw, 4rem); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { margin: 10px 0; padding-left: 28px; position: relative; }
.tick-list li::before { content: "●"; position: absolute; left: 0; color: var(--gold); }
.cta-band { padding-block: 58px; background: var(--red); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { margin: 0 0 5px; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-inner p { margin: 0; color: #f2dadd; }

.page-hero { padding-block: 80px 65px; background: linear-gradient(130deg, #171512, #3c1518); color: white; }
.page-hero p { max-width: 700px; color: #ddd2c4; font-size: 1.1rem; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; padding-block: 70px 100px; }
.entry-content > * { max-width: 780px; }
.entry-content h2 { margin-top: 2.2em; font-size: 2rem; }
.entry-content h3 { margin-top: 1.7em; font-size: 1.45rem; }
.entry-content .wp-block-image img, .entry-content > img { border-radius: var(--radius); }
.entry-content .heritage-image { max-height: 260px; width: auto; margin: 0 0 38px; object-fit: contain; background: #fff; box-shadow: var(--shadow); }
.sidebar-card { position: sticky; top: 110px; padding: 24px; border-top: 5px solid var(--gold); background: #fff; box-shadow: var(--shadow); }
.sidebar-card h2 { margin-top: 0; font-size: 1.55rem; }

.site-footer { padding-block: 55px 30px; background: #12100e; color: #c9c0b4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #e2c273; }
.copyright { margin-top: 35px; padding-top: 20px; border-top: 1px solid #302b26; font-size: .86rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 14px 20px 22px; background: #171512; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; }
  .site-nav a { padding: 10px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; gap: 55px; }
  .hero-mark img { width: 240px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .content-shell { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand span { font-size: .95rem; }
  .hero-grid { padding-block: 55px; }
  h1 { font-size: 3.2rem; }
  .hero-mark { display: none; }
  .cards, .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 65px; }
  .cta-inner { display: block; }
  .cta-inner .button { margin-top: 22px; }
  .button-secondary { margin: 10px 0 0; }
}
