/* ============================================
   NZ Commercial Property Brokers
   Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --gold: #1E3A5F;
  --gold-light: #2B4F7E;
  --gold-dark: #152C4A;
  --accent-on-dark: #5B9BD5;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #E5E5E5;
  --grey-300: #D4D4D4;
  --grey-400: #A3A3A3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--grey-800);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--black);
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--grey {
  background: var(--grey-50);
}

.section--black {
  background: var(--black);
  color: var(--white);
}

.section--black h2,
.section--black h3,
.section--black h4 {
  color: var(--white);
}

.section--black .section-label {
  color: var(--accent-on-dark);
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--grey-500);
  max-width: 640px;
  line-height: 1.7;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn--white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--grey-100);
  border-color: var(--grey-100);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: var(--header-height);
  transition: box-shadow 0.2s ease;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grey-600);
  transition: color 0.2s ease;
  position: relative;
}

.header__nav a:not(.btn):hover,
.header__nav a:not(.btn).active {
  color: var(--black);
}

.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.header__cta {
  margin-left: 0.5rem;
}

/* Mobile menu */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile call button — hidden on desktop */
.header__call {
  display: none;
}

/* --- Hero --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--white);
}

.hero__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-on-dark);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--grey-300);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.6;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  margin-top: var(--header-height);
  background: var(--black);
  padding: 4rem 0;
}

.page-hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--grey-400);
  font-size: 1.125rem;
  max-width: 600px;
}

.page-hero .section-label {
  color: var(--accent-on-dark);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 0.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--grey-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--accent-on-dark);
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

.breadcrumbs span[aria-hidden] {
  color: var(--grey-500);
  font-size: 0.75rem;
}

.breadcrumbs span:last-child {
  color: var(--grey-300);
}

/* --- FAQ --- */
.faq-list {
  margin-top: 2.5rem;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
  color: var(--black);
}

.faq-item p {
  color: var(--grey-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Honeypot --- */
.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: var(--grey-300);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--grey-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap 0.2s ease;
}

.service-card__link:hover {
  gap: 0.625rem;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-on-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--grey-400);
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  background: var(--grey-100);
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card__bio {
  font-size: 0.9375rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.team-card__contact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.team-card__contact a {
  color: var(--grey-600);
  transition: color 0.2s;
}

.team-card__contact a:hover {
  color: var(--gold);
}

/* --- About / Content Sections --- */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-section--reverse {
  direction: rtl;
}

.content-section--reverse > * {
  direction: ltr;
}

.content-section__image {
  border-radius: 8px;
  overflow: hidden;
}

.content-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section__text h2 {
  margin-bottom: 1.5rem;
}

.content-section__text p {
  color: var(--grey-600);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Features List --- */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.feature-item h4 {
  margin-bottom: 0.375rem;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--grey-500);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--black);
  padding: 4rem 0;
}

.cta-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
}

.cta-banner p {
  color: var(--grey-400);
  margin-top: 0.5rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--grey-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info__item h4 {
  margin-bottom: 0.25rem;
}

.contact-info__item p,
.contact-info__item a {
  color: var(--grey-500);
  font-size: 0.9375rem;
}

.contact-info__item a:hover {
  color: var(--gold);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-700);
}

.form__input,
.form__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  background: var(--white);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.1);
}

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

.form__success {
  display: none;
  padding: 1rem 1.5rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  color: #166534;
  font-weight: 500;
}

.form__success.visible {
  display: block;
}

.form__error {
  display: none;
  padding: 1rem 1.5rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  color: #991b1b;
  font-weight: 500;
}

.form__error.visible {
  display: block;
}

/* --- Listings Links --- */
.listings-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.listings-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.listings-link:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.listings-link svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: var(--grey-400);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer__logo {
  height: 40px;
  width: auto;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer ul a {
  font-size: 0.9375rem;
  color: var(--grey-400);
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--grey-800);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: var(--grey-400);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* --- Service Detail Page --- */
.service-detail {
  margin-top: 2rem;
}

.service-detail h3 {
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.service-detail h3:first-child {
  margin-top: 0;
}

.service-detail p {
  color: var(--grey-600);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.service-detail ul {
  margin: 1rem 0;
  padding-left: 0;
}

.service-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--grey-600);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- AML Page --- */
.aml-content {
  max-width: 760px;
}

.aml-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.aml-content h2:first-child {
  margin-top: 0;
}

.aml-content p {
  color: var(--grey-600);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-section--reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2, .section-title { font-size: 1.75rem; }

  .section {
    padding: 3.5rem 0;
  }

  /* Mobile nav */
  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--grey-100);
  }

  .header__nav a.active::after {
    display: none;
  }

  .header__cta {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .header__toggle {
    display: block;
  }

  .header__call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--black);
    padding: 8px 14px;
    border-radius: 100px;
    border: 2px solid var(--black);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
  }
  .header__call:hover {
    background: var(--black);
    color: var(--white);
  }
  .header__call svg {
    flex-shrink: 0;
  }

  /* Hero */
  .hero {
    min-height: 480px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
  }

  .page-hero {
    padding: 3rem 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  /* FAQ mobile */
  .faq-item {
    padding: 1.25rem 1.25rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  /* Grids */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

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

  .btn-group {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}

