/* New World Automotive — Styles (Satoshi, brand system, clean UI)
   - Includes HARD FIX for Final Outcomes cards
   - Includes AEO example mini tiles
*/

:root{
  /* Core palette */
  --wine: #431C1C;
  --wheat: #D9C08D;
  --taupe: #857A7A;
  --off: #F5F3ED;
  --warm: #E9DCD6;
  --coral: #E76F51;

  /* Industry cue for Automotive (highlight only) */
  --accent: #D28C45;

  /* UI */
  --text: rgba(67,28,28,0.78);
  --text-strong: rgba(67,28,28,0.88);
  --muted: rgba(133,122,122,0.95);
  --border: rgba(67,28,28,0.14);
  --shadow: 0 14px 34px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 24px rgba(0,0,0,0.06);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--off);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

h1,h2,h3{
  margin: 0 0 8px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
h1{ font-weight: 800; font-size: clamp(36px, 4.3vw, 56px); line-height: 1.05; }
h2{ font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
h3{ font-weight: 700; font-size: 18px; line-height: 1.25; }

p{ margin: 0 0 10px; color: var(--text); line-height: 1.6; }

strong{ color: var(--text-strong); font-weight: 700; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,243,237,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(67,28,28,0.08);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand__mark{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(210,140,69,0.15);
}
.brand__name{
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  color: rgba(67,28,28,0.68);
}
.nav a{ padding: 8px 8px; border-radius: 10px; }
.nav a:hover{ background: rgba(233,220,214,0.55); text-decoration: none; }

@media (max-width: 980px){
  .nav{ display: none; }
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(67,28,28,0.14);
  background: rgba(255,255,255,0.55);
  color: rgba(67,28,28,0.82);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn--small{ padding: 10px 14px; font-size: 14px; }
.btn--full{ width: 100%; }
.btn--primary{
  background: var(--accent);
  border-color: rgba(0,0,0,0);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 14px 30px rgba(210,140,69,0.24);
}
.btn--accent{
  background: rgba(74,94,115,0.92); /* slate-ish button style from prior sites */
  border-color: rgba(0,0,0,0);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 14px 30px rgba(74,94,115,0.18);
}

/* Hero */
.hero{
  position: relative;
  padding: 42px 0 18px;
  overflow: hidden;
}
.hero__fade{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 520px at 10% 10%, rgba(217,192,141,0.18), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(210,140,69,0.14), transparent 60%);
  pointer-events: none;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
  position: relative;
}
.hero__left{ padding-top: 10px; }

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(67,28,28,0.10);
  background: rgba(233,220,214,0.45);
  color: rgba(67,28,28,0.62);
  font-weight: 600;
  font-size: 13px;
}
.kicker__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(74,94,115,0.92);
  box-shadow: 0 0 0 6px rgba(74,94,115,0.10);
}

.hero__context{
  margin-top: 14px;
  max-width: 62ch;
  color: rgba(67,28,28,0.70);
}

.hero__title{ margin-top: 10px; }

.hero__slides{
  margin-top: 12px;
  min-height: 58px;
}
.hero__slide{
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
  position: absolute;
  max-width: 62ch;
  color: rgba(133,122,122,0.95);
}
.hero__slides{ position: relative; }
.hero__slide.is-active{
  opacity: 1;
  transform: translateY(0px);
  position: relative;
}

.hero__stats{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.stat{
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}
.stat__value{
  font-weight: 800;
  color: rgba(67,28,28,0.84);
  margin-bottom: 4px;
}
.stat__label{
  font-size: 13px;
  color: rgba(133,122,122,0.95);
}

.hero__diagram{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(67,28,28,0.62);
}
.diagram__node{
  border: 1px solid rgba(67,28,28,0.10);
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.diagram__arrow{
  width: 16px;
  height: 2px;
  background: rgba(133,122,122,0.55);
  border-radius: 99px;
}

.note{
  margin-top: 16px;
  background: rgba(233,220,214,0.45);
  border: 1px solid rgba(67,28,28,0.10);
  border-radius: 16px;
  padding: 12px 14px;
  color: rgba(67,28,28,0.70);
  box-shadow: var(--shadow-soft);
}

/* Panels + forms */
.panel{
  border-radius: 18px;
  border: 1px solid rgba(67,28,28,0.12);
  background: rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.panel--glass{
  background: rgba(255,255,255,0.48);
}
.panel__title{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.panel__sub{
  margin: 0 0 14px;
  color: rgba(133,122,122,0.95);
  font-size: 14px;
}

.form{ display: grid; gap: 12px; }
.form__row{ display: grid; gap: 6px; }
.form__row--2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(67,28,28,0.62);
  letter-spacing: 0.02em;
}

input, select, textarea{
  width: 100%;
  font-family: inherit;
  border-radius: 14px;
  border: 1px solid rgba(67,28,28,0.14);
  background: rgba(245,243,237,0.60);
  padding: 12px 12px;
  font-size: 14px;
  color: rgba(67,28,28,0.82);
  outline: none;
}
textarea{ resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(210,140,69,0.55);
  box-shadow: 0 0 0 4px rgba(210,140,69,0.12);
}

.fineprint{
  font-size: 12px;
  color: rgba(133,122,122,0.90);
  margin: 6px 0 0;
}

/* Sections */
.section{
  padding: 54px 0;
}
.section--alt{
  background: rgba(233,220,214,0.35);
  border-top: 1px solid rgba(67,28,28,0.06);
  border-bottom: 1px solid rgba(67,28,28,0.06);
}
.section__head{
  margin-bottom: 18px;
}
.section__head p{ margin: 6px 0 0; color: rgba(133,122,122,0.95); }

.cards{
  display: grid;
  gap: 14px;
}
.cards--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
}
.card__tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(67,28,28,0.60);
  background: rgba(233,220,214,0.55);
  border: 1px solid rgba(67,28,28,0.10);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Bullets */
.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(67,28,28,0.70);
}
.bullets li{ margin: 6px 0; }

/* Case cards */
.case-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.case-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.case-card__tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(74,94,115,0.88);
  background: rgba(74,94,115,0.10);
  border: 1px solid rgba(74,94,115,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.case-card__sub{ color: rgba(133,122,122,0.95); margin-bottom: 8px; }
.case-card__outcome{
  margin-top: 12px;
  background: rgba(233,220,214,0.40);
  border: 1px solid rgba(67,28,28,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(67,28,28,0.70);
}

/* Roles */
.chipbar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.chip{
  border: 1px solid rgba(67,28,28,0.14);
  background: rgba(255,255,255,0.45);
  color: rgba(67,28,28,0.72);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip.is-active{
  background: rgba(74,94,115,0.92);
  border-color: rgba(0,0,0,0);
  color: rgba(255,255,255,0.96);
}

.roles{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.role-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease;
}
.role-card:hover{ transform: translateY(-1px); }
.role-card__title{
  font-weight: 800;
  color: rgba(67,28,28,0.84);
  margin-bottom: 4px;
}
.role-card__meta{
  color: rgba(133,122,122,0.95);
  font-size: 13px;
  line-height: 1.45;
}
.role-card.is-hidden{ display: none; }

.strip{
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(67,28,28,0.10);
  background: rgba(233,220,214,0.35);
  box-shadow: var(--shadow-soft);
}
.strip__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}
.strip__title{
  font-weight: 900;
  color: rgba(67,28,28,0.84);
  margin-bottom: 4px;
}
.strip__text{
  color: rgba(133,122,122,0.95);
  font-size: 13px;
}

/* Process */
.section--deep{
  background: var(--wine);
}
.section__head--light h2,
.section__head--light p{
  color: rgba(245,243,237,0.92);
}
.section__head--light p{
  color: rgba(233,220,214,0.92);
}

.timeline{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

/* How we deliver steps — light theme (matches Accounting look) */
.step{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}
.step__num{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(233,220,214,0.55);
  border: 1px solid rgba(67,28,28,0.10);
  color: rgba(67,28,28,0.86);
  font-weight: 900;
}
.step__title{
  font-weight: 900;
  color: rgba(67,28,28,0.88);
  margin-bottom: 2px;
}
.step__text{
  color: rgba(133,122,122,0.95);
  font-size: 14px;
}

/* AEO example */
.aeo-case{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(67,28,28,0.14);
  background: rgba(233,220,214,0.42);
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
}
.aeo-case__tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(74,94,115,0.88);
  background: rgba(74,94,115,0.10);
  border: 1px solid rgba(74,94,115,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.aeo-case__meta{
  margin-top: 12px;
  color: rgba(133,122,122,0.95);
  font-size: 13px;
}

/* AEO section cards (missing boxes fix) */
.aeo-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.aeo-card{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
}
.aeo-card h3{
  margin: 0 0 6px;
  color: var(--text-strong);
}
.aeo-pill{
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(67,28,28,0.60);
  background: rgba(233,220,214,0.55);
  border: 1px solid rgba(67,28,28,0.10);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.aeo-example{
  margin-top: 14px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
}
.aeo-example h3{ margin:0 0 8px; color: var(--text-strong); }
.aeo-example p{ margin:0; color: rgba(133,122,122,0.95); }

/* Governance row (missing boxes fix) */
.trust-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.trust-item{
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: var(--shadow-soft);
}
.trust-title{
  font-weight: 900;
  color: rgba(67,28,28,0.88);
  margin-bottom: 6px;
}
.trust-text{
  color: rgba(133,122,122,0.95);
  font-size: 14px;
  line-height: 1.55;
}


/* AEO mini tiles (visual) */
.aeo-mini{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.aeo-mini__item{
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 14px;
  padding: 12px 12px;
}
.aeo-mini__k{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(67,28,28,0.55);
  margin-bottom: 6px;
}
.aeo-mini__v{
  font-size: 15px;
  font-weight: 900;
  color: rgba(67,28,28,0.82);
  margin-bottom: 4px;
}
.aeo-mini__s{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(67,28,28,0.70);
}

/* Final */
.section--final{
  padding: 56px 0;
  background: rgba(245,243,237,1);
}
.final{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.final__left h2{ margin-bottom: 6px; }
.final__left p{ color: rgba(133,122,122,0.95); }

/* HARD FIX: Outcomes cards */
.section--final .outcomes{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.section--final .outcome{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(67,28,28,0.14);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.section--final .outcome__tag{
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(67,28,28,0.66);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(67,28,28,0.12);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.section--final .outcome__text{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(67,28,28,0.78);
}

.panel--final{
  background: rgba(255,255,255,0.60);
}

/* Footer */
.footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(67,28,28,0.08);
}
.footer__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer__meta{
  margin-top: 6px;
  color: rgba(133,122,122,0.95);
  font-size: 13px;
}
.footer__links{
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__links a{
  border: 1px solid rgba(67,28,28,0.12);
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(67,28,28,0.72);
  box-shadow: var(--shadow-soft);
}
.footer__links a:hover{ text-decoration: none; transform: translateY(-1px); }

/* Reveal animations (works with your app.js) */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px){
  .hero__grid{ grid-template-columns: 1fr; }
  .panel{ position: relative; }
  .case-grid{ grid-template-columns: 1fr; }
  .cards--3{ grid-template-columns: 1fr; }
  .roles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final{ grid-template-columns: 1fr; }
  .aeo-mini{ grid-template-columns: 1fr; }
  .aeo-cards{ grid-template-columns: 1fr; }
  .trust-row{ grid-template-columns: 1fr; }

}

@media (max-width: 640px){
  .container{ width: min(var(--container), calc(100% - 28px)); }
  .form__row--2{ grid-template-columns: 1fr; }
  .roles{ grid-template-columns: 1fr; }
  .strip__inner{ flex-direction: column; align-items: flex-start; }
}
