/* 陽明動物醫院 — shared stylesheet, no framework, no build step */
:root {
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --accent: #2f6b4f;    /* deep calm green, harmonizes with LINE green */
  --line-green: #06c755;
  --bg-alt: #f7f7f5;
  --border: #e5e5e2;
  --maxw: 1000px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
section[id] { scroll-margin-top: 6.5rem; }
body {
  font-family: -apple-system, "PingFang TC", "Hiragino Sans", "Microsoft JhengHei",
    "Noto Sans TC", "Noto Sans JP", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.25rem 1rem; padding: 0.6rem 1.25rem;
  max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap;
}
.brand { flex-shrink: 0; }
.brand img { height: 52px; width: auto; max-width: none; display: block; }
nav { display: flex; gap: 0.25rem 1.25rem; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink); padding: 0.5rem 0; }
nav a:hover { color: var(--gray); }
.lang { font-size: 0.85rem; color: var(--gray); white-space: nowrap; }
.lang a { text-decoration: none; padding: 0.5rem 0.3rem; }
.lang a.active { font-weight: 700; color: var(--ink); }
@media (max-width: 640px) {
  /* row 1: logo left + language switcher right; row 2: nav links full width */
  .brand img { height: 36px; }
  .lang { margin-left: auto; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 0.25rem 0.5rem; }
  nav a { font-size: 0.85rem; }
}

/* hero */
.hero { text-align: center; padding: 4rem 1.25rem 3.5rem; background: linear-gradient(#fff, var(--bg-alt)); }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: 0.05em; }
.hero .sub { color: var(--gray); margin: 0.75rem auto 1.75rem; max-width: 34em; }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--ink);
}
.btn.primary { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn:hover { opacity: 0.85; }
.btn:focus-visible, nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero .langs { margin-top: 1rem; font-size: 0.9rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; }
.hero .note { margin-top: 0.5rem; font-size: 0.85rem; color: var(--gray); }

/* sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--bg-alt); }
h2 {
  text-align: center; font-size: 1.5rem; letter-spacing: 0.12em;
  margin-bottom: 2rem;
}
h2 small { display: block; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.2em; font-weight: 400; }

/* service cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1.25rem 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
/* ponytail: grayscale-filtered emoji icons; swap for inline SVG line icons (Lucide) when polish matters */
.card .icon { font-size: 1.6rem; filter: grayscale(1); opacity: 0.75; }
.card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.card p { font-size: 0.88rem; color: var(--gray); }

/* featured band */
.feature {
  display: flex; gap: 1.5rem; align-items: center;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 1.75rem 2rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.feature .icon { font-size: 2.5rem; filter: grayscale(1); }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.feature p { font-size: 0.9rem; color: #d5d5d2; max-width: 46em; }

/* doctors */
.doc { border-top: 3px solid var(--accent); }
.doc h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.doc .role { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.doc p { font-size: 0.85rem; color: var(--gray); }

/* hours */
.hours { max-width: 560px; margin: 0 auto; border-collapse: collapse; width: 100%; }
.hours th, .hours td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.hours th { text-align: left; font-weight: 400; white-space: nowrap; }
.hours td { text-align: right; }
.today-note { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--gray); }

/* location */
.loc { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1.2fr; align-items: start; }
.loc iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; }
.loc ul { list-style: none; }
.loc li { margin-bottom: 0.9rem; }
.loc li strong { display: block; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.maplink { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--gray); }
@media (max-width: 720px) {
  .loc { grid-template-columns: 1fr; }
  /* ponytail: pointer-events off stops the map hijacking page scroll; the maplink below is the escape hatch */
  .loc iframe { pointer-events: none; }
}

footer {
  border-top: 1px solid var(--border); padding: 2rem 1.25rem; text-align: center;
  font-size: 0.82rem; color: var(--gray); line-height: 2;
}
