/* Padosi Clinic: the letterhead. Base: tokens, type, header, footer, buttons, forms. Phone first. */

:root {
  --paper: #fbf8f1;
  --white: #ffffff;
  --ink: #1f1d1a;
  --ink-2: #4a4540;
  --violet: #3b2f7a;
  --violet-2: #6a5fa8;
  --tint: #ecebf5;
  --line: #d8d2c5;
  --field: #6b655d;
  --red: #9b1c1c;
  --red-tint: #f8ebe8;
  --serif: "Eczar", "Georgia", serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 85rem;
  --gutter: 1.125rem;
  --header: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 0.75rem;
  max-width: 65ch;
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] {
  scroll-margin-top: calc(var(--header) + 1rem);
}

img {
  max-width: 100%;
  height: auto;
}

abbr[title] {
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

.sel {
  user-select: all;
  -webkit-user-select: all;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 1rem;
}

[lang="hi"],
[lang="mr"],
.local {
  font-family: var(--serif);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip:focus {
  top: 0.5rem;
}

/* ---- The stamp (wordmark) ------------------------------------------------------------- */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 4px double var(--violet);
  border-radius: 6px;
  padding: 0.2rem 0.6rem 0.2rem 0.45rem;
  color: var(--violet);
  line-height: 1;
}

.stamp-door {
  flex: none;
}

.stamp-names {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stamp-local {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
}

.stamp-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.stamp-big {
  gap: 0.85rem;
  padding: 0.5rem 1.1rem 0.5rem 0.8rem;
  border-width: 6px;
}

.stamp-big .stamp-local {
  font-size: 1.7rem;
}

.stamp-big .stamp-name {
  font-size: 2rem;
}

/* ---- Notices --------------------------------------------------------------------------- */

.notices {
  background: var(--violet);
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.45;
}

.notices ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}

.notices li + li {
  margin-top: 0.3rem;
}

.notice-until {
  white-space: nowrap;
}

/* ---- Header (sticky at every width) ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--violet);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header);
}

.logo {
  text-decoration: none;
  margin-right: auto;
}

.logo .stamp {
  border-width: 3px;
  padding: 0.15rem 0.4rem 0.15rem 0.3rem;
  gap: 0.35rem;
}

.logo .stamp-door {
  width: 22px;
  height: 22px;
}

.logo .stamp-local {
  font-size: 0.8rem;
}

.logo .stamp-name {
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-wide {
  display: none;
}

.nav-wide ul,
.nav-small ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-call {
  min-height: 2.9rem;
  padding: 0.45rem 0.7rem;
}

/* On a phone the header's call button is the icon; the number is still read out. */
.header-call .num {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.show-small {
  display: inline;
}

.hide-small {
  display: none;
}

.nav-small {
  position: relative;
}

.nav-small summary {
  list-style: none;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--violet);
  border-radius: 4px;
}

.nav-small summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--violet);
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-small[open] .burger {
  background: transparent;
}

.nav-small[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-small[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(31 29 26 / 0.14);
  padding: 0.4rem 0;
}

.nav-small a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-small a:hover,
.nav-small a[aria-current="page"] {
  background: var(--tint);
  color: var(--violet);
}

/* ---- The emergency line ---------------------------------------------------------------- */

.emergency-line {
  margin: 0;
  max-width: none;
  background: var(--red-tint);
  border-bottom: 1px solid #e6c9c3;
  font-size: 0.95rem;
  line-height: 1.4;
}

.emergency-line .wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.em-mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.em-call {
  flex: none;
  margin-left: auto;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Buttons --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--violet);
  cursor: pointer;
}

.btn-ink {
  background: var(--violet);
  color: var(--paper);
}

.btn-ink:hover {
  background: #2c2360;
  border-color: #2c2360;
}

.btn-line {
  background: var(--white);
  color: var(--violet);
}

.btn-line:hover {
  background: var(--tint);
}

.btn-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--violet);
}

.btn-quiet:hover {
  border-color: var(--violet);
}

.btn-large {
  min-height: 3.5rem;
  font-size: 1.15rem;
  padding: 0.7rem 1.4rem;
}

.btn .num {
  font-size: 1.2em;
  letter-spacing: 0.01em;
}

.ico {
  flex: none;
}

.out {
  display: inline-block;
  margin-left: 0.25em;
  vertical-align: 0.05em;
}

.header-cta {
  min-height: 2.9rem;
  padding: 0.45rem 0.9rem;
}

/* ---- Footer: the foot of the pad ------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  border-top: 6px double var(--violet);
  background: var(--white);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.foot-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-promise {
  margin-top: 0.75rem;
}

.footer-reach .num {
  font-size: 1.25rem;
  font-weight: 700;
}

.foot-small {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.imprint-name {
  font-weight: 700;
}

.kv {
  margin: 0;
}

.kv div {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.kv dt {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.kv dd {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.kv-sub {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-em {
  padding-bottom: 1rem;
}

.footer-em p {
  max-width: none;
  border-left: 4px solid var(--red);
  padding: 0.6rem 0.9rem;
  background: var(--red-tint);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-base p {
  margin: 0;
}

/* ---- Forms (the platform renders the fields; these are its classes) -------------------- */

.form {
  display: grid;
  gap: 1.1rem;
}

.unrigid-field {
  display: grid;
  gap: 0.3rem;
}

.unrigid-field label {
  font-weight: 700;
}

.unrigid-required {
  font-weight: 400;
  color: var(--ink-2);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="date"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--field);
  border-radius: 4px;
}

.form textarea {
  min-height: 6rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--violet);
  outline: 3px solid var(--violet);
  outline-offset: 1px;
}

.form input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0.6rem 0 0;
  accent-color: var(--violet);
  flex: none;
}

.unrigid-field:has(input[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.unrigid-field:has(input[type="checkbox"]) label {
  flex: 1 1 0;
  font-weight: 400;
}

.unrigid-help {
  font-size: 0.95rem;
  color: var(--ink-2);
  flex-basis: 100%;
}

.unrigid-error {
  color: var(--red);
  font-weight: 700;
  flex-basis: 100%;
}

.unrigid-form-status {
  padding: 0.8rem 1rem;
  border: 2px solid var(--violet);
  background: var(--tint);
  border-radius: 4px;
}

.form button,
.form [type="submit"] {
  justify-self: start;
  min-height: 3.5rem;
  padding: 0.7rem 1.6rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  background: var(--violet);
  border: 2px solid var(--violet);
  border-radius: 4px;
  cursor: pointer;
}

.form button:hover {
  background: #2c2360;
}

.form button:disabled {
  opacity: 0.6;
  cursor: progress;
}
