/* Delhi Aam Nagrik public site — earth / green, minimal, structured */

:root {
  /* Earth & forest greens */
  --forest: #2d4a32;
  --forest-hover: #243c28;
  --sage: #5a7d5f;
  --moss: #7d9a81;
  --leaf-soft: #e8f0e9;
  --cream: #f7f5f0;
  --cream-dark: #ede9e1;
  --earth: #6b5b4f;
  --stone-900: #1c1917;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --white: #ffffff;

  /* One radius scale — cards, buttons, inputs */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --space-section: clamp(2.5rem, 5vw, 3.75rem);

  --shadow-card: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-card-hover: 0 8px 24px rgba(45, 74, 50, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --leading: 1.6;
  --max-text: 42rem;
  /* Comfortable gutters on phones (avoid edge-to-edge text and buttons) */
  --container-pad: clamp(1.375rem, 6vw, 1.85rem);
  --touch-min: 44px;
  --header-bg: rgba(247, 245, 240, 0.92);
  --footer-text: #d4e8d6;
  --footer-bg: var(--forest);
  --ticker-bg: #21452d;
  --ticker-text: #d9f0dc;
  --btn-primary-text: var(--white);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] {
  --forest: #99caa4;
  --forest-hover: #add8b7;
  --sage: #a4ccb0;
  --moss: #83b995;
  --leaf-soft: #24372a;
  --cream: #17221b;
  --cream-dark: #203027;
  --earth: #cdb79e;
  --stone-900: #edf5ef;
  --stone-600: #cfdbd1;
  --stone-500: #afc0b2;
  --stone-200: #36483a;
  --white: #203026;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 10px 26px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(23, 34, 27, 0.92);
  --footer-bg: #1c2b21;
  --footer-text: #d5e4d8;
  --ticker-bg: #294133;
  --ticker-text: #e7f2ea;
  --btn-primary-text: #0f1a13;
}

html[data-theme="dark"] .main-nav {
  background: #1d2b22;
}

html[data-theme="dark"] .section.alt {
  background: #1b281f;
}

html[data-theme="dark"] .badge {
  background: #24352a;
  border-color: #3a5241;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading);
  color: var(--stone-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Inline SVG icons — consistent size & colour */
.icon {
  display: block;
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--sage);
}

.icon--sm {
  width: 1.125rem;
  height: 1.125rem;
}

.icon--nav {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--stone-500);
}

.main-nav a:hover .icon--nav,
.main-nav a.active .icon--nav {
  color: var(--forest);
}

.icon--inverse {
  color: rgba(255, 255, 255, 0.9);
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--leaf-soft);
  color: var(--forest);
  flex-shrink: 0;
}

.icon-wrap--sm {
  width: 2.25rem;
  height: 2.25rem;
}

.card .icon-wrap,
.panel .icon-wrap {
  margin-bottom: var(--space-md);
}

.card .card__head .icon-wrap,
.panel .panel__head .icon-wrap {
  margin-bottom: 0;
}

.stat-card .icon-wrap {
  margin: 0 auto var(--space-sm);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-200);
  min-height: var(--touch-min);
}

.strip-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.strip-item strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.strip-item span {
  font-size: 0.8125rem;
  color: var(--stone-600);
  line-height: 1.45;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: var(--touch-min);
  font-size: var(--text-small);
  color: var(--stone-600);
}

.contact-line a {
  word-break: break-word;
}

.contact-line .icon {
  margin-top: 0.1rem;
}

.card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.card__head .icon-wrap {
  margin-bottom: 0;
}

.card__head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.notice-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.notice-card__head h3 {
  margin: 0;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.panel__head h3 {
  margin: 0;
}

/* Beat .panel h3 / .notice-card h3 / .card h3 when heading sits in a __head row */
.panel .panel__head h3,
.notice-card .notice-card__head h3,
.card .card__head h3 {
  margin: 0;
}

.text-link--inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link--inline .icon {
  width: 1rem;
  height: 1rem;
}

/* —— Section structure (scan-friendly) —— */
.section-head {
  max-width: var(--max-text);
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 var(--space-sm);
}

.section-head h2 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: var(--text-body);
  color: var(--stone-600);
  line-height: 1.65;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}

a.identity {
  text-decoration: none;
  color: inherit;
}

a.identity:hover .title {
  color: var(--forest-hover);
}

.identity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.identity img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Registered society name in header (long line wraps cleanly) */
.identity .title.legal-name {
  font-size: clamp(0.7rem, 2.1vw, 0.88rem);
  line-height: 1.28;
  max-width: min(17.5rem, 46vw);
}

.subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--stone-500);
  font-weight: 500;
}

.quick-contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: var(--text-small);
  color: var(--stone-600);
}

.quick-contact a {
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
  margin-left: var(--space-xs);
}

.theme-toggle {
  border: 1px solid var(--stone-200);
  background: var(--white);
  color: var(--forest);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  min-width: 40px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--stone-600);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  min-width: 40px;
}

.lang-switch button.active {
  background: var(--forest);
  color: var(--white);
}

/* nav: minimal underline style */
.main-nav {
  border-top: 1px solid var(--stone-200);
  background: var(--white);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stone-600);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.main-nav a:hover {
  color: var(--forest);
}

.main-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--stone-200);
  background: var(--white);
  color: var(--forest);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  touch-action: manipulation;
}

/* —— Buttons —— uniform size —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn.primary {
  background: var(--forest);
  color: var(--btn-primary-text);
  box-shadow: 0 2px 8px rgba(45, 74, 50, 0.2);
}

.btn.primary:hover {
  background: var(--forest-hover);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px rgba(45, 74, 50, 0.22);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--stone-200);
}

.btn.secondary:hover {
  border-color: var(--moss);
  background: var(--leaf-soft);
}

/* —— Hero —— */
.hero {
  background: linear-gradient(165deg, var(--leaf-soft) 0%, var(--cream) 45%, var(--cream-dark) 100%);
  border-bottom: 1px solid var(--stone-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-section) 0;
}

.kicker {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 var(--space-lg);
  color: var(--stone-600);
  font-size: 1.0625rem;
  max-width: 42ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0 var(--space-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-pill);
}

/* Notice card — same radius as other cards */
.notice-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.notice-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
}

.notice-card p {
  margin: 0 0 var(--space-md);
  font-size: var(--text-small);
  color: var(--stone-600);
}

.notice-card a {
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Ticker —— */
.ticker {
  background: var(--ticker-bg);
  color: var(--ticker-text);
  overflow: hidden;
  border-bottom: 1px solid var(--forest-hover);
  padding-left: max(var(--container-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad), env(safe-area-inset-right, 0px));
}

.ticker p {
  margin: 0;
  padding: 0.65rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.01em;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* —— Strip —— */
.strip {
  background: var(--white);
  border-bottom: 1px solid var(--stone-200);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

/* —— Sections —— */
.section {
  padding: var(--space-section) 0;
}

.section.alt {
  background: var(--white);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}

.section h2:not(.section-head h2) {
  margin: 0 0 var(--space-xl);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

/* —— Cards —— one system —— */
.card,
.panel,
.feed-card,
.stat-card,
.quote {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.panel:hover,
.feed-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #d6d3d1;
}

.card h3,
.panel h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.card h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.35;
}

.card p,
.panel p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--stone-600);
  line-height: 1.6;
}

.card + .card {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: var(--text-small);
  color: var(--stone-600);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.quote__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--leaf-soft);
  color: var(--forest);
}

.quote__mark .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.quote p {
  margin: 0 0 var(--space-md);
  font-size: var(--text-small);
  color: var(--stone-600);
  font-style: italic;
  line-height: 1.65;
}

.quote .who {
  font-size: 0.8125rem;
  color: var(--stone-500);
  font-style: normal;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-md);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--forest-hover);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.table-wrap table {
  min-width: 520px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--stone-200);
}

th {
  background: var(--leaf-soft);
  font-weight: 700;
  color: var(--forest);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--stone-600);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact h2 {
  margin: 0 0 var(--space-md);
}

.contact p {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-small);
  color: var(--stone-600);
}

.contact iframe {
  width: 100%;
  min-height: clamp(200px, 42vmin, 320px);
  max-height: min(55vh, 420px);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-xl) 0 calc(var(--space-xl) + env(safe-area-inset-bottom, 0));
  font-size: var(--text-small);
}

.site-footer p {
  margin: 0;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(165deg, var(--leaf-soft) 0%, var(--cream) 55%, var(--cream-dark) 100%);
  border-bottom: 1px solid var(--stone-200);
  padding: var(--space-section) 0;
}

.page-hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  max-width: var(--max-text);
  color: var(--stone-600);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page-hero .badge-row {
  margin-top: var(--space-lg);
}

.feed-meta {
  font-size: 0.8125rem;
  color: var(--stone-500);
  margin: 0 0 var(--space-sm);
}

.news-grid .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 100%;
}

.news-grid .card h3,
.news-grid .card p {
  margin: 0;
}

.news-grid .card .feed-meta {
  margin: 0;
}

/* Forms (if used) */
.form-grid {
  display: grid;
  gap: var(--space-sm);
}

button.submit {
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-md);
  background: var(--forest);
  color: var(--white);
  border: 0;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal-item.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ticker p {
    animation: none;
    white-space: normal;
    padding: 0.55rem 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .strip-grid,
  .dual,
  .contact,
  .news-grid,
  .stats-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-contact {
    width: 100%;
    justify-content: space-between;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrap {
    flex-wrap: wrap;
    width: 100%;
    padding: var(--space-xs) 0;
  }

  .main-nav ul {
    width: 100%;
    flex-direction: column;
    display: none;
    gap: 0;
  }

  .main-nav ul.open {
    display: flex;
    padding-bottom: var(--space-sm);
  }

  .main-nav a {
    border-bottom: 1px solid var(--stone-200);
    width: 100%;
  }

  .main-nav a.active {
    border-left: 3px solid var(--forest);
    border-bottom-color: var(--stone-200);
  }

  .main-nav .nav-link {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --container-pad: clamp(1.25rem, 5.5vw, 1.5rem);
  }

  .site-header {
    backdrop-filter: blur(8px);
  }

  .top-row {
    gap: var(--space-sm);
    padding: 0.75rem 0;
    align-items: stretch;
  }

  .identity {
    width: 100%;
  }

  .quick-contact {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "help lang theme"
      "mail lang theme";
    gap: 0.3rem 0.5rem;
    font-size: 0.8125rem;
    align-items: center;
  }

  .quick-contact > span:first-child {
    grid-area: help;
  }

  .quick-contact > a[href^="mailto:"] {
    grid-area: mail;
    min-width: 0;
  }

  .quick-contact > span[aria-hidden="true"] {
    display: none;
  }

  .quick-contact a {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .lang-switch {
    grid-area: lang;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }

  .theme-toggle {
    grid-area: theme;
    justify-self: end;
    align-self: center;
  }

  .lang-switch button {
    min-height: 34px;
    min-width: 38px;
    padding: 0.3rem 0.55rem;
  }

  .theme-toggle {
    min-height: 34px;
    min-width: 38px;
    padding: 0.3rem 0.55rem;
  }

  .hero-grid {
    gap: var(--space-lg);
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 8vw, 1.95rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .badge-row {
    gap: 0.4rem;
    margin: 0.75rem 0 1rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .ticker p {
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.6rem 0;
  }

  .identity img {
    width: 48px;
    height: 48px;
  }

  .title {
    font-size: 0.9375rem;
  }

  .identity .title.legal-name {
    font-size: clamp(0.62rem, 3.1vw, 0.8rem);
    max-width: min(15.5rem, 78vw);
  }

  .subtitle {
    font-size: 0.72rem;
  }

  .strip-grid {
    gap: 0.5rem;
    padding: var(--space-md) 0;
  }

  .strip-item {
    padding: 0.75rem;
    gap: 0.7rem;
  }

  .strip-item .icon-wrap {
    width: 2rem;
    height: 2rem;
  }

  .section,
  .page-hero {
    padding: 2rem 0;
  }

  .card,
  .panel,
  .notice-card,
  .quote,
  .stat-card {
    padding: var(--space-md);
  }

  .stat-card strong {
    font-size: 1.35rem;
  }

  .contact iframe {
    min-height: 180px;
    max-height: 230px;
    aspect-ratio: 16 / 10;
  }

  .contact {
    gap: var(--space-md);
  }
}

@media (max-width: 380px) {
  :root {
    --container-pad: max(1.125rem, 4.5vw);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero .hero-grid {
    padding: 1.5rem 0;
  }

  .page-hero {
    padding: var(--space-md) 0;
  }

  .section {
    padding: 2rem 0;
  }
}

@media (min-width: 901px) {
  .main-nav .nav-link {
    min-height: 48px;
  }
}
