/* =========================================================================
   MRCGP to Australia Handbook — Landing Page Styles
   Ray Rekruiters
   ========================================================================= */

:root {
  /* Brand colors (derived from Ray Rekruiters site + handbook brand kit) */
  --navy-950: #0a1f3d;
  --navy-900: #0f2547;
  --navy-800: #15315e;
  --navy-700: #1c3f73;
  --navy-600: #2a5093;
  --green-600: #4d9a1e;
  --green-500: #62b22e;
  --green-400: #7bc94a;
  --gold-500: #c9a227;
  --gold-100: #f7ecc8;
  --ink-900: #16213a;
  --slate-700: #3c485f;
  --slate-500: #66738c;
  --slate-300: #aab3c5;
  --line: #e3e8f0;
  --bg-light: #f4f7fb;
  --white: #ffffff;

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 37, 71, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 37, 71, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 37, 71, 0.22);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--slate-700); font-size: 1.05rem; }
.bold-kw { color: var(--green-500); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.logo img {
  display: block;
  width: auto;
  max-height: 47px;
  max-width: 220px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at 85% 0%, rgba(98, 178, 46, 0.08), transparent 55%),
              linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(15, 37, 71, 0.16));
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: center;
  will-change: transform;
}
.hero-image img:hover {
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 28px 48px rgba(15, 37, 71, 0.18));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-100);
  color: #8a6c10;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--green-600); }
.hero-sub {
  font-size: 1.12rem;
  color: var(--slate-700);
  max-width: 540px;
}
.hero-bullets { margin: 26px 0 30px; display: grid; gap: 12px; }
.hero-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500; color: var(--navy-800);
}
.hero-bullets svg { flex-shrink: 0; margin-top: 2px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-microcopy {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--slate-500);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Book Mockup (signature element, pure CSS — no stock photography) ---------- */
.book-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}
.book-mockup {
  position: relative;
  width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 6px 14px 14px 6px;
  background:
    radial-gradient(circle at 90% 95%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-950) 78%);
  box-shadow: var(--shadow-lg);
  transform: rotateY(-18deg) rotateX(3deg);
  transition: transform 0.6s ease;
  color: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.book-stage:hover .book-mockup { transform: rotateY(-8deg) rotateX(1deg); }
.book-mockup::before {
  /* spine shadow */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.45), transparent);
}
.book-mockup::after {
  /* dotted globe texture, echoes the handbook's closing page */
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background-image: radial-gradient(var(--green-400) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.35;
  border-radius: 50%;
}
.book-edition-tag {
  align-self: flex-end;
  background: var(--gold-500);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.1;
  text-align: center;
}
.book-title { position: relative; z-index: 1; }
.book-title .kicker { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-400); font-weight: 600; }
.book-title h3 {
  color: var(--white);
  font-size: 1.55rem;
  margin: 6px 0 0;
  line-height: 1.15;
}
.book-title h3 .to { font-style: italic; font-weight: 400; display: block; font-size: 1rem; color: var(--green-400); }
.book-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 12px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.75);
}
.book-shadow {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 28px;
  background: radial-gradient(ellipse, rgba(10,31,61,0.35), transparent 70%);
  filter: blur(4px);
}
.book-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-900);
  display: flex; align-items: center; gap: 8px;
}
.book-float-badge.pages { top: 6%; left: -6%; }
.book-float-badge.free { bottom: 10%; right: -1%; color: var(--green-600); }

/* ---------- Form Section ---------- */
.form-section { background: var(--navy-950); position: relative; overflow: hidden; }
.form-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(98,178,46,0.18), transparent 45%);
  pointer-events: none;
}
.form-section .container {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.form-section .copy h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-section .copy p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.form-section .copy ul { display: grid; gap: 12px; margin-top: 22px; }
.form-section .copy li { display: flex; gap: 10px; color: rgba(255,255,255,0.92); font-weight: 500; }
.form-section .copy svg { flex-shrink: 0; }

.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.lead-form-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.lead-form-card .form-sub { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 20px; }
.form-error {
  background: #fdeceb; color: #b3261e; border: 1px solid #f3c2bd;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.form-row input,
.form-row select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(98, 178, 46, 0.16);
}
.form-row.is-invalid input { border-color: #b3261e; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.consent-row label { font-size: 0.82rem; color: var(--slate-600); font-weight: 400; }
.form-privacy-note { font-size: 0.78rem; color: var(--slate-500); text-align: center; margin-top: 14px; }

/* ---------- Problem Section ---------- */
.problem-section { background: var(--white); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.problem-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.problem-card .num { font-family: var(--font-display); font-weight: 700; color: var(--green-600); font-size: 0.85rem; margin-bottom: 10px; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.problem-card p { color: var(--slate-700); font-size: 0.95rem; margin: 0; }

/* ---------- Benefits Section ---------- */
.benefits-section { background: var(--bg-light); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.benefit-card.is-visible { opacity: 1; transform: translateY(0); }
.benefit-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.benefit-card p { color: var(--slate-700); font-size: 0.93rem; margin: 0; }

/* ---------- Proof Section ---------- */
.proof-section { background: var(--navy-900); color: var(--white); }
.proof-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 52px;
}
.proof-stat { text-align: center; }
.proof-stat .stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--green-400);
}
.proof-stat .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-top: 4px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}
.testimonial-card .stars { color: var(--gold-500); font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.93rem; color: rgba(255,255,255,0.88); margin-bottom: 14px; }
.testimonial-card .author { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--white); }

/* ---------- Offer Section ---------- */
.offer-section {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
}
.offer-card {
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.offer-card h2 { font-size: 1.6rem; }
.offer-list { display: grid; gap: 10px; margin: 18px 0 0; }
.offer-list li { display: flex; gap: 10px; font-weight: 500; }
.offer-list svg { flex-shrink: 0; color: var(--green-600); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-light); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
}
.faq-question .plus { transition: transform 0.25s ease; font-size: 1.3rem; color: var(--green-600); flex-shrink: 0; }
.faq-item[open] .faq-question .plus { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--slate-700); font-size: 0.95rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
}
.final-cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.final-cta p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .benefit-card, .book-mockup { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .book-stage { order: -1; }
  .form-section .container { grid-template-columns: 1fr; }
  .problem-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .offer-card { grid-template-columns: 1fr; text-align: center; }
  .offer-list { justify-items: center; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .site-header .container { height: 64px; gap: 8px; }
  .site-header .container .btn { padding: 10px 14px; font-size: 0.85rem; margin: 0 4px; white-space: nowrap; }
  .logo img { max-height: 43px; }
  .problem-grid, .benefits-grid, .proof-stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .lead-form-card { padding: 26px 20px; }
  .book-mockup { width: 240px; transform: none; }
  .book-stage:hover .book-mockup { transform: none; }
}
