/* ========================================================================
   ANDRÉ KIRSTEN ATTORNEYS — BAIL LANDING PAGE
   ------------------------------------------------------------------------
   EDIT COLOURS: Change CSS variables inside :root.
   EDIT FONTS:    Change --font-heading and --font-body.
   EDIT SPACING: Change --section-space and .container max-width.
   EDIT IMAGES:  Search for "andrekirsten.co.za/styles/images" below.

   Page layout follows the supplied reference:
   floating navigation / split hero / centred statement / 3 cards / 2 cards
   dark-green CTA / editorial section / biography / four steps / split info
   FAQs / final CTA / dark footer.
   ======================================================================== */

:root {
  --pine: #173e34;
  --pine-dark: #11352e;
  --pine-light: #2e6656;
  --sage: #f0f4f2;
  --mint: #d9e5df;
  --cream: #fcfaf6;
  --ink: #25312f;
  --muted: #64726e;
  --gold: #b99e72;
  --border: #e2e9e5;
  --white: #ffffff;
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', Arial, Helvetica, sans-serif;
  --section-space: clamp(84px, 9vw, 150px);
  --shadow: 0 15px 40px rgba(24, 50, 41, .055), 0 2px 8px rgba(24, 50, 41, .04);
}

/* BASE: Global typography and common utilities */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.78; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #bda16f; outline-offset: 4px; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--font-heading); letter-spacing: -.047em; font-weight: 400; line-height: 1.23; }
h1 { font-size: clamp(42px, 4.9vw, 80px); }
h2 { font-size: clamp(32px, 3.25vw, 53px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.45; }
h1 em, h2 em { font-weight: 400; color: var(--pine-light); }
p { color: var(--muted); }
.container { width: min(1150px, calc(100% - 64px)); margin-inline: auto; }
.container--narrow { max-width: 770px; }
.container--medium { max-width: 900px; }
.section { padding-block: var(--section-space); }
.section--sage { background: var(--sage); }
.section--white { background: var(--white); }
.section--tight-top { padding-top: 8px; }
.text-center { text-align: center; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 20px; padding: 9px 20px; background: var(--white); color: var(--pine); }
.skip-link:focus { top: 20px; }
.eyebrow { color: var(--pine-light); font-weight: 700; font-size: 10px; line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow--center { text-align: center; }
.eyebrow--light { color: #c2d8c8; }
.eyebrow__line { display: inline-block; height: 1px; width: 22px; background: currentColor; vertical-align: middle; margin-right: 9px; }
.section-heading { margin-bottom: 43px; }
.section-heading h2 { margin: 0; }
.section-heading--center { text-align: center; }
.heading-rule { display: block; width: 41px; height: 2px; background: var(--pine-light); margin-top: 25px; }
.section-heading--center .heading-rule { margin-inline: auto; }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; text-decoration: none; color: var(--pine-light); font-size: 12px; font-weight: 700; letter-spacing: .018em; line-height: 1.6; padding-block: 3px; border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: currentColor; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px, -2px); }

/* HEADER: Edit menu items in /includes/navigation.php */
.site-header { position: absolute; inset: 0 0 auto; padding-top: 18px; z-index: 30; pointer-events: none; }
.site-nav { width: min(1220px, calc(100% - 52px)); min-height: 76px; margin-inline: auto; padding: 9px 12px 9px 13px; background: rgba(255, 255, 255, .965); border: 1px solid rgba(26, 61, 49, .045); border-radius: 80px; box-shadow: 0 8px 40px rgba(19, 44, 38, .085); display: flex; align-items: center; justify-content: space-between; gap: 19px; pointer-events: auto; }
.site-nav__logo { display: flex; flex: 0 0 auto; align-items: center; border-radius: 2px; }
.site-nav__logo img { width: 156px; height: auto; max-height: 57px; object-fit: contain; }
.site-nav__menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(9px, 1.4vw, 22px); }
.site-nav__menu a { color: #44544f; font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.4; white-space: nowrap; }
.site-nav__menu a:hover, .site-nav__menu a.is-current { color: var(--pine); }
.site-nav__menu a.is-current { box-shadow: inset 0 -1px var(--pine-light); padding-bottom: 5px; }
.site-nav__cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; padding: 13px 19px; color: var(--white); background: var(--pine); border-radius: 100px; text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.site-nav__cta:hover { background: var(--pine-light); transform: translateY(-1px); }
.site-nav__toggle { display: none; }

/* BUTTONS */
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button-group--center { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 23px; border-radius: 100px; font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; border: 1px solid transparent; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button--solid { background: var(--pine); color: white; }
.button--solid:hover { background: var(--pine-light); }
.button--outline { border: 1px solid #9eb2a8; color: var(--pine); background: rgba(255, 255, 255, .7); }
.button--outline:hover { background: #edf3ef; }
.button--light-outline { color: white; border: 1px solid #88ad9d; }
.button--light-outline:hover { background: white; color: var(--pine); }

/* HERO: Photo originates from an existing image on the company website. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(780px, 88svh); padding-top: 145px; padding-bottom: 110px; overflow: clip; background: #fbfcfa; }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 660px; }
.hero h1 { max-width: 660px; margin-bottom: 28px; }
.hero h1 em { font-style: italic; }
.hero__lead { color: #3e4f48; max-width: 510px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; line-height: 1.72; margin-bottom: 17px; }
.hero__sub { max-width: 493px; color: #6d7d76; font-size: 14px; line-height: 1.9; margin-bottom: 29px; }
.hero__visual { position: absolute; z-index: 0; inset: 0 0 0 48%; background-color: #d9e5df; background-image: linear-gradient(90deg, #fbfcfa 0%, rgba(251,252,250,.92) 9%, rgba(251,252,250,.55) 36%, rgba(251,252,250,.04) 74%), linear-gradient(0deg, rgba(20,50,40,.10), rgba(251,252,250,.10)), url('https://andrekirsten.co.za/styles/images/page_graphic.jpg'); background-repeat: no-repeat; background-position: center, center, center; background-size: cover; }
.hero__visual::after { content: ''; position: absolute; inset: 0; opacity: .36; background-image: radial-gradient(circle at 80% 12%, rgba(255,255,255,.9), transparent 24%), linear-gradient(0deg, rgba(255,255,255,.17), transparent 45%); }
.hero__side-label { position: absolute; z-index: 1; right: 19px; bottom: 42px; color: #344e42; font-size: 10px; font-weight: 600; letter-spacing: .17em; writing-mode: vertical-rl; }
.hero__trust { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 21px; color: #60736b; font-size: 11px; font-weight: 500; line-height: 1.6; }
.dot { display: inline-block; width: 7px; height: 7px; background: #5a9176; border-radius: 100%; }

/* INTRO: Calm, spacious centre-aligned brand statement */
.intro { padding-block: 116px 123px; }
.intro h2 { color: #667d72; font-size: clamp(32px, 3.2vw, 49px); margin-bottom: 32px; }
.intro h2 em { color: var(--pine-light); }
.intro p:not(.eyebrow) { font-size: 15px; max-width: 620px; margin: 0 auto 18px; line-height: 1.9; }
.intro .text-link { margin-top: 10px; }

/* CARDS: service grid mirrors three and two-card areas in reference. */
.card-grid { display: grid; gap: 23px; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 340px; padding: 34px 30px 31px; border-top: 2px solid #e2ebe7; background: white; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); border-top-color: var(--pine-light); box-shadow: 0 19px 45px rgba(23,62,52,.11); }
.service-card__icon { margin-bottom: 18px; color: var(--pine-light); }
.service-card__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.service-card h3 { margin-bottom: 13px; color: #20362e; font-family: var(--font-heading); font-size: 19px; font-weight: 400; line-height: 1.45; }
.service-card p { font-size: 13px; line-height: 1.85; margin-bottom: 18px; }
.service-card .text-link { margin-top: auto; }
.service-card--wide { min-height: 280px; padding: 40px 39px; }
.service-card--wide p { max-width: 440px; }

/* DARK CALL TO ACTION */
.cta-band { background: radial-gradient(ellipse at 23% 21%, #275d4c, transparent 46%), linear-gradient(115deg, #123d31, #0d3029); padding: 91px 0 94px; }
.cta-band h2 { color: #fff; font-family: var(--font-heading); font-size: clamp(23px, 2.3vw, 35px); line-height: 1.55; letter-spacing: -.033em; margin-bottom: 26px; }

/* BAIL EXPLANATION / EDITORIAL */
.method { padding-block: 116px 131px; }
.method__inner { position: relative; }
.method .prose { max-width: 810px; }
.prose { color: var(--muted); }
.prose p { font-size: 14px; line-height: 1.95; margin-bottom: 18px; }
.prose h3 { color: var(--pine); font-size: 17px; font-weight: 600; margin-top: 31px; margin-bottom: 11px; }
.prose a:not(.button) { margin-top: 5px; }
.dot-pattern { position: absolute; top: 5px; right: 9px; width: 90px; height: 113px; opacity: .37; background-image: radial-gradient(#779a8c 1px, transparent 1.2px); background-size: 9px 9px; }

/* ABOUT: Portrait is CSS-cropped from Bail-Lawyer.png from original firm site.
   File includes ORIGINAL text within the banner, so we crop to LEFT quarter. */
.about-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(55px, 9vw, 120px); align-items: center; }
.portrait { margin: 0; max-width: 440px; }
.portrait__photo { width: 100%; aspect-ratio: 4 / 4.6; background-color: #10201b; background-image: linear-gradient(0deg, rgba(13,38,32,.75), rgba(13,38,32,0) 34%), url('https://andrekirsten.co.za/styles/images/Bail-Lawyer.png'); background-size: 100% 100%, auto 100%; background-position: center, left center; background-repeat: no-repeat; box-shadow: 18px 18px 0 var(--sage); }
.portrait figcaption { color: #92a19b; letter-spacing: .04em; margin-top: 29px; font-size: 11px; }
.about-copy h3:first-child { margin-top: 0; }
.about-copy h3 { font-size: 16px; }
.about-copy__footnote { padding-block: 19px; margin-top: 19px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.about-copy__footnote strong { color: var(--pine); }
.about-copy .button { margin-top: 8px; }

/* STEPS: Four columns on desktop; natural reading order on mobile. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 2px 26px 0 0; }
.step + .step { padding-left: 29px; border-left: 1px solid #d7e1dc; }
.step__number { display: block; color: var(--pine); font-size: 40px; font-family: var(--font-heading); letter-spacing: -.05em; line-height: 1.12; margin-bottom: 20px; }
.step h3 { color: var(--pine-light); font-size: 14px; line-height: 1.3; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: 13px; line-height: 1.9; margin-bottom: 0; }

/* WHY BAIL VARIES / THREE MINI-COLUMNS */
.section--details { padding-block: 134px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(45px, 10vw, 170px); }
.detail-copy p:first-child { margin-top: 4px; }
.detail-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--border); }
.detail-points div { min-width: 0; }
.detail-points span { display: block; font-family: var(--font-heading); font-size: 23px; color: var(--pine-light); }
.detail-points h3 { font-size: 13px; margin: 7px 0 5px; }
.detail-points p { font-size: 11px; line-height: 1.8; }

/* FAQ: Accessible native details/summary; no library required. */
.faq { padding-top: 115px; padding-bottom: 120px; }
.faq-list { border-top: 1px solid #d7e1dc; margin-top: 54px; }
.faq-list details { border-bottom: 1px solid #d7e1dc; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 8px; color: var(--pine); font-weight: 600; font-size: 15px; line-height: 1.45; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { flex: 0 0 auto; font-size: 28px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list details p { max-width: 790px; font-size: 14px; line-height: 1.9; padding: 0 45px 24px 8px; margin-bottom: 0; }
.faq-list details p a { color: var(--pine-light); }

/* FINAL CTA */
.final-cta { padding-block: 128px 143px; }
.final-cta h2 { margin-bottom: 26px; }
.final-cta p:not(.eyebrow) { max-width: 625px; margin: 0 auto 26px; font-size: 14px; }
.final-cta small { display: block; margin-top: 26px; color: #83938a; font-size: 11px; }

/* FOOTER: Links and contact details live in /includes/footer.php. */
.site-footer { background: radial-gradient(circle at 80% 0%, #245746, transparent 46%), #10382e; color: #e3efe8; padding-top: 85px; }
.footer-grid { display: grid; grid-template-columns: 1.65fr .7fr .83fr 1.08fr; gap: clamp(25px, 4vw, 60px); padding-bottom: 64px; }
.footer-brand img { width: 205px; height: auto; }
.footer-brand p { max-width: 290px; margin-top: 17px; margin-bottom: 21px; font-size: 12px; line-height: 1.95; color: #b8ccc1; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 17px; color: white; text-decoration: none; }
.footer-hours { display: block; margin-top: 8px; color: #b3cabc; font-size: 10px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer h2 { color: #bfd6c7; font-family: var(--font-body); font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.footer-links a, .footer-contact a, .footer-contact address, .footer-contact small { color: #d2e4d9; font-size: 12px; line-height: 1.8; font-weight: 400; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: white; text-decoration: underline; }
.footer-contact address { font-style: normal; margin-bottom: 6px; }
.footer-contact small { color: #afc4b6; margin-top: 5px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 20px 30px; font-size: 10px; color: #a8c0b2; }

/* MEDIUM LAPTOP/TABLET */
@media (max-width: 1100px) {
  .site-nav { gap: 10px; }
  .site-nav__logo img { width: 135px; }
  .site-nav__menu { gap: 11px; }
  .site-nav__menu a { font-size: 11px; }
  .site-nav__cta { padding: 12px 13px; font-size: 10px; }
  .hero__copy { max-width: 605px; }
  .hero__visual { left: 40%; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-contact { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .footer-contact h2 { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 44px, 720px); }
  .site-header { padding-top: 12px; }
  .site-nav { min-height: 68px; width: calc(100% - 28px); padding: 7px 9px 7px 11px; }
  .site-nav__logo img { width: 135px; }
  .site-nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 10px; margin-left: auto; border: 1px solid #dae6df; border-radius: 50%; background: white; cursor: pointer; }
  .site-nav__toggle span { display: block; height: 1.5px; width: 100%; background: var(--pine); }
  .site-nav__menu { display: none; position: absolute; z-index: 50; top: calc(100% + 9px); left: 0; right: 0; padding: 15px 20px 19px; background: white; border: 1px solid var(--border); border-radius: 21px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu a { padding: 11px 9px; font-size: 13px; }
  .site-nav__menu a.is-current { box-shadow: none; }
  .site-nav__cta { margin-left: 0; }
  .hero { min-height: 680px; padding-top: 146px; }
  .hero__visual { inset: 0 0 0 39%; opacity: .6; }
  .hero__copy { max-width: 560px; }
  .hero__lead, .hero__sub { max-width: 475px; }
  .card-grid--three { gap: 15px; }
  .service-card { padding: 27px 20px; }
  .service-card--wide { padding: 32px; }
  .about-grid { gap: 45px; }
  .footer-grid { gap: 27px; }
}

/* MOBILE: Single column/stacked sections and an accessible collapsed menu. */
@media (max-width: 640px) {
  :root { --section-space: 77px; }
  html { scroll-padding-top: 90px; }
  body { font-size: 14px; }
  .container { width: calc(100% - 40px); }
  h1 { font-size: clamp(38px, 10.9vw, 55px); }
  h2 { font-size: clamp(30px, 8vw, 43px); }
  .section-heading { margin-bottom: 33px; }
  .site-nav { gap: 9px; }
  .site-nav__logo img { width: 125px; }
  .site-nav__cta { padding: 10px 13px; font-size: 0; min-width: 38px; min-height: 38px; }
  .site-nav__cta span { font-size: 16px; }
  .hero { min-height: 0; padding-top: 155px; padding-bottom: 88px; }
  .hero__visual { inset: 0 0 0 7%; background-position: center, center, 54% center; opacity: .26; }
  .hero__visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fbfcfa 0%, rgba(251,252,250,.65) 70%, transparent); }
  .hero__side-label { display: none; }
  .hero__lead { font-size: 16px; }
  .hero__sub { font-size: 13px; }
  .hero__trust { font-size: 10px; }
  .button-group { gap: 10px; }
  .button { padding-inline: 19px; }
  .intro { padding-block: 88px 95px; }
  .intro p:not(.eyebrow) { font-size: 14px; }
  .card-grid--three, .card-grid--two { grid-template-columns: 1fr; }
  .service-card, .service-card--wide { padding: 32px 29px; min-height: 0; }
  .service-card p { font-size: 13px; }
  .section--tight-top { padding-top: 0; }
  .cta-band { padding-block: 75px; }
  .cta-band h2 { font-size: 24px; }
  .method { padding-block: 81px 89px; }
  .dot-pattern { width: 45px; height: 55px; right: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 410px; }
  .portrait__photo { aspect-ratio: 4 / 4; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .step { padding: 0 15px 0 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { border-left: 1px solid #d7e1dc; padding-left: 24px; }
  .step__number { font-size: 32px; margin-bottom: 12px; }
  .section--details { padding-block: 88px; }
  .detail-grid { grid-template-columns: 1fr; gap: 23px; }
  .detail-points { gap: 13px; }
  .faq { padding-block: 85px; }
  .faq-list { margin-top: 38px; }
  .faq-list summary { font-size: 14px; }
  .final-cta { padding-block: 90px 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 460px; }
  .footer-contact { grid-column: 1 / -1; display: flex; }
  .footer-bottom { line-height: 1.7; }
}

@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .site-nav__logo img { width: 113px; }
  .site-nav { gap: 5px; }
  .site-nav__cta { padding: 9px 11px; }
  .hero h1 { font-size: 37px; }
  .button-group .button { width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 20px; }
  .step, .step:nth-child(even) { border-left: 0; padding: 0 0 20px; border-bottom: 1px solid #d7e1dc; }
  .detail-points { grid-template-columns: 1fr; }
  .detail-points div { display: grid; grid-template-columns: 40px 1fr; column-gap: 9px; }
  .detail-points span { grid-row: span 2; }
  .detail-points h3 { margin-top: 0; }
  .detail-points p { margin-bottom: 0; }
}

/* Motion/accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
