/* Medwish Veterinary — shared static-site styles (home + privacy) */
:root {
  --brand: #1a3c8f;
  --brand-deep: #142f6e;
  --brand-tint: #eef2fb;
  --ink: #1f2733;
  --muted: #5b6573;
  --border: #e3e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --wa: #25d366;
  --radius: 16px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", Tahoma, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--brand); }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; gap: 14px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; }
.brand .names { display: flex; flex-direction: column; line-height: 1.15; }
.brand .names .ar { font-size: .95rem; color: var(--brand); }
.brand .names .en { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .3px; }
.spacer { flex: 1 1 auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand); }
.lang-toggle {
  display: inline-flex; background: var(--brand-tint);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 3px;
}
.lang-toggle button {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  color: var(--brand); font: inherit; font-weight: 800; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 0; font-size: 1rem;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-appstore { background: #000; color: #fff; }
.btn-appstore small { display: block; font-size: .62rem; font-weight: 600; opacity: .85; line-height: 1; }
.btn-appstore strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.15; }
.btn-appstore[aria-disabled="true"] { opacity: .8; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-phone { background: var(--brand); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.badge-soon {
  font-size: .68rem; font-weight: 800; color: var(--brand);
  background: var(--brand-tint); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; vertical-align: middle;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 50% -120px, #2a55b8 0%, transparent 60%),
              linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; text-align: center;
  padding: 72px 20px 84px;
}
.hero h1 { margin: 0 0 6px; font-size: 2.5rem; font-weight: 900; letter-spacing: .3px; }
.hero h2 { margin: 0 0 18px; font-size: 1.15rem; font-weight: 700; opacity: .92; }
.hero p.lead { max-width: 640px; margin: 0 auto 28px; font-size: 1.06rem; opacity: .95; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: #fff; }
.section h3.title { text-align: center; color: var(--brand); font-size: 1.7rem; margin: 0 0 8px; }
.section p.subtitle { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 620px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  box-shadow: 0 6px 20px rgba(20,47,110,.05);
}
.tile .emoji { font-size: 2.1rem; line-height: 1; display: block; margin-bottom: 10px; }
.tile .ar { font-weight: 800; color: var(--brand); }
.tile .en { font-size: .82rem; color: var(--muted); font-weight: 700; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h4 { margin: 0 0 6px; color: var(--brand); font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; border-radius: 20px; padding: 40px 24px; text-align: center;
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.6rem; }
.contact-card p { opacity: .92; margin: 0 0 24px; }
.contact-card .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-card .loc { margin-top: 22px; font-size: .9rem; opacity: .85; }

/* ---------- Privacy page ---------- */
.page-head { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; padding: 46px 20px 52px; text-align: center; }
.page-head h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.page-head .sub { margin: 0; opacity: .9; font-weight: 600; }
.page-head .updated { margin-top: 12px; font-size: .82rem; opacity: .8; }
.doc { max-width: 820px; margin: -28px auto 0; padding: 0 16px 56px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; margin: 16px 0; box-shadow: 0 6px 24px rgba(20,47,110,.05);
}
.card.intro { border-top: 4px solid var(--brand); }
.card h2 { color: var(--brand); font-size: 1.16rem; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.card h2 .n { flex: 0 0 auto; width: 28px; height: 28px; background: var(--brand-tint); color: var(--brand); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 800; }
.card p { margin: 0 0 10px; }
.card ul { margin: 6px 0 4px; padding-inline-start: 22px; }
.card li { margin: 5px 0; }
.muted { color: var(--muted); font-size: .92rem; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 3px 0; }
.contact-row .label { color: var(--muted); min-width: 120px; }
.contact-row a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #dfe6f5; padding: 36px 20px 30px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer .names .ar { color: #fff; font-weight: 800; font-size: 1.05rem; }
.site-footer .names .en { opacity: .8; font-size: .85rem; }
.site-footer a { color: #cdd9f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .copy { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; opacity: .8; text-align: center; }

/* ---------- Language visibility ---------- */
[hidden] { display: none !important; }
[data-lang].ar-block { direction: rtl; text-align: right; font-family: "Noto Sans Arabic", Tahoma, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 54px 18px 64px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 44px 0; }
  .nav a { display: none; }
  .nav a.show-mobile { display: inline-block; }
  body { font-size: 15px; }
}
