/*
Theme Name: Gemma
Theme URI: https://gemmalife.com
Author: Gemma Life
Author URI: https://gemmalife.com
Description: Elegant WordPress theme for Gemma with modern design and smooth animations
Version: 1.0.0
License: GPL v2 or later
Text Domain: gemma
*/

:root {
  --bg: oklch(97% 0.012 92);
  --surface: oklch(100% 0 0);
  --fg: oklch(31% 0 0);
  --muted: oklch(46% 0.012 92);
  --border: oklch(84% 0.02 88);
  --accent: oklch(47% 0.18 29);
  --gold: oklch(72% 0.075 88);
  --ink: oklch(21% 0.012 70);
  --night: oklch(18% 0.018 55);
  --success: oklch(58% 0.12 150);
  --warn: oklch(70% 0.13 75);
  --font-display: "Marcellus", "Noto Serif JP", YuMincho, "Hiragino Mincho ProN", serif;
  --font-body: "Noto Serif JP", YuMincho, "Hiragino Mincho ProN", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.site {
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--border), transparent 72%) 1px, transparent 1px) 0 0 / 74px 74px,
    var(--bg);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}
.nav-inner {
  width: min(var(--max), calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 20px;
  background: color-mix(in oklch, var(--surface), transparent 10%);
  border: 1px solid color-mix(in oklch, var(--border), transparent 20%);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(36, 28, 18, 0.08);
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
}
.brand span,
.nav-links,
.eyebrow,
.meta {
  font-family: var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 11px;
}
.brand span { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav-cta:hover,
.btn:hover { transform: translateY(-2px); background: var(--ink); border-color: var(--ink); }
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.52);
}
.btn.secondary:hover { background: #fff; color: var(--ink); }

.hero {
  min-height: 100vh;
  display: grid;
  align-items: stretch;
  background: var(--night);
  color: #fff;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,13,10,.94) 0%, rgba(15,13,10,.74) 33%, rgba(15,13,10,.08) 60%, rgba(15,13,10,.02) 100%),
    linear-gradient(180deg, transparent 74%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(310px, .44fr);
  gap: 50px;
  align-items: end;
}
.eyebrow { color: var(--gold); margin-bottom: 20px; }
h1 {
  max-width: 880px;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 118px);
  line-height: .98;
  font-weight: 500;
  text-wrap: balance;
}
.lead {
  max-width: 660px;
  margin-top: 26px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.85;
  color: rgba(255,255,255,.86);
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.proof-panel {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(16,14,12,.46);
  backdrop-filter: blur(14px);
  padding: 28px;
  display: grid;
  gap: 20px;
}
.proof-panel blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.22;
  color: #fff;
}
.proof-panel p { color: rgba(255,255,255,.76); }
.proof-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.78);
}
.proof-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.proof-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-panel em {
  color: var(--gold);
  font-style: normal;
  white-space: nowrap;
}
.proof-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
}
.proof-mini span {
  padding-top: 18px;
  color: rgba(255,255,255,.78);
}
.proof-mini strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
}
.section-head {
  display: grid;
  grid-template-columns: .38fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 46px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.06;
  font-weight: 500;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  max-width: 650px;
  text-wrap: pretty;
}

.importance-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border: 1px solid var(--border);
  background: var(--surface);
}
.importance-copy {
  padding: clamp(28px, 4vw, 54px);
  display: grid;
  align-content: center;
  gap: 28px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.12;
  color: var(--accent);
  text-wrap: balance;
}
.importance-copy p {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}
.importance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.importance-list article {
  padding: 22px;
  border-right: 1px solid var(--border);
  min-height: 178px;
}
.importance-list article:last-child { border-right: 0; }
.importance-list h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 10px;
}
.importance-list p { color: var(--muted); font-size: 15px; }
.importance-photo {
  min-height: 600px;
  border-left: 1px solid var(--border);
  overflow: hidden;
  background: var(--night);
}
.importance-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dark-band {
  background: var(--night);
  color: #fff;
  margin-top: 24px;
}
.dark-band .section { width: min(1240px, calc(100% - 40px)); }
.dark-band .section-head p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.gemma-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: stretch;
}
.gemma-photo {
  min-height: 650px;
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  position: sticky;
  top: 96px;
  background: #111;
}
.gemma-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}
.gemma-card-stack {
  display: grid;
  gap: 16px;
}
.gemma-card {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.055);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s ease, opacity .7s ease, background .2s ease, border-color .2s ease;
}
.gemma-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.gemma-card:hover {
  background: rgba(255,255,255,.1);
  border-color: color-mix(in oklch, var(--gold), transparent 28%);
}
.gemma-card .num {
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1;
  color: var(--gold);
}
.gemma-card h3 {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.22;
  font-weight: 500;
  margin-bottom: 8px;
}
.gemma-card p { color: rgba(255,255,255,.7); }

.representative {
  display: grid;
  grid-template-columns: .52fr 1.48fr;
  gap: 34px;
  align-items: stretch;
}
.representative-portrait {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px;
  min-height: 430px;
  aspect-ratio: 4 / 5;
}
.representative-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  border: 1px solid var(--border);
}
.representative-copy {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  align-content: center;
  gap: 28px;
}
.representative-name {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.representative-name h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 500;
}
.representative-name p {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.representative-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.28;
  color: var(--ink);
  text-wrap: balance;
}
.representative-body {
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}
.representative-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.representative-points span {
  min-height: 132px;
  padding: 18px;
  border-right: 1px solid var(--border);
  display: grid;
  align-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.representative-points span:last-child { border-right: 0; }
.representative-points b {
  display: block;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
}

.outfit {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.outfit-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  align-content: center;
  gap: 28px;
}
.outfit-math {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
}
.math-box {
  padding: 22px;
  min-height: 188px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}
.math-box:first-child { border-right: 1px solid var(--border); }
.math-box strong {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 86px);
  line-height: .9;
  color: var(--accent);
  font-weight: 500;
}
.math-box span { color: var(--muted); }
.outfit-image {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px;
  display: grid;
  align-items: center;
}
.outfit-image img {
  width: 100%;
  border: 1px solid var(--border);
}
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklch, var(--accent), transparent 91%);
}
.tab-copy {
  min-height: 112px;
  color: var(--muted);
  font-size: 18px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.process-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 32px;
  align-items: stretch;
}
.process-photo {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px;
  min-height: 430px;
  overflow: hidden;
}
.process-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
}
.process-layout .process {
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
}
.process-layout .step:nth-child(2n) { border-right: 0; }
.process-layout .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.step {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.step:last-child { border-right: 0; }
.step .meta { color: var(--accent); }
.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}
.step p { color: var(--muted); }

.booking {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(36, 28, 18, .08);
}
.booking-copy {
  padding: 44px;
  background:
    linear-gradient(180deg, rgba(196,27,22,.08), transparent 40%),
    var(--surface);
}
.booking-copy h2 { font-size: clamp(38px, 5vw, 64px); }
.booking-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}
.booking-list {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  color: var(--fg);
}
.booking-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.booking-list em {
  font-style: normal;
  color: var(--muted);
  text-align: right;
}
.booking-form {
  padding: 34px;
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--border);
}
.field { display: grid; gap: 8px; }
label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg), white 42%);
  color: var(--fg);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 84%);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--fg);
}
.chip.active {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent), transparent 90%);
  color: var(--accent);
}
.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}
.form-status.ok { color: var(--success); }
.form-status.warn { color: var(--accent); }

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
footer a { text-decoration: underline; text-underline-offset: 4px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-inner,
  .section-head,
  .importance-grid,
  .gemma-layout,
  .representative,
  .outfit,
  .process-layout,
  .booking {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding-top: 112px;
    width: min(100% - 36px, var(--max));
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(15,13,10,.9), rgba(15,13,10,.5)),
      linear-gradient(180deg, transparent 78%, var(--bg) 100%);
  }
  .proof-panel { max-width: 560px; }
  .importance-photo {
    border-left: 0;
    border-top: 1px solid var(--border);
    min-height: 520px;
  }
  .representative-portrait { min-height: 360px; }
  .gemma-photo { position: relative; top: auto; min-height: 560px; }
  .process,
  .process-layout .process { grid-template-columns: 1fr 1fr; }
  .booking-form { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav { padding: 10px; }
  .nav-inner { padding: 10px 10px 10px 14px; }
  .brand span { display: none; }
  .nav-cta { padding: 0 12px; font-size: 13px; }
  .hero-inner { padding: 96px 0 44px; gap: 28px; }
  h1 { font-size: clamp(46px, 15vw, 72px); }
  .lead { font-size: 17px; }
  .section { width: min(100% - 28px, var(--max)); padding: 72px 0; }
  .section-head { gap: 22px; margin-bottom: 30px; }
  .importance-list,
  .outfit-math,
  .representative-points,
  .process,
  .process-layout .process { grid-template-columns: 1fr; }
  .importance-list article,
  .math-box:first-child,
  .representative-points span,
  .step { border-right: 0; }
  .importance-list article,
  .math-box:first-child,
  .representative-points span:not(:last-child),
  .process-layout .step:not(:last-child) { border-bottom: 1px solid var(--border); }
  .gemma-card { grid-template-columns: 72px 1fr; padding: 18px; }
  .gemma-card .num { font-size: 42px; }
  .booking { width: min(100% - 28px, var(--max)); }
  .booking-copy,
  .booking-form { padding: 24px; }
  .booking-list span { display: grid; text-align: left; }
  .booking-list em { text-align: left; }
  footer { flex-direction: column; width: min(100% - 28px, var(--max)); }
}