/* =========================================================================
   Subclass Six Hundred — Australian Subclass 600 visitor visa preparation
   Independent client build. Not Mode-branded.
   ========================================================================= */

:root {
  /* Palette — restrained, warm, professional */
  --navy: #0E1F36;
  --navy-deep: #07142A;
  --navy-soft: #1B3050;
  --cream: #F5EFE3;
  --cream-soft: #FBF7EE;
  --paper: #FFFFFF;
  --gold: #B68950;
  --gold-soft: #D7B587;
  --sage: #6F8773;
  --ink: #1A1F2A;
  --ink-soft: #4A5060;
  --line: #E5DDC9;
  --line-strong: #C9BD9F;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(14, 31, 54, 0.06), 0 8px 24px rgba(14, 31, 54, 0.08);
  --shadow-lg: 0 2px 8px rgba(14, 31, 54, 0.10), 0 24px 48px rgba(14, 31, 54, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography primitives ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow.centered { text-align: center; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 500;
}

.section-h {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 760px;
}

.section-lede {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  font-size: 18px;
}

p { margin: 0 0 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-deep);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--gold); }

.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius);
  letter-spacing: -0.02em;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--navy); }

@media (max-width: 880px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(182, 137, 80, 0.08), transparent 60%),
    radial-gradient(800px 500px at -10% 80%, rgba(111, 135, 115, 0.08), transparent 60%),
    var(--cream-soft);
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-copy h1 { margin-bottom: 24px; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.card-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 16px;
}
.card-list {
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.card-list li { margin-bottom: 12px; }
.card-list li:last-child { margin-bottom: 0; }

.card-foot {
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { position: static; }
  .trust-row { grid-template-columns: 1fr; }
}

/* ---------- Generic section spacing ---------- */

section { padding: 96px 0; }

@media (max-width: 880px) {
  section { padding: 64px 0; }
}

/* ---------- Problem ---------- */

.problem {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.problem-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.problem-card h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--navy);
}
.problem-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

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

/* ---------- How it works ---------- */

.how {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}

.steps h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.steps p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

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

/* ---------- Streams ---------- */

.streams {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.stream-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.stream-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 12px;
}
.stream-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}
.stream-foot {
  font-size: 13px;
  color: var(--sage);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 0 !important;
}

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

/* ---------- What we check ---------- */

.checks {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid var(--navy-deep);
}

.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.checks-copy .eyebrow { color: var(--gold-soft); }
.checks-copy h2 { color: var(--cream); text-align: left; max-width: none; }
.checks-copy p {
  color: rgba(245, 239, 227, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(215, 181, 135, 0.18);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 239, 227, 0.85);
}
.check-list li:first-child { padding-top: 0; }
.check-list li:last-child { border-bottom: none; padding-bottom: 0; }
.check-list strong {
  color: var(--cream);
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
}

@media (max-width: 880px) {
  .checks-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Agent-backed review ---------- */

.review {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.review-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.review-copy h2 { text-align: left; max-width: none; }

.review-pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--gold);
}
.pillar-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
}
.pillar-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}
.pillar-marn {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.marn-placeholder {
  color: var(--sage);
  font-style: italic;
}

@media (max-width: 880px) {
  .review-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Assessment form ---------- */

.assessment {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.assessment-form {
  max-width: 720px;
  margin: 56px auto 0;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}
fieldset:last-of-type { margin-bottom: 24px; }

legend {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0 14px;
  margin: 0;
  display: block;
  width: 100%;
}

.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.opt-grid--two { grid-template-columns: 1fr 1fr; max-width: 320px; }

.opt {
  position: relative;
  cursor: pointer;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt span {
  display: block;
  padding: 14px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: all 0.15s ease;
}
.opt:hover span {
  border-color: var(--line-strong);
  background: var(--paper);
}
.opt input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
}
.opt input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.assessment-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.assessment-form input[type="text"]:focus {
  outline: none;
  border-color: var(--navy);
}

/* Force opaque background on autofill */
.assessment-form input[type="text"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--paper) inset;
  -webkit-text-fill-color: var(--ink);
}

.form-foot {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 16px 0 0;
  line-height: 1.5;
}

.assessment-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}

/* Result */
.result {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 40px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
}
.result.hidden { display: none; }
.result h3 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 24px;
  margin: 0 0 12px;
}
.result .result-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 12px;
}
.result p {
  color: rgba(245, 239, 227, 0.85);
  margin-bottom: 20px;
}
.result h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 28px 0 12px;
}
.result ul {
  margin: 0 0 24px;
  padding-left: 22px;
  color: rgba(245, 239, 227, 0.9);
}
.result ul li {
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 15px;
}
.result .result-cta {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  margin-top: 8px;
}
.result .result-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
}
.result .result-flag {
  background: rgba(182, 137, 80, 0.14);
  border: 1px solid rgba(215, 181, 135, 0.4);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--gold-soft);
  margin: 16px 0 0;
}

@media (max-width: 720px) {
  .assessment-form { padding: 24px; }
  .opt-grid { grid-template-columns: 1fr; }
  .opt-grid--two { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 820px;
  margin: 56px auto 0;
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
details[open] { border-color: var(--line-strong); }

summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; }

details p {
  padding: 0 24px 24px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
details strong { color: var(--navy); }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 96px 0;
}
.final-cta h2 {
  color: var(--cream);
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin: 0 auto 16px;
}
.final-cta p {
  color: rgba(245, 239, 227, 0.78);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.final-cta .btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.final-cta .btn--primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 239, 227, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(215, 181, 135, 0.14);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cream);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-line {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.footer-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.site-footer a {
  color: rgba(245, 239, 227, 0.7);
}
.site-footer a:hover { color: var(--gold-soft); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--gold-soft); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
