/* ============================================================
   Lansdowne Family Medicine — ltfm.health
   Shared stylesheet for sub-pages (login, legal, records, 404,
   offline, portal-callback). Matches the "B×C" homepage system:
   crisp white + teal, amber accent CTAs, Fraunces display heads.
   (The homepage itself ships self-contained inline CSS.)
   ============================================================ */
:root{
  --teal:#0f5c5b;
  --teal-700:#0b4746;
  --teal-900:#082e2d;
  --teal-500:#1a8f8b;
  --amber:#d98a2b;
  --amber-dark:#b96f18;
  /* Button fill dark enough for white text (4.96:1, WCAG AA). */
  --amber-ink:#a3600f;
  --amber-ink-hover:#8f540f;
  --ink:#0f1c1c;
  --body:#3a4a4a;
  --muted:#6a7a7a;
  --line:#e3eae9;
  --line-2:#d3dddc;
  --bg:#ffffff;
  --bg-soft:#f6f9f8;
  --bg-tint:#eef5f4;
  --radius:14px;
  --radius-lg:20px;
  --shadow-sm:0 1px 2px rgba(8,46,45,.05);
  --shadow:0 8px 30px rgba(8,46,45,.08);
  --shadow-lg:0 26px 60px rgba(8,46,45,.20);
  --wrap:1140px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--body);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2{font-family:'Fraunces',Georgia,serif;font-weight:600;color:var(--ink);line-height:1.15;letter-spacing:-.01em;margin:0 0 .4em}
h3,h4{color:var(--ink);line-height:1.2;font-weight:700;margin:0 0 .4em}
h1{font-size:clamp(1.8rem,3.4vw,2.6rem)}
h2{font-size:1.3rem}
h3{font-size:1.1rem}
p{margin:0 0 1rem}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
img,svg{max-width:100%;display:block}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-weight:600;font-size:.95rem;line-height:1;
  padding:.8em 1.35em;border-radius:999px;border:1.5px solid transparent;
  cursor:pointer;transition:transform .16s ease,background .2s ease,box-shadow .2s ease,color .2s ease,border-color .2s;
  white-space:nowrap;text-decoration:none
}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn-primary{background:var(--amber-ink);color:#fff;box-shadow:0 10px 24px rgba(163,96,15,.30)}
.btn-primary:hover{background:var(--amber-ink-hover)}
.btn-outline{background:transparent;color:var(--teal);border-color:var(--line-2)}
.btn-outline:hover{border-color:var(--teal);background:var(--bg-tint)}
.btn-call{background:var(--teal);color:#fff;padding:.62em 1.05em;font-size:.92rem}
.btn-call:hover{background:var(--teal-700)}
.btn.full{width:100%}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)
}
.header-inner{display:flex;align-items:center;gap:18px;min-height:72px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.brand:hover{text-decoration:none}
.brand-mark{display:grid;place-items:center;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{color:var(--ink);font-size:1rem;letter-spacing:-.01em}
.brand-text small{font-size:.72rem;color:var(--muted);font-weight:500}
.header-inner .btn-call{margin-left:auto}

/* ---------- Legal / info pages ---------- */
.legal-page{padding:44px 0 64px;max-width:820px}
.legal-page .back{display:inline-block;margin-bottom:18px;font-weight:600;color:var(--teal)}
.legal-page h1{margin-bottom:.3rem}
.legal-page .updated{color:var(--muted);font-size:.9rem;margin-bottom:1.6rem}
.legal-page h2{font-size:1.3rem;margin:1.9rem 0 .5rem}
.legal-page p,.legal-page li{color:var(--body)}
.legal-page ul{padding-left:1.2rem}
.legal-page li{margin-bottom:.45rem}
.legal-note{background:var(--bg-tint);border:1px solid var(--line);border-radius:12px;padding:14px 18px;font-size:.92rem;color:var(--body);margin-bottom:1.6rem}
.fineprint{font-size:.82rem;color:var(--muted);margin:.6rem 0 0}
.fineprint.center{text-align:center}

/* records.html contact rows */
.contact-rows{display:grid;gap:0;margin-top:18px;border-top:1px solid var(--line)}
.crow{display:flex;justify-content:space-between;gap:14px;padding:.8em 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:.95rem}
.crow strong{color:var(--ink);text-align:right}
a.crow:hover{text-decoration:none}
a.crow:hover strong{color:var(--teal)}

/* ---------- Footer ---------- */
.site-footer{background:var(--teal-900);color:#c6e2de}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:26px 0;font-size:.85rem;color:#9dc4bf}
.foot-bottom p{margin:0}
.foot-legal a{color:#c6e2de;font-weight:500}
.foot-legal a:hover{color:#fff}
.foot-legal .sep{margin:0 .3em}

/* ---------- Auth / login page ---------- */
.auth-wrap{min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;
  padding:48px 22px;background:radial-gradient(900px 400px at 50% -10%,var(--bg-tint),transparent),var(--bg-soft)}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);padding:34px 30px}
.auth-card h1{font-size:1.7rem;margin-bottom:.2rem;text-align:center}
.auth-sub{color:var(--muted);text-align:center;margin-bottom:1.4rem}
.auth-google{gap:.6rem;margin-bottom:6px}
.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.82rem;margin:16px 0}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}
.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:.86rem}
.auth-fine{font-size:.78rem;color:var(--muted);margin-top:18px;text-align:center}
.auth-msg{border-radius:10px;padding:10px 12px;font-size:.88rem;margin-bottom:14px}
.auth-msg.err{background:#fdecea;border:1px solid #f4c7c3;color:#b5302a}
.auth-msg.warn{background:#fcf3e6;border:1px solid #f1dcbf;color:#9a6212}
.auth-msg.ok{background:#e9f7ef;border:1px solid #bfe6cd;color:#1e7a45}

/* form fields (login) */
.field{margin-bottom:14px;display:flex;flex-direction:column;gap:.35em}
label{font-size:.86rem;font-weight:600;color:var(--ink)}
input,select,textarea{font:inherit;padding:.7em .8em;border:1.5px solid var(--line-2);border-radius:10px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,92,91,.12)}
textarea{resize:vertical}

/* ---------- Language / translate widget (injected by script.js) ---------- */
#ltfm-lang{position:fixed;right:16px;bottom:16px;z-index:120;background:#fff;border:1px solid var(--line-2);
  border-radius:999px;box-shadow:var(--shadow);padding:7px 12px;display:flex;align-items:center;gap:8px;
  font-size:.85rem;font-weight:600;color:var(--teal)}
#ltfm-lang .globe{font-size:1rem;line-height:1}
#ltfm-lang select,#ltfm-lang .goog-te-combo{font:inherit;border:0;background:transparent;color:var(--ink);
  max-width:150px;cursor:pointer;outline:none}
.goog-te-banner-frame,.skiptranslate iframe{display:none!important}
body{top:0!important}
#goog-gt-tt,.goog-te-balloon-frame{display:none!important}
.goog-text-highlight{background:none!important;box-shadow:none!important}

/* ---------- Responsive ---------- */
@media(max-width:600px){
  .foot-bottom{flex-direction:column;align-items:flex-start}
  #ltfm-lang{right:10px;bottom:10px;padding:6px 10px}
  #ltfm-lang select{max-width:110px}
}
