/* ── AEGIS HEALTHCARE ADVISORY — SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --black:      #0a0a0a;
  --off-white:  #f8f6f1;
  --white:      #ffffff;
  --red:        #b83232;
  --red-dark:   #8c2020;
  --red-pale:   #fdf2f2;
  --gold:       #b8963e;
  --mid:        #4a4a4a;
  --light:      #ede9e1;
  --border:     #d4cfc6;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Sticky hamburger menu button — identical on every page, shown on small viewports */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(248,246,241,0.7);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--off-white);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--off-white); }

.nav-links .nav-cta a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}

.nav-links .nav-cta a:hover { color: #e04040; border-color: #e04040; }

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 52px;
}

/* ── BUTTONS ── */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--off-white);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-red:hover { background: var(--red-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--off-white);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid rgba(248,246,241,0.2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--off-white); color: var(--off-white); }

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.4);
  text-decoration: none;
  border-bottom: 1px solid rgba(248,246,241,0.15);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--off-white); border-color: rgba(248,246,241,0.5); }

/* ── FOOTER ── */
.footer {
  background: #060606;
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(248,246,241,0.35);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(248,246,241,0.5); }

/* ── FORMS ── */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-row label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.35);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
  border-radius: 0;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--red); }

.form-row select option { background: var(--black); }
.form-row textarea { resize: vertical; min-height: 90px; }

/* ── TRUST & CREDENTIALS (reusable component) ── */
/* A premium, minimalist credentials block. Works on light backgrounds by
   default; add `.is-dark` on the section for dark backgrounds. Reuse the
   markup as-is to add future accreditations — only the cards change. */
.trust-credentials {
  padding: 96px 40px;
  background: var(--off-white);
}
.trust-credentials.is-dark {
  background: var(--black);
  color: var(--off-white);
}

.trust-credentials-inner {
  max-width: 980px;
  margin: 0 auto;
}

.trust-credentials.is-dark .section-heading { color: var(--off-white); }
.trust-credentials.is-dark .section-intro { color: rgba(248,246,241,0.5); }

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.credential-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s;
}

/* A single hairline accent — restrained, no icons, no heavy shadow */
.credential-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.credential-card:hover { border-color: var(--gold); }

.trust-credentials.is-dark .credential-card {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.1);
}

.credential-cat {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.credential-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
}

.trust-credentials.is-dark .credential-name { color: var(--off-white); }

.credential-desc {
  font-size: 12.5px;
  color: var(--mid);
  line-height: 1.6;
}

.trust-credentials.is-dark .credential-desc { color: rgba(248,246,241,0.5); }

/* Subtle conversion CTA — shared by every trust section */
.trust-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-credentials.is-dark .trust-cta,
.why-trust .trust-cta { border-top-color: var(--border); }
.trust-credentials.is-dark .trust-cta { border-top-color: rgba(255,255,255,0.1); }

.trust-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 520px;
  margin: 0;
}

.trust-credentials.is-dark .trust-cta p { color: var(--off-white); }

/* ── WHY CLIENTS TRUST AEGIS ── */
.why-trust {
  padding: 96px 40px;
  background: var(--light);
}

.why-trust-inner {
  max-width: 980px;
  margin: 0 auto;
}

.why-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 48px;
}

.why-trust-item {
  background: var(--off-white);
  padding: 34px 28px;
}

.why-trust-item .wt-marker {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 16px;
}

.why-trust-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.why-trust-item p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
}

/* ── COMPACT CREDENTIALS PANEL (for use beside a form, dark background) ── */
.trust-panel {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 26px 26px 10px;
  margin-bottom: 32px;
}

.trust-panel-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.trust-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.trust-panel-item {
  font-size: 13px;
  color: rgba(248,246,241,0.72);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
}

.trust-panel-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Trust microcopy directly above a form submission button */
.form-trust {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,246,241,0.32);
  text-align: center;
  line-height: 1.9;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .credential-grid { grid-template-columns: repeat(2, 1fr); }
  .why-trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .trust-credentials, .why-trust { padding: 72px 20px; }
  .credential-grid { grid-template-columns: 1fr; }
  .why-trust-grid { grid-template-columns: 1fr; }
  .trust-panel-grid { grid-template-columns: 1fr; }
  .trust-cta { gap: 20px; }
  .trust-cta p { font-size: 20px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 12px 24px 20px;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 10px;
    letter-spacing: 0.25em;
  }
}

@media (max-width: 700px) {
  .nav { padding: 0 20px; }
}
