/* PEC-Pet — online shop, basket drawer and "getting here" section. Uses tokens from styles.css. */

/* Services grid: 7 cards, featured emergency card spans two columns so nothing sits alone */
.service.featured { grid-column: span 2; }
@media (max-width: 1000px) { .service.featured { grid-column: span 2; } }
@media (max-width: 760px) { .service.featured { grid-column: auto; } }

/* Header basket button */
.cart-btn { position: relative; display: inline-flex; align-items: center; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.6rem; color: var(--ink); cursor: pointer; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent-deep); color: #fff; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-count[hidden] { display: none; }

/* Shop */
.shop-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { font: inherit; font-weight: 600; font-size: 0.92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.55rem; }
.product-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; overflow: hidden; }
.product-img > svg { width: 44%; height: auto; opacity: 0.7; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-badge { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--danger); color: #fff; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; }
.rx-badge.inline { position: static; display: inline-block; vertical-align: middle; margin-left: 0.3rem; }
.product h3 { font-size: 1.02rem; line-height: 1.3; }
.product p { color: var(--muted); font-size: 0.9rem; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.product-foot strong { font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.add-btn { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.add-btn.in-cart { background: var(--primary-soft); color: var(--primary); }
.shop-note { border-top: 0; padding: 1.2rem 0 0; }
.shop-empty { color: var(--muted); grid-column: 1 / -1; }

/* Basket drawer */
.cart-backdrop { position: fixed; inset: 0; background: rgba(24, 43, 39, 0.45); z-index: 50; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 60; transform: translateX(100%); transition: transform 220ms ease; display: grid; grid-template-rows: auto 1fr; box-shadow: -12px 0 40px rgba(0,0,0,0.18); }
.cart.open { transform: translateX(0); }
body.cart-open { overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0.2rem 0.5rem; }
.cart-close:hover { color: var(--ink); }
.cart-body { overflow-y: auto; padding: 1rem 1.25rem 1.5rem; display: grid; gap: 1rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.6rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.cart-item-name { display: grid; gap: 0.1rem; }
.cart-item-name strong { font-weight: 600; line-height: 1.3; }
.cart-item-name span { color: var(--muted); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 28px; height: 28px; cursor: pointer; color: var(--primary); font-size: 1rem; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.cart-item .line { font-variant-numeric: tabular-nums; min-width: 68px; text-align: right; }
.cart-item .remove { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.cart-item .remove:hover { color: var(--danger); }
.cart-empty { color: var(--muted); padding: 1rem 0; }
.cart-form { display: grid; gap: 0.9rem; }
.cart-form[hidden] { display: none; }
.cart-totals { margin: 0.4rem 0 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.cart-totals div { display: flex; justify-content: space-between; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-totals .grand { border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.3rem; font-size: 1.1rem; }
.cart-totals .grand dt { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.cart-submit { justify-content: center; }
.cart-foot { font-size: 0.82rem; color: var(--muted); }

/* Getting here */
.transport-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.tr-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.tr-icon svg { width: 26px; height: 26px; }
.tr-card h3 { font-size: 1.1rem; }
.tr-card p { color: var(--muted); font-size: 0.93rem; }
.tr-tag { justify-self: start; margin-top: 0.3rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 0.25rem 0.65rem; border-radius: 999px; }
.transport-tips { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tip { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--muted); display: grid; gap: 0.2rem; }
.tip strong { color: var(--ink); font-family: var(--font-display); }

@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .transport-grid, .transport-tips { grid-template-columns: 1fr; }
  .cart-btn { align-self: flex-start; margin-top: 0.5rem; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item .line { grid-column: 1; text-align: left; }
  .cart-item .remove { grid-column: 2; grid-row: 2; justify-self: end; }
}
@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
}

/* Our vets */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.vet { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vet-photo { background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; min-height: 100%; }
.vet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vet-initials { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; opacity: 0.7; }
.vet-body { padding: 1.3rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; }
.vet-body h3 { font-size: 1.2rem; }
.vet-title { color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.vet-quals { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.01em; }
.vet-bio { font-size: 0.95rem; margin-top: 0.3rem; }
.vet-meta { margin: 0.6rem 0 0; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.vet-meta div { display: grid; grid-template-columns: 70px 1fr; gap: 0.6rem; }
.vet-meta dt { color: var(--muted); font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding-top: 0.15rem; }
.vet-meta dd { margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .vet { grid-template-columns: 1fr; } .vet-photo { aspect-ratio: 16 / 7; } }

/* Route maps */
.route-maps { margin-top: 2.5rem; display: grid; gap: 1.2rem; }
.route-head { display: grid; gap: 0.4rem; max-width: 64ch; }
.route-head h3 { font-size: 1.4rem; }
.route-head p { color: var(--muted); }
.route { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; align-items: start; }
.route-map svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.route-map .road { font-family: var(--font-body); font-size: 12px; fill: var(--muted); font-weight: 700; }
.route-map .lm { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.route-map .pill { font-family: var(--font-display); font-size: 10px; font-weight: 700; fill: var(--primary-ink); letter-spacing: 0.06em; }
.route-map .st { font-family: var(--font-display); font-size: 13px; font-weight: 700; fill: var(--primary-ink); }
.route-map .st.small { font-size: 10px; font-weight: 600; opacity: 0.9; }
.route-map .dest { font-family: var(--font-display); font-size: 12px; font-weight: 700; fill: var(--ink); }
.route-map .num circle { fill: var(--accent-deep); }
.route-map .num text { font-family: var(--font-display); font-size: 12px; font-weight: 700; fill: #fff; }
.route-text { display: grid; gap: 0.6rem; }
.route-text h4 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.route-mode { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--primary); color: var(--primary-ink); padding: 0.2rem 0.55rem; border-radius: 999px; }
.route-time { color: var(--primary); font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.route-text ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.route-text ol li::marker { color: var(--accent-deep); font-weight: 700; }
.route-text .btn { justify-self: start; margin-top: 0.3rem; }
.route-live { grid-column: 1 / -1; width: 100%; height: 300px; border: 0; border-radius: 12px; background: var(--surface-2); }

/* Facilities */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.equip { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.equip-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.equip-icon svg { width: 22px; height: 22px; }
.equip strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.15rem; }
.equip span { color: var(--muted); font-size: 0.9rem; }
.fac-blocks { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.fac-block { background: var(--surface); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 1.2rem 1.4rem; display: grid; gap: 0.5rem; }
.fac-block h3 { font-size: 1.1rem; }
.fac-block p { color: var(--muted); font-size: 0.95rem; }
.fac-tips { margin-top: 1.5rem; background: var(--surface); border: 1px dashed var(--accent-deep); border-radius: 12px; padding: 1.2rem 1.4rem; }
.fac-tips h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.fac-tips ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.95rem; color: var(--muted); }

/* Q&A groups */
.qa-group { margin-bottom: 1.8rem; }
.qa-group h3 { font-size: 1.05rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.6rem; }
.faq details p + p { padding-top: 0; margin-top: -0.6rem; }
.lang-links { display: flex; gap: 0.8rem; }
.lang-links a { opacity: 0.85; }

@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .equip-grid { grid-template-columns: 1fr; }
}

/* Photo strip */
.gallery { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.gallery-head { display: grid; gap: 0.3rem; margin-bottom: 1.2rem; }
.gallery-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--primary-soft); }
.photo:nth-child(2n) { background: var(--lavender); }
.photo:nth-child(3n) { background: var(--accent); }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); opacity: 0.55; }
.photo-ph svg { width: 34%; height: auto; }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.7rem; font-size: 0.78rem; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(24,43,39,0.75), transparent); font-family: var(--font-display); }
@media (max-width: 1000px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* FAQ search */
.faq-search { position: relative; max-width: 780px; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.6rem 0.4rem 1rem; }
.faq-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.faq-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.faq-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 0.45rem 0; min-width: 0; }
.faq-search input:focus { outline: none; }
.faq-search input::-webkit-search-cancel-button { cursor: pointer; }
.faq-count { flex: none; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 0.25rem 0.7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.faq-count:empty { display: none; }
.faq-none { max-width: 780px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.faq-none a { font-weight: 700; }
.faq details[hidden], .qa-group[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Articles (knowledge base) */
.article-wrap { max-width: 780px; padding-block: clamp(2rem, 5vw, 3.5rem); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.article-head { display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article-meta { font-size: 0.85rem; color: var(--muted); }
.article-body { font-size: 1.05rem; line-height: 1.75; display: grid; gap: 1rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.4rem; }
.article-body h3 { font-size: 1.1rem; margin-top: 0.6rem; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.article-body .warn { margin-top: 0.4rem; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.article-cta { margin-top: 2.5rem; background: var(--surface); border-top: 6px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 0.6rem; }
.article-cta strong { font-family: var(--font-display); font-size: 1.15rem; }
.article-cta p { color: var(--muted); }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.related a:hover { border-color: var(--primary); color: var(--primary); }
.article-page .lang { display: none; }
.article-page .lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); flex: none; margin-left: auto; align-self: center; }
.article-page .lang-switch a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.82rem; padding: 0.25rem 0.7rem; border-radius: 999px; opacity: 0.8; }
.article-page .lang-switch a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); opacity: 1; }

/* Knowledge base cards on the home page and index page */
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: 0.4rem; text-decoration: none; color: var(--ink); align-content: start; }
.kb-card:hover { border-color: var(--primary); }
.kb-card .kb-tag { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.kb-card h3 { font-size: 1.05rem; line-height: 1.35; }
.kb-card p { color: var(--muted); font-size: 0.9rem; }
.kb-more { margin-top: 1.4rem; }
@media (max-width: 900px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kb-grid { grid-template-columns: 1fr; } }

/* Header brand: full badge logo + one-line name */
.site-header .brand img { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #fff; }
.site-header .brand .name { font-size: 1.32rem; line-height: 1.25; letter-spacing: 0.01em; }
.site-header .brand .name-main { white-space: nowrap; }
.site-header .brand .name small { font-size: 0.82rem; margin-top: 0.15rem; }
.site-header .container { padding-block: 0.6rem; }
.site-footer .brand img { width: 72px; height: 72px; background: #fff; }
@media (max-width: 1100px) { .site-header .brand .name { font-size: 1.1rem; } .site-header .brand img { width: 76px; height: 76px; } }
@media (max-width: 760px) { .site-header .brand img { width: 60px; height: 60px; } .site-header .brand .name { font-size: 1rem; } .site-header .brand .name-main { white-space: normal; } }
.nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1250px) {
  .site-header .brand img { width: 68px; height: 68px; }
  .site-header .brand .name { font-size: 1rem; }
  .site-header .brand .name small { display: none; }
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.88rem; }
}
/* never let the logo be squeezed by the long name */
.site-header .brand img, .site-footer .brand img { flex: none; }
.site-header .brand { min-width: 0; }
.site-header .brand .name { min-width: 0; }
@media (max-width: 760px) { .site-header .brand .name-main { font-size: 0.95rem; } }

/* Two-row header: logo + name on the first row, menu on the second row underneath */
@media (min-width: 761px) {
  .site-header .container { flex-wrap: wrap; row-gap: 0.35rem; padding-block: 0.55rem 0.6rem; }
  .site-header .brand { flex: 1 1 auto; }
  .site-header .lang { margin-left: auto; align-self: center; }
  .site-header .brand img { width: 96px; height: 96px; }
  .site-header .brand .name { font-size: 1.32rem; }
  .site-header .brand .name small { display: block; }
  .site-header .nav { flex: 1 0 100%; justify-content: flex-end; gap: 1.5rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
  .site-header .nav a { font-size: 0.98rem; }
  .site-header .nav .cart-btn { margin-left: 0.4rem; }
  section[id], main[id] { scroll-margin-top: 150px; }
}

/* Language switcher sits top-right on the logo row; compact on phones */
@media (max-width: 760px) {
  .site-header .brand { flex: 1 1 auto; }
  .site-header .lang, .article-page .lang-switch { margin-left: auto; }
  .lang button, .article-page .lang-switch a { font-size: 0.74rem; padding: 0.2rem 0.5rem; }
}
