/* =========================================================
   Cordi — cordi.com.au
   Static marketing site. Visual system bridges the Cordi
   social campaign (coral→red, bokeh, phone mockups) with
   centaur.com.au (navy-teal, Figtree/Nunito, premium calm).
   ========================================================= */

:root {
  --coral: #e37165;        /* brand coral (= Centaur accent) */
  --coral-light: #ee8a78;  /* hero gradient start / top of spiral */
  --coral-deep: #d65f53;   /* button base (better contrast)   */
  --red-deep: #b5403a;     /* hero gradient end / bottom of spiral */
  --navy: #1d4354;         /* primary dark / headings on light */
  --navy-deep: #162231;    /* footer / deepest dark */
  --black-panel: #111419;  /* the one "IG-quote" panel */
  --ink: #21303a;          /* strong headings */
  --body: #3f3f3f;         /* body text */
  --muted: #6c6c6c;        /* secondary text */
  --line: #e6e8ec;         /* hairlines */
  --bg-soft: #f6f7f9;      /* light section bg */
  --white: #ffffff;

  --font-head: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(22, 34, 49, .08);
  --shadow-md: 0 18px 50px rgba(22, 34, 49, .16);
  --nav-h: 74px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-pad { padding: 92px 0; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--red-deep) 100%);
  box-shadow: 0 10px 24px rgba(181, 64, 58, .32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(181, 64, 58, .42); transform: translateY(-1px); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .94rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--coral-deep); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.14) 0 16px, transparent 17px),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.10) 0 30px, transparent 31px),
    radial-gradient(circle at 70% 78%, rgba(255,255,255,.08) 0 44px, transparent 45px),
    radial-gradient(circle at 30% 88%, rgba(255,255,255,.07) 0 22px, transparent 23px),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.06) 0 60px, transparent 61px),
    linear-gradient(135deg, #f2886f 0%, #e8675a 46%, #cf3f37 100%);
}
.hero-watermark {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 560px; max-width: 60%; opacity: .12; pointer-events: none; user-select: none;
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-top: 86px; padding-bottom: 96px; min-height: 560px;
}
.hero .eyebrow { color: rgba(255,255,255,.92); }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 5.2vw, 4rem); margin: 16px 0 18px;
  text-shadow: 0 2px 18px rgba(120, 30, 26, .28);
}
.hero p.sub { font-size: 1.22rem; color: rgba(255,255,255,.97); max-width: 33ch; text-shadow: 0 1px 10px rgba(120,30,26,.22); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-white { background: #fff; color: var(--red-deep); box-shadow: 0 10px 24px rgba(120,30,26,.22); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(120,30,26,.3); }

/* ---------- phone mockup (pure CSS) ---------- */
.phone {
  width: 230px; aspect-ratio: 9 / 18.6; margin-inline: auto;
  background: #0c1014; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.18); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 17px; background: #0c1014; border-radius: 0 0 12px 12px; z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%; background: #fff; border-radius: 27px; overflow: hidden;
  display: flex; flex-direction: column; font-family: var(--font-body);
}
.scr-top { height: 30px; flex: none; display:flex; align-items:center; justify-content:center; gap:5px; padding-top:6px; }
.scr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.scr-dot.b { background: var(--navy); opacity:.35; }
.scr-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.scr-title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .82rem; }
.scr-sub { font-size: .62rem; color: var(--muted); line-height:1.35; }
.scr-mark { width: 30px; height: auto; display: block; margin: 0 auto 4px; }
.bar { height: 9px; border-radius: 5px; background: var(--bg-soft); }
.bar.field { height: 22px; border: 1px solid var(--line); background:#ffff; border-radius:7px; }
.bar.w70 { width: 70%; } .bar.w50 { width: 50%; } .bar.w85{width:85%;}
.pill-btn { margin-top: 12px; height: 26px; border-radius: 999px; background: linear-gradient(135deg,var(--coral),var(--red-deep)); }
.check-row { display:flex; align-items:center; gap:7px; }
.check { width:14px;height:14px;border-radius:5px;border:1.5px solid var(--coral);flex:none; }
.check.on{ background:var(--coral); }
.mini-chart { display:flex; align-items:flex-end; gap:6px; height:54px; margin-top:4px; }
.mini-chart span{ flex:1; border-radius:5px 5px 0 0; background:linear-gradient(180deg,var(--coral-light),var(--coral)); }

/* ---------- "you're making a difference" ---------- */
.difference { background: var(--bg-soft); }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.section-head p { margin-top: 12px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(227,113,101,.16), rgba(181,64,58,.14));
  color: var(--coral-deep); margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- how it works (the IG-quote black panel) ---------- */
.how { background: var(--black-panel); color: #fff; position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(227,113,101,.22) 0 10px, transparent 11px),
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.06) 0 26px, transparent 27px),
    radial-gradient(circle at 78% 84%, rgba(227,113,101,.16) 0 34px, transparent 35px),
    radial-gradient(circle at 22% 82%, rgba(255,255,255,.05) 0 40px, transparent 41px);
}
.how .container { position: relative; z-index: 2; }
.how .section-head h2 { color: #fff; }
.how .section-head .accent { color: var(--coral); }
.how .section-head p { color: rgba(255,255,255,.72); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 54px; }
.step { text-align: center; }
.step .phone { margin-bottom: 26px; }
.step-num {
  font-family: var(--font-head); font-weight: 800; color: var(--coral);
  font-size: 1.05rem; letter-spacing: .04em;
}
.step h3 { color: #fff; font-size: 1.25rem; margin: 6px 0 8px; }
.step p { color: rgba(255,255,255,.74); font-size: 1rem; }

/* ---------- secure strip ---------- */
.secure { background: var(--navy); color: #fff; }
.secure .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; text-align: center; }
.secure .lock {
  width: 66px; height: 66px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--coral-light);
}
.secure .lock svg { width: 32px; height: 32px; }
.secure h2 { color: #fff; font-size: 1.75rem; }
.secure p { color: rgba(255,255,255,.82); max-width: 60ch; margin-top: 6px; }
.secure .links { margin-top: 12px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.secure .links a { color: var(--coral-light); font-weight: 700; font-family: var(--font-head); }
.secure .links a:hover { text-decoration: underline; }

/* ---------- clinicians (CSS-only tabs) ---------- */
.clinicians { background: #fff; }
.tabs { margin-top: 40px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: inline-flex; gap: 6px; background: var(--bg-soft); padding: 6px; border-radius: 999px; border: 1px solid var(--line); flex-wrap: wrap; }
.tab-labels label {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--muted);
  padding: 11px 24px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.tab-labels label:hover { color: var(--navy); }
.tab-panels { margin-top: 30px; }
.tab-panel { display: none; }
.tab-panel-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px;
}
.tab-panel h3 { font-size: 1.55rem; margin-bottom: 12px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 13px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--coral), var(--red-deep)); color: #fff; margin-top: 2px;
}
.feature-list .tick svg { width: 13px; height: 13px; }
.clin-cta { margin-top: 26px; }
.clin-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.clin-aside .big { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 2.4rem; line-height: 1; }
.clin-aside .muted { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.clin-aside hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

/* show active tab + style active label */
#t-surgeons:checked    ~ .tab-panels #p-surgeons,
#t-physios:checked     ~ .tab-panels #p-physios,
#t-performance:checked ~ .tab-panels #p-performance { display: block; }
#t-surgeons:checked    ~ .tab-labels label[for="t-surgeons"],
#t-physios:checked     ~ .tab-labels label[for="t-physios"],
#t-performance:checked ~ .tab-labels label[for="t-performance"] {
  background: linear-gradient(135deg, var(--coral), var(--red-deep)); color: #fff;
  box-shadow: 0 8px 18px rgba(181,64,58,.28);
}

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer-top { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-tie { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-tie .tie-text { font-family: var(--font-head); color: #fff; font-size: 1.35rem; font-weight: 700; }
.footer-tie .tie-text span { color: var(--coral-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 46px 0; }
.footer-logo img { height: 34px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer a:hover { color: var(--coral-light); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--coral-deep); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 60px; padding-bottom: 70px; }
  .hero p.sub { max-width: none; margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .hero-watermark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section-pad { padding: 64px 0; }
  .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 46px; max-width: 340px; margin-inline: auto; }
  .tab-panel-inner { grid-template-columns: 1fr; padding: 28px; }
  .clin-aside { order: -1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tab-labels { display: flex; width: 100%; }
  .tab-labels label { flex: 1; text-align: center; padding: 11px 12px; }
}
