/*
© Copyright 1990-2026 Toptronic® Ltd, all rights reserved; no part of this document may be reproduced, modified or stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of Toptronic Limited.
For copyright inquiries: jacques@toptronic.com
  PLWS :: Plazdiez Website — CSS Styles Part 4 (v2 design system, Session 0027)
  Project: Paul Lambourn Web Site (PLWS) — www.plazdiez.co.za
  Generated: 2026-08-01T17:04:59+1000
  Audience: Jacques (French, hardware/C bg), Ryan (14), Ava (9), Students (15-23)
  Contains: v2 tokens, skip-link, header v2 (shrink, Contact pill, active
    underline, slide-over menu <=820px), footer v2 (3 columns), buttons,
    section rhythm, cards, chips, home (why-strip, cta-band), reveal animation.
  Spec: docs/PLWS_Chrome_Spec_0027.md
*/

/* ============================================================
   SECTION 11: V2 DESIGN TOKENS ("Precision Industrial")
   -- Refined palette from PLWS_Plan_002_Redesign.md §2.1.
   -- Old tokens (--clr-accent etc.) still exist; new components
      use these. --clr-brand ≈ --clr-accent but slightly deeper.
   ============================================================ */
:root {
  --clr-ink: #14161a;        /* near-black: footer, dark bands        */
  --clr-surface: #1d2127;    /* cards on dark, carousel well          */
  --clr-paper: #faf7f2;      /* warm off-white page background        */
  --clr-brand: #e8a020;      /* refined amber                         */
  --clr-brand-ink: #14161a;  /* text/icons sitting ON amber           */
  --clr-steel: #8a94a6;      /* secondary text on dark, hairlines     */
  --clr-success: #1f9d63;    /* ONLY for the CLICK guarantee line     */
  --clr-focus: #ffb84d;      /* visible keyboard focus ring           */
  --header-height-shrink: 56px;
}

/* Warm paper background for the whole page (premium, less stark) */
body { background-color: var(--clr-paper); }

/* ============================================================
   SECTION 12: FOCUS + SKIP LINK (accessibility)
   -- Ava: the skip link is a secret shortcut that appears when
     someone uses the Tab key instead of a mouse!
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--clr-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--sp-md);
  top: -60px;                       /* hidden above the viewport */
  z-index: 3000;
  background: var(--clr-ink);
  color: var(--clr-paper);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  transition: top var(--trans-fast);
}
.skip-link:focus { top: var(--sp-sm); text-decoration: none; }

/* ============================================================
   SECTION 13: HEADER V2
   -- Shrink-on-scroll (JS adds .shrunk after 80px scroll).
   -- Active page = 2px amber underline (JS adds .active).
   -- "Contact" = amber pill button (the money button!).
   ============================================================ */
.site-header {
  transition: box-shadow var(--trans-normal);
}
.header-inner { transition: height var(--trans-normal); }
.header-logo img { transition: height var(--trans-normal); }

.site-header.shrunk .header-inner { height: var(--header-height-shrink); }
.site-header.shrunk { box-shadow: var(--shadow-md); }
.site-header.shrunk .header-logo img { height: 34px; }

/* Active nav link: amber underline instead of background tint */
.header-nav a {
  position: relative;
}
.header-nav a.active {
  background-color: transparent;
  color: var(--clr-charcoal);
}
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: var(--sp-sm);
  right: var(--sp-sm);
  bottom: -2px;
  height: 2px;
  background: var(--clr-brand);
  border-radius: 2px;
}

/* Contact pill — the single most important nav item */
.header-nav a.nav-cta {
  background: var(--clr-brand);
  color: var(--clr-brand-ink);
  border-radius: 999px;
  padding: var(--sp-xs) var(--sp-md);
  margin-left: var(--sp-xs);
  font-weight: 700;
}
.header-nav a.nav-cta:hover,
.header-nav a.nav-cta:focus {
  background: var(--clr-accent-hover);
  color: var(--clr-brand-ink);
  text-decoration: none;
}
.header-nav a.nav-cta.active { color: var(--clr-brand-ink); }
.header-nav a.nav-cta.active::after { display: none; }

/* Hamburger: visible charcoal on the beige header (was white-on-beige) */
.hamburger {
  color: var(--clr-charcoal);
  border: 2px solid var(--clr-charcoal);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger:hover { border-color: var(--clr-brand); color: var(--clr-brand); }

/* ============================================================
   SECTION 14: MOBILE SLIDE-OVER NAV (<= 820px)
   -- Raised from 480px: tablet nav was cramped (plan §3.1).
   -- Full-height panel sliding from the right; JS traps focus,
      Esc closes, body scroll locks via body.no-scroll.
   -- Loaded after styles_003.css, so these win at 481-820px too.
   ============================================================ */
@media screen and (max-width: 820px) {
  .hamburger { display: flex; }

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--clr-ink);
    padding: calc(var(--header-height) + var(--sp-md)) var(--sp-lg) var(--sp-lg);
    gap: 0;
    transform: translateX(100%);      /* parked off-screen right */
    transition: transform var(--trans-normal);
    z-index: 1500;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .header-nav.mobile-open { transform: translateX(0); }

  .header-nav a {
    color: var(--clr-paper);
    padding: var(--sp-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    border-radius: 0;
  }
  .header-nav a:hover,
  .header-nav a:focus { background-color: rgba(232, 160, 32, 0.12); color: var(--clr-brand); }
  .header-nav a.active { color: var(--clr-brand); }
  .header-nav a.active::after { left: 0; right: auto; width: 3px; height: 60%; bottom: 20%; }

  .header-nav a.nav-cta {
    margin: var(--sp-md) 0 0;
    text-align: center;
    padding: var(--sp-sm) var(--sp-md);
  }

  /* Hamburger floats above the open panel so it becomes the close button */
  .hamburger { position: relative; z-index: 1600; }
  body.no-scroll { overflow: hidden; }
}

/* ============================================================
   SECTION 15: FOOTER V2 (3 columns)
   -- Jacques: like the connector pinout at the bottom of a
     datasheet — brand, sitemap, contact, in that order.
   ============================================================ */
.site-footer {
  background: var(--clr-ink);
  color: var(--clr-steel);
  text-align: left;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--sp-xl);
}
.footer-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--clr-paper);
  display: block;
  margin-bottom: var(--sp-sm);
}
.footer-brand p { margin-bottom: var(--sp-xs); font-size: 0.9rem; }
.footer-location { opacity: 0.8; }
.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-brand);
  margin-bottom: var(--sp-md);
}
.footer-nav a {
  display: block;
  color: var(--clr-steel);
  padding: var(--sp-xs) 0;
  font-size: 0.9rem;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--clr-brand); text-decoration: none; }
.footer-contact p { font-size: 0.9rem; }
.footer-mail {
  display: inline-block;
  margin-top: var(--sp-xs);
  color: var(--clr-brand);
  font-weight: 600;
  word-break: break-all;
}
.footer-copyright {
  max-width: var(--max-width);
  margin: var(--sp-xl) auto 0;
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(138, 148, 166, 0.25);
  text-align: center;
}

/* ============================================================
   SECTION 16: BUTTONS + SECTION RHYTHM
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: var(--sp-sm) var(--sp-xl);
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast),
              transform var(--trans-fast), box-shadow var(--trans-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-amber { background: var(--clr-brand); color: var(--clr-brand-ink); }
.btn-amber:hover { background: var(--clr-accent-hover); color: var(--clr-brand-ink); }
.btn-outline { border-color: var(--clr-brand); color: var(--clr-brand); background: transparent; }
.btn-outline:hover { background: var(--clr-brand); color: var(--clr-brand-ink); }

.section { padding: var(--sp-3xl) var(--sp-lg); }
.section-dark { background: var(--clr-ink); color: var(--clr-paper); }
.section-head { max-width: 800px; margin: 0 auto var(--sp-2xl); text-align: center; }
.section-head .eyebrow {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--clr-brand); font-weight: 600; display: block; margin-bottom: var(--sp-sm);
}
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--sp-md); }
.section-dark .section-head h2 { color: var(--clr-paper); }
.section-head p { font-size: 1.05rem; opacity: 0.85; }

/* ============================================================
   SECTION 17: CARDS + CHIPS
   -- Cards lift 2px on hover with an amber top bar (plan §2.4).
   -- Hover effects gated behind (hover: hover) so touch users
      never get stuck states.
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.card {
  background: var(--clr-white);
  border: 1px solid rgba(20, 22, 26, 0.08);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-normal);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .card:hover::before { transform: scaleX(1); }
}
.card-icon { width: 40px; height: 40px; color: var(--clr-brand); margin-bottom: var(--sp-md); }
.card-title { font-size: 1.15rem; margin-bottom: var(--sp-xs); }
.card-outcome { font-weight: 600; color: var(--clr-accent-hover); font-size: 0.95rem; margin-bottom: var(--sp-sm); }
.card-desc { font-size: 0.95rem; opacity: 0.85; margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.chip {
  background: rgba(232, 160, 32, 0.12);
  color: var(--clr-charcoal);
  border: 1px solid rgba(232, 160, 32, 0.4);
  border-radius: 999px;
  padding: var(--sp-xs) var(--sp-md);
  font-size: 0.85rem;
  font-weight: 600;
}
.section-dark .chip { color: var(--clr-paper); }

/* ============================================================
   SECTION 18: HOME — WHY STRIP + CTA BAND
   -- "Why PlazDiez": 6 proof chips from Plazdiez_Uniquenesses.docx.
   -- CTA band: dark, asks for the business (fixes defect D7).
   ============================================================ */
.why-strip .card-grid { grid-template-columns: repeat(3, 1fr); }

.cta-band { text-align: center; }
.cta-band h2 { color: var(--clr-paper); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--sp-md); }
.cta-band p { max-width: 640px; margin: 0 auto var(--sp-xl); color: var(--clr-steel); font-size: 1.1rem; }

/* ============================================================
   SECTION 19: REVEAL-ON-SCROLL
   -- .reveal starts hidden+shifted; JS adds .revealed once.
   -- Disabled under prefers-reduced-motion (plan §3.4).
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms, transform 500ms; transition-timing-function: cubic-bezier(.2,.6,.2,1); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SECTION 20: V2 RESPONSIVE (cards / footer / why-strip)
   ============================================================ */
@media screen and (max-width: 1024px) {
  .card-grid, .why-strip .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
  .card-grid, .why-strip .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .section { padding: var(--sp-2xl) var(--sp-md); }
}
@media screen and (min-width: 2561px) {
  .footer-wordmark { font-size: 2rem; }
}
