/* ==========================================================================
   SUNRISE STUDIO — stylesheet
   Warm cream / navy / gold palette, matching the brand board.
   ========================================================================== */

:root {
  --color-bg: #faf6ef;
  --color-bg-alt: #f3ecdf;
  --color-surface: #ffffff;
  --color-ink: #1f2430;
  --color-ink-soft: #4a4f5c;
  --color-navy: #1f2430;
  --color-gold: #c9973f;
  --color-gold-dark: #a8792b;
  --color-line: #e4dccb;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(31, 36, 48, 0.06);
  --max-width: 1120px;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
}

/* Bilingual content: each translatable block is authored twice, tagged with
   data-i18n-lang, and toggled purely with CSS based on <html data-lang>. This
   keeps translated copy in the static HTML (readable with JS disabled,
   crawlable, no runtime templating that could mis-render). */
html[data-lang="ja"] [data-i18n-lang="en"],
html[data-lang="en"] [data-i18n-lang="ja"] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: 0.01em;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--color-ink-soft);
}

.accent {
  color: var(--color-gold-dark);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-line);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

/* Toggled by main.js: hides the header while scrolling down past the first
   screen, brings it back the moment the visitor scrolls up. */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

.brand .logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.98rem;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-gold-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 3px;
  background: var(--color-surface);
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-ink-soft);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--color-navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-gold {
  background: var(--color-gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--color-gold-dark);
}

.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.35;
  margin-bottom: 22px;
}

.hero-copy p {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  /* shows while hero-home-workout.jpg loads, and behind its rounded corners */
  background: linear-gradient(155deg, #2a3040 0%, #1f2430 55%, #16192200 100%),
    radial-gradient(circle at 80% 20%, rgba(201, 151, 63, 0.55), transparent 45%);
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .sun-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  z-index: 1;
}

/* Generic photo-frame helper used across sections for real photography. */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tall {
  aspect-ratio: 4 / 5;
}

.photo-wide {
  aspect-ratio: 16 / 9;
}

.card-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}

.hashtags {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* ---------- Origin / vision split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
}

.card p {
  color: var(--color-ink-soft);
  margin: 0;
}

/* ---------- Pain points ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.pain-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 18px 20px;
}

.pain-item .mark {
  color: var(--color-gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.value-banner {
  margin-top: 56px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.value-banner .eyebrow {
  color: var(--color-gold);
}

.value-banner h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.value-banner p {
  color: #d7dae1;
  margin: 0;
  max-width: 56ch;
}

.value-banner .service-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 24px;
  text-align: center;
  white-space: nowrap;
}

.value-banner .service-pill strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-gold);
}

/* ---------- Flow steps ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.flow-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.flow-step h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Delivery + services ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
}

.delivery-item .icon {
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-ink-soft);
}

.check-list li::before {
  content: "✓";
  color: var(--color-gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Trainers ---------- */

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
}

.trainer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.trainer-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 auto 18px;
}

.trainer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-role {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.trainer-facts {
  text-align: left;
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.trainer-fact dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.trainer-fact dd {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.trainer-social {
  display: inline-block;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-decoration: none;
}

.trainer-social:hover {
  text-decoration: underline;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}

.price-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.price-card .price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin: 4px 0;
}

.price-card p:not(.price) {
  color: var(--color-ink-soft);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- B2B audience cards ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.audience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.audience-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--color-gold-dark);
}

.audience-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.audience-card p {
  color: var(--color-ink-soft);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- CTA / contact ---------- */

.cta-band {
  background: var(--color-navy);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}

.cta-band .eyebrow {
  color: var(--color-gold);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d7dae1;
  max-width: 60ch;
  margin: 0 auto 28px;
}

.philosophy-line {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-gold) !important;
  letter-spacing: 0.01em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info .card {
  margin-bottom: 16px;
}

form.contact-form {
  display: grid;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

/* honeypot field must stay invisible to humans but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status[data-state="success"] {
  color: #1f7a3d;
}

.form-status[data-state="error"] {
  color: #b3261e;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-tagline {
  max-width: 46ch;
  color: var(--color-ink-soft);
}

.footer-tagline strong {
  color: var(--color-navy);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-ink-soft);
}

.footer-links a:hover {
  color: var(--color-gold-dark);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--color-ink-soft);
}

.info-table {
  margin: 32px 0;
  border-top: 1px solid var(--color-line);
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}

.info-row dt {
  font-weight: 700;
  color: var(--color-navy);
}

.info-row dd {
  margin: 0;
  color: var(--color-ink-soft);
}

@media (max-width: 560px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* The nav now carries 7 links plus the brand and lang switch; that overflows
   the header well above the general 720px phone breakpoint below (measured
   overflow starts around 950-1024px), so the hamburger switch-over gets its
   own, wider breakpoint. */
@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* The "Free Consult" pill and the hamburger both fighting for space
     overflows the nav at phone widths; the same destination is one tap away
     inside the menu (Contact), so drop the standalone button here. */
  .nav-actions > .btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

  .flow-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .value-banner {
    padding: 30px;
  }

  .cta-band {
    padding: 34px 22px;
  }
}

/* ---------- Spacing utilities (avoid inline style="" so CSP can drop
   'unsafe-inline' from style-src) ---------- */

.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-lg { margin-bottom: 56px; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
