/* ============================================================
   Bence & Koko Wedding · white cat & Leonberger inspired theme
   Palette: snowy white / cream (white cat) + tawny brown,
   russet and charcoal-mask accents (Leonberger)
   ============================================================ */

:root {
  --snow: #fdfcf9;
  --cream: #f7f1e6;
  --sand: #efe4d2;
  --tawny: #b07d4f;
  --russet: #8b5e3c;
  --deep-brown: #4a3524;
  --charcoal: #2e2620;
  --gold: #c89f65;
  --leaf: #7a8450;
  --shadow: 0 10px 30px rgba(74, 53, 36, 0.10);
  --radius: 18px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  background: var(--seigaiha) var(--snow);
  background-size: 100px 50px;
  color: var(--charcoal);
  line-height: 1.65;
}

/* --------- language toggle logic (EN default) --------- */
body.lang-en .hu { display: none !important; }
body.lang-hu .en { display: none !important; }

/* ---------------- typography ---------------- */
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
  color: var(--deep-brown);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

a { color: var(--russet); }

.small { font-size: 0.88rem; color: #6d5c4b; }

/* ---------------- header / nav ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

nav.main-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--deep-brown);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: background 0.2s;
}

nav.main-nav a:hover { background: var(--cream); }

nav.main-nav a.active {
  background: var(--deep-brown);
  color: var(--snow);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--tawny);
  border-radius: 999px;
  overflow: hidden;
  font-family: inherit;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--deep-brown);
}

.lang-switch button.on {
  background: var(--tawny);
  color: var(--snow);
}

/* ---------------- hero ---------------- */
/* seigaiha: traditional Japanese wave pattern, drawn as a repeating SVG tile */
:root {
  --seigaiha: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='100' height='50'><defs><g id='s'><circle r='50' fill='%23faf3e6' stroke='%23c8804f' stroke-opacity='0.5' stroke-width='2'/><circle r='40' fill='none' stroke='%23c8804f' stroke-opacity='0.5' stroke-width='2'/><circle r='30' fill='none' stroke='%23c8804f' stroke-opacity='0.5' stroke-width='2'/><circle r='20' fill='none' stroke='%23c8804f' stroke-opacity='0.5' stroke-width='2'/><circle r='10' fill='none' stroke='%23c8804f' stroke-opacity='0.5' stroke-width='2'/></g></defs><use xlink:href='%23s' x='50' y='-25'/><use xlink:href='%23s' x='0' y='0'/><use xlink:href='%23s' x='100' y='0'/><use xlink:href='%23s' x='50' y='25'/><use xlink:href='%23s' x='0' y='50'/><use xlink:href='%23s' x='100' y='50'/><use xlink:href='%23s' x='50' y='75'/></svg>");
}

.hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.2rem 4rem;
  /* the seigaiha pattern shows through from the body background */
  overflow: hidden;
}

/* soft cream glow behind the hero content so text stays easy to read on the waves */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 48%, rgba(253, 252, 249, 0.95) 25%, rgba(253, 252, 249, 0.55) 55%, transparent 78%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero .pets {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.6rem;
  margin-bottom: 1.4rem;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--russet);
  margin-bottom: 0.8rem;
}

.hero .date-line {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin-top: 1rem;
  color: var(--deep-brown);
  letter-spacing: 0.06em;
}

.hero .venue-line { font-size: 1.05rem; color: #6d5c4b; margin-top: 0.4rem; }

/* ---------------- layout ---------------- */
/* content floats on a near-opaque "paper" panel so text is always readable over the waves */
main {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 2.5rem 1.6rem 3rem;
  background: rgba(253, 252, 249, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

section.block { margin-bottom: 3.2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 { display: flex; align-items: center; gap: 0.5rem; }

/* food-spot photos on cards */
.card .photo {
  display: block;
  width: calc(100% + 3rem);
  margin: -1.4rem -1.5rem 1rem;
  height: 250px; /* landscape photos show nearly their full frame at card width */
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* portrait photos get a taller window; per-image object-position keeps faces AND food in frame */
.card .photo.tall {
  height: 350px;
  object-position: 50% 40%;
}

.card .photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.card .photo-pair img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

/* paw divider */
.paw-divider {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 2.4rem 0;
  opacity: 0.55;
}

/* ---------------- schedule timeline ---------------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--gold), var(--tawny));
  border-radius: 2px;
}

.timeline li { position: relative; padding: 0 0 1.6rem 0.8rem; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 0.42rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--snow);
  border: 3px solid var(--tawny);
}

.timeline .time {
  font-weight: 700;
  color: var(--russet);
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}

.timeline .what { font-size: 1.12rem; font-weight: 600; color: var(--deep-brown); }

.timeline .note { font-size: 0.95rem; color: #6d5c4b; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
}

th, td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--sand);
  vertical-align: top;
}

th {
  background: var(--deep-brown);
  color: var(--snow);
  font-weight: 600;
  letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: none; }

tbody tr:nth-child(even) { background: var(--snow); }

/* ---------------- callouts ---------------- */
.callout {
  border-left: 5px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
}

.callout.bus { border-left-color: var(--leaf); }

/* badges */
.badge {
  display: inline-block;
  background: var(--sand);
  color: var(--deep-brown);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-right: 0.35rem;
}

.badge.yen { background: #efe9dc; }

/* ---------------- footer ---------------- */
footer.site-footer {
  border-top: 1px solid var(--sand);
  background: rgba(253, 252, 249, 0.6);
  text-align: center;
  padding: 2rem 1.2rem 2.4rem;
  color: #6d5c4b;
  font-size: 0.92rem;
}

footer .pets-mini {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

/* ---------------- page hero (subpages) ---------------- */
.page-hero {
  text-align: center;
  padding: 3.2rem 1.2rem 2.4rem;
  /* light veil over the body's seigaiha pattern so the title stays crisp */
  background: rgba(253, 252, 249, 0.6);
}

.page-hero p.lead { max-width: 640px; margin: 0.4rem auto 0; color: #6d5c4b; }

/* weather chips */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.weather-chip {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  text-align: center;
  padding: 1rem 0.6rem;
  box-shadow: var(--shadow);
}

.weather-chip .big { font-size: 1.7rem; font-weight: 700; color: var(--russet); }

.weather-chip .label { font-size: 0.85rem; color: #6d5c4b; }

/* big map on the Nagoya tips page */
#big-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow);
  z-index: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  color: #6d5c4b;
}

.map-legend .dot {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: -0.05em;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

/* dress-code example gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery figure {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.gallery figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  color: #6d5c4b;
}

/* dress-code figures */
.dress-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

ul.tidy { padding-left: 1.2rem; margin-bottom: 1em; }
ul.tidy li { margin-bottom: 0.45em; }

/* ---------------- kamon family crest ---------------- */
.hero .kamon {
  display: block;
  margin: 0 auto 1.6rem;
  width: 200px;
  max-width: 55vw;
  filter: drop-shadow(0 6px 16px rgba(74, 53, 36, 0.2));
}

/* ---------------- plush squirrel monkey peek-a-boo ---------------- */
.monkey-peek {
  position: fixed;
  left: -200px;
  top: -200px;
  z-index: 60;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(74, 53, 36, 0.25));
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.monkey-peek.zip { transition: transform 0.35s ease-in; }

.monkey-peek svg, .monkey-peek img { display: block; }

@media (max-width: 640px) {
  .nav-inner { justify-content: center; }
  .hero { padding: 3.4rem 1rem 2.8rem; }
}
