/* ============================================================
   theme.css — Shared design system
   Link on every page:  <link rel="stylesheet" href="theme.css" />
   ============================================================

   FONTS (no web requests):
   Download Cabinet Grotesk → https://www.fontshare.com/fonts/cabinet-grotesk
   Download General Sans    → https://www.fontshare.com/fonts/general-sans
   Place .woff2 files in a /fonts/ folder, then uncomment below.

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  --color-bg:               #f0f4f8;
  --color-surface:          #ffffff;
  --color-surface-2:        #f6f9fc;
  --color-surface-offset:   #eaf0f6;
  --color-surface-offset-2: #dce6ef;
  --color-surface-dynamic:  #cdd8e3;
  --color-divider:          #c8d4de;
  --color-border:           #bfccd8;

  --color-text:         #0d1b2a;
  --color-text-muted:   #546e8a;
  --color-text-faint:   #9eb3c6;
  --color-text-inverse: #f0f4f8;

  --color-primary:           #01696f;
  --color-primary-hover:     #0c4e54;
  --color-primary-active:    #0f3638;
  --color-primary-highlight: #d0eff0;

  --radius-sm: 0.375rem;  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;   --radius-xl: 1rem;  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px  rgba(13, 27, 42, 0.07);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 12px 32px rgba(13, 27, 42, 0.14);

  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'General Sans',    'Helvetica Neue', Arial, sans-serif;

  /* ── Shorthand aliases used by dashboard + expenses ── */
  --font-sans:  var(--font-body);
  --border:     var(--color-border);
  --text:       var(--color-text);
  --text-muted: var(--color-text-muted);
  --radius:     var(--radius-md);
}

[data-theme="dark"] .site-header { background: rgba(19, 22, 26, 0.92); }

[data-theme="dark"] {
  --color-bg:               #13161a;
  --color-surface:          #181c21;
  --color-surface-2:        #1c2026;
  --color-surface-offset:   #191d22;
  --color-surface-offset-2: #1e2228;
  --color-surface-dynamic:  #252a31;
  --color-divider:          #23282f;
  --color-border:           #2e343c;
  --color-text:             #cdccca;
  --color-text-muted:       #797876;
  --color-text-faint:       #5a5957;
  --color-text-inverse:     #2b2a28;
  --color-primary:          #4f98a3;
  --color-primary-hover:    #227f8b;
  --color-primary-active:   #1a626b;
  --color-primary-highlight:#313b3b;
  --shadow-sm: 0 1px 2px  rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #13161a;
    --color-surface:          #181c21;
    --color-surface-2:        #1c2026;
    --color-surface-offset:   #191d22;
    --color-surface-offset-2: #1e2228;
    --color-surface-dynamic:  #252a31;
    --color-divider:          #23282f;
    --color-border:           #2e343c;
    --color-text:             #cdccca;
    --color-text-muted:       #797876;
    --color-text-faint:       #5a5957;
    --color-text-inverse:     #2b2a28;
    --color-primary:          #4f98a3;
    --color-primary-hover:    #227f8b;
    --color-primary-active:   #1a626b;
    --color-primary-highlight:#313b3b;
    --shadow-sm: 0 1px 2px  rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  :root:not([data-theme]) .site-header { background: rgba(19, 22, 26, 0.92); }
}

/* ─── BASE RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html:has(.site-header) {
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; }
@supports (text-wrap: balance) { h1, h2, h3, h4 { text-wrap: balance; } }
@supports (text-wrap: pretty)  { p, li { text-wrap: pretty; } }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(1, 105, 111, 0.2); color: var(--color-text); }

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

a, button, [role="button"], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  width: min(100% - var(--space-8), var(--content-default));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - var(--space-8), var(--content-narrow));
  margin-inline: auto;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 244, 248, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-4);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-logo-mark { width: 32px; height: 32px; color: var(--color-primary); }
.site-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-logo-img { height: 40px; width: auto; display: block; }

[data-theme="light"] .site-logo-img,
:root:not([data-theme="dark"]) .site-logo-img {
  mix-blend-mode: multiply;
}

/* Desktop nav */
.nav-desktop { display: none; align-items: center; gap: var(--space-1); }
@media (min-width: 640px) { .nav-desktop { display: flex; } }

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.nav-link:hover  { color: var(--color-text); background: var(--color-surface-offset); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-highlight); }
.nav-app-sep { display: inline-block; width: 1px; height: 14px; background: var(--color-border); margin: 0 var(--space-1); flex-shrink: 0; }

/* Header controls */
.header-controls { display: flex; align-items: center; gap: var(--space-2); }

.btn-login {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}
.btn-login:hover  { background: var(--color-primary-highlight); }
.btn-login:active { background: var(--color-primary); color: var(--color-text-inverse); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.nav-mobile-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }
@media (min-width: 640px) { .nav-mobile-toggle { display: none; } }

/* Mobile drawer */
.nav-mobile-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.nav-mobile-drawer.open { display: block; }

.drawer-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.4); }

.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-surface);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-mobile-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.drawer-close:hover { background: var(--color-surface-offset); }

.drawer-nav-link {
  display: block;
  padding: var(--space-4) var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-divider);
}
.drawer-nav-link:last-of-type { border-bottom: none; }
.drawer-nav-link:hover  { color: var(--color-text); background: var(--color-surface-offset); }
.drawer-nav-link.active { color: var(--color-primary); background: var(--color-primary-highlight); }

.drawer-login {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  background: transparent;
}
.drawer-login:hover { background: var(--color-primary-highlight); }

/* Bottom mobile tab bar */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(249, 248, 245, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-divider);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 639px) { .bottom-nav { display: flex; } }
[data-theme="dark"] .bottom-nav { background: rgba(24, 28, 33, 0.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .bottom-nav { background: rgba(24, 28, 33, 0.95); } }

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  min-height: 56px;
  color: var(--color-text-faint);
  text-decoration: none;
  font-size: clamp(0.6rem, 0.55rem + 0.3vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bottom-tab:active { background: var(--color-surface-offset); }
.bottom-tab.active { color: var(--color-primary); }
.bottom-tab svg    { width: 22px; height: 22px; display: block; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid transparent;
}
.btn-primary:hover  { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text-muted); color: var(--color-text); }

/* ─── SHARED SECTION STYLES ──────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--color-divider);
  margin-block: clamp(var(--space-8), 6vw, var(--space-16));
}
.section-wrap {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-label--phase1 { margin-top: 2rem; }
.section-label--phase2 { margin-top: 2.5rem; }
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.section-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ─── HOME — HERO ────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-20));
}
.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 18ch;
  margin-bottom: var(--space-6);
}
.hero-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ─── HOME — SERVICES PREVIEW ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.service-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.service-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────── */
.about-layout { display: grid; gap: var(--space-12); }
@media (min-width: 720px) {
  .about-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-16); }
}
.about-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }

.values-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.value-title  { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); margin-bottom: var(--space-1); }
.value-desc   { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.value-divider { height: 1px; background: var(--color-divider); }

/* ─── SERVICES PAGE ──────────────────────────────────────────────────────── */
.services-full-grid { display: grid; gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 640px) { .services-full-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .services-full-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  padding: var(--space-6) var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.svc-card--featured {
  background: var(--color-primary);
  border-color: transparent;
}
.svc-card--featured .svc-label,
.svc-card--featured .svc-title,
.svc-card--featured .svc-desc { color: var(--color-text-inverse); }
.svc-card--featured .svc-label { opacity: 0.7; }
.svc-card--featured .svc-desc  { opacity: 0.85; }

.svc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.svc-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.svc-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

.portal-notice {
  margin-top: var(--space-12);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.portal-notice-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.portal-notice-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.portal-notice-desc { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 48ch; }

/* ─── CONTACT PAGE ───────────────────────────────────────────────────────── */
.contact-layout { display: grid; gap: var(--space-12); }
@media (min-width: 720px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; align-items: start; gap: var(--space-16); }
}
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.contact-info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-info-value { font-size: var(--text-base); color: var(--color-text); font-weight: 500; }
.contact-info-value a { color: var(--color-primary); text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.field-group  { display: flex; flex-direction: column; gap: var(--space-2); }
.field-label  { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.field-hint   { font-size: 0.78rem; color: var(--color-text-muted); margin-top: var(--space-1); }
.tc-field     { margin-top: var(--space-2); }
.tc-label     { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.tc-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--color-primary); width: 16px; height: 16px; }
.tc-label span { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.5; }
.tc-label a    { color: var(--color-primary); text-decoration: underline; }

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 44px;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.15);
}
.field-textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-submit { width: 100%; }

#form-status { font-size: var(--text-sm); display: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
#form-status[data-status="success"] { color: #166534; background: #dcfce7; }
#form-status[data-status="error"]   { color: #991b1b; background: #fee2e2; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────────────────── */
.login-wrap { max-width: 480px; }

.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.login-placeholder {
  background: var(--color-surface-offset);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}
.login-placeholder-icon  { width: 40px; height: 40px; margin: 0 auto var(--space-3); color: var(--color-text-faint); }
.login-placeholder-text  { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.login-footer-text       { text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }
.login-footer-text a     { color: var(--color-primary); text-decoration: none; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
  padding-bottom: calc(var(--space-10) + 56px); /* clearance for mobile bottom nav */
}
@media (min-width: 640px) { .site-footer { padding-bottom: var(--space-10); } }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.footer-copy  { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-links { display: flex; gap: var(--space-5); }
.footer-link  { font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: none; }
.footer-link:hover  { color: var(--color-text); }
.footer-link.active { color: var(--color-primary); }

main { padding-bottom: env(safe-area-inset-bottom, 0); }
