/* Aussie Property Insights — static site (no React) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap");

:root {
  --brown: #3d2c24;
  --orange: #f27d26;
  --bg-page: #fdfdfd;
  --bg-soft: #ececec;
  --band-inline: 12px;
  --band-pad: 20px;
  --header-height: 4.75rem;
  /* Modal / form area behind fields */
  --form-surface: #d9d9d9;
  --form-input-bg: #ffffff;
  --form-input-border: #b0b0b0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--brown);
  line-height: 1.5;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header — fixed bar; body padding-top reserves space (see :root --header-height) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}

@media (max-width: 640px) {
  :root {
    --header-height: 4.25rem;
  }

  .site-header {
    padding: 0.5rem 0.75rem;
  }

  .site-header .inner {
    min-height: 44px;
  }

  .logo-img {
    height: 44px;
  }

  .nav {
    gap: 1rem;
    font-size: 0.62rem;
  }
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-img.is-hidden {
  display: none !important;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--brown);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  color: var(--brown);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.is-active {
  border-color: var(--brown);
}

/* Article pages — image hero with title overlay (below fixed header) */
.article-hero {
  position: relative;
  margin: 0 0 2rem;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.article-hero > img:first-of-type {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.article-hero .hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.article-hero .hero-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  color: #fff;
}

.article-hero .hero-text-overlay h1 {
  color: #fff;
  border: none;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.article-hero .hero-text-overlay p {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .article-hero > img:first-of-type {
    height: 260px;
  }

  .article-hero .hero-text-overlay {
    padding: 1.25rem;
  }
}

/* Hero — same horizontal band as .resources (margin + padding), 50:50 like two card columns */
.hero-band {
  padding: 1rem var(--band-pad) 2.5rem;
  background: linear-gradient(135deg, #fdfdfd, #f3f3f3);
}

/* Hero: table 50/50 — !important beats many site themes that force flex on sections */
.hero-row {
  display: table !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.hero-copy {
  display: table-cell !important;
  width: 50%;
  vertical-align: middle;
  min-width: 0;
  padding-top: 0.25rem;
  padding-right: 0.75rem;
}

.hero-copy h1 {
  margin: 0 0 0rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.hero-copy .lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: #555;
  font-weight: 600;
}

.hero-photo {
  display: table-cell !important;
  width: 50%;
  vertical-align: middle;
  min-width: 0;
  min-height: 200px;
  padding-left: 0.75rem;
  text-align: center;
}

.hero-photo img {
  width: 100%;
  max-height: min(52vh, 480px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero-row {
    display: block !important;
  }
  .hero-copy,
  .hero-photo {
    display: block !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-photo img {
    max-height: 280px;
  }
}

/* Form card */
.form-card {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-top: 8px solid var(--orange);
  border-radius: 2px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.08);
}

.form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.form-card .rule {
  width: 48px;
  height: 4px;
  background: var(--orange);
  margin-bottom: 1rem;
}

.form-card .sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.25rem;
  margin-left: 2px;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--form-input-bg);
  border: 1px solid var(--form-input-border);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.field input:focus,
.field select:focus {
  background: var(--form-input-bg);
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(242, 125, 38, 0.25);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.1rem;
  background: var(--brown);
  color: #fff;
  border: none;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #000;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.encrypted-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d1d5db;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.verify-input {
  text-align: center;
  font-size: 1.75rem !important;
  letter-spacing: 0.4em;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #ecfdf5;
  color: #16a34a;
  border: 4px solid #d1fae5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-radius: 2px;
}

.download-btn--dark {
  background: var(--brown);
}

.download-btn--orange {
  background: var(--orange);
}

.download-btn:hover {
  filter: brightness(1.05);
}

.link-back {
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
}

.link-back:hover {
  color: var(--brown);
}

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

/* Resources */
.resources {
  margin: 0.5rem var(--band-inline) 0;
  background: #000;
  color: #fff;
}

.resources h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-block;
  width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  margin-bottom: 0.75rem;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s, opacity 0.5s;
}

.card:hover .card-img img {
  opacity: 1;
  transform: scale(1.05);
}

.card h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
  transition: color 0.2s;
}

.card:hover h4 {
  color: var(--orange);
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Advisor */
.advisor {
  margin: 2.5rem var(--band-inline) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0 var(--band-pad) 3rem;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.advisor-copy .tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.advisor-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

.advisor-copy p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #fff;
  border: 2px solid var(--brown);
  color: var(--brown);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.btn-outline:hover {
  background: var(--brown);
  color: #fff;
}

.advisor-photo {
  position: relative;
}

.advisor-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.advisor-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--brown);
  color: #fff;
  padding: 1.5rem 2rem;
  display: none;
}

@media (min-width: 1024px) {
  .advisor-badge {
    display: block;
  }
}

.advisor-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.advisor-badge span {
  font-size: 0.62rem;
  color: #9ca3af;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .advisor {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  padding: 3rem 1.5rem;
  background: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.footer-brand {
  border: 2px solid var(--brown);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

footer .fine {
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--orange);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--form-surface);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  border-top: 8px solid var(--brown);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-panel--starter {
  border-top-color: var(--orange);
  max-width: 26rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: #000;
}

.modal .field label {
  color: var(--brown);
}

.other-field {
  display: none;
}

.other-field.is-visible {
  display: block;
}
