/* ================================================================
   丹尼奇賞曲奇 · Brand Site Stylesheet
   ================================================================ */
:root {
  --green-900: #103a28;
  --green-800: #164b32;
  --green-700: #1d6240;
  --green-600: #2b7a52;
  --green-100: #e9f2ea;
  --green-050: #f4f8f2;
  --gold: #c8a45c;
  --gold-light: #e3c98d;
  --cream: #fdf8ee;
  --cream-2: #f8f0e2;
  --ink: #26372d;
  --muted: #6e7d72;
  --line: #e6e5dc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 58, 40, .10);
  --shadow-sm: 0 8px 24px rgba(18, 58, 40, .07);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: "Noto Serif TC", "Songti TC", "SimSun", Georgia, serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container-narrow { width: min(860px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  letter-spacing: .04em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar a:hover { color: var(--gold-light); }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(18,58,40,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 188px; height: auto; }
.brand-sub { font-size: 11px; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-top: -6px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 16px;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 2px; background: var(--gold); transition: right .25s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--green-700); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: transparent; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--green-800); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--green-800);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .04em;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 22px rgba(29,98,64,.18); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(29,98,64,.24); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b8914d; transform: translateY(-2px); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.arrow { font-size: 18px; line-height: 1; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 82% 20%, rgba(200,164,92,.22), transparent 42%),
              linear-gradient(135deg, #0e3525 0%, #164b32 55%, #1b5b3d 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -180px;
  width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; right: 40px; bottom: -260px;
  width: 480px; height: 480px; border: 1px solid rgba(200,164,92,.18); border-radius: 50%;
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 96px 0 112px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .24em; font-weight: 600;
  color: var(--gold-light); margin-bottom: 22px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 700; line-height: 1.28; letter-spacing: .03em;
  white-space: pre-line; margin-bottom: 24px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-sub { font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.hero-visual .main-photo {
  width: 100%; max-width: 520px; aspect-ratio: 1/1;
  object-fit: cover; border-radius: 36px;
  border: 8px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .3em; z-index: 3;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-900); color: #fff; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.35; letter-spacing: .03em;
}
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.section-green .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); }
.stat { text-align: center; padding: 38px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 34px; color: var(--green-700); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); letter-spacing: .1em; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--cream-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--green-700); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .06em;
}
.product-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 12px; letter-spacing: .18em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.product-body h3 { font-family: var(--serif); font-size: 21px; margin: 8px 0 10px; }
.product-body p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 18px; }
.product-link { margin-top: auto; color: var(--green-700); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.product-card:hover .product-link .arrow { transform: translateX(4px); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted); }

/* ---------- Split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow); }
.split-media::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 1px solid var(--gold-light); border-radius: var(--radius-lg); z-index: -1;
}
.split-content h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.4; }
.split-content .lead { font-size: 18px; color: var(--green-800); font-weight: 600; margin: 18px 0; }
.split-content p { color: var(--muted); }
.split-list { display: grid; gap: 14px; margin-top: 24px; }
.split-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.split-list li::before { content: "✦"; color: var(--gold); font-size: 14px; line-height: 1.9; }

/* ---------- Highlight grid ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlight {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px 26px; transition: all .3s ease;
}
.highlight:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.highlight .num {
  width: 48px; height: 48px; border-radius: 14px; background: var(--green-100);
  color: var(--green-700); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 18px;
}
.highlight h3 { font-size: 18px; font-family: var(--serif); margin-bottom: 8px; }
.highlight p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 24px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 34px 12px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year { font-family: var(--serif); font-size: 22px; color: var(--green-700); font-weight: 700; }
.timeline-item h3 { font-size: 18px; margin: 2px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); cursor: zoom-in; transition: transform .3s ease; }
.gallery img:hover { transform: scale(1.02); }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); right: -120px; top: -220px;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); letter-spacing: .06em; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 640px; margin: 16px auto 0; font-size: 17px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 20px; letter-spacing: .1em; }
.crumb a:hover { color: var(--gold-light); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; justify-content: center; }
.filter-btn {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 10px 22px; font-size: 15px; transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 600; }

/* ---------- Stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.store-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.store-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.store-body { padding: 32px; }
.store-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.store-head h3 { font-family: var(--serif); font-size: 25px; }
.store-tag { background: var(--gold); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; margin-top: 5px; }
.store-info { margin: 24px 0 0; }
.store-info div { display: flex; gap: 14px; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.store-info div:first-child { border-top: 0; }
.store-info b { color: var(--green-700); min-width: 56px; flex-shrink: 0; font-weight: 600; }
.store-info span { color: var(--muted); }
.store-note { margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }
.store-action { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all .3s ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.event-body { padding: 24px; }
.event-meta { display: flex; gap: 14px; font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: .05em; margin-bottom: 10px; }
.event-body h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; line-height: 1.5; }
.event-body p { color: var(--muted); font-size: 14px; margin: 0; }
.event-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--cream); }
.event-feature img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.event-feature .event-body { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.event-feature h3 { font-size: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius-md); padding: 22px 24px;
}
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-item span { display: block; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.contact-item strong { display: block; font-size: 16px; font-weight: 500; word-break: break-word; margin-top: 2px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--green-800); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; background: var(--white); color: var(--ink); outline: none; transition: border-color .2s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(43,122,82,.08); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream-2); padding: 78px 0; }
.cta-inner {
  background: var(--green-800); color: #fff; border-radius: var(--radius-lg);
  padding: 56px 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; right: -60px; top: -120px; width: 320px; height: 320px;
  border: 1px solid rgba(200,164,92,.3); border-radius: 50%;
}
.cta-inner h2 { font-family: var(--serif); font-size: 32px; }
.cta-inner p { color: rgba(255,255,255,.72); margin: 10px 0 0; }
.cta-inner > div { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 72px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 46px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; letter-spacing: .08em; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin: 0 0 11px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Product detail modal ---------- */
.detail-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  width: min(860px, 92vw); max-height: 86vh; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.detail-card > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.detail-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.detail-copy h2 { font-family: var(--serif); font-size: 30px; margin: 10px 0 16px; }
.detail-copy p { color: var(--muted); }
.detail-copy .btn { align-self: flex-start; margin-top: 12px; }
@media (max-width: 700px) {
  .detail-card { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .detail-card > img { min-height: auto; aspect-ratio: 16/10; }
  .detail-copy { padding: 26px; }
  .detail-copy h2 { font-size: 23px; }
}

/* ---------- Brand journey / media gallery ---------- */
.media-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.media-filters .filter-btn { padding: 8px 16px; font-size: 14px; }
.media-year-filter { margin-left: auto; }
.media-year-filter label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.media-year-filter select {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 28px 9px 16px;
  background: var(--white); color: var(--ink); font-size: 14px; cursor: pointer; outline: none;
}
.media-year-filter select:focus { border-color: var(--green-600); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.media-thumb { position: relative; aspect-ratio: 4/3; background: var(--cream-2); overflow: hidden; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb img { cursor: zoom-in; transition: transform .5s ease; }
.media-card:hover .media-thumb img { transform: scale(1.05); }
.media-thumb video { object-fit: contain; background: #0b1a12; }
.media-info { padding: 18px 20px 20px; }
.media-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.media-cat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: 999px;
}
.media-year { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .05em; }
.media-info h3 { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---------- Lightbox & toast ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,26,18,.9);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lightbox button {
  position: absolute; top: 24px; right: 30px; background: rgba(255,255,255,.15); color: #fff;
  border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--green-800); color: #fff; padding: 14px 26px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 300;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15px; }
  .brand img { width: 160px; }
  .header-cta .btn { display: none; }
  .split { gap: 44px; }
  .hero .container { gap: 32px; }
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .media-year-filter { margin-left: 0; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(18,58,40,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero .container { grid-template-columns: 1fr; padding: 70px 0 90px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 400px; }
  .hero-visual .main-photo { width: 100%; max-width: 460px; }
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .event-feature { grid-column: 1 / -1; }
  .section { padding: 78px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .container-narrow { width: min(100% - 36px, 1180px); }
  .topbar { font-size: 11px; }
  .topbar-left span:last-child, .topbar-right { display: none; }
  .site-header .container { min-height: 70px; }
  .brand img { width: 138px; }
  .hero .container { padding: 56px 0 76px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { min-height: 340px; }
  .hero-visual .main-photo { width: 100%; max-width: 360px; border-width: 5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 10px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat strong { font-size: 27px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 32px; }
  .product-grid, .product-grid.grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .product-body { padding: 20px; }
  .product-body h3 { font-size: 19px; }
  .highlight-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .highlight { padding: 22px 18px; }
  .highlight h3 { font-size: 16px; }
  .highlight p { font-size: 13px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .media-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .media-info { padding: 14px 14px 16px; }
  .media-info h3 { font-size: 14px; }
  .media-filters .filter-btn { padding: 7px 12px; font-size: 12px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-body { padding: 24px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature img { min-height: auto; aspect-ratio: 16/10; }
  .event-feature .event-body { padding: 26px; }
  .event-feature h3 { font-size: 22px; }
  .page-hero { padding: 56px 0 60px; }
  .contact-item { padding: 18px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 50px 0; }
  .cta-inner { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .cta-inner h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding-top: 50px; }
  .split-media::before { inset: 12px -10px -10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
