/* Uttaram: lime-wash paper, graphite ink, one laterite accent for measurement and action.
   Phone first; parts.css holds the sections, wide.css the tablet and desktop layout. */

:root {
  --paper: #f4f2ec;
  --sheet: #fbfaf6;
  --ink: #1d2125;
  --note: #565a5e;
  --rule: #cfcbc1;
  --rule-strong: #8f8b82;
  --lat: #a4401f;
  --lat-dark: #86331a;
  --lat-tint: #f1ddd3;
  --green: #2f6b4a;
  --gutter: 16px;
  --wrap: 1560px;
  --head-h: 60px;
  --font: "Public Sans", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern";
  padding-bottom: 64px; /* room for the phone action bar */
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

a {
  color: var(--lat-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

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

[id] {
  scroll-margin-top: calc(var(--head-h) + 12px);
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
}

.skip:focus {
  top: 8px;
}

.lede {
  color: var(--note);
  font-size: 1.02rem;
  max-width: 62ch;
}

.muted {
  color: var(--note);
}

.empty {
  color: var(--note);
  padding: 16px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

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

.btn-main {
  background: var(--lat);
  border-color: var(--lat);
  color: #fff;
}

.btn-main:hover {
  background: var(--lat-dark);
  border-color: var(--lat-dark);
  color: #fff;
}

.btn-big {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 1.04rem;
}

.btn-line-light {
  border-color: var(--paper);
  color: var(--paper);
}

.btn-line-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.more {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--head-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.mark-beam {
  fill: var(--ink);
}

.mark-dim {
  stroke: var(--lat);
}

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--note);
  margin-top: 2px;
}

.logo-sub [lang="ml"] {
  font-family: "Noto Sans Malayalam", var(--font);
}

.nav-wide,
.header-main {
  display: none;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.header-call-num {
  display: none;
}

.nav-small {
  position: relative;
}

.nav-small summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.burger {
  position: relative;
}

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

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

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

.nav-small nav {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: min(300px, calc(100vw - 32px));
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 0 -6px rgba(29, 33, 37, 0.12);
}

.nav-small ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.nav-small a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav-small a[aria-current="page"] {
  color: var(--lat-dark);
  box-shadow: inset 3px 0 0 var(--lat);
}

.notice {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  padding: 8px 0;
}

.notice a {
  color: var(--paper);
}

/* ---- Phone action bar --------------------------------------------------------------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  border-right: 1px solid var(--rule);
}

.action-bar a.ab-main {
  background: var(--lat);
  color: #fff;
  border-right: 0;
}

/* ---- Footer -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #e6e3db;
  margin-top: 0;
  padding: 40px 0 24px;
  font-size: 0.94rem;
}

.site-footer a {
  color: #f1ddd3;
}

.site-footer .logo,
.site-footer .logo-name {
  color: var(--paper);
}

.site-footer .logo-sub {
  color: #b9b5ab;
}

.site-footer .mark-beam {
  fill: var(--paper);
}

.site-footer .mark-dim {
  stroke: #d0714f;
}

.site-footer h2 {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9b5ab;
  margin-bottom: 10px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid p + p {
  margin-top: 8px;
}

.footer-promise {
  margin-top: 14px;
  max-width: 36ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-social {
  margin-top: 14px;
}

.footer-imprint dl {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.footer-imprint dt {
  color: #b9b5ab;
  font-size: 0.82rem;
}

.footer-imprint dd {
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.footer-base {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #454a4f;
  display: grid;
  gap: 6px;
  color: #b9b5ab;
  font-size: 0.85rem;
}

/* ---- Forms (the platform's <Form>, styled through its unrigid-* classes) ------------ */

.form {
  display: grid;
  gap: 18px;
  align-items: start;
}

/* Fields sit at the top of their row, so a field paired with one that has help text
   under it keeps its own height instead of stretching to match. */
.form .unrigid-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.form label {
  font-weight: 650;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="number"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form textarea {
  min-height: 120px;
}

.form .unrigid-field-checkbox,
.form .unrigid-field-consent {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.form .unrigid-field-checkbox label,
.form .unrigid-field-consent label {
  font-weight: 500;
}

.form .unrigid-field-checkbox .unrigid-error,
.form .unrigid-field-consent .unrigid-error {
  grid-column: 1 / -1;
}

.form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--lat);
  margin: 1px 0 0;
}

.form .unrigid-required {
  color: var(--note);
  font-weight: 500;
  font-size: 0.9em;
}

.form .unrigid-help {
  color: var(--note);
  font-size: 0.9rem;
}

.form .unrigid-error {
  color: #9b2a10;
  font-weight: 600;
  font-size: 0.92rem;
}

.form .unrigid-form-status {
  padding: 12px 14px;
  border-left: 4px solid var(--lat);
  background: var(--lat-tint);
}

.form .unrigid-form-status:empty {
  display: none;
}

.form button,
.form [type="submit"] {
  justify-self: start;
  min-height: 54px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 1.04rem;
  color: #fff;
  background: var(--lat);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.form button:hover,
.form [type="submit"]:hover {
  background: var(--lat-dark);
}

.form button:disabled {
  background: var(--note);
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
