@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* Option 3 — light theme aligned to logo: Montserrat + navy / gold */
:root {
  --navy: #034285;
  --gold: #e1a935;
  --bg: #f3f1ec;
  --bg-elevated: #ffffff;
  --surface: #e6e3dc;
  --ink: #141210;
  --ink-soft: #3d3a36;
  --muted: #6b6560;
  --line: rgba(20, 18, 16, 0.1);
  --accent: var(--navy);
  --accent-soft: rgba(3, 66, 133, 0.12);
  --accent-2: var(--gold);
  --gold-soft: rgba(225, 169, 53, 0.18);
  --warm-glow: rgba(3, 66, 133, 0.07);
  --card-shadow: 0 1px 2px rgba(20, 18, 16, 0.04),
    0 18px 48px rgba(20, 18, 16, 0.07);

  /* Layout tiers: phone ≤767 | tablet (iPad) 768–1023 | desktop ≥1024 */
  --site-header-height: 64px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -25%, var(--warm-glow), transparent),
    radial-gradient(ellipse 55% 35% at 100% 15%, rgba(225, 169, 53, 0.07), transparent);
}

.hero h1,
.section-title,
.page-hero h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
}

.contact-card .form-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
}

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

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

.container {
  width: min(720px, 90%);
  margin: 0 auto;
}

.container--wide {
  width: min(1040px, 92%);
}

/* Widen reading column on tablet + desktop (was mobile-first narrow) */
@media (min-width: 768px) {
  .container {
    width: min(840px, 88%);
  }

  .container--wide {
    width: min(1100px, 90%);
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(960px, 86%);
  }

  .container--wide {
    width: min(1180px, 88%);
  }
}

@media (min-width: 1280px) {
  .container {
    width: min(1040px, 84%);
  }

  .container--wide {
    width: min(1240px, 86%);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  position: relative;
  min-height: var(--site-header-height);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.brand img {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: min(200px, 58vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover img {
  box-shadow: 0 0 0 1px rgba(3, 66, 133, 0.28);
  transform: translateY(-1px);
}

/* Hamburger: hidden on tablet + desktop */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(3, 66, 133, 0.45);
  outline-offset: 2px;
}

.menu-toggle-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.menu-toggle-inner {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.menu-toggle-inner::before,
.menu-toggle-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle-inner::before {
  top: -7px;
}

.menu-toggle-inner::after {
  top: 7px;
}

.site-header.nav-open .menu-toggle-inner {
  background: transparent;
}

.site-header.nav-open .menu-toggle-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.nav-open .menu-toggle-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  flex: 1;
  justify-content: flex-end;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: rgba(3, 66, 133, 0.35);
  background: var(--accent-soft);
}

/* ——— Phone (≤767px): full-logo + hamburger drawer ——— */
@media (max-width: 767px) {
  .brand {
    flex: 1;
  }

  .brand img {
    max-height: 36px;
    max-width: min(220px, 72vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--site-header-height);
    z-index: 110;
    background: rgba(20, 18, 16, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-header.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    top: var(--site-header-height);
    max-height: min(calc(100dvh - var(--site-header-height)), 520px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    overflow-x: visible;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 50px rgba(20, 18, 16, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav-backdrop,
  .nav-links {
    transition: none;
  }
}

/* ——— Tablet / iPad (768–1023px): inline nav + full-logo ——— */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand {
    flex: 0 1 auto;
  }

  .brand img {
    max-height: 40px;
    max-width: min(240px, 38vw);
  }

  .nav-links a {
    font-size: 0.84rem;
    padding: 0.42rem 0.68rem;
  }
}

/* ——— Desktop (≥1024px): roomier bar + logo ——— */
@media (min-width: 1024px) {
  .brand {
    flex: 0 1 auto;
  }

  .brand img {
    max-height: 44px;
    max-width: min(280px, 32vw);
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
  }
}

/* Main */
main {
  padding: 0.75rem 0 3rem;
}

section[id] {
  scroll-margin-top: 88px;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.65rem 0 2.25rem;
  margin-bottom: 0.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

/* Homepage hero — tagline stands out (Option 1: stronger treatment, hero only) */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: clamp(0.78rem, 2.6vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding: 0.65rem 1.2rem 0.65rem 1.25rem;
  line-height: 1.35;
  background: linear-gradient(
    105deg,
    rgba(3, 66, 133, 0.1) 0%,
    rgba(225, 169, 53, 0.16) 100%
  );
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(3, 66, 133, 0.08);
}

@media (max-width: 380px) {
  .hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.9rem 0.55rem 1rem;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

@media (min-width: 768px) {
  .hero-lead {
    max-width: 52ch;
    font-size: 1.12rem;
  }
}

@media (min-width: 1024px) {
  .hero-lead {
    max-width: 62ch;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(3, 66, 133, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(3, 66, 133, 0.34);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(3, 66, 133, 0.35);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

/* Narrative strip */
.section-narrative {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-narrative__inner {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .section-narrative__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}

.narrative-visual {
  flex-shrink: 0;
  line-height: 0;
}

/* Pull-quote mark + accent (replaces illustration-style graphic) */
.narrative-visual--mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3rem, 20vw, 4.5rem);
}

@media (min-width: 640px) {
  .narrative-visual--mark {
    align-items: flex-start;
    padding-top: 0.15rem;
  }
}

.narrative-visual--mark::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 15vw, 4.6rem);
  line-height: 0.68;
  color: #e1a935;
  letter-spacing: -0.04em;
}

.narrative-visual--mark::after {
  content: "";
  display: block;
  width: 2.65rem;
  height: 3px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, #034285 0%, #e1a935 100%);
  border-radius: 2px;
  opacity: 0.88;
}

.section-narrative__quote,
.section-narrative blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-narrative__quote {
  width: 100%;
  max-width: 62ch;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .section-narrative__quote {
    margin-inline: 0;
  }
}

.section-narrative .quote-text {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.48;
  color: var(--ink);
}

@media (max-width: 480px) {
  .section-narrative {
    padding: 1.65rem 0;
  }

  .section-narrative .quote-text {
    line-height: 1.45;
  }
}

@media (min-width: 1024px) {
  .section-narrative .quote-text {
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  }
}

.section-narrative .quote-note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(3, 66, 133, 0.1);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 640px) {
  .section-narrative .quote-note {
    font-size: 0.9rem;
  }
}

/* Section titles */
.section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

@media (min-width: 1024px) {
  .section-intro {
    max-width: 58ch;
    font-size: 1.02rem;
  }
}

/* M3 */
#m3 {
  padding: 2.75rem 0;
}

.m3-section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .m3-section-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.35rem;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}

.m3-section-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.m3-section-logo {
  height: clamp(3.35rem, 10vw, 4.25rem);
  width: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(3, 66, 133, 0.12))
    drop-shadow(0 1px 2px rgba(20, 18, 16, 0.08));
}

@media (min-width: 640px) {
  .m3-section-logo {
    height: clamp(3.75rem, 5.5vw, 4.85rem);
    max-width: 320px;
  }
}

.m3-section-head__text {
  min-width: 0;
}

.m3-section-head__text .section-kicker {
  margin-bottom: 0.5rem;
}

.m3-section-head__text .section-title {
  margin-bottom: 0.75rem;
}

.m3-section-head__text .section-intro {
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .m3-section-head__text .section-intro {
    margin-left: 0;
    margin-right: 0;
  }
}

.m3-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .m3-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.m3-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.m3-card:hover {
  border-color: rgba(3, 66, 133, 0.22);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.m3-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.m3-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.m3-icon {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

/* Proof band */
#proof {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--surface) 0%, #eeece6 55%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .proof-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.proof-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.proof-item span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Team */
#team {
  padding: 2.75rem 0;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.team-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8e5df, #d9d5cd);
  border: 1px solid rgba(20, 18, 16, 0.08);
  flex-shrink: 0;
}

.team-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.02) contrast(1.02);
  transition: filter 0.3s ease;
}

.team-card:hover .team-photo img {
  filter: saturate(1.05) contrast(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .team-photo img,
  .team-card:hover .team-photo img {
    filter: none;
    transition: none;
  }
}

.team-photo.no-photo .team-photo-placeholder {
  display: flex;
}

.team-photo:not(.no-photo) .team-photo-placeholder {
  display: none;
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.team-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.team-role {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.team-card a.linkedin {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.team-card a.linkedin:hover {
  text-decoration: underline;
}

/* Contact */
#contact {
  padding: 2.5rem 0 1rem;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  box-shadow: var(--card-shadow);
}

.contact-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.contact-card__logo {
  height: 1.85rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 480px) {
  .contact-card__logo {
    height: 2rem;
  }
}

.contact-card .form-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(20, 18, 16, 0.12);
  background: #faf9f7;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(3, 66, 133, 0.22);
  border-color: rgba(3, 66, 133, 0.45);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Page hero (subpages) */
.page-hero {
  padding: 2rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4.5vw, 2.85rem);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.98rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .page-hero p {
    max-width: 58ch;
    font-size: 1.05rem;
  }
}

@media (min-width: 1024px) {
  .page-hero p {
    max-width: 68ch;
  }
}

/* .subpage-main on HTML = marker for subpage-only rules (e.g. contact card width) */

.content-block {
  padding: 0 0 2rem;
}

.content-block h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-block ul {
  padding-left: 1.1rem;
}

.simple-card-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 720px) {
  .simple-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }
}

.simple-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.simple-card-grid .simple-card {
  margin-bottom: 0;
}

.simple-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.simple-card p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

@media (min-width: 720px) {
  .simple-card p {
    font-size: 0.93rem;
  }
}

/* Contact form: keep a comfortable line length inside wide subpage */
.subpage-main .contact-card {
  max-width: 100%;
}

@media (min-width: 720px) {
  .subpage-main .contact-card {
    max-width: min(100%, 560px);
  }
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-about {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo-mark {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin-top: 0.1rem;
}

@media (min-width: 480px) {
  .footer-logo-mark {
    height: 2.25rem;
  }
}

.footer-about__text .footer-tagline {
  margin-top: 0.35rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-tagline {
  font-size: 0.78rem !important;
  color: var(--muted);
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0.65rem 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  main {
    padding: 1rem 0 3.5rem;
  }

  .hero {
    padding: 3rem 0 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 3.5rem 0 3.25rem;
  }
}

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