/* ==========================================================================
   Safar Care — design tokens
   ========================================================================== */
/* Self-hosted Lora (variable, latin subset) — no render-blocking third-party CSS */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/lora-latin-var.woff2") format("woff2");
}

:root {
  /* Brand colours per brief §4 (tints derived from these tokens) */
  --navy: #072748;
  --navy-deep: #051b33;
  --green: #56621c;
  --green-text: #45500f;      /* darker olive tint for AA text on cream */
  --green-deep: #333d10;      /* dark green contact band */
  --green-deeper: #29320c;
  --gold: #d39519;
  --gold-soft: #e7b23f;
  --cream: #f7f4ec;
  --cream-alt: #efe9d8;
  --cream-card: #fffdf8;
  --ink: #22303f;             /* body text */
  --ink-soft: #4c5a68;
  --line: #e4dbc8;

  /* Type */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

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

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 6px rgba(10, 41, 73, 0.06), 0 12px 28px rgba(10, 41, 73, 0.07);
  --header-h: 4.5rem;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--sp-4); }

a { color: var(--navy); }

ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.95rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-safar { color: var(--navy); }
.brand-care { color: var(--green-text); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-menu a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:not(.btn):hover { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a:not(.btn) {
    display: block;
    padding: var(--sp-4) var(--sp-2);
    border-bottom: none;
  }
  .nav-cta { padding-top: var(--sp-4); }
  .nav-cta .btn { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--sp-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker,
.section-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: var(--sp-3);
}

.hero h1 em {
  font-style: normal;
  color: var(--green-text);
}

.hero-subline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: var(--sp-5);
}

.hero-actions { margin-bottom: var(--sp-6); }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-chips svg { width: 18px; height: 18px; color: var(--green-text); flex-shrink: 0; }

.hero-figure img { width: 100%; max-width: 380px; margin-inline: auto; }
.hero-logo-mark { display: none; }

.leaf-motif {
  position: absolute;
  color: var(--cream-alt);
  z-index: 0;
}
.leaf-motif-hero {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: -130px;
  transform: rotate(15deg);
}

@media (max-width: 860px) {
  .hero { padding: var(--sp-7) 0; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-figure { order: -1; }
  /* Client request (§6.2): logo must not dominate the first mobile viewport.
     The full lockup's tagline is illegible this small, so show the mark alone. */
  .hero-logo-full { display: none; }
  .hero-logo-mark { display: block; }
  .hero-figure img { max-width: 118px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--sp-8) 0; }
.section-alt { background: var(--cream-alt); }

.section-lead {
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: var(--sp-6);
}

/* Services cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: var(--sp-2); }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream-alt);
  color: var(--green-text);
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 26px; height: 26px; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--sp-7);
  align-items: start;
}

.about-note {
  font-weight: 600;
  color: var(--green-text);
  border-left: 3px solid var(--gold);
  padding-left: var(--sp-4);
}

.about-panel {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-6);
  text-align: center;
}

.about-panel img { max-width: 180px; margin: 0 auto var(--sp-5); }

.about-facts { margin: 0; text-align: left; }
.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
}
.about-facts dt { font-weight: 700; color: var(--navy); }
.about-facts dd { margin: 0; text-align: right; color: var(--ink-soft); }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* Checklist */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-5);
  max-width: 62rem;
}

.checklist li {
  display: flex;
  gap: var(--sp-4);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.checklist strong { color: var(--navy); display: block; margin-bottom: var(--sp-1); }
.checklist p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.check svg { width: 20px; height: 20px; }

/* Qualifications badges */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.badge-grid li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
}

.badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream-alt);
  color: var(--green-text);
}
.badge-icon svg { width: 22px; height: 22px; }

/* Areas */
.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.suburb-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.suburb-list svg { width: 18px; height: 18px; color: var(--green-text); }

.suburb-base { border-color: var(--green); }

.suburb-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.travel-note {
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* Rates */
.rates-inner { max-width: 44rem; text-align: center; }
.rates-inner .section-kicker { text-align: center; }

.rates-figure {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin: var(--sp-5) 0;
}
.rates-figure strong { color: var(--green-text); font-size: 1.2em; }

.rates-inner .btn { margin-top: var(--sp-4); }

/* ==========================================================================
   Contact
   ========================================================================== */
.section-contact {
  background: var(--green-deep);
  color: #f2f0e4;
}

.section-contact .section-kicker { color: var(--gold-soft); }
.section-contact h2 { color: #fff; }
.section-contact a { color: #fff; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--sp-7);
  align-items: start;
}

.contact-details { margin-top: var(--sp-5); }

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-details svg { width: 22px; height: 22px; color: var(--gold-soft); flex-shrink: 0; }

/* Cream panel keeps the logo off the dark band (brief §4) */
.contact-panel {
  background: var(--cream-card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-6);
  text-align: center;
}

.contact-panel img { max-width: 120px; margin: 0 auto var(--sp-4); }

.contact-panel-lead {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: var(--sp-5) 0 0;
}

.contact-panel .btn { display: block; width: 100%; }
.contact-panel .btn + .btn { margin-top: var(--sp-3); }

/* Re-assert button colours over the .section-contact a rule */
.section-contact .btn-gold { color: var(--navy-deep); }
.section-contact .btn-outline-navy { color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--cream-alt); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Privacy page
   ========================================================================== */
.privacy-page .container { max-width: 46rem; }

.privacy-page h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }

.privacy-page h2 {
  font-size: 1.25rem;
  margin-top: var(--sp-6);
}

/* Simple nav (privacy page): no toggle, always visible */
.nav-menu-simple,
.nav-menu-simple.nav-menu {
  display: flex;
  position: static;
  flex-direction: row;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.nav-menu-simple li { border: none; }
.nav-menu-simple .nav-cta { padding-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #d8dde3;
  padding: var(--sp-7) 0 var(--sp-5);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  width: 150px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--sp-4);
}

.footer-links a,
.footer-contact a {
  color: #d8dde3;
  text-decoration: none;
}
.footer-links a:hover,
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-links li,
.footer-contact li { padding: var(--sp-1) 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: 0.9rem;
  color: #a9b2bc;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: #a9b2bc; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}
