/* AmalCare Pty Ltd — Website design system
   Tokens sourced from AmalCare_Brand_Guidelines_Claude_Code.md section 16 */

:root {
  --brand-blue-900: #073b66;
  --brand-blue-800: #064b7c;
  --brand-blue-700: #075b96;
  --brand-blue-500: #169bcb;
  --brand-green-800: #256b35;
  --brand-green-700: #2f7d3d;
  --brand-green-500: #69ae3e;
  --brand-lime-400: #9bca43;
  --surface: #ffffff;
  --surface-warm: #fafcf8;
  --surface-blue: #edf6fb;
  --surface-green: #f1f7ec;
  --text: #243746;
  --text-muted: #52636d;
  --border: #d7e2e8;
  --field-border: #71818c;
  --error: #b42318;
  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 75rem;
  --radius-input: .5rem;
  --radius-button: .625rem;
  --radius-card: 1rem;
  --radius-image: 1.5rem;
  --shadow-card: 0 8px 24px rgb(7 59 102 / 6%);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --header-height: 88px;
}

@media (max-width: 767px) {
  :root { --header-height: 76px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--brand-blue-900); margin: 0 0 var(--space-4); }
p { margin: 0 0 var(--space-4); }
a { color: var(--brand-blue-700); }
ul { padding-left: 1.25em; }

h1 { font-size: 36px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 650; line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.5; }

@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  h3 { font-size: 24px; }
  .lead { font-size: 20px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
  h3 { font-size: 28px; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--brand-blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

.section { padding-block: 48px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
@media (min-width: 1024px) { .section { padding-block: 96px; } }

.section--warm { background: var(--surface-warm); }
.section--blue { background: var(--surface-blue); }
.section--green { background: var(--surface-green); }
.section--dark { background: var(--brand-blue-900); color: #fff; }
.section--dark h2, .section--dark p { color: #fff; }

.section-intro { max-width: 680px; margin-bottom: var(--space-12); }
.section-intro .eyebrow { margin-bottom: var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--brand-green-800);
  text-transform: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--brand-blue-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--brand-blue-900);
  color: #fff;
}
.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-6);
  padding-block: 8px;
  font-size: 14px;
}
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.utility-bar a:hover { text-decoration: underline; }
.utility-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 639px) {
  .utility-bar .container { justify-content: center; gap: var(--space-4); font-size: 13px; padding-block: 6px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-link img {
  width: 170px;
  height: auto;
}
@media (min-width: 768px) {
  .brand-link img { width: 200px; }
}

.main-nav {
  display: none;
}
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-inline: auto;
  }
  .main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
  }
  .main-nav a:hover { color: var(--brand-blue-700); }
  .main-nav a[aria-current="page"] {
    color: var(--brand-blue-700);
    border-bottom-color: var(--brand-blue-700);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-actions .btn-primary {
  display: none;
}
@media (min-width: 1024px) {
  .header-actions .btn-primary {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: #fff;
  z-index: 90;
  padding: var(--space-8) 24px;
  display: none;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-blue-900);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a[aria-current="page"] { color: var(--brand-blue-700); }
.mobile-nav .btn { margin-top: var(--space-6); width: 100%; }
@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-primary {
  background: var(--brand-blue-700);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-blue-800); }
.btn-secondary {
  background: #fff;
  color: var(--brand-blue-700);
  border-color: var(--brand-blue-700);
}
.btn-secondary:hover { background: var(--surface-blue); }
.btn-on-dark {
  background: #fff;
  color: var(--brand-blue-900);
}
.btn-on-dark:hover { background: var(--surface-blue); }
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.btn-block { width: 100%; }

@media (max-width: 480px) {
  .btn-row { display: flex; flex-direction: column; gap: var(--space-3); }
  .btn-row .btn { width: 100%; }
}
.btn-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.hero-copy { max-width: 620px; }
.hero-media {
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: var(--surface-green);
  border-radius: var(--radius-image);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-image);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-copy .btn-row { margin-top: var(--space-8); }

@media (min-width: 1024px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
  }
  .hero-copy { flex: 0 0 42%; }
  .hero-media { flex: 0 0 54%; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--surface-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.service-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand-blue-700);
}
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--text-muted); flex-grow: 1; }
.service-card a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: underline;
  margin-top: var(--space-4);
}

/* ---------- Split / alternating section ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}
.split-media img {
  border-radius: var(--radius-image);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .split { flex-direction: row; gap: var(--space-16); }
  .split.is-reversed { flex-direction: row-reverse; }
  .split-media { flex: 1 1 58%; }
  .split-copy { flex: 1 1 42%; }
}

.principle-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.principle-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.principle-list .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green-500);
  margin-top: 9px;
}

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}
.process-step {
  position: relative;
  padding-top: 56px;
}
.process-step .step-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-blue-700);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Notice / placeholder tag ---------- */
.dev-note {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--surface-warm);
  color: var(--brand-green-800);
  border: 1px dashed var(--brand-green-500);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: var(--space-3);
}

.content-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  text-align: left;
  max-width: 640px;
}
.contact-cta .btn-row { margin-top: var(--space-8); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-blue-900);
  color: #fff;
  padding-block: var(--space-16);
}
.site-footer a { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--space-12);
  }
}
.footer-logo-panel {
  background: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  display: inline-block;
}
.footer-logo-panel img { width: 160px; height: auto; }
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: 14px;
  opacity: .85;
}

/* ---------- Forms ---------- */
.enquiry-form {
  display: grid;
  gap: var(--space-6);
  max-width: 640px;
}
.form-field {
  display: grid;
  gap: var(--space-2);
}
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--field-border);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--brand-blue-500);
  outline-offset: 1px;
  border-color: var(--brand-blue-700);
}
.form-field .field-error {
  color: var(--error);
  font-size: 14px;
  display: none;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}
.form-field.has-error .field-error { display: block; }

.form-status {
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  font-size: 15px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: var(--surface-green);
  color: var(--brand-green-800);
  border: 1px solid var(--brand-green-500);
}
.form-status.error {
  background: #fdf1f0;
  color: var(--error);
  border: 1px solid var(--error);
}
.form-status.info {
  background: var(--surface-blue);
  color: var(--brand-blue-900);
  border: 1px solid var(--brand-blue-500);
}

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.page-intro {
  max-width: 760px;
}

/* ---------- Two-column intro (text + supporting panel) ---------- */
.intro-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .intro-split {
    flex-direction: row;
    gap: var(--space-16);
    align-items: center;
  }
  .intro-split > * { flex: 1 1 0; }
}

.quick-facts {
  background: var(--surface-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}
.quick-facts h3 { margin-bottom: var(--space-6); font-size: 20px; }
.quick-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5, var(--space-4)); }
.quick-facts li { display: flex; gap: var(--space-3); align-items: flex-start; }
.quick-facts li strong { display: block; color: var(--brand-blue-900); }
.quick-facts .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.quick-facts .check svg { width: 14px; height: 14px; stroke: #fff; }

/* ---------- Legal page layout (content + contact sidebar) ---------- */
.legal-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .legal-layout { flex-direction: row; gap: var(--space-16); }
  .legal-layout .legal-main { flex: 1 1 0; min-width: 0; }
  .legal-layout .legal-aside { flex: 0 0 320px; }
}
.legal-main h2 { margin-top: var(--space-12); }
.legal-main h2:first-child { margin-top: 0; }
.legal-aside {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  width: 100%;
}
.legal-aside h3 { font-size: 18px; margin-bottom: var(--space-3); }

/* ---------- Service card "includes" list ---------- */
.service-card .includes {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-muted);
}
.service-card .includes li { display: flex; gap: var(--space-2); align-items: flex-start; }
.service-card .includes li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-500);
  margin-top: 9px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-12) 0;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
