/* =========================================================
   MyComplaintSA – Landing page
   Desktop design reference: 1600px wide. Mobile: 375px wide.
   ========================================================= */

:root {
  --navy: #0b2545;   /* Advocate Ink */
  --navy-dark: #0b2545;
  --slate: #4a5568;   /* Slate Grey: secondary text, hovers */
  --orange: #f2a413;  /* Highveld Amber */
  --deep-amber: #b96a00;
  --cream: #faf7f2;   /* Paper */
  --grey-step: #e7e6e4; /* 8% ink tint on Paper */
  --ink: #0b2545;
  --white: #ffffff;

  --container: 1212px;
  --gutter: max(24px, calc((100% - var(--container)) / 2));

  /* Body: system font stack (no download). Headings/buttons: Inter. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ol, ul { margin: 0; padding: 0; }

.mob-only { display: none; }

/* ---------- Pattern background (header + footer) ---------- */
.site-header,
.site-footer {
  background-color: #fff;
  background-image: url("assets/images/pattern.webp");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 14px;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.btn-light {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid #c9ccd1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .10);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 20;
}

.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}

.brand img { width: 226px; }

.main-nav {
  display: flex;
  align-items: center;
  margin-left: 98px;
  font-size: 20px;
  letter-spacing: .01em;
}
.main-nav a:hover { color: var(--slate); }

.nav-sep {
  width: 2px;
  height: 25px;
  background: var(--navy);
  margin: 0 20px;
}

.sign-in {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  letter-spacing: .01em;
}
.sign-in-icon { width: 16px; height: 19px; fill: var(--navy); }
.sign-in:hover { color: var(--slate); }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 436px;
  overflow: hidden;
  background: #2b3a3d;
  color: var(--white);
}

.hero-media,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-img {
  object-fit: cover;
  object-position: 62% center;
}

.hero-content {
  position: relative;
  padding: 29px var(--gutter) 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: 46px;
  font-weight: 800;
  line-height: 50px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.hero-price { color: var(--orange); }

.hero-cta { margin-top: 25px; }

.hero-cta .btn {
  width: 362px;
  height: 82px;
  font-size: 31.5px;
}

.hero-note {
  margin-top: 21px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: .005em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  background: var(--cream);
  padding: 30px var(--gutter) 36px;
  text-align: center;
}

.steps-title {
  font-size: 41.5px;
  font-weight: 800;
  line-height: 46px;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.steps-list {
  list-style: none;
  display: flex;
  margin-top: 26px;
}

.steps-list li {
  flex: 1 1 auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 24px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.steps-list li:nth-child(odd) { background: var(--grey-step); }
.steps-list li b { font-weight: 700; }
.steps-list li:nth-child(n) { flex: 1 1 auto; }

/* =========================================================
   GUIDE
   ========================================================= */
.guide {
  background: var(--navy);
  height: 137px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 24px;
}

.guide-text {
  color: var(--white);
  font-size: 29.5px;
  letter-spacing: .005em;
}

.guide .btn {
  width: 362px;
  height: 82px;
  font-size: 30px;
}

/* =========================================================
   DISCLAIMER
   ========================================================= */
.disclaimer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 19px 24px;
  text-align: center;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: -0.025em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 20px;
  letter-spacing: .01em;
}
.footer-links li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 15px;
  border-radius: 50%;
  background: var(--navy);
  vertical-align: middle;
  transform: translateY(-2px);
}
.footer-links a:hover { color: var(--slate); }

.partner img { width: 188px; }

/* =========================================================
   TABLET (861px – 1280px): scale desktop down gracefully
   ========================================================= */
@media (max-width: 1280px) {
  .hero-img { object-position: 78% center; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 65%);
  }
  .hero-content { z-index: 2; }
  .main-nav { margin-left: 56px; }
  .steps-list li { padding: 0 8px; font-size: 21px; }
}

@media (max-width: 1060px) {
  .main-nav { margin-left: 32px; font-size: 18px; }
  .nav-sep { margin: 0 14px; }
  .sign-in { font-size: 18px; }
  .brand img { width: 190px; }
  .steps-list li:nth-child(n) { font-size: 19px; padding: 0 12px; }
  .guide-text { font-size: 24px; margin-left: 0; }
  .guide .btn { width: 300px; height: 70px; font-size: 26px; }
  .disclaimer { font-size: 16px; }
}

/* =========================================================
   MOBILE (≤ 860px) – reference 375px
   ========================================================= */
@media (max-width: 860px) {
  .desk-only { display: none !important; }
  .mob-only { display: block; }
  br.mob-only { display: inline; }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
  }
  .header-inner {
    height: 56px;
    padding: 0 22px 0 14px;
  }
  .brand img { width: 136px; }
  .main-nav,
  .sign-in { display: none; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
    width: 22px;
    height: 22px;
    padding: 1px 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--slate);
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    box-shadow: 0 8px 16px rgba(13, 38, 69, .18);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .menu-open .mobile-menu { max-height: 320px; }
  .mobile-menu a {
    display: block;
    padding: 15px 22px;
    font-size: 17px;
    font-weight: 500;
    border-top: 1px solid var(--grey-step);
  }
  .mobile-menu a:active { background: var(--grey-step); }

  /* Hero */
  .hero { height: 232px; }
  .hero::before { display: none; }
  .hero-img { object-position: right center; }
  .hero-content { padding: 14px 25px 0; }
  .hero-title {
    font-size: 26px;
    line-height: 30.5px;
    letter-spacing: -0.01em;
    max-width: 150px;
  }
  .hero-price {
    margin-top: 10px;
    font-size: 20.5px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  /* Mobile CTA */
  .mobile-cta {
    background: var(--cream);
    text-align: center;
    padding: 16px 24px 20px;
  }
  .mobile-cta .hero-note {
    margin: 0 auto;
    max-width: 280px;
    font-size: 16.5px;
    line-height: 26px;
    color: var(--navy);
    text-shadow: none;
    letter-spacing: -0.005em;
  }
  .mobile-cta .btn {
    margin-top: 14px;
    width: 231px;
    height: 61px;
    font-size: 17px;
    border-radius: 9px;
  }

  /* Steps (moves below the guide on mobile) */
  main { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .mobile-cta { order: 2; }
  .guide { order: 3; }
  .steps { order: 4; }
  .disclaimer { order: 5; }

  .steps { padding: 20px 0 0; }
  .steps-title {
    font-size: 24px;
    line-height: 29px;
    letter-spacing: -0.01em;
  }
  .steps-list {
    display: block;
    margin-top: 12px;
  }
  .steps-list li {
    height: 29.5px;
    justify-content: flex-start;
    padding: 0 0 0 calc(50% - 90px);
    font-size: 16.5px;
    gap: 9px;
    background: none;
  }
  .steps-list li:nth-child(odd) { background: var(--grey-step); }
  .steps-list li b { width: 11px; text-align: right; }
  .steps-list li:nth-child(n) { padding: 0 0 0 calc(50% - 90px); font-size: 16.5px; }

  /* Guide */
  .guide {
    height: auto;
    flex-direction: column;
    gap: 13px;
    padding: 15px 24px 13px;
  }
  .guide-text {
    font-size: 18px;
    margin: 0;
  }
  .guide .btn {
    width: 229px;
    height: 60px;
    font-size: 17.5px;
    border-radius: 9px;
    border: 0;
  }

  /* Disclaimer */
  .disclaimer {
    padding: 6px 14px;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: -0.02em;
  }

  /* Footer */
  .footer-inner {
    height: 41px;
    padding: 0 18px 0 24px;
  }
  .footer-links { font-size: 12px; letter-spacing: 0; }
  .footer-links li + li::before {
    width: 4px;
    height: 4px;
    margin: 0 8px;
    transform: translateY(-1px);
  }
  .partner img { width: 113px; }
}

/* =========================================================
   LEGAL PAGE (legal.html)
   ========================================================= */
.legal-section {
  background: var(--cream);
  padding: 56px var(--gutter);
}
.legal-section--grey { background: var(--grey-step); }

.legal-inner {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.legal-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 54px;
  letter-spacing: -0.015em;
  text-align: left;
  margin-bottom: 24px;
}

.legal-heading {
  font-size: 32px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.legal-list {
  padding-left: 26px;
}
.legal-list li::marker { font-size: .8em; }

.legal-cta {
  margin-top: 36px;
  text-align: left;
}
.legal-cta .btn {
  width: 362px;
  height: 82px;
  font-size: 30px;
}

@media (max-width: 860px) {
  .legal-section { padding: 18px 25px 20px; }
  .legal-section--grey { padding-top: 22px; padding-bottom: 28px; }
  .legal-inner {
    font-size: 16.5px;
    line-height: 26px;
  }
  .legal-title {
    font-size: 28.5px;
    line-height: 36px;
    text-align: center; /* mobile design centres the title */
    margin-bottom: 12px;
  }
  .legal-heading {
    font-size: 23px;
    line-height: 26px;
    margin-bottom: 4px;
  }
  .legal-list { padding-left: 20px; }
  .legal-cta { margin-top: 20px; text-align: center; }
  .legal-cta .btn {
    width: 231px;
    height: 61px;
    font-size: 17px;
    border-radius: 9px;
  }
}

/* =========================================================
   HOME PAGE SECTION SPACING
   70px top/bottom on desktop, 40px on mobile
   ========================================================= */
.hero { height: auto; min-height: 436px; }
.hero-content { padding-top: 70px; padding-bottom: 70px; }
.steps { padding-top: 70px; padding-bottom: 70px; }
.guide { height: auto; padding-top: 70px; padding-bottom: 70px; }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 40px; padding-bottom: 40px; }
  .mobile-cta { padding-top: 40px; padding-bottom: 40px; }
  .steps { padding-top: 40px; padding-bottom: 40px; }
  .guide { padding-top: 40px; padding-bottom: 40px; }
}

/* Legal sub-pages (privacy, terms, paia) */
.legal-meta { font-size: .85em; color: var(--slate); margin: -12px 0 16px; }
.legal-heading--spaced { margin-top: 36px; }
.legal-doc-links a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc-links a:hover { color: var(--slate); }
@media (max-width: 860px) {
  .legal-meta { margin: -4px 0 10px; }
  .legal-heading--spaced { margin-top: 24px; }
}

/* Footer with legal document links */
.footer-links { flex-wrap: wrap; row-gap: 4px; }
.disclaimer-link { text-decoration: underline; text-underline-offset: 3px; }
.disclaimer-link:hover { opacity: .85; }
@media (max-width: 1060px) {
  .footer-links { font-size: 17px; }
  .footer-links li + li::before { margin: 0 10px; }
}
@media (max-width: 860px) {
  .footer-inner { height: auto; min-height: 41px; padding: 10px 18px 10px 24px; gap: 12px; }
  .footer-links { font-size: 12px; row-gap: 6px; }
  .footer-links li + li::before { margin: 0 8px; }
}
@media (max-width: 860px) {
  /* stack links over the partner logo; no bullets so wrapped lines never start with one */
  .footer-inner { flex-direction: column; padding: 14px 20px 12px; gap: 10px; }
  .footer-links { justify-content: center; column-gap: 16px; row-gap: 6px; font-size: 12.5px; }
  .footer-links li + li::before { display: none; }
}

/* =========================================================
   HERO SLIDESHOW (crossfade)
   ========================================================= */
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide:first-of-type .hero-img { object-position: 70% center; }

/* soft shade behind the text so it reads on both photos */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,0) 60%);
}
.hero-content { z-index: 2; }

@media (max-width: 860px) {
  .hero::before {
    display: block;
    background: linear-gradient(90deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,0) 70%);
  }
  .hero-slide:first-of-type .hero-img { object-position: right center; }
}

/* =========================================================
   HERO PRICE LINES + single price note (shared desktop/mobile)
   ========================================================= */
.hero-price--sub { font-size: 34px; line-height: 44px; }

@media (max-width: 860px) {
  /* On mobile the hero becomes: photo + headline on top, note + button below */
  .hero {
    display: grid;
    grid-template-columns: 100%;
    min-height: 0;
    height: auto;
    background: var(--cream);
  }
  .hero-content { display: contents; }
  .hero .hero-media { position: relative; inset: auto; grid-area: 1 / 1; z-index: 0; height: auto; }
  .hero::before { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero-title {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    padding: 40px 25px;
    max-width: none;
  }
  .hero-title > span:not(.hero-price) { max-width: 150px; }
  .hero-price--sub { margin-top: 0; font-size: 16px; line-height: 20px; }
  .hero-cta {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 40px 24px;
    text-align: center;
    color: var(--navy);
  }
  .hero-cta .hero-note {
    order: -1;
    margin: 0 auto;
    max-width: 290px;
    font-size: 16.5px;
    line-height: 26px;
    text-shadow: none;
    letter-spacing: -0.005em;
  }
  .hero-cta .btn {
    margin-top: 14px;
    width: 231px;
    height: 61px;
    font-size: 17px;
    border-radius: 9px;
  }
}
@media (max-width: 1280px) and (min-width: 861px) {
  .hero-slide:first-of-type .hero-img { object-position: 48% center; }
}
@media (max-width: 860px) {
  .hero-price--sub { max-width: 160px; margin-top: 2px; }
}

/* =========================================================
   DISCLOSURE BANNER (top of every page)
   ========================================================= */
.disclosure-banner {
  background: var(--navy-dark);
  color: var(--white);
  padding: 12px var(--gutter);
  text-align: center;
}
.disclosure-banner p {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 15px;
  line-height: 21px;
}

/* Disclosure repeated next to "Start your complaint" (sub pages) */
.disclosure-note {
  max-width: 820px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--white);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

/* Home: notices directly after the hero CTA */
.cta-notices {
  background: var(--cream);
  padding: 40px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.notice {
  padding: 20px 24px;
  background: var(--white);
  border-radius: 6px;
  font-size: 17px;
  line-height: 26px;
  color: var(--navy);
}
.notice--disclosure { border-left: 5px solid var(--navy); }
.notice--court { border-left: 5px solid var(--deep-amber); }

.inline-link { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   FOOTER: links + company details
   ========================================================= */
.site-footer { background-size: auto 140px; background-repeat: repeat; }
.footer-inner {
  height: auto;
  align-items: flex-start;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-company {
  text-align: right;
  font-size: 15px;
  line-height: 22px;
  color: var(--navy);
}
.footer-company a { text-decoration: underline; text-underline-offset: 2px; }
.footer-company .placeholder { background: #fde7b8; padding: 0 4px; border-radius: 3px; }

@media (max-width: 1060px) {
  .cta-notices { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .disclosure-banner { padding: 8px 14px; }
  .disclosure-banner p { font-size: 12px; line-height: 16px; }
  .hero-cta { padding-bottom: 20px; }
  .cta-notices { order: 2; padding: 0 20px 40px; gap: 14px; }
  .notice { padding: 14px 16px; font-size: 14.5px; line-height: 22px; }
  .disclosure-note { margin: 16px auto 0; font-size: 14.5px; line-height: 22px; }
  .footer-inner { padding: 20px 20px; gap: 14px; }
  .footer-company { text-align: center; font-size: 12.5px; line-height: 19px; }
}
@media (min-width: 861px) {
  .footer-inner { flex-wrap: wrap; }
  .footer-links { flex-wrap: nowrap; white-space: nowrap; font-size: 18px; }
  .footer-links li + li::before { margin: 0 12px; }
  .footer-company { flex: 0 1 420px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .footer-inner { flex-direction: column; }
  .footer-company { text-align: left; flex-basis: auto; }
}
@media (min-width: 861px) {
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-company { text-align: left; flex: none; max-width: none; }
}

/* Brand fonts: Inter for headings, wordmark-style text and buttons */
h1, h2, .hero-title, .steps-title, .legal-title, .legal-heading, .btn { font-family: var(--font-display); }
