/*
 * Public-facing light theme for Winning Post marketing pages (racing.stevebaron.co.nz).
 * Matches the look and feel of winningpost.co.nz WordPress site.
 * Background: white, text: dark navy, accents: navy/teal.
 * Font: Outfit (Google Fonts).
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --pub-bg: #ffffff;
  --pub-alt-bg: #f8fafc;
  --pub-text: #1e293b;
  --pub-text-light: #475569;
  --pub-text-muted: #94a3b8;
  --pub-nav-bg: #ffffff;
  --pub-nav-border: #e2e8f0;
  --pub-accent: #1e3a5f;
  --pub-accent-light: #0d9488;
  --pub-card-bg: #ffffff;
  --pub-card-border: #e2e8f0;
  --pub-hero-gradient: linear-gradient(135deg, #0f2a44 0%, #1e3a5f 50%, #0d9488 100%);
  --pub-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--pub-font);
  background: var(--pub-bg);
  color: var(--pub-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pub-accent-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: #0f766e; }

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

/* ── Navigation ──────────────────────────────────────────── */
.pub-nav {
  background: var(--pub-nav-bg);
  border-bottom: 1px solid var(--pub-nav-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pub-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pub-nav .brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.pub-nav .brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--pub-accent);
  letter-spacing: -0.3px;
}

.pub-nav .nav-right { display: flex; align-items: center; gap: 6px; }

.pub-nav .nav-right a {
  color: var(--pub-text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.pub-nav .nav-right a:hover {
  background: #f1f5f9;
  color: var(--pub-accent);
}

.pub-nav .nav-right .nav-cta {
  background: var(--pub-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.pub-nav .nav-right .nav-cta:hover {
  background: #152d4a;
  color: #fff;
}

/* Hamburger */
.pub-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.pub-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pub-accent);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.pub-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.pub-hamburger.open span:nth-child(2) { opacity: 0; }
.pub-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ────────────────────────────────────────────────── */

/* Full-width hero image — sits above the text hero section */
.pub-hero-image {
  width: 100%;
  overflow: hidden;
  background: #1e3a5f;
  line-height: 0;
}

.pub-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero content section — blue gradient background with text */
.pub-hero {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2a44 0%, #1e3a5f 50%, #0d9488 100%);
}

.pub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.pub-hero .hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 24px;
  border-radius: 12px;
}

.pub-hero .hero-eyebrow {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.pub-hero .hero-heading {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.pub-hero .hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.pub-hero .hero-text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 24px;
}

/* ── Feature Strip ───────────────────────────────────────── */
.pub-feature-strip {
  width: 100%;
  background: var(--pub-alt-bg);
  border-top: 1px solid var(--pub-card-border);
  border-bottom: 1px solid var(--pub-card-border);
}

.pub-feature-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.pub-feature-strip-inner h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--pub-accent);
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.pub-feature-strip-inner p {
  font-size: 17px;
  color: var(--pub-text);
  font-weight: 500;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

.pub-feature-strip-cta {
  text-align: center;
}

.pub-feature-strip-label {
  font-size: 13px;
  color: var(--pub-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ── Content Sections ────────────────────────────────────── */
.pub-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.pub-card {
  background: var(--pub-card-bg);
  border: 1px solid var(--pub-card-border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Hero image inside a pub-card — full-width on mobile, reasonable on desktop */
.pub-hero-card-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 32px auto;
  display: block;
  aspect-ratio: 82 / 63;
  object-fit: cover;
}

.pub-card h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--pub-accent);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.pub-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--pub-accent);
  margin: 24px 0 12px 0;
}

.pub-card h1 + h2 { margin-top: 4px; }

.pub-card p {
  font-size: 16px;
  color: var(--pub-text);
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.pub-card p.lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--pub-text-light);
}

.pub-card ul, .pub-card ol {
  font-size: 16px;
  color: var(--pub-text);
  line-height: 1.8;
  padding-left: 24px;
  margin: 0 0 14px 0;
}

.pub-card li { margin-bottom: 8px; }
.pub-card strong { color: var(--pub-accent); }
.pub-card em { color: var(--pub-text-light); }
.pub-card a { color: var(--pub-accent-light); font-weight: 600; text-decoration: underline; }
.pub-card a:hover { color: #0f766e; }

.pub-card.highlight-card {
  border-left: 4px solid var(--pub-accent-light);
  background: #f0fdfa;
}

.pub-card.highlight-card h2 { color: var(--pub-accent); }

/* Steps list */
.pub-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.pub-steps li {
  counter-increment: step-counter;
  padding: 16px 0 16px 52px;
  position: relative;
  font-size: 16px;
  color: var(--pub-text);
  line-height: 1.6;
  border-bottom: 1px solid var(--pub-card-border);
}

.pub-steps li:last-child { border-bottom: none; }

.pub-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  background: var(--pub-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* No-bullet list */
.pub-no-bullet { list-style: none; padding-left: 0; }
.pub-no-bullet li { padding-left: 0; }

/* Check list */
.pub-check-list { list-style: none; padding-left: 0; }
.pub-check-list li::before {
  content: '✓ ';
  font-weight: 700;
  color: var(--pub-accent-light);
}

/* ── Image + text card ───────────────────────────────────── */
.pub-image-card {
  display: flex;
  gap: 36px;
  align-items: center;
}

.pub-image-card-text { flex: 1; }
.pub-image-card-media { flex: 0 0 440px; }

.pub-image-card-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ── CTA Section ─────────────────────────────────────────── */
.pub-cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 36px 32px;
  background: #ff6f00;
}

.pub-cta-logo {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 20px;
}

.pub-cta-body {
  max-width: 480px;
}

.pub-cta-body h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.pub-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pub-cta-btn-primary {
  display: inline-block;
  width: 100%;
  padding: 16px 40px;
  background: #0d9488;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.pub-cta-btn-primary:hover {
  background: #0f766e;
}

.pub-cta-btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 16px 40px;
  background: #0d9488;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.pub-cta-btn-secondary:hover {
  background: #0f766e;
}

@media (max-width: 600px) {
  .pub-cta-section { flex-direction: column; gap: 8px; padding: 24px 16px; }
  .pub-cta-logo { width: 180px; height: 180px; }
  .pub-cta-body { text-align: center; }
  .pub-cta-body h2 { font-size: 22px; margin-bottom: 12px; }
  .pub-cta-buttons { flex-direction: column; align-items: center; }
}

.pub-btn {
  display: inline-block;
  padding: 16px 44px;
  background: var(--pub-accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.pub-btn:hover {
  background: #152d4a;
  color: #fff;
  transform: translateY(-1px);
}

.pub-btn-outline {
  background: transparent;
  color: var(--pub-accent);
  border: 2px solid var(--pub-accent);
}

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

/* ── Homepage FAQ ────────────────────────────────────────── */
.pub-home-faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}

.pub-home-faq-wrapper {
  background: linear-gradient(135deg, #0f2a44 0%, #1e3a5f 50%, #0d9488 100%);
  padding: 48px 0;
  margin-top: 48px;
}

.pub-home-faq-wrapper .pub-home-faq h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 32px 0;
}

.pub-home-faq-wrapper .pub-home-faq .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
}

.pub-home-faq-wrapper .pub-home-faq .faq-item:first-of-type {
  border-top: 1px solid rgba(255,255,255,0.2);
}

.pub-home-faq-wrapper .pub-home-faq .faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.pub-home-faq-wrapper .pub-home-faq .faq-item p {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.7;
  margin: 0;
}

.pub-home-faq-wrapper .pub-home-faq .faq-item a {
  color: #5eead4;
  text-decoration: underline;
  font-weight: 600;
}

/* ── End Homepage FAQ ────────────────────────────────────── */
.pub-home-faq h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--pub-accent);
  text-align: center;
  margin: 0 0 32px 0;
}

.pub-home-faq .faq-item {
  border-bottom: 1px solid var(--pub-card-border);
  padding: 20px 0;
}

.pub-home-faq .faq-item:first-of-type {
  border-top: 1px solid var(--pub-card-border);
}

.pub-home-faq .faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--pub-accent);
  margin: 0 0 6px 0;
}

.pub-home-faq .faq-item p {
  font-size: 16px;
  color: var(--pub-text-light);
  line-height: 1.7;
  margin: 0;
}

.pub-home-faq .faq-item a {
  color: var(--pub-accent-light);
  text-decoration: underline;
  font-weight: 600;
}

/* ── FAQ page accordion ──────────────────────────────────── */
.pub-faq-intro { font-size: 16px; color: var(--pub-text-light); margin-bottom: 24px; }

.pub-faq-item {
  border-bottom: 1px solid var(--pub-card-border);
}

.pub-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--pub-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--pub-accent);
  text-align: left;
}

.pub-faq-question:hover { opacity: 0.8; }

.pub-faq-arrow {
  transition: transform 0.2s;
  font-size: 12px;
  color: var(--pub-text-muted);
  margin-left: 12px;
  flex-shrink: 0;
}

.pub-faq-question.open .pub-faq-arrow { transform: rotate(180deg); }

.pub-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.pub-faq-answer.open {
  max-height: 500px;
  padding: 0 0 18px 0;
}

.pub-faq-answer p { margin: 0 0 10px 0; color: var(--pub-text-light); }
.pub-faq-answer a { color: var(--pub-accent-light); text-decoration: underline; font-weight: 600; }

/* ── Callout box (used in betting guide) ──────────────────── */
.pub-callout-box {
  background: #f0fdfa;
  border-left: 4px solid var(--pub-accent-light);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 8px;
}

.pub-callout-box p { margin: 0 0 10px 0; }
.pub-callout-box p:last-child { margin: 0; }
.pub-callout-box strong { color: var(--pub-accent); }

/* ── Contact form ────────────────────────────────────────── */
.pub-contact-form { margin-top: 20px; }

.pub-contact-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.pub-contact-form .form-row .form-group { flex: 1; }
.pub-contact-form .form-group { margin-bottom: 16px; }

.pub-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pub-text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-contact-form input,
.pub-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--pub-card-border);
  border-radius: 8px;
  color: var(--pub-text);
  font-size: 15px;
  font-family: var(--pub-font);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pub-contact-form input:focus,
.pub-contact-form textarea:focus {
  border-color: var(--pub-accent-light);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.pub-contact-form input::placeholder,
.pub-contact-form textarea::placeholder { color: var(--pub-text-muted); }

.pub-contact-form .pub-btn { margin-top: 8px; }

/* ── Flash messages ──────────────────────────────────────── */
.pub-flash {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.pub-flash-info {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #134e4a;
}

/* ── Footer (now uses .neon-footer from neon.css) ─────── */

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .pub-nav { padding: 0 16px; }
  .pub-hamburger { display: flex; }
  .pub-nav .nav-right {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--pub-nav-border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .pub-nav .nav-right.open { display: flex; }
  .pub-nav .nav-right a { width: 100%; padding: 10px 14px; }

  .pub-hero { padding: 60px 20px; }
  .pub-hero .hero-eyebrow { font-size: 28px; }
  .pub-hero .hero-heading { font-size: 28px; }
  .pub-hero .hero-subtitle { font-size: 17px; }
  .pub-hero .hero-logo { width: 100px; }

  .pub-section { padding: 32px 16px; }
  .pub-card { padding: 24px 18px; }
  .pub-card h1 { font-size: 26px; }

  .pub-feature-strip-inner { padding: 40px 20px; }
  .pub-feature-strip-inner h2 { font-size: 26px; }

  .pub-image-card { flex-direction: column; }
  .pub-image-card-media { flex: 0 0 auto; max-width: 300px; }

  .pub-contact-form .form-row { flex-direction: column; gap: 0; }

  .pub-home-faq-wrapper { padding: 32px 0; }
  .pub-home-faq-wrapper .pub-home-faq { padding: 0 16px; }
}

@media (max-width: 600px) {
  .pub-hero .hero-eyebrow { font-size: 24px; }
  .pub-hero .hero-heading { font-size: 24px; }
}
