/* Antranova Website – V2.7.3
   components.css
   Purpose: reusable components (hero, card, section, pills, figures, lists)
*/

/* Content lists: strict left alignment (no marker overshoot) */
main ul{
  list-style:none;
  margin: 12px 0;
  padding: 0;
}
main ul li{
  position:relative;
  margin: 8px 0;
  padding-left: 1.1rem;
}
main ul li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0.2em;
  color: var(--muted);
}

/* Hero */
.hero{
  background: linear-gradient(180deg, var(--soft), #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  grid-template-columns: 1fr minmax(360px, 520px);
}
.hero h1{
  margin:0 0 10px;
  font-size:1.65rem;
  line-height:1.2;
}
.hero p{
  margin:0 0 14px;
  color: var(--muted);
  max-width: 78ch;
}

.kpi{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Hero pills: allow full width so pills can flow in rows */
.hero .kpi{
  max-width: none !important;
  width: 100% !important;
  justify-content: flex-start;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.92rem;
  color: var(--text);
}

/* Cards */
.card{
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2{
  margin:0 0 8px;
  font-size:1.1rem;
}
.card p{ margin:0; color: var(--muted); }

/* Sections */
.section{
  margin-top: 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section h2{
  margin:0 0 10px;
  font-size:1.25rem;
}
.section p{
  margin:0 0 10px;
  color: var(--muted);
  max-width: 85ch;
}

.section ul,
.section ol{
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.section li{ margin: 8px 0; }
.section li p{ margin: 6px 0 0; }

/* SVG illustrations */
.hero-split{
  display:grid;
  grid-template-columns: 1.1fr minmax(420px,500px);
  gap: 18px;
  align-items:start;
}
.hero-ill{
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  max-width: 560px;
  justify-self: end;
}
.hero-ill img{
  width:100%;
  height:auto;
  display:block;
}

/* Keep the old illustration sizing only for non-photo hero blocks */
.hero-ill:not(.hero-ill--photo) img{
  aspect-ratio: 960 / 420;
  object-fit: contain;
}

/* Photo variant: wrapper should NOT create a huge empty area */
.hero-ill.hero-ill--photo{
  border: 0;
  background: transparent;
  padding: 0;
  max-width: 500px;
}

.portrait{
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.portrait img{
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  border-radius: 16px;
}

.portrait-caption{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.card .icon{
  width:40px;
  height:40px;
  color: var(--muted);
  margin-bottom: 10px;
}
.card .icon img{ width:100%; height:100%; display:block; }

.figure{
  margin-top: 14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding: 12px;
  color: var(--muted);
}
.figure img{ width:100%; height:auto; display:block; }

.figure--wide{
  max-width: 960px;
  margin-left:auto;
  margin-right:auto;
}
.figure--icon{
  max-width: 110px;
  padding: 10px;
}
.figure--icon img{ width: 86px; }

@media (max-width: 820px){
  .card{ grid-column: span 12; }
  .hero{ padding: 20px; }
  .hero h1{ font-size: 1.45rem; }
  .hero-split{ grid-template-columns: 1fr; }
  .hero-ill{ max-width: 150%; justify-self: start; }
}

/* Brand: never underline */
a.brand,
.brand a{
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

a.brand:focus-visible,
.brand a:focus-visible{
  outline: 2px solid var(--line);
  outline-offset: 4px;
  border-radius: 10px;
}


