/* =========================================================
   Yawara Ryu Eeklo — stylesheet
   ========================================================= */

@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --white: #ffffff;
  --ink: #141311;
  --ink-2: #1e1c19;
  --ink-3: #2a2723;
  --text: #2b2824;
  --muted: #6b655c;
  --line: rgba(20, 19, 17, 0.1);
  --red: #b5121b;
  --red-2: #d4232c;

  --serif: "Shippori Mincho", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(20, 19, 17, 0.35), 0 10px 20px -10px rgba(20, 19, 17, 0.12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 242, 236, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 64px;
}
.header-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-small {
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--ink); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background .25s, color .25s;
}
.nav a:hover { background: rgba(20, 19, 17, .06); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 500px at 50% 110%, var(--paper-2), transparent 70%),
    var(--paper);
}
.hero-sun {
  position: absolute;
  z-index: -1;
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red-2), var(--red) 70%);
  top: calc(var(--header-h) + 1rem);
  right: clamp(-80px, 4vw, 8%);
  opacity: .92;
  display: block;
}
.hero-kanji {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, .92);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  letter-spacing: .05em;
  white-space: nowrap;
  user-select: none;
}
.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.eyebrow-line { width: 36px; height: 1px; background: currentColor; }
h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(2.8rem, 8.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 11ch;
}
h1 .h1-small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: .9rem;
}
h1 em { font-style: normal; color: var(--red); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -12px rgba(20,19,17,.6); }
.btn-primary:hover { background: var(--red); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(20,19,17,.2); color: var(--ink); background: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-banner {
  margin-top: clamp(-6rem, -6vw, -1rem);
  pointer-events: none;
}
.hero-banner img {
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 97%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 97%);
}
/* Scherm breder dan de foto: zijkanten zacht laten uitlopen */
@media (min-width: 2201px) {
  .hero-banner img {
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 97%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to bottom, transparent 0%, #000 20%, #000 58%, transparent 97%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-composite: intersect;
  }
}

/* ===== SECTIONS ===== */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-tight { padding-top: clamp(2rem, 5vw, 4rem); }

.section-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--red);
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.two-col-reverse { grid-template-columns: 1fr 1.05fr; }
.two-col > *, .contact > * { min-width: 0; }

.intro-text p + p { margin-top: 1.2rem; }
.intro-text p:not(.section-label) { font-size: 1.1rem; }
.intro-text .quote {
  margin-top: 2rem;
  padding-left: 1.3rem;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

.framed { position: relative; }
.framed::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  z-index: 0;
  transition: transform .6s var(--ease);
}
.framed:hover::before { transform: translate(-6px, -6px); }
.framed img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.framed-dark::before { inset: 1.4rem 1.4rem -1.4rem -1.4rem; border-color: rgba(255,255,255,.18); }
.framed-dark:hover::before { transform: translate(6px, -6px); }

/* ===== DARK SECTION / SCHEDULE ===== */
.section-dark {
  background: var(--ink);
  color: #e9e5de;
  overflow: hidden;
}
.section-dark .section-label { color: rgba(233,229,222,.6); }
.section-dark .section-label::before { background: var(--red-2); }

.schedule-wrap { position: relative; }
.dark-sun {
  position: absolute;
  z-index: 0;
  width: clamp(150px, 20vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red-2), var(--red) 70%);
  top: clamp(-120px, -9vw, -70px);
  right: clamp(-90px, -5vw, -30px);
}

.schedule {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .5rem;
  position: relative;
  z-index: 1;
}
.schedule table { width: 100%; border-collapse: collapse; }
.schedule th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(233,229,222,.5);
  padding: 1rem 1.2rem .8rem;
}
.schedule td {
  padding: 1.15rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 1rem;
}
.schedule tbody tr { transition: background .25s; }
.schedule tbody tr:hover { background: rgba(255,255,255,.04); }
.schedule tbody tr:nth-child(3) td { border-top-color: rgba(255,255,255,.16); }
.schedule .time { white-space: nowrap; }
.pill {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,.08);
  color: #f2eee8;
}

/* ===== CONTACT ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  align-items: stretch;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.8rem;
}
.contact-list { list-style: none; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.contact-list a:hover { color: var(--red); border-color: currentColor; }
.contact-list address { font-style: normal; }
.icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(181,18,27,.08);
  color: var(--red);
  margin-top: -.35rem;
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
  background: var(--paper-2);
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 230px);
  grid-auto-flow: dense;
  gap: .8rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-2);
  padding: 0;
}
.g-item.g-wide { grid-column: span 2; }
.g-item.g-tall { grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,19,17,.35), transparent 50%);
  opacity: 0;
  transition: opacity .4s;
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { opacity: 1; }
.g-item:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 11, 10, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1rem;
  opacity: 0;
  transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .25s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .1em; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: rgba(233,229,222,.75); padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; font-size: .95rem; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-brand img { width: 88px; height: 88px; }
.footer-name { display: block; font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.35rem; line-height: 1.2; }
.footer-since { display: block; color: var(--red-2); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .25rem; }
.site-footer .brand-small { color: rgba(233,229,222,.5); }
.fb {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; font-weight: 500;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  transition: background .25s, border-color .25s;
}
.fb:hover { background: #1877f2; border-color: #1877f2; }
.fb svg { width: 18px; height: 18px; fill: currentColor; }
.footer-address { line-height: 1.7; }
.vjjf img { height: 96px; width: auto; border-radius: 4px; transition: transform .3s var(--ease); }
.vjjf:hover img { transform: translateY(-3px); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(233,229,222,.45);
}
.footer-bottom a { text-decoration: none; color: rgba(233,229,222,.75); transition: color .25s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom span a { border-bottom: 1px solid rgba(233,229,222,.3); }

/* ===== REVEAL ANIMATION ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-sun { animation: sunIn 1.4s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sunIn { from { opacity: 0; transform: scale(.92); } to { opacity: .92; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col, .two-col-reverse, .contact { grid-template-columns: 1fr; }
  .two-col-reverse > figure { order: 2; }
  .framed { margin: 0 1.4rem 1.4rem 0; }
  .framed-dark { margin: 0 0 1.4rem 1.4rem; }
  .footer-inner {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "brand brand vjjf" "fb addr vjjf";
    row-gap: 2.2rem;
  }
  .footer-brand { grid-area: brand; }
  .footer-inner > .footer-col:not(.footer-address) { grid-area: fb; }
  .footer-address { grid-area: addr; }
  .vjjf { grid-area: vjjf; align-self: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem;
    background: rgba(245, 242, 236, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open.site-header { background: rgba(245, 242, 236, .97); }

  .hero { padding-top: calc(var(--header-h) + 5.5rem); }
  .hero-sun { width: clamp(140px, 44vw, 180px); right: 16px; top: calc(var(--header-h) + .5rem); }
  .hero-kanji { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-banner { margin-top: 1rem; }
  .hero-banner img { width: 160%; max-width: none; margin-left: -30%; }

  .schedule th, .schedule td { padding-left: .8rem; padding-right: .8rem; }
  .schedule td { font-size: .95rem; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand brand" "fb fb" "addr vjjf";
  }
  .footer-bottom { flex-direction: column; gap: .6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

@media (max-width: 420px) {
  .schedule { padding: .25rem; }
  .schedule th, .schedule td { padding-left: .55rem; padding-right: .55rem; }
  .schedule td { font-size: .9rem; }
  .pill { font-size: .72rem; padding: .25rem .55rem; }
}
