/* =========================================================================
   Get Better Doctors — main stylesheet
   Design system: purple #9b3f9e primary, pink #e04e8d accent/CTA,
   white background, light-gray #f5f5f5 cards. Matches approved 2026 mockups.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	/* Brand palette — matches PPTX design (magenta primary) */
	--pink:          #e91e63;   /* primary brand / accent / CTA */
	--pink-dark:     #c2185b;
	--pink-50:       #fce4ec;
	--pink-100:      #f8bbd0;
	--purple:        #6a1b9a;   /* secondary (section headings, deep accents) */
	--purple-dark:   #4a148c;
	--purple-50:     #f3e5f5;

	/* Neutrals */
	--ink:           #1a1a1a;   /* body text / "Get" in logo */
	--ink-soft:      #4a4a4a;
	--muted:         #6b7280;
	--line:          #e5e5e5;   /* hairline borders */
	--bg:            #ffffff;
	--bg-soft:       #f7f7f8;   /* page sections */
	--card:          #f5f5f5;   /* service cards */
	--card-2:        #ffffff;

	/* Semantic */
	--success:       #2f9e6b;
	--warning:       #d98300;

	/* Typography */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: "Poppins", var(--font-sans);

	/* Spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;

	/* Radius / shadow */
	--radius-sm: 8px;
	--radius:    14px;
	--radius-lg: 22px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
	--shadow:    0 8px 24px rgba(0, 0, 0, .08);
	--shadow-lg: 0 18px 48px rgba(0, 0, 0, .12);

	--container: 1180px;
	--header-h: 76px;
	--transition: 0.22s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.18;
	margin: 0 0 var(--space-4);
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 var(--space-4); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--soft { background: var(--bg-soft); }

/* Section title with pink underline accent */
.section__title { position: relative; display: inline-block; padding-bottom: var(--space-3); }
.section__title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 64px; height: 4px; border-radius: var(--radius-pill);
	background: var(--pink);
}
.section__title--center { display: block; text-align: center; }
.section__title--center::after { left: 50%; transform: translateX(-50%); }

.eyebrow {
	display: inline-block; font-family: var(--font-sans);
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--pink); margin-bottom: var(--space-3);
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--purple); color: #fff; padding: var(--space-3) var(--space-4);
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: var(--space-2);
	font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
	padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
	border: 2px solid transparent; cursor: pointer; text-align: center;
	line-height: 1.1; transition: all var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--pink-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--ghost-dark:hover { background: var(--purple); color: #fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn__icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 500; background: var(--bg);
	box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line);
}
.header__main-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-5); min-height: var(--header-h);
}

/* Brand / logo — text-only "Get Better" (Get=black, Better=magenta) */
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand__text {
	font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
	line-height: 1; display: inline-flex; letter-spacing: -0.02em;
}
.brand__get { color: var(--ink); }
.brand__better { color: var(--pink); }

/* Primary nav */
.nav-primary { display: flex; align-items: center; }
.nav-primary__menu {
	display: flex; align-items: center; gap: 2px;
}
.nav-primary__link {
	display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
	font-weight: 500; font-size: 0.92rem; color: var(--ink-soft);
}
.nav-primary__link:hover { color: var(--pink); }
.nav-primary__link.is-active { color: var(--pink); font-weight: 600; }

/* Call button in header */
.header__call {
	background: var(--pink); color: #fff; font-weight: 600;
	font-size: 0.92rem; padding: 0.6rem 1.1rem;
}
.header__call:hover { background: var(--pink-dark); color: #fff; transform: translateY(-1px); }
.header__call-text { white-space: nowrap; }

/* Hamburger */
.nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle__bar { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--purple); transition: var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) 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(-8px) rotate(-45deg); }

/* ---------- CTA band (shared, above footer) ---------- */
.cta-band {
	background: var(--pink); color: #fff; padding-block: var(--space-8);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-band__title { color: #fff; margin-bottom: var(--space-2); }
.cta-band__sub { margin: 0; opacity: 0.95; font-size: 1.08rem; }
.cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band .btn--call { background: #fff; color: var(--pink-dark); }
.cta-band .btn--call:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #c9c9c9; padding-top: var(--space-9); }
.site-footer__inner {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-7);
	padding-bottom: var(--space-8);
}
.brand--footer .brand__get { color: #fff; }
.brand--footer .brand__better { color: var(--pink); }
.site-footer__desc { margin-top: var(--space-4); font-size: 0.95rem; max-width: 36ch; }
.site-footer__phone { margin-top: var(--space-3); }
.site-footer__phone a { color: #fff; font-weight: 700; font-size: 1.25rem; }
.site-footer__heading { color: #fff; font-size: 1rem; margin-bottom: var(--space-4); }
.site-footer__heading--gap { margin-top: var(--space-6); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__col li { font-size: 0.95rem; color: #c9c4d8; }
.site-footer__col a { color: #c9c4d8; }
.site-footer__col a:hover { color: #fff; }
.site-footer__emergency { font-size: 0.92rem; }
.site-footer__emergency strong { color: #ff6b6b; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--space-5); font-size: 0.85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }

/* =========================================================================
   Hero (home)
   ========================================================================= */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: 1.05fr 0.95fr;
	gap: var(--space-8); align-items: center;
	padding-block: var(--space-9); position: relative;
}
.hero__title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: var(--space-4); line-height: 1.1; }
.hero__subhead {
	font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
	letter-spacing: 0.06em; color: var(--pink); text-transform: uppercase;
	margin-bottom: var(--space-5);
}
.hero__body { color: var(--ink-soft); margin-bottom: var(--space-6); max-width: 50ch; font-size: 1.05rem; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

/* Hero media: large background photo + smaller foreground photo */
.hero__media { position: relative; min-height: 440px; }
.hero__photo {
	position: absolute; border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-lg); background: var(--card);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo--main { top: 0; right: 0; width: 70%; height: 92%; z-index: 1; }
.hero__photo--sub  { bottom: 0; left: 0; width: 50%; height: 48%; z-index: 2; border: 5px solid #fff; }
.hero__badge {
	position: absolute; z-index: 4; bottom: 6%; right: 2%;
	background: #fff; border-radius: var(--radius); padding: var(--space-4) var(--space-5);
	box-shadow: var(--shadow-lg); text-align: center; max-width: 170px;
}
.hero__badge-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--pink); line-height: 1; }
.hero__badge-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: var(--space-2); line-height: 1.3; }

/* =========================================================================
   Generic page hero (inner pages)
   ========================================================================= */
.page-hero {
	background: var(--pink);
	color: #fff; padding-block: var(--space-8) var(--space-7); position: relative; overflow: hidden;
}
.page-hero::after {
	content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
	border-radius: 50%; background: rgba(255, 255, 255, 0.1);
}
.page-hero__title { color: #fff; margin: 0; position: relative; }
.page-hero__sub { color: rgba(255,255,255,.9); margin-top: var(--space-3); font-size: 1.15rem; max-width: 60ch; position: relative; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,.75); margin-bottom: var(--space-3); position: relative; }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs a:hover { color: #fff; }

/* =========================================================================
   Cards (services, who-we-help, steps)
   ========================================================================= */
.card-grid { display: grid; gap: var(--space-5); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--card); border-radius: var(--radius); padding: var(--space-6);
	transition: transform var(--transition), box-shadow var(--transition);
	border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
	width: 56px; height: 56px; border-radius: var(--radius-sm);
	display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
	background: linear-gradient(135deg, var(--purple-100), var(--pink-50)); color: var(--purple);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

/* Service checklist */
.service-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.service-list__item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 1.02rem; color: var(--ink-soft); }
.service-list__check {
	flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
	background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center;
	margin-top: 2px;
}
.service-list__check svg { width: 14px; height: 14px; }

.badge-pill {
	display: inline-flex; align-items: center; gap: var(--space-2);
	background: var(--pink-50); color: var(--pink-dark); font-weight: 700;
	padding: 0.5rem 1rem; border-radius: var(--radius-pill); font-size: 0.95rem;
	border: 1px solid var(--pink);
}
.badge-pill--success { background: #e9f7f0; color: var(--success); border-color: var(--success); }

/* Split (text + image) section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Step cards (How It Works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; }
.step {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: var(--space-7) var(--space-6) var(--space-6); position: relative; text-align: left;
}
.step__num {
	width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--pink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
	margin-bottom: var(--space-5); box-shadow: 0 6px 16px rgba(233,30,99,.35);
}
.step h3 { color: var(--ink); }
.step p { color: var(--ink-soft); }
.step__list { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.step__list li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.step__list li::before { content: "▸"; color: var(--pink); font-weight: 700; }

/* Hours block */
.hours-block {
	background: var(--pink); color: #fff; border-radius: var(--radius-lg);
	padding: var(--space-7); display: grid; gap: var(--space-3);
}
.hours-block h3 { color: #fff; margin-bottom: var(--space-2); }
.hours-block__row { display: flex; justify-content: space-between; padding-block: var(--space-3); border-bottom: 1px solid rgba(255,255,255,.2); gap: var(--space-4); }
.hours-block__row:last-child { border-bottom: 0; }
.hours-block__day { font-weight: 500; }
.hours-block__time { font-weight: 700; }

.emergency-callout {
	display: flex; align-items: center; gap: var(--space-4); background: #fff5f5;
	border: 1px solid #ffcccc; border-left: 5px solid #e54848; border-radius: var(--radius);
	padding: var(--space-5) var(--space-6); margin-top: var(--space-6);
}
.emergency-callout__icon { width: 44px; height: 44px; flex-shrink: 0; color: #e54848; }
.emergency-callout strong { color: #e54848; }

/* Conditions list (For Patients) */
.conditions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.conditions li {
	display: flex; align-items: center; gap: var(--space-3); background: var(--card);
	padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 500; color: var(--ink);
}
.conditions li::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex-shrink: 0;
}

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--pink); line-height: 1; }
.stat__label { color: var(--ink-soft); margin-top: var(--space-2); font-size: 0.95rem; }

/* =========================================================================
   Callback form
   ========================================================================= */
.callback-form {
	background: #fff; border-radius: var(--radius-lg); padding: var(--space-7);
	box-shadow: var(--shadow); border: 1px solid var(--line);
}
.callback-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-field .required { color: var(--pink); }
.form-field input, .form-field select, .form-field textarea {
	font-family: var(--font-sans); font-size: 1rem; padding: 0.75rem 0.9rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: #faf9fb;
	transition: border-color var(--transition), box-shadow var(--transition); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-100); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 90px; }
/* Honeypot — visually hidden from users, visible to bots */
.form-field--honeypot { position: absolute; left: -9999px; top: 0; }
.form-messages { margin-top: var(--space-4); }
.form-notice { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 600; }
.form-notice--success { background: #e9f7f0; color: #1f7a52; border: 1px solid var(--success); }
.form-notice--error { background: #fff0f0; color: #b3261e; border: 1px solid #e54848; }
.form-notice ul { margin-top: var(--space-2); padding-left: var(--space-5); }
.form-notice li { list-style: disc; }

/* Postcode lookup */
.lookup { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: stretch; max-width: 540px; }
.lookup input { flex: 1; min-width: 180px; }
.lookup-result { margin-top: var(--space-4); padding: var(--space-5); border-radius: var(--radius); display: none; }
.lookup-result.is-visible { display: block; }
.lookup-result--yes { background: #e9f7f0; border: 1px solid var(--success); color: #1f7a52; }
.lookup-result--no { background: #fff0f0; border: 1px solid #e54848; color: #b3261e; }
.suburb-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.suburb-chip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.4rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media ( max-width: 1024px ) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { min-height: 380px; order: 2; }
	.hero__photo--main { width: 58%; height: 70%; }
}

@media ( max-width: 860px ) {
	/* Collapse primary nav into a slide panel */
	.nav-toggle { display: flex; order: 3; }
	.nav-primary__menu {
		position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; box-shadow: var(--shadow-lg);
		padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-6);
		transform: translateX(100%); transition: transform var(--transition); z-index: 600;
		overflow-y: auto;
	}
	.nav-primary__menu.is-open { transform: translateX(0); }
	.nav-primary__link { padding: var(--space-4); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.header__call { order: 2; padding: 0.6rem 1rem; }
	.btn__call-text { display: none; }

	.card-grid--3, .steps, .stat-band { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.conditions { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.section { padding-block: var(--space-8); }
	.callback-form__grid { grid-template-columns: 1fr; }
}

@media ( max-width: 560px ) {
	.header__topbar-inner { flex-direction: column; gap: 0.2rem; text-align: center; }
	.hero__actions .btn { width: 100%; justify-content: center; }
	.cta-band__actions .btn { width: 100%; }
	.card-grid--2 { grid-template-columns: 1fr; }
	.hero__badge { display: none; }
}

/* ---------- Nav backdrop (mobile) ---------- */
.nav-backdrop {
	position: fixed; inset: 0; background: rgba(26,23,48,.5); z-index: 550;
	opacity: 0; visibility: hidden; transition: var(--transition);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Print ---------- */
@media print {
	.site-header, .cta-band, .site-footer, .nav-backdrop { display: none; }
}
