/* ============================================================
   BREDE LOGIC — Main Stylesheet
   ============================================================ */

/* ── Custom Properties (Design Tokens) ─────────────────────── */
:root {
  /* Colour palette */
  --color-navy:         #1B3354;
  --color-navy-mid:     #264B78;
  --color-navy-light:   #EEF3F9;
  --color-amber:        #B07D2A;
  --color-amber-light:  #FAF3E3;
  --color-bg:           #F8F7F2;
  --color-surface:      #FFFFFF;
  --color-border:       #DEDAD2;
  --color-border-dark:  #B5B0A6;
  --color-text:         #1C1917;
  --color-text-muted:   #5A5750;
  --color-text-inverse: #FFFFFF;

  /* RoamVet sub-brand */
  --color-roamvet:        #4A7C59;
  --color-roamvet-hover:  #3A6347;
  --color-roamvet-subtle: #EBF2ED;

  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing (4px base) */
  --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;

  /* Layout */
  --max-width:  1100px;
  --nav-height: 68px;

  /* Radii */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px  rgba(27, 51, 84, 0.07);
  --shadow-md: 0 4px 16px rgba(27, 51, 84, 0.09);
  --shadow-lg: 0 8px 32px rgba(27, 51, 84, 0.11);

  /* Transitions */
  --transition-fast: 140ms ease;
  --transition-base: 240ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }

p {
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-4);
}

strong {
  font-weight: 600;
}

/* ── Layout utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-16);
}

.section--tight {
  padding-block: var(--space-10);
}

.section--flush-top {
  padding-top: 0;
}

/* ── Skip link (accessibility) ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 200;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: relative;
}

/* Brand / logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-navy);
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--color-navy);
}

.nav-logo-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-navy);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-navy-light);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;

  /* Mobile: hidden drawer */
  position: absolute;
  top: calc(var(--nav-height) - 1px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0 var(--space-4);
  box-shadow: var(--shadow-md);

  /* Hidden by default on mobile */
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path var(--transition-base);
}

.nav-menu.is-open {
  clip-path: inset(0 0 -20px 0);
  pointer-events: auto;
}

.nav-menu > li > a {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-menu > li > a:hover {
  color: var(--color-navy);
  background: var(--color-navy-light);
}

.nav-menu > li > a[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 600;
}

/* Active indicator — left accent bar on mobile */
.nav-menu > li > a[aria-current="page"]::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-amber);
  margin-right: var(--space-2);
  border-radius: 2px;
  vertical-align: middle;
}

/* Solutions dropdown arrow */
.nav-arrow {
  font-size: 0.7em;
  margin-left: var(--space-1);
  display: inline-block;
  transition: transform var(--transition-fast);
}

.nav-has-dropdown.is-open > a .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown sub-list (mobile: accordion) */
.nav-dropdown {
  background: var(--color-navy-light);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}

.nav-has-dropdown.is-open .nav-dropdown {
  max-height: 400px;
}

.nav-dropdown__label {
  display: block;
  padding: var(--space-3) var(--space-6) var(--space-1) calc(var(--space-6) + var(--space-4));
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) var(--space-4);
}

.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-6) var(--space-2) calc(var(--space-6) + var(--space-4));
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--color-navy);
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: var(--space-10);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-text-inverse);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-logo {
  width: 32px;
  height: 32px;
  opacity: 0.9;
  /* Option 1 — all white (comment out to try Option 2) */
  filter: brightness(0) invert(1);
  /* Option 2 — natural colours on dark: amber + white letterforms, navy blends in
  filter: none; */
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: var(--space-1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: space-between;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-color: var(--color-navy);
}

.btn--primary:hover {
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
  color: var(--color-text-inverse);
}

.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.btn--roamvet {
  background: var(--color-roamvet);
  color: var(--color-text-inverse);
  border-color: var(--color-roamvet);
}

.btn--roamvet:hover {
  background: var(--color-roamvet-hover);
  border-color: var(--color-roamvet-hover);
  color: var(--color-text-inverse);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card--featured {
  border-top: 4px solid var(--color-amber);
}

.card--roamvet {
  border-top: 4px solid var(--color-roamvet);
}

.card--navy {
  border-top: 4px solid var(--color-navy);
}

.card--muted {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.card__icon {
  font-size: 2rem;
  line-height: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-navy);
}

.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card__body p {
  max-width: none;
}

.card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-amber);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-arrow::after {
  content: '→';
}

.link-arrow:hover {
  gap: var(--space-3);
  color: var(--color-navy);
}

.link-arrow--roamvet {
  color: var(--color-roamvet);
}

.link-arrow--roamvet:hover {
  color: var(--color-roamvet-hover);
}

/* ── Section headings ───────────────────────────────────────── */
.section-heading {
  margin-bottom: var(--space-12);
}

.section-heading h2 {
  font-size: var(--text-3xl);
}

.section-heading p {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--color-amber);
  border: none;
  border-radius: 2px;
  margin-top: var(--space-4);
}

/* ── Hero (home page) ───────────────────────────────────────── */
.hero {
  padding-block: var(--space-10) var(--space-10);
  text-align: center;
}

.hero__kicker {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__divider {
  width: 56px;
  height: 3px;
  background: var(--color-amber);
  border: none;
  border-radius: 2px;
  margin: var(--space-4) auto;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 40ch;
  margin-inline: auto;
}

.hero__body {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.7;
}

.hero__location {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ── Cards grid ─────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.cards-grid--2 {
  grid-template-columns: 1fr;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-12);
}

.page-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  color: var(--color-text-inverse);
  font-size: var(--text-4xl);
  font-weight: 700;
}

.page-hero__lead {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
}

/* ── About page ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.about-block h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.about-block p {
  color: var(--color-text-muted);
}

.about-block p + p {
  margin-top: var(--space-4);
}

.profile-placeholder {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-inverse);
  flex-shrink: 0;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
}

.profile-info h3 {
  font-size: var(--text-xl);
}

.profile-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  max-width: none;
}

/* ── Contact form ───────────────────────────────────────────── */
.contact-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.contact-section > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-field label .required {
  color: var(--color-amber);
  margin-left: var(--space-1);
}

.form-field input,
.form-field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 51, 84, 0.1);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot — visually hidden, still accessible to screen readers only if needed */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Contact status message */
.contact-status {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.contact-status--success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.contact-status--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ── Solutions page ─────────────────────────────────────────── */
.solutions-intro {
  max-width: 60ch;
}

.solution-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.solution-feature__content h2 {
  font-size: var(--text-3xl);
}

.solution-feature__content p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.solution-feature__content .btn {
  margin-top: var(--space-6);
}

.solution-future {
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.solution-future p {
  margin-inline: auto;
}

/* ── RoamVet page ───────────────────────────────────────────── */
.roamvet-hero {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-12);
}

.roamvet-hero__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.roamvet-hero h1 {
  color: var(--color-text-inverse);
  font-size: var(--text-5xl);
}

.roamvet-hero__accent {
  color: var(--color-roamvet);
}

.roamvet-hero__lead {
  margin-top: var(--space-4);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
}

.roamvet-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.feature-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-amber);
}

.feature-item__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.feature-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

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

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
}

.section--accent-navy .feature-item {
  border-left-color: var(--color-navy);
}

.section--accent-amber .audience-item {
  background: var(--color-amber-light);
}

.section--accent-green .feature-item {
  border-left-color: var(--color-roamvet);
}

.section--accent-green .audience-item {
  background: var(--color-roamvet-subtle);
}

.audience-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audience-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
}

.audience-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  max-width: none;
}

.cta-box {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.cta-box h2 {
  color: var(--color-text-inverse);
  font-size: var(--text-2xl);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-3);
  margin-inline: auto;
}

.cta-box a:not(.btn) {
  color: var(--color-amber);
}

.cta-box a:not(.btn):hover {
  color: #fff;
}

.cta-box .btn {
  margin-top: var(--space-6);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-text-inverse);
}

.breadcrumb__sep {
  font-size: 0.8em;
}

.breadcrumb__current {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Utility classes ────────────────────────────────────────── */
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive: tablet ─────────────────────────────────────── */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

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

/* ── Responsive: desktop ────────────────────────────────────── */
@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }

  /* Nav: switch to horizontal layout */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    /* Override mobile drawer styles */
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    clip-path: none;
    pointer-events: auto;
  }

  .nav-menu > li > a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
  }

  .nav-menu > li > a:hover {
    background: var(--color-navy-light);
  }

  /* Desktop active: underline instead of left bar */
  .nav-menu > li > a[aria-current="page"] {
    color: var(--color-navy);
    border-bottom: 2px solid var(--color-amber);
    border-radius: 0;
    padding-bottom: calc(var(--space-2) - 2px);
  }

  .nav-menu > li > a[aria-current="page"]::before {
    display: none;
  }

  /* Desktop dropdown */
  .nav-has-dropdown {
    position: relative;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0 var(--space-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height var(--transition-base),
      opacity var(--transition-fast);
  }

  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown.is-open .nav-dropdown {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown {
    min-width: 210px;
  }

  .nav-dropdown a {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: none;
  }

  .nav-dropdown a:hover {
    background: var(--color-navy-light);
    color: var(--color-navy);
  }

  .nav-dropdown__label {
    padding: var(--space-3) var(--space-5) var(--space-1);
  }

  .nav-dropdown__divider {
    margin: var(--space-1) var(--space-3);
  }

  /* Hero */
  .hero {
    padding-block: var(--space-10) var(--space-12);
  }

  .hero__title {
    font-size: var(--text-6xl);
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-16);
  }

  /* Solutions feature */
  .solution-feature {
    grid-template-columns: 1fr 1fr;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Audience */
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Page hero */
  .page-hero h1 {
    font-size: var(--text-5xl);
  }

  .roamvet-hero h1 {
    font-size: var(--text-6xl);
  }
}

/* ── Responsive: wide ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(var(--text-6xl), 5vw, 4.5rem);
  }
}

/* ── Demo credentials card ─────────────────────────────────── */
.demo-card {
  background: var(--color-roamvet-subtle);
  border: 1px solid color-mix(in srgb, var(--color-roamvet) 30%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .demo-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
    gap: var(--space-8);
  }
}

.demo-card__lead h3 {
  margin: 0;
  color: var(--color-roamvet);
  font-size: var(--text-xl);
}

.demo-card__lead p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.demo-card__creds {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: 0;
}

.demo-card__creds > div {
  display: contents;
}

.demo-card__creds dt {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  align-self: center;
}

.demo-card__creds dd {
  margin: 0;
  font-size: var(--text-sm);
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-card__creds code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  user-select: all;
}

.demo-card__btn {
  white-space: nowrap;
  justify-self: start;
}

@media (min-width: 768px) {
  .demo-card__btn {
    justify-self: end;
  }
}

/* ── Device showcase ──────────────────────────────────────── */
.device-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
  transition: transform 200ms ease;
  flex: 0 0 auto;
}

.device:hover,
.device:focus-visible {
  transform: translateY(-4px);
}

.device:focus-visible {
  outline: none;
}

.device:focus-visible > span:first-child {
  outline: 2px solid var(--color-roamvet);
  outline-offset: 6px;
  border-radius: 16px;
}

.device__caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  text-align: center;
  max-width: 20ch;
  line-height: 1.4;
}

/* When devices overlap (≥768px) the captions would collide. Hide them
   visually but keep them in the accessibility tree; the lightbox surfaces
   the same caption via data-title when the user zooms in. */
@media (min-width: 768px) {
  .device__caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Laptop */
.device--laptop {
  width: clamp(260px, 46vw, 520px);
}

.device__laptop-screen {
  display: block;
  width: 100%;
  background: #1a1a1a;
  padding: 14px 14px 16px 14px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.device__laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.device__laptop-base {
  display: block;
  width: 112%;
  height: 14px;
  background: linear-gradient(180deg, #d6d6d6 0%, #a8a8a8 55%, #7a7a7a 100%);
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.device__laptop-base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 18%;
  height: 5px;
  background: #4a4a4a;
  border-radius: 0 0 8px 8px;
}

/* Tablet */
.device--tablet {
  width: clamp(200px, 30vw, 340px);
}

.device__tablet-frame {
  display: block;
  width: 100%;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.device__tablet-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Phone — sized at ~30% of iPad width to match real-world proportions */
.device--phone {
  width: clamp(64px, 9vw, 105px);
}

/* Overlap layout (desktop only): iPad nudges over the laptop, phone nudges
   over the iPad. Smaller devices sit on top so their frames aren't clipped. */
@media (min-width: 768px) {
  .device-showcase {
    flex-wrap: nowrap;
    gap: 0;
  }
  .device--laptop { z-index: 1; }
  .device--tablet {
    z-index: 2;
    margin-left: clamp(-3.5rem, -3vw, -1rem);
  }
  .device--phone {
    z-index: 3;
    margin-left: clamp(-2rem, -1.8vw, -0.5rem);
  }
}

.device__phone-frame {
  display: block;
  width: 100%;
  background: #1a1a1a;
  padding: 6px;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.device__phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ── GLightbox overrides ──────────────────────────────────── */
/* Cap zoomed images at ~75% of the viewport so they don't fill the screen,
   especially the tall phone screenshot. */
.gslide-image img {
  max-width: 75vw !important;
  max-height: 75vh !important;
  width: auto;
  height: auto;
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-header,
  .nav-toggle,
  .site-footer {
    display: none;
  }
}
