/* ============================================================
   天緣跨國婚姻介紹聯誼會 — 全站共用 Design System
   色票：深紫絨鄰近（主色 65% / 輔色 25% / 強調色 10%）
   主色 #3A2449 · 輔色 #2C1F38 · 強調色 #4B0082 · 背景 #F9FAFB
   ============================================================ */

:root {
  --color-primary: #3A2449;
  --color-secondary: #2C1F38;
  --color-accent: #4B0082;
  --color-bg: #F9FAFB;
  --color-text: #2C1F38;
  --color-text-soft: #5F5870;
  --color-white: #FFFFFF;
  --color-btn: #2C1F38;
  --color-btn-hover: #4B0082;
  --surface: #FFFFFF;
  --surface-soft: #F2EFF6;
  --surface-tint: #E9E2F0;
  --border: #E3DEEB;
  --line-green: #06C755;

  --shadow-sm: 0 1px 3px rgba(42, 27, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(42, 27, 60, 0.10);
  --shadow-lg: 0 18px 44px rgba(42, 27, 60, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --header-h: 68px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color 0.24s ease; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--color-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  box-shadow: 0 2px 14px rgba(28, 16, 40, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  min-width: 0;
  flex: 1 1 auto;
}
.site-logo:hover { color: var(--color-white); }

.site-logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-primary));
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--color-white);
}

.site-logo-text { line-height: 1.3; min-width: 0; }
.site-logo-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.site-logo-text small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 1px;
}

/* ---------- Navigation ---------- */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 13px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.24s ease, color 0.24s ease;
}
.site-nav a:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.12); }
.site-nav a.is-active { color: var(--color-white); background: var(--color-accent); }

.site-nav .has-sub { position: relative; }

.sub-toggle {
  display: none;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  z-index: 50;
}
.sub-menu a {
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
}
.sub-menu a:hover { background: var(--surface-tint); color: var(--color-primary); }
.sub-menu a.is-active { background: var(--surface-tint); color: var(--color-primary); font-weight: 700; }

.site-nav .has-sub:hover > .sub-menu,
.site-nav .has-sub:focus-within > .sub-menu,
.site-nav .has-sub.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-btn);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-btn-hover); color: var(--color-white); box-shadow: var(--shadow-md); }

.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-light:hover { background: var(--surface-tint); color: var(--color-primary); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: var(--color-white); color: var(--color-white); background: rgba(255, 255, 255, 0.10); }

.btn-line {
  background: var(--line-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn-line:hover { background: #05b04d; color: #ffffff; box-shadow: 0 8px 20px rgba(6, 199, 85, 0.42); }

.btn svg { flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(75, 0, 130, 0.55), transparent 60%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 78%);
  color: var(--color-white);
  padding: 84px 0 96px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.03), 0 0 0 92px rgba(255, 255, 255, 0.02);
}
.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(75, 0, 130, 0.35), transparent 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--line-green);
  border-radius: 2px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(28px, 4.6vw, 46px);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero-tags span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--color-text-soft); margin: 0; }
.section-dark .section-head .eyebrow { color: rgba(255, 255, 255, 0.75); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* 溫石暖感 card effect（底部光暈） */
.card-effect[data-card-effect="stone_warmth"] {
  position: relative;
  overflow: hidden;
}
.card-effect[data-card-effect="stone_warmth"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: radial-gradient(90% 100% at 50% 100%, rgba(75, 0, 130, 0.14), transparent 72%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1), transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.card-effect[data-card-effect="stone_warmth"]:hover::after,
.card-effect[data-card-effect="stone_warmth"]:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}
.card-effect[data-card-effect="stone_warmth"] > * { position: relative; z-index: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-primary));
  color: var(--color-white);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--color-text-soft); font-size: 15px; }
.card-link { font-weight: 600; font-size: 15px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-tint);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card .photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: 13px;
  color: var(--color-white);
  text-align: center;
  background: linear-gradient(transparent, rgba(44, 31, 56, 0.82));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.photo-card:hover .photo-caption,
.photo-card:focus-visible .photo-caption { opacity: 1; transform: translateY(0); }

.photo-card.portrait-soft img { aspect-ratio: 4 / 5; }
.photo-card.square img { aspect-ratio: 1 / 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-primary));
  color: var(--color-white);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--color-text-soft); margin: 0; }

/* ---------- Article / rich text ---------- */
.article-body { font-size: 16px; }
.article-body p { margin-bottom: 1.15em; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol { margin-bottom: 1.2em; }

.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(75, 0, 130, 0.5), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 52px 0 56px;
}
.page-hero h1 { color: var(--color-white); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 720px; }
.page-hero .crumb {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.page-hero .crumb a { color: rgba(255, 255, 255, 0.85); }
.page-hero .crumb a:hover { color: var(--color-white); }

/* ---------- Contact panel ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; align-items: start; }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 34px;
}
.contact-panel h2 { font-size: 24px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .c-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--color-primary);
}
.contact-row h3 { font-size: 16px; margin: 0 0 2px; }
.contact-row p { margin: 0; color: var(--color-text-soft); font-size: 15px; }

.notice-box {
  background: var(--surface-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--color-text-soft);
  margin: 20px 0 0;
}

/* ---------- Article list ---------- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.article-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-item .a-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent);
  background: var(--surface-tint);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  margin-bottom: 10px;
}
.article-item h3 { font-size: 17px; margin-bottom: 6px; }
.article-item h3 a { color: var(--color-primary); }
.article-item h3 a:hover { color: var(--color-accent); }
.article-item p { font-size: 14px; color: var(--color-text-soft); margin: 0; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(640px 300px at 15% 120%, rgba(75, 0, 130, 0.6), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.68); margin-bottom: 20px; }

.footer-col h3 {
  color: var(--color-white);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-col a:hover { color: var(--color-white); }

.footer-travel { columns: 2; column-gap: 18px; }
.footer-travel li { break-inside: avoid; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer-bottom p { margin: 0 0 4px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.24s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(28, 16, 40, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 860px);
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* ---------- Visual refinements ---------- */
html { scroll-padding-top: calc(var(--header-h) + 20px); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #A588BC; outline-offset: 4px; }
.header-inner { max-width: 1280px; padding-block: 10px; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav > ul > li > a { padding-inline: 10px; font-size: 14px; }
.site-nav .nav-cta { display: inline-flex; margin: 0; padding: 11px 16px; flex-shrink: 0; }
.site-nav .has-sub::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.site-nav .sub-menu { padding: 8px; }
.btn { min-height: 44px; line-height: 1.5; }
.btn-line { box-shadow: 0 3px 10px rgba(6, 199, 85, 0.16); }
.btn-line:hover { box-shadow: 0 5px 16px rgba(6, 199, 85, 0.22); }
.section-head { margin-bottom: 32px; }
.page-hero h1 { max-width: 960px; text-wrap: pretty; }
.page-hero .crumb { letter-spacing: 0; }
.article-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-item { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.article-item h3 { line-height: 1.65; margin-bottom: 0; }
.article-item h3 a::after { content: " →"; color: var(--color-text-soft); white-space: nowrap; }
.card.article-body:hover, .article-body .card:hover, .step-card:hover { transform: none; }
.article-body .card > h3:first-child, .article-body .step-card h3 { margin-top: 0; }
.article-body .step-card p { margin-bottom: 0; }
.article-page .page-hero > .container,
.article-page main > .section > .container { max-width: 900px; }
.article-page .page-hero h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.5; }
.article-page .page-hero p { max-width: none; font-size: 15px; line-height: 1.9; }
.article-page .card.article-body { padding: clamp(24px, 4vw, 48px); }
.article-page .article-body p { font-size: 17px; line-height: 1.95; color: var(--color-text); overflow-wrap: anywhere; }
.article-page .article-body > p:first-child { font-weight: 600; color: var(--color-primary); }
.article-page .pager { flex-wrap: nowrap; align-items: stretch; }
.article-page .pager > * { flex: 1; min-width: 0; }
.article-page .pager .btn { border-radius: 12px; padding: 16px 20px; text-align: left; justify-content: flex-start; }
.home-page .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.gallery-nav a { padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--color-text-soft); font-size: 14px; }
.gallery-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gallery-nav a[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.photo-card img { object-position: center 30%; }
.success-page .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.success-page .photo-card { background: var(--surface-soft); border: 1px solid var(--border); }
.success-page .photo-card img { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; }
.success-page .photo-card:hover img { transform: none; }
.contact-row > :last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-row .btn { margin-top: 10px; }
.footer-grid { grid-template-columns: minmax(260px, 1.2fr) minmax(120px, .6fr) minmax(120px, .6fr) minmax(300px, 1.4fr); gap: 28px; }
.footer-grid > * { min-width: 0; }
.footer-brand .site-logo { align-items: flex-start; }
.footer-brand .site-logo-text strong { font-size: 16px; white-space: normal; line-height: 1.6; max-width: none; }
.footer-brand .site-logo-text small { line-height: 1.7; letter-spacing: 0; }
.footer-travel { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.footer-travel li { margin: 0; }
.footer-col a { display: inline-block; line-height: 1.85; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom { color: rgba(255, 255, 255, .7); }
.lightbox { padding: 74px 24px 66px; }
.lightbox.open { transition: opacity .28s ease; }
.lightbox img { max-height: calc(100dvh - 150px); max-width: min(100%, 1000px); }
.lightbox .lb-caption { padding: 0 24px; overflow-wrap: anywhere; }
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px 16px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }

  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; }

  .sub-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    right: 6px;
    top: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
  }
  .has-sub { position: relative; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    margin: 2px 0 4px 10px;
    display: none;
    padding: 4px;
  }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { color: rgba(255, 255, 255, 0.85); }
  .nav-cta { margin: 12px 0 0; width: 100%; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 60px 0 68px; }
  .page-hero { padding: 38px 0 40px; }
  .site-logo-text small { display: none; }
  .site-logo-text strong {
    font-size: 15px;
    max-width: 56vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  .site-logo-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 14px; }
  .contact-panel { padding: 24px; }
}

/* ---------- Responsive refinements ---------- */
@media (max-width: 1240px) {
  .site-nav { display: block; }
  .site-nav .nav-cta { display: flex; margin: 14px 0 0; width: 100%; }
  .site-nav > ul > li > a { padding: 12px 14px; font-size: 16px; }
  .site-nav .has-sub > a { padding-right: 54px; }
  .site-nav .has-sub::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; top: 4px; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .success-page .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner { padding-block: 8px; gap: 10px; }
  .site-header .site-logo { gap: 8px; }
  .site-header .site-logo-text strong { white-space: normal; overflow: visible; max-width: none; font-size: 14px; line-height: 1.4; letter-spacing: 0; }
  .site-header .site-logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .section-head { margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding-inline: 20px; }
  .home-page .steps { grid-template-columns: 1fr; }
  .home-page .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gallery-nav a { padding: 9px 4px; text-align: center; font-size: 13px; border-radius: 10px; }
  .success-page .photo-grid { gap: 12px; }
  .photo-card .photo-caption { opacity: 1; transform: none; padding: 18px 8px 8px; font-size: 12px; }
  .article-page .article-body p { font-size: 16px; }
  .article-page .pager { flex-direction: column; }
  .article-page .pager > span:empty { display: none; }
  .contact-panel { padding: 24px 20px; }
  .contact-row { gap: 10px; }
  .contact-row .btn { padding: 10px 14px; font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand { padding-bottom: 4px; }
  .footer-col h3 { margin-bottom: 12px; }
  .footer-col a { padding-block: 3px; }
  .footer-travel { gap: 8px 20px; }
  .lightbox { padding-inline: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card-effect[data-card-effect="stone_warmth"]::after { display: none; }
}
