:root {
  --paper: #fbfaf8;
  --wash: #f2efe6;
  --ink: #14140f;
  --ink-2: #4a4941;
  --mute: #6b6960;
  --rule: #e0ddd3;
  --wordmark-stroke: #b3ac9a;
  --yellow: #ffe512;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a, button, .btn, .listing-card, .team-photo, .ig-post, .filter-btn, .page-btn {
  transition: all 0.18s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hp { display: none !important; }

/* Scroll reveal — visible by default so the page still works without JS */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal-ready .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.6vw, 82px); }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }

/* Manukau Ink signature: yellow highlighter under key words */
.mark { background: linear-gradient(to top, var(--yellow) .36em, transparent .36em); }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-sub { margin-top: 16px; font-size: 18px; max-width: 620px; }
.section-note { color: var(--mute); font-size: 13.5px; line-height: 1.6; margin-top: 28px; max-width: 740px; }
.section-note a { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 15px 28px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,248,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 74px; gap: 22px; }
.logo {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
/* .main-nav a beats .btn-* on specificity, so button colours are restated here */
.main-nav a.btn { padding: 10px 19px; font-size: 14px; background: var(--yellow); color: var(--ink); }
.main-nav a.btn:hover { background: var(--ink); color: var(--yellow); }

/* Hero — Full Voice structure on a Manukau Ink surface */
.hero { padding: 78px 0 0; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 82px; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 24px;
}
.hero-kicker::before { content: ""; width: 40px; height: 2px; background: var(--ink); }
.hero h1 { margin-bottom: 24px; }
.hero-lead { font-size: 19.5px; max-width: 500px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
/* Portrait sits on an offset yellow block — Full Voice colour, kept contained */
.hero-portrait { position: relative; align-self: end; width: 100%; max-width: 430px; margin-left: auto; }
.hero-portrait::before {
  content: "";
  position: absolute;
  left: 16px; right: -16px; top: 34px; bottom: 0;
  background: var(--yellow);
}
.hero-portrait img {
  position: relative;
  display: block;
  width: 100%;
  /* The <img> carries height="700"; without this the CSS width squashes it. */
  height: auto;
  border: 2px solid var(--ink);
  border-bottom: none;
}

/* Full Voice signature: a ticker of what he actually does */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 13px 0; }
.ticker-track {
  display: flex; white-space: nowrap; width: max-content;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  animation: ticker 38s linear infinite;
}
.ticker-track > span { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); display: inline-block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
/* WCAG 2.2.2: moving content needs a way to stop it */
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }

/* Manukau Ink signature: oversized outlined locale wordmark */
.locale { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.locale span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 15vw, 190px);
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--wordmark-stroke);
  padding: 24px 0 12px;
  white-space: nowrap;
}

section { padding: 92px 0; scroll-margin-top: 76px; }
.band-paper { background: var(--paper); }
.band-wash { background: var(--wash); }
.band-ink { background: var(--ink); color: rgba(251,250,248,.74); }
.band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .label { color: rgba(251,250,248,.62); }
.band-ink .section-sub { color: rgba(251,250,248,.74); }
.band-ink :focus-visible { outline-color: var(--yellow); }
.band-paper + .band-paper, .band-wash + .band-wash { border-top: 1px solid var(--rule); }

/* Values — the Gonzales Group difference */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { border-top: 3px solid var(--yellow); padding-top: 20px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: 15.5px; }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.listing-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--yellow); }
.listing-card.is-hidden { display: none; }
.listing-img { display: block; height: 190px; position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; background: var(--wash); }
.listing-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card:hover .listing-img img { transform: scale(1.03); }
.listing-img img { transition: transform .35s ease; }
.placeholder-1 { background: linear-gradient(150deg, #ded9cb, #c3bdab); }
.placeholder-2 { background: linear-gradient(150deg, #d3d5d6, #b4b8ba); }
.placeholder-3 { background: linear-gradient(150deg, #e0d9c8, #c0b8a4); }
.tag {
  position: absolute; top: 0; left: 0;
  background: var(--yellow);
  color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
/* Arvic's own listings carry a second tag on the opposite corner */
.tag-mine {
  left: auto; right: 0;
  background: var(--ink); color: var(--paper);
  border-right: none; border-left: 2px solid var(--ink);
}
.listing-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-address {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.16;
  color: var(--ink); margin-bottom: 5px; overflow-wrap: break-word;
}
.card-suburb { font-size: 14px; color: var(--mute); margin-bottom: 15px; }
.meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 17px; padding-top: 13px; border-top: 1px solid var(--rule);
}
.view-link {
  margin-top: auto; align-self: flex-start;
  color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
  border-bottom: 2px solid var(--yellow); padding-bottom: 1px;
}
.view-link:hover { border-bottom-color: var(--ink); }

/* Pagination + filters */
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 46px; }
.page-btn {
  background: transparent; border: 2px solid var(--ink); border-radius: 2px; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; padding: 11px 22px; cursor: pointer;
}
.page-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.page-btn:disabled { opacity: .32; cursor: not-allowed; }
.page-indicator { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.show-more-wrap { margin-top: 42px; }
.office-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
#office-suburb-select {
  padding: 12px 18px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; min-width: 215px;
}
.status-pills { display: flex; gap: 8px; }
.filter-btn {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; padding: 11px 20px; cursor: pointer;
}
.filter-btn:hover { background: var(--wash); }
.filter-btn.active { background: var(--yellow); }
.results-count { color: var(--mute); font-size: 13.5px; margin-bottom: 34px; }
.office-link-cta { margin-top: 34px; }

/* About */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 2px solid var(--ink); background: var(--wash);
  box-shadow: 14px 14px 0 var(--yellow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text p { margin-bottom: 20px; }
.contact-info { margin: 26px 0; }
.contact-info p { margin-bottom: 2px; }
.contact-info strong { color: var(--ink); font-weight: 700; }
/* Tapping a number should look tappable */
.contact-link {
  color: inherit; text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  display: inline-block; padding: 7px 0;   /* comfortable thumb target */
}
.contact-link:hover { border-bottom-color: currentColor; }
.band-ink .contact-link { color: var(--paper); border-bottom-color: rgba(255,229,18,.6); }
.band-ink .contact-link:hover { border-bottom-color: var(--yellow); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { border-top: 3px solid var(--ink); padding-top: 20px; }
.service-card h3 { margin-bottom: 9px; }
.service-card p { font-size: 15.5px; }

/* Reviews */
.rating-highlight {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.6vw, 100px);
  font-weight: 700; letter-spacing: -.045em; line-height: 1;
  color: var(--ink); margin-bottom: 4px;
}
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 2px;
  padding: 26px; display: flex; flex-direction: column;
}
.review-stars { color: var(--ink); font-size: 13.5px; letter-spacing: 3px; margin-bottom: 15px; }
.review-quote { font-size: 15.5px; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.review-author { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.review-author span { font-weight: 400; color: var(--mute); }
.reviews-cta { margin-top: 42px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-photo {
  aspect-ratio: 1; overflow: hidden; margin-bottom: 15px;
  border: 2px solid var(--ink); background: var(--wash);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card:hover .team-photo { transform: translateY(-3px); box-shadow: 8px 8px 0 var(--yellow); }
.team-card h3 { font-size: 19px; margin-bottom: 3px; }
.team-card p { font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.team-badge {
  display: inline-block; margin-left: 7px; vertical-align: 2px;
  font-family: var(--font-body); font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 3px 7px;
}

/* Instagram */
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
.ig-post { display: block; aspect-ratio: 1; border: 2px solid var(--ink); overflow: hidden; background: var(--wash); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ig-post:hover img { transform: scale(1.04); }
.ig-post:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--yellow); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-text .lead { font-size: 19px; margin-bottom: 28px; }
.contact-text p { margin-bottom: 4px; }
.contact-text strong { color: var(--paper); font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 13px; }
.contact-form input, .contact-form textarea {
  padding: 15px; border: 2px solid rgba(251,250,248,.24); background: transparent;
  color: var(--paper); border-radius: 2px; font-family: var(--font-body); font-size: 16px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(251,250,248,.46); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--yellow); }
.contact-form button {
  align-self: flex-start; margin-top: 5px;
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
}
.contact-form button:hover { background: var(--paper); border-color: var(--paper); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(251,250,248,.62);
  padding: 28px 0; font-size: 13.5px;
  border-top: 1px solid rgba(251,250,248,.14);
}

@media (max-width: 1120px) {
  /* Collapse the links before they can overflow the header */
  .main-nav a:not(.btn) { display: none; }
}
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .container { padding: 0 22px; }
  section { padding: 64px 0; }
  .main-nav a:not(.btn) { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { padding-bottom: 0; }
  .hero-portrait { max-width: 340px; margin: 0 auto; width: 100%; }
  .hero-portrait::before { left: 12px; right: -12px; top: 26px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 400px; box-shadow: 10px 10px 0 var(--yellow); }
  .listing-grid, .review-grid, .instagram-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .listing-grid, .review-grid, .instagram-grid, .team-grid,
  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
