/* Apex Perioperative Solutions — premium corporate palette.
   Sibling to StaffAware via the shared navy + hexagon mark, but a calmer
   "trusted advisor" register: warm ivory canvas, ink-navy serif headings,
   muted teal accent, antique gold reserved for CLIMB. */

:root {
  /* Surfaces */
  --bg:            #f6f4ef;   /* warm ivory page */
  --bg-card:       #ffffff;   /* white cards */
  --bg-alt:        #efece4;   /* faint warm band */
  --bg-ink:        #102a3e;   /* deep ink navy (dark sections) */

  /* Borders */
  --border:        #e3dfd6;
  --border-strong: #d6d1c5;

  /* Text */
  --text:          #4b5563;   /* slate body */
  --text-bright:   #102a3e;   /* ink navy headings */
  --text-dim:      #7a8493;
  --text-on-ink:   #e8edf2;

  /* Accents */
  --teal:          #18717a;   /* muted accent — grown-up echo of StaffAware cyan */
  --teal-dim:      rgba(24, 113, 122, 0.10);
  --teal-deep:     #115860;
  --gold:          #b0894b;   /* CLIMB prestige */
  --gold-text:     #8a6a39;
  --gold-dim:      rgba(176, 137, 75, 0.12);
  --green:         #2f855a;
  --red:           #b83a3a;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'Consolas', ui-monospace, monospace;

  --container: 1140px;
  --container-narrow: 760px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 62, 0.04);
  --shadow-md: 0 6px 24px -12px rgba(16, 42, 62, 0.18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--container-narrow); }

a { color: inherit; text-decoration: none; transition: color .15s ease; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text-bright); font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h2 em { color: var(--teal); font-style: italic; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { color: var(--text); }

/* ---- Eyebrow / tags ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.eyebrow .dot.dot-teal { background: var(--teal); }
.eyebrow .dot.dot-gold { background: var(--gold); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; padding: 2px 7px; border-radius: 4px;
  background: var(--teal-dim); color: var(--teal-deep); border: 1px solid var(--border-strong);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.92rem; border-radius: 8px;
  padding: 11px 20px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--bg-ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #18374f; transform: translateY(-1px); }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-bright); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-serif); font-weight: 600; color: var(--text-bright); line-height: 1; font-size: 18px; }
.brand-sub { font-family: var(--font-sans); font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }
.brand-mark { display: block; height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--text-bright); }
.nav-links a.btn-primary { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-bright); border-radius: 2px; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 75% 0%, rgba(24,113,122,0.07), transparent 70%);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin: 0.5rem 0 1.2rem; }
.lede { font-size: 1.2rem; color: var(--text); max-width: 690px; }
.lede strong { color: var(--gold-text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.5rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.85rem; color: var(--text-dim); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }

/* ---- Trust ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.6rem 0; text-align: center; background: var(--bg-card); }
.trust-line { color: var(--text-bright); font-weight: 600; }
.trust-sub { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { font-size: 1.1rem; max-width: 760px; margin-bottom: 2.5rem; }
.emph { color: var(--text-bright); font-size: 1.12rem; font-weight: 500; margin-top: 1.2rem; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 6px; }
.card-tagline { color: var(--teal); font-weight: 600; margin-bottom: 12px; font-family: var(--font-sans); }

/* On white section-alt, cards use a faint tint so they read as cards */
.section-alt .card { background: var(--bg); }

/* ---- Phases ---- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.phase-num { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 10px; }
.phase h3 { margin-bottom: 8px; }
.phase p { font-size: 0.95rem; }

/* ---- StaffAware product band ---- */
.section-product { background: var(--bg-ink); color: var(--text-on-ink); }
.section-product h2 { color: #fff; }
.section-product h2 em { color: #5dd0d8; }
.section-product p { color: #c3cdd8; }
.section-product .eyebrow { color: #5dd0d8; }
.section-product .eyebrow .dot { background: #5dd0d8; }
.section-product .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.section-product .btn-ghost:hover { color: #5dd0d8; border-color: #5dd0d8; }
.legal-mini { font-family: var(--font-mono); font-size: 11px; color: #7d8a98; margin-top: 1.5rem; }

/* ---- CLIMB pillars ---- */
.climb-h { color: var(--gold-text); }
.pillars { list-style: none; display: grid; gap: 14px; max-width: 820px; }
.pillars li { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.pillar-letter { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; width: 28px; flex-shrink: 0; }
.pillars h4 { color: var(--text-bright); margin-bottom: 2px; }
.pillars p { font-size: 0.95rem; }

/* ---- Founder ---- */
.founder-quote { border-left: 3px solid var(--teal); padding-left: 26px; }
.founder-quote p { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text-bright); font-style: italic; line-height: 1.55; }
.founder-quote footer { margin-top: 1.1rem; font-family: var(--font-sans); font-size: 0.88rem; color: var(--teal); font-style: normal; font-weight: 600; }

/* ---- Contact ---- */
.section-cta { background: var(--bg-card); border-top: 1px solid var(--border); }
.contact-form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 11px 13px; color: var(--text-bright); font-family: inherit; font-size: 0.98rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.contact-form button { justify-self: start; margin-top: 4px; }
.form-note { font-size: 0.85rem; min-height: 1.2em; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-logo { display: block; width: 180px; height: auto; margin-bottom: 4px; }
.footer-tag { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-cols h5 { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 0.92rem; color: var(--text); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--teal); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a.btn-primary { margin-top: 10px; text-align: center; border-bottom: none; }
  .nav-toggle { display: flex; }
  .grid-2, .phases, .form-row { grid-template-columns: 1fr; }
}
