/* ============================================================
   YourGP Group Site — ygp.au
   Design system built on the YourGP brand tokens shared by the
   clinic sites (css/local.css) and the print packs (yourgp-pack.css).
   No build step. Edit this file directly.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Cormorant+Garamond:wght@500&display=swap');

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

:root {
  /* Brand greens — do not substitute */
  --deep:       #082622;  /* dark sections, deepest headings */
  --sage:       #5A867D;  /* primary: links, buttons, rules */
  --mid:        #456B63;  /* hover state, section headings */
  --mint:       #80B7A2;  /* accent: stat numbers, CTA button */
  --mint-soft:  #b9d6c8;

  /* Neutrals */
  --paper:      #F8FAF9;
  --paper-warm: #F4F8F7;
  --border:     #e0ebe9;
  --text:       #333333;
  --text-soft:  #555555;
  --text-mute:  #7C857F;
  --white:      #FFFFFF;

  --radius:     6px;
  --radius-lg:  10px;
  --shadow-sm:  0 2px 8px rgba(8,38,34,0.06);
  --shadow-md:  0 6px 22px rgba(8,38,34,0.10);
  --nav-h:      68px;

  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* === Wordmark ===
   Text, not an image: the PNG logos are clinic-specific ("YourGP@Crace") and
   too low-resolution for modern screens. Construction follows the brand pack's
   .wordmark rule — "YOUR" light and letterspaced, "GP" in the display serif. */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.16em;
  line-height: 1; white-space: nowrap; font-size: 1.75rem;
}
.wordmark .your {
  font-family: var(--font); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.30em;
  transform: translateY(-0.04em); color: var(--mid);
}
.wordmark .gp {
  font-family: var(--display); font-weight: 500;
  font-size: 1em; letter-spacing: -0.005em; color: var(--deep);
}
/* On dark grounds */
.wordmark--light .your { color: var(--mint); }
.wordmark--light .gp { color: var(--white); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--deep); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--deep); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* === Typography === */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--deep); font-weight: 700; }
h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text-soft); font-weight: 300; }
.eyebrow {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 0.6rem;
}
.text-center { text-align: center; }

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 4px solid var(--mint);
  background: var(--paper-warm);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--text-soft);
}
blockquote p:last-child { margin-bottom: 0; }

hr.rule {
  border: none; border-top: 1px solid var(--border); margin: 3rem 0;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--mint); color: var(--deep); }
.btn-primary:hover { background: var(--mid); color: var(--white); }
.btn-solid { background: var(--mid); color: var(--white); }
.btn-solid:hover { background: var(--deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--mid); border-color: var(--mid); }
.btn-outline:hover { background: var(--mid); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--mint); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Visible focus for everything interactive */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--mint); outline-offset: 2px;
}

/* === Navigation === */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo:hover .gp { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links > a, .nav-dropdown > button {
  font-family: var(--font);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-dropdown > button:hover { color: var(--mid); }
.nav-links > a.active { border-bottom: 2px solid var(--mint); padding-bottom: 2px; }

.nav-dropdown { position: relative; }
.nav-dropdown > button::after { content: ' \25BE'; }
.nav-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 0.6rem; min-width: 200px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.nav-menu a {
  display: block; padding: 0.7rem 1rem; font-size: 0.9rem;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover { background: var(--paper); color: var(--mid); }
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu { display: block; }

.nav-cta {
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  background: var(--mid); color: var(--white) !important;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--deep); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--deep);
  margin: 5px 0; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 99; overflow-y: auto; padding: 1.5rem 1.25rem 3rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.85rem 0; font-size: 1.05rem; font-weight: 700;
  color: var(--deep); border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--mid); }
.mobile-menu .mm-group-label {
  display: block; margin-top: 1.5rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute);
}
.mobile-menu .mm-cta { margin-top: 1.75rem; }
/* .mobile-menu a (0,1,1) outranks .btn-solid (0,1,0), so restate here */
.mobile-menu .mm-cta .btn { color: var(--white); border-bottom: none; }

/* Push page content clear of the fixed bar */
main { padding-top: var(--nav-h); }

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  color: var(--white); text-align: center;
  padding: 5rem 0 4.5rem;
  background: var(--deep);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,38,34,0.90), rgba(69,107,99,0.88));
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: 2.9rem; font-weight: 300; }
.hero h1 strong { font-weight: 700; }
.hero .eyebrow { color: var(--mint); }
.hero-sub {
  font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,0.92);
  max-width: 640px; margin: 0.9rem auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Compact hero for interior pages */
.hero-compact { padding: 3.5rem 0 3rem; }
.hero-compact h1 { font-size: 2.3rem; }

/* === Stat row === */
.stat-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.5rem;
}
.stat { text-align: center; }
.stat-number {
  display: block; font-size: 2.1rem; font-weight: 700; color: var(--mint); line-height: 1.1;
}
.stat-label {
  display: block; margin-top: 0.25rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
/* Stat row on a light background */
.section .stat-number { color: var(--mid); }
.section .stat-label { color: var(--text-mute); }

/* === Sections === */
.section { padding: 4rem 0; }
.section-tight { padding: 2.75rem 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--deep); color: rgba(255,255,255,0.88); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .eyebrow { color: var(--mint); }
.section-dark a { color: var(--mint); }
.section-dark a:hover { color: var(--white); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-header h2 { color: var(--mid); }
.section-header p { color: var(--text-soft); font-size: 1.08rem; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

/* === Cards === */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card h3 { color: var(--mid); }
.card ul { margin-left: 1.1rem; }
.card li { font-size: 0.95rem; color: var(--text-soft); }

/* Cards sitting on a dark section invert rather than punch a white hole in it */
.section-dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.section-dark .card h3 { color: var(--mint); }
.section-dark .card p,
.section-dark .card li { color: rgba(255,255,255,0.82); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }

/* Audience-path cards (home page) */
.path-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--mint);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.path-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.path-card h3 { font-size: 1.4rem; color: var(--deep); }
.path-card p { color: var(--text-soft); flex-grow: 1; }
.path-card .path-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem;
}

/* Clinic cards */
.clinic-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.clinic-card h3 { color: var(--deep); margin-bottom: 0.15rem; }
.clinic-card .clinic-suburb {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); font-weight: 700; margin-bottom: 0.75rem;
}
.clinic-card address {
  font-style: normal; color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.5rem;
}
.clinic-card .clinic-meta {
  font-size: 0.88rem; color: var(--text-mute); margin-bottom: 0.9rem;
}
.clinic-card .clinic-link { margin-top: auto; font-weight: 700; font-size: 0.92rem; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--mint-soft); color: var(--deep);
  padding: 0.2rem 0.6rem; border-radius: 999px; margin-left: 0.4rem;
}
.badge-quiet { background: var(--paper-warm); color: var(--mid); }

/* Numbered trait list */
.trait-list { list-style: none; margin: 0; counter-reset: trait; }
.trait-list > li {
  counter-increment: trait; position: relative;
  padding: 0 0 1.4rem 3.25rem; margin: 0;
}
.trait-list > li::before {
  content: counter(trait, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-size: 0.95rem; font-weight: 700; color: var(--mid);
  background: var(--paper-warm); border: 1px solid var(--border);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.trait-list > li strong { color: var(--deep); }

/* Pillar list — sequential, each enabling the next */
.pillar {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.pillar:last-child { border-bottom: none; }
.pillar-num {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--mid); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.pillar-body h3 { margin-bottom: 0.2rem; }
.pillar-metric {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.8rem; color: var(--mid); font-weight: 700;
  background: var(--paper-warm); padding: 0.2rem 0.7rem; border-radius: 999px;
}
.section-dark .pillar { border-bottom-color: rgba(255,255,255,0.12); }
.section-dark .pillar-num { background: var(--mint); color: var(--deep); }
.section-dark .pillar-metric { background: rgba(255,255,255,0.09); color: var(--mint); }

/* Clarity Q&A grid */
.clarity-item {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
}
.clarity-item .q {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 0.3rem;
}
.clarity-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.clarity-item p { font-size: 0.95rem; color: var(--text-soft); }

/* Accordion (FAQ-style content) */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1.05rem; font-weight: 700; color: var(--deep);
  padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
}
.accordion-trigger::after {
  content: '+'; position: absolute; right: 0.5rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--mid);
}
.accordion-item.open .accordion-trigger::after { content: '\2013'; }
.accordion-trigger:hover { color: var(--mid); }
.accordion-panel { display: none; padding: 0 0 1.25rem; color: var(--text-soft); }
.accordion-item.open .accordion-panel { display: block; }

/* Callout — used for the "is this you?" self-selection prompt */
.callout {
  background: var(--paper-warm); border: 1px solid var(--border);
  border-left: 4px solid var(--mint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.callout h3 { color: var(--mid); font-size: 1.1rem; }

/* CTA block */
.cta-block {
  background: var(--deep); color: var(--white);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center;
}
.cta-block h2, .cta-block h3 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0.6rem auto 1.5rem; }
.cta-note { font-size: 0.85rem; color: var(--mint); margin-top: 1rem; }

/* Award badge */
.award { text-align: center; margin: 2.5rem 0; }
.award img { display: inline-block; max-width: 320px; }

/* Media block — image beside text */
.media-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: center; }
.media-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* Contact details */
.contact-details { font-size: 1.05rem; }
.contact-details dt {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute); margin-top: 1.25rem;
}
.contact-details dd { margin: 0.2rem 0 0; }

/* === Footer === */
footer { background: var(--deep); color: rgba(255,255,255,0.75); padding: 3rem 0 0; }
footer h4 {
  color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.85rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo .wordmark { font-size: 2rem; margin-bottom: 1rem; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; }
.footer-grid a { display: block; color: rgba(255,255,255,0.75); margin-bottom: 0.45rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--mint); }

/* === Responsive === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.3rem; }
  .hero-compact h1 { font-size: 1.95rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .media-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1.05rem; }
  .stat-row { gap: 1.5rem; }
  .stat-number { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .path-card .path-actions { flex-direction: column; }
  .path-card .path-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 2rem 1.25rem; }
  .trait-list > li { padding-left: 2.9rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .path-card:hover { transform: none; }
}

/* Print */
@media print {
  .nav-bar, .mobile-menu, .hamburger, .hero-bg { display: none; }
  main { padding-top: 0; }
  body { color: #000; }
  .section-dark, .hero, .cta-block, footer { background: none !important; color: #000 !important; }
}
