/* ============================================================
   KURO CLINIC — GLOBAL BASE STYLES v2
   ============================================================ */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-dark);
  color: var(--text-dark-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--ts-base);
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ── ACCESSIBILITY ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--accent); color: var(--bg-dark);
  font-size: 11px; letter-spacing: 0.1em; padding: 8px 16px;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── SHARED TYPE ────────────────────────────────────────────── */
.eyebrow {
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-dark-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 0.5px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.on-light { color: var(--text-light-muted); }

.section-label {
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-dark-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 0.5px;
  background: currentColor;
  flex-shrink: 0;
}
.section-label.on-light { color: var(--text-light-muted); }

/* ── CTA LINKS ──────────────────────────────────────────────── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--cta-color);
  padding-bottom: 4px;
  border-bottom: 0.5px solid var(--cta-border);
  transition: border-color var(--t-slow), gap var(--t-base);
  cursor: pointer;
}
.cta-link:hover { border-color: var(--cta-color); gap: 16px; }
.cta-link .arr { transition: transform var(--t-base); }
.cta-link:hover .arr { transform: translateX(4px); }

.cta-link.on-light {
  color: var(--cta-color-dark);
  border-color: var(--cta-border-dark);
}
.cta-link.on-light:hover { border-color: var(--cta-color-dark); }

/* ── IMAGE HANDLING — Netlify-safe ─────────────────────────── */
/* 
  All images use object-fit: cover with explicit width/height on 
  their containers. The img tag itself gets width:100%, height:100%.
  This guarantees correct rendering regardless of CDN or host.
*/
.img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark-elevated); /* fallback while loading */
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}
.img-wrap:hover img { transform: scale(1.03); }

/* Portrait images — always show faces */
.img-wrap.portrait img { object-position: center top; }

/* Hero images — show upper half */  
.img-wrap.hero-img img { object-position: center 30%; }

/* ── SOCIAL ICONS ────────────────────────────────────────────── */
.social-links { display: flex; align-items: center; gap: 10px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px; /* prevent squishing */
  border: 0.5px solid currentColor;
  color: var(--text-dark-muted);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.social-link:hover { color: var(--accent); }
.social-link.on-light { color: var(--text-light-muted); }
.social-link.on-light:hover { color: var(--accent-warm); }
.social-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; margin-bottom: 28px; }
.form-label {
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-dark-muted); margin-bottom: 8px;
}
.form-label.on-light { color: var(--text-light-muted); }
.form-input, .form-textarea, .form-select {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border-dark);
  color: var(--text-dark-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-muted);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(158,125,98,0.4);
}
.form-textarea { resize: none; min-height: 90px; line-height: 1.75; }
.form-select option { background: var(--bg-dark-elevated); color: var(--text-dark-primary); }

/* on-light form */
.form-input.on-light, .form-textarea.on-light, .form-select.on-light {
  border-bottom-color: var(--border-light);
  color: var(--text-light-primary);
}
.form-input.on-light:focus, .form-textarea.on-light:focus {
  border-color: var(--accent-muted);
}

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 80px var(--inset) 64px;
  border-bottom: 0.5px solid var(--border-dark);
}
.page-hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.0;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--text-dark-primary);
  margin: 16px 0 4px;
}
.page-hero-sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--text-dark-secondary);
  line-height: 1.2;
}
.page-hero-body {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-dark-muted);
  max-width: 560px;
  margin-top: 20px;
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
hr.divider { border: none; border-top: 0.5px solid var(--border-dark); }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --inset: 40px; }
}
@media (max-width: 768px) {
  :root { --inset: 24px; --nav-h: 64px; }
}
@media (max-width: 480px) {
  :root { --inset: 16px; }
}
