/* ============================================================
   MARS Australia — brand palette sampled from the supplied logo
   (assets/logo-source.jpg): navy wordmark + orange swoosh.
   ============================================================ */

:root {
  --bg: #faf7f2;            /* warm off-white background */
  --ink: #26282a;           /* deep charcoal text */
  --ink-soft: #55585c;
  --accent: #e87828;        /* logo orange — swoosh + AUSTRALIA */
  --accent-dark: #a8520f;   /* darker orange for links on light bg */
  --accent-tint: #fdeee0;
  --primary: #284878;       /* logo navy — MARS wordmark; CTAs */
  --primary-dark: #1d3659;
  --secondary: #284878;     /* deep bands (trust strip, testimonials) */
  --peach: #f5bd8e;         /* light orange for text on navy */
  --card: #ffffff;          /* soft neutral cards */
  --card-alt: #f2ede4;
  --line: #e5dfd4;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(38, 40, 42, 0.06), 0 12px 32px rgba(38, 40, 42, 0.07);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --sticky-bar-h: 58px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.container--narrow { width: min(780px, 100% - 2.5rem); }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.section-cta p { color: var(--ink-soft); margin-bottom: 0.9rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(40, 72, 120, 0.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { display: block; width: 100%; }

/* ── Image placeholder slots ── */
.img-slot {
  position: relative;
  background: var(--card-alt);
  border-radius: var(--radius);
  overflow: hidden;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.is-placeholder img { display: none; }
.img-slot.is-placeholder {
  border: 2px dashed var(--line);
  min-height: 220px;
  width: 100%;
}
.img-slot.is-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ── Placeholder badge (gallery + testimonials) ── */
.project-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.6rem;
}

/* ── 1. Header ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(38, 40, 42, 0.06); }

.nav-inner {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.nav-logo { height: 64px; width: auto; }
.nav-logo.is-missing { display: none; }
.nav-brand.has-logo .nav-brand-text { display: none; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.nav-brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-links .nav-cta { color: #fff; padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.nav-links .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ── 2. Hero ── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.9rem;
}
.hero-copy { font-size: 1.13rem; color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.1rem; }
.hero-trust { font-size: 0.9rem; color: var(--ink-soft); }
.hero-trust span { color: var(--accent); margin: 0 0.35rem; }
.hero-media { aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }

/* ── 3. Trust strip ── */
.trust-strip { background: var(--secondary); color: #fff; padding: 1.1rem 0; }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
.trust-inner p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-icon { width: 20px; height: 20px; fill: none; stroke: var(--peach); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── 4. Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 5. Project gallery ── */
.projects { background: var(--card-alt); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.project-card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(38, 40, 42, 0.06);
  display: flex;
  flex-direction: column;
}
.project-card figcaption { padding: 1.15rem 1.25rem 1.3rem; }
.project-card h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.project-card figcaption p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Before / after photo pairs */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 4 / 3;
  background: var(--card-alt);
}
.ba-pair--single { grid-template-columns: 1fr; }
.ba-shot { position: relative; overflow: hidden; }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(38, 40, 42, 0.72);
  color: #fff;
}
.ba-tag--after { background: var(--accent); }

/* ── 6. Audiences ── */
.audiences { background: var(--card-alt); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.audience-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border-top: 4px solid var(--accent);
}
.audience-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ── 8. Process ── */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 0.4rem; }
.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.process-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ── 9. Testimonials ── */
.testimonials { background: var(--secondary); }
.testimonials .section-eyebrow { color: var(--peach); }
.testimonials h2 { color: #fff; }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.quote {
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  color: #fff;
}
.quote p { font-size: 0.98rem; color: rgba(255, 255, 255, 0.92); }
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--peach); }
.quote .project-badge { background: rgba(255, 255, 255, 0.14); color: var(--peach); }

/* ── 10. FAQ accordion ── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.15rem 0.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--accent-dark); }
.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(225deg); }
.faq-a { padding: 0 0.2rem 1.2rem; }
.faq-a p { margin: 0; color: var(--ink-soft); }

/* ── 11. Contact ── */
.contact { background: var(--card-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-intro p { color: var(--ink-soft); }
.contact-details { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.7rem; }
.contact-details li { display: flex; gap: 0.8rem; align-items: baseline; }
.contact-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  min-width: 7.2em;
}
.contact-details a { font-weight: 600; overflow-wrap: anywhere; }
.contact-photos-note {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* Form */
.enquiry-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.hidden-field { position: absolute; left: -9999px; }
.form-row { margin-bottom: 1.05rem; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.form-row label span[aria-hidden] { color: var(--accent); }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 72, 120, 0.15);
}
.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid { border-color: #b3261e; }
.form-row textarea { resize: vertical; }
.form-hint { font-size: 0.84rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.form-row--consent { margin-top: 1.2rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex-shrink: 0; }
.form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.is-success { color: #2e6b3f; }
.form-status.is-error { color: #b3261e; }

/* ── 12. Final CTA ── */
.final-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.final-cta-inner { text-align: center; max-width: 680px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.final-cta .hero-ctas { justify-content: center; margin-top: 1.6rem; }

/* ── 13. Footer ── */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 3rem 0 1.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 0.15rem; }
.footer-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 0.8rem; }
.footer-desc { font-size: 0.94rem; margin: 0; }
.footer-heading { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peach); margin-bottom: 0.8rem; }
.footer-contact a, .footer-links a { display: block; color: rgba(255, 255, 255, 0.85); text-decoration: none; margin-bottom: 0.45rem; font-size: 0.94rem; }
.footer-contact a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { font-size: 0.94rem; margin: 0; }
.footer-fine { padding-top: 1.4rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer-fine p { margin: 0 0 0.3rem; }

/* ── Mobile sticky bar ── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  height: var(--sticky-bar-h);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(38, 40, 42, 0.1);
  transition: transform 0.25s ease;
}
.sticky-bar.is-hidden { transform: translateY(110%); }
.sticky-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
}
.sticky-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sticky-bar .sticky-quote { background: var(--primary); color: #fff; }

/* ── Reveal on scroll (only active when JS adds .js to <html>) ── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .sticky-bar, .faq-chevron { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .services-grid, .projects-grid, .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid, .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(38, 40, 42, 0.1);
    display: none;
    padding: 0.5rem 1.25rem 1.1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .nav-cta { margin-top: 0.7rem; text-align: center; border-radius: 999px; padding: 0.8rem 1rem; border-bottom: 0; }
  .nav-toggle { display: flex; }

  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .nav-logo { height: 52px; }

  .sticky-bar { display: flex; }
  body { padding-bottom: var(--sticky-bar-h); }
  .footer { padding-bottom: 2rem; }
}

@media (max-width: 560px) {
  .services-grid, .projects-grid, .quotes-grid, .audience-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; gap: 0.55rem; }
  .contact-details li { flex-direction: column; gap: 0.15rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
