/* Tyka Pharmacy — styles */
:root {
  --green: #0a8a5a;
  --green-dark: #06603f;
  --green-deep: #053d29;
  --green-tint: #eef7f2;
  --green-soft: #d7eee3;
  --ink: #17241e;
  --muted: #4b5b53;
  --line: #dde7e2;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 40, 28, .06), 0 8px 24px rgba(10, 40, 28, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-zh: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--green-deep); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; min-height: 48px; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-lang { font-family: var(--font-zh); font-size: 1.05rem; cursor: pointer; background: #fff; color: var(--green-deep); border: 2px solid var(--green-deep); box-shadow: 0 2px 10px rgba(10, 60, 40, .15); padding-inline: 1.5rem; letter-spacing: .03em; }
.btn-lang[lang="en"] { font-family: var(--font); letter-spacing: 0; }
.btn-lang:hover { background: var(--green-deep); color: #fff; }
.btn-lang svg { color: var(--green); }
.btn-lang:hover svg { color: #fff; }
.btn-sm { padding: .55rem 1.1rem; min-height: 42px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 66px; height: auto; }
.brand-text { display: flex; align-items: baseline; gap: .5rem; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--green-deep); white-space: nowrap; }
.brand-zh { font-family: var(--font-zh); font-weight: 700; font-size: 1.2rem; color: var(--green); letter-spacing: .04em; white-space: nowrap; }
[lang^="zh"] { font-family: var(--font-zh); }
html[lang^="zh"] body { line-height: 1.75; }
html[lang^="zh"] .eyebrow, html[lang^="zh"] .hero-facts strong, html[lang^="zh"] .checklist-cols h4, html[lang^="zh"] .contact-card h3 { letter-spacing: .06em; font-size: .88rem; }
.header-tools { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand { flex-shrink: 0; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-toggle button { white-space: nowrap; font: inherit; font-size: .88rem; font-weight: 650; border: 0; background: transparent; color: var(--green-dark); padding: .4rem .75rem; min-height: 36px; min-width: 44px; cursor: pointer; line-height: 1; }
.lang-toggle button[lang] { font-family: var(--font-zh); }
.lang-toggle button[data-lang="en"] { font-family: var(--font); }
.lang-toggle button[aria-pressed="true"] { background: var(--green); color: #fff; }
.lang-toggle button:hover:not([aria-pressed="true"]) { background: var(--green-tint); }
.header-call svg { flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; white-space: nowrap; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .97rem; }
.site-nav a:hover { background: var(--green-tint); color: var(--green-deep); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, var(--green-soft), transparent 60%), linear-gradient(180deg, var(--green-tint), #fff); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--green-dark); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.75rem); letter-spacing: -.025em; color: var(--green-deep); margin-bottom: .4em; }
.hero h1 { display: flex; flex-direction: column; gap: .1em; }
.hero h1 .name-zh { font-family: var(--font-zh); font-size: .9em; font-weight: 800; letter-spacing: .08em; color: var(--green); line-height: 1.15; }
html[lang^="zh"] .hero h1 { flex-direction: column-reverse; }
html[lang^="zh"] .hero h1 .name-zh { font-size: 1em; color: var(--green-deep); }
html[lang^="zh"] .hero h1 .name-en { font-size: .8em; color: var(--green); }
.tagline { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: var(--muted); font-size: .98rem; }
.hero-facts strong { display: block; color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(420px, 100%); border-radius: 50%; background: #fff; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--green-tint); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.12rem; }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.cards > .card { flex: 1 1 300px; max-width: calc((100% - 2.5rem) / 3); }
@media (max-width: 960px) { .cards > .card { max-width: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px) { .cards > .card { max-width: 100%; flex-basis: 100%; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; margin-top: .9rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); }
.card-icon svg { width: 26px; height: 26px; fill: var(--green); }

/* Refills */
.refill-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.75rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps h3 { font-size: 1.12rem; margin-bottom: .25rem; padding-top: .35rem; }
.steps p { color: var(--muted); margin: 0; }
.checklist-card { background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.checklist-card > h3 { font-size: 1.25rem; }
.checklist-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.checklist-cols h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); margin: .5rem 0 .6rem; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.check li { position: relative; padding-left: 1.7rem; font-size: .98rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/75% no-repeat; }
.refill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0 1.25rem; }
.fax-line { margin: 0; color: var(--muted); }
.fax-line strong { color: var(--ink); }
.notice { margin: 0; background: #fff8e6; border: 1px solid #f1dca4; border-left: 4px solid #d9a400; padding: .85rem 1rem; border-radius: 10px; font-size: .93rem; color: #4a3b10; }

/* Hours & location */
.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: stretch; }
.visit-info { display: grid; gap: 1.25rem; align-content: start; }
.info-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.info-block h3 { font-size: 1.15rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: .9rem; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .98rem; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
address { font-style: normal; font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.small { font-size: .92rem; color: var(--muted); }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 420px; background: var(--green-tint); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--green-deep), var(--green-dark)); color: #e8f5ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #a8e3c6; }
.contact-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #a8e3c6; }
.contact-big { display: block; font-size: 1.5rem; font-weight: 750; color: #fff; text-decoration: none; margin-bottom: .4rem; line-height: 1.3; }
a.contact-big:hover { color: #fff; text-decoration: underline; }
.contact-addr { font-size: 1.25rem; }
.contact-card p { margin: 0; color: #cfe9dc; font-size: .95rem; }
.section-dark :focus-visible { outline-color: #ffd34d; }

/* Footer */
.site-footer { background: #0b1f17; color: #b9cbc2; padding: 2.5rem 0; font-size: .93rem; }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand img { width: 53px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand p { margin: 0; }
.footer-name { font-weight: 800; color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.footer-contact { margin: 0; }
.footer-legal { margin: 0; font-size: .85rem; color: #8fa69b; border-top: 1px solid #22382e; padding-top: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: .5rem; }
  .header-tools { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 -.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 0; padding-bottom: .35rem; }
  .site-nav a { white-space: nowrap; padding: .45rem .6rem; font-size: .9rem; }
  .hero-inner, .refill-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 64px; gap: .75rem; }
  .brand img { width: 52px; }
  .brand-name { font-size: 1.05rem; }
  .hero { text-align: center; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { justify-content: center; flex-direction: column; gap: .75rem; }
  .tagline { margin-inline: auto; }
  .checklist-cols { grid-template-columns: 1fr; }
  .refill-actions .btn { width: 100%; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
}
@media (max-width: 1100px) {
  .header-call-text { display: none; }
  .header-call { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
}
@media (max-width: 600px) {
  .header-tools { gap: .5rem; }
  .brand-text { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand-zh { font-size: 1.05rem; }
  .lang-toggle button { padding: .35rem .6rem; min-width: 40px; }
  .hero h1 { align-items: center; }
  .site-nav { margin: 0; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding: .45rem .5rem; font-size: .92rem; }
  .hide-sm { display: none; }
}
