/* ========================================
   FRONT ROW CARE — V11 Redesign
   Verax Care-inspired spacing & layout
   Mobile-first responsive
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg: #f6f2ed;
  --surface: #ffffff;
  --ink: #1f2a2d;
  --muted: #5c6b6f;
  --line: #d9d0c7;
  --brand: #385054;
  --brand-light: #456a6f;
  --accent: #bc8137;
  --accent-soft: #efe4d7;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(31,42,45,.08);
  --shadow-lg: 0 24px 56px rgba(31,42,45,.10);
  --section-gap: 100px;
  --container-width: 1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.7 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* --- Layout --- */
.container {
  width: min(var(--container-width), 90vw);
  margin: 0 auto;
}

.narrow {
  width: min(800px, 90vw);
  margin: 0 auto;
}


/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,242,237,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,208,199,.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand span { display: none; }

.brand img {
  height: 52px;
  max-width: min(300px, 42vw);
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}

.desktop-nav a:hover {
  color: var(--brand);
}

.desktop-nav a.button,
.desktop-nav a.button:hover,
.desktop-nav a.button:focus,
.desktop-nav a.button:visited {
  color: #ffffff !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  padding: 0 0 20px;
  gap: 8px;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 0;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 6px;
}


/* ========================================
   BUTTONS
   ======================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, background .2s;
  line-height: 1.3;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: var(--brand-light);
}

.button-secondary {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: #f0ebe4;
  box-shadow: none;
  transform: none;
}

.button-small {
  padding: 11px 20px;
  font-size: 14px;
}


/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.small-muted {
  font-size: 0.92rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  padding-right: 12px;
}

/* Slightly shaded heading — softer, professional tone */
.hero-copy h1 {
  color: #3a5256;
}

.hero-copy > p {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  align-items: center;
}

.hero-badges span, .tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  line-height: 1;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.quick-contact a {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s, box-shadow .15s;
  min-height: 72px;
}

.quick-contact a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quick-contact strong {
  display: block;
  color: var(--brand);
  font-size: 13px;
  line-height: 1.3;
}

.quick-contact .small-muted {
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

/* Hero image card */
.hero-card, .card, .feature, .cta-band, .notice {
  background: var(--surface);
  border: 1px solid rgba(217,208,199,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  min-height: 460px;
}


/* ========================================
   SERVICE STRIP (4 mini cards below hero)
   ======================================== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.service-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.service-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-mini h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--brand);
}

.service-mini p {
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.6;
}


/* ========================================
   SECTIONS (Verax-style generous spacing)
   ======================================== */
.section {
  padding: var(--section-gap) 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.section-top > div {
  max-width: 640px;
}

.section-top > p {
  max-width: 380px;
  text-align: right;
}

.section-muted {
  background: #f0ebe4;
  border-top: 1px solid rgba(217,208,199,.7);
  border-bottom: 1px solid rgba(217,208,199,.7);
}


/* ========================================
   GRIDS
   ======================================== */
.grid-3, .grid-2, .locations-grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.locations-grid { grid-template-columns: repeat(3, 1fr); }


/* ========================================
   CARDS
   ======================================== */
.card, .feature {
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover, .feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card img, .feature img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card-body, .feature-body {
  padding: 28px 24px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card ul, .checklist {
  padding-left: 18px;
  color: var(--muted);
}


/* ========================================
   SPLIT FEATURE (Why Choose section)
   ======================================== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-feature > div {
  padding-right: 12px;
}

.split-feature h2 {
  margin-bottom: 20px;
}

.split-feature > div > p {
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.split-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.checklist li {
  position: relative;
  padding: 12px 0 12px 32px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(217,208,199,.5);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}


/* ========================================
   PILLS
   ======================================== */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}


/* ========================================
   SUBURB / AREA GRID
   ======================================== */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.suburb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.suburb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.suburb-card h3 {
  margin-bottom: 10px;
}

.suburb-card h3 a {
  color: var(--brand);
  transition: color .2s;
}

.suburb-card h3 a:hover {
  color: var(--accent);
}

.suburb-card p {
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.65;
}


/* ========================================
   FAQ
   ======================================== */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--brand);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent);
  font-weight: 600;
  transition: color .2s;
}

.faq-item a:hover {
  color: var(--brand);
}


/* ========================================
   CONTACT / NOTICE
   ======================================== */
.notice {
  padding: 32px 28px;
}

.notice strong {
  color: var(--brand);
}

.notice h2 {
  margin-bottom: 20px;
}

.notice p {
  line-height: 1.75;
}

.cta-band {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}


/* ========================================
   FUNNEL / ENQUIRY FORM
   ======================================== */
.funnel-wrap {
  margin-top: 36px;
}

.funnel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  max-width: 880px;
  margin: 0 auto;
}

.funnel-card h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.funnel-card > p {
  margin-bottom: 8px;
}

.funnel-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 28px;
  align-items: center;
}

.funnel-points span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.funnel-grid > div {
  display: flex;
  flex-direction: column;
}

.funnel-label {
  display: block;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.funnel-input, .funnel-select, .funnel-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9f7;
  font: inherit;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.funnel-input:focus, .funnel-select:focus, .funnel-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(56,80,84,.08);
  background: #fff;
}

.funnel-input::placeholder, .funnel-textarea::placeholder {
  color: #a8b0b2;
}

.funnel-textarea {
  min-height: 120px;
  resize: vertical;
  margin-top: 4px;
}

.funnel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.funnel-helper {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Textarea label sits outside the grid — needs top spacing */
form[data-funnel-form] > .funnel-label {
  margin-top: 20px;
}

.funnel-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.funnel-success, .funnel-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
}

.funnel-success {
  background: #edf7ef;
  color: #215b2f;
  border: 1px solid #cae7d0;
}

.funnel-error {
  background: #fff1f1;
  color: #842b2b;
  border: 1px solid #f0c7c7;
}

.funnel-card.is-success .funnel-success { display: block; }
.funnel-card.is-error .funnel-error { display: block; }


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 64px 0 28px;
  background: #1c2d30;
  color: #e7ecec;
  margin-top: 80px;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
  color: #d0d9d9;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 40px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-grid li {
  font-size: 0.95rem;
}

.footer-logo {
  height: 44px;
  margin-bottom: 20px;
}

.footer-grid > div:first-child p {
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-bottom {
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}


/* ========================================
   SUB-PAGE: Page Hero, Content Grid, Sidebar
   ======================================== */
.page-hero {
  padding: 64px 0 32px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--accent);
  font-weight: 600;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 28px 24px;
}

.photo-request {
  border: 2px dashed var(--line);
  padding: 22px;
  border-radius: 18px;
  background: #fffdf9;
}

/* Sub-page inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input, .textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 6px;
  background: #fff;
  font: inherit;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.location-list {
  columns: 2;
  column-gap: 24px;
  padding-left: 18px;
}

/* Stats grid (if used on sub-pages) */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--brand);
}


/* ========================================
   RESPONSIVE: TABLET (max-width: 980px)
   ======================================== */
@media (max-width: 980px) {
  :root {
    --section-gap: 72px;
  }

  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { padding: 40px 0 52px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    padding-right: 0;
    text-align: center;
  }

  .hero-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-image img {
    min-height: 320px;
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -16px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 36px;
  }

  .section-top > p {
    text-align: left;
    max-width: none;
  }

  .grid-3,
  .grid-2,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .split-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-feature > div {
    padding-right: 0;
  }

  .split-feature img {
    min-height: 260px;
  }

  .suburb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .funnel-grid {
    grid-template-columns: 1fr;
  }

  .location-list {
    columns: 1;
  }
}


/* ========================================
   RESPONSIVE: MOBILE (max-width: 600px)
   ======================================== */
@media (max-width: 600px) {
  :root {
    --section-gap: 56px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: 92vw;
  }

  .brand img {
    height: 40px;
    max-width: 56vw;
  }

  .hero {
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-copy > p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .hero-image img {
    min-height: 240px;
  }

  .service-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-mini {
    padding: 20px 18px;
  }

  .suburb-grid {
    grid-template-columns: 1fr;
  }

  .card-body, .feature-body {
    padding: 22px 18px;
  }

  .notice {
    padding: 24px 20px;
  }

  .funnel-card {
    padding: 24px 18px;
  }

  .faq-item {
    padding: 20px 18px;
  }

  .suburb-card {
    padding: 22px 18px;
  }

  .quick-contact a {
    padding: 14px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-hero {
    padding: 40px 0 20px;
  }

  .split-feature img {
    min-height: 200px;
  }

  .button {
    padding: 14px 22px;
    font-size: 14px;
  }

  .button-small {
    padding: 10px 18px;
    font-size: 13px;
  }

  .checklist li {
    font-size: 0.93rem;
    padding: 10px 0 10px 28px;
  }

  .checklist li::before {
    top: 10px;
  }

  .hero-badges span, .tag {
    padding: 8px 12px;
    font-size: 13px;
  }
}


/* ========================================
   RESPONSIVE: LARGE (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
  :root {
    --section-gap: 120px;
    --container-width: 1260px;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero-image img {
    min-height: 520px;
  }
}


/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */
.button:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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