/* ============================================================
   Beton Verteilung DACH — Showcase Website Styles
   ============================================================ */

:root {
  --navy:      #1a3c5e;
  --navy-dark: #102640;
  --navy-mid:  #1e4976;
  --orange:    #e87b35;
  --orange-lt: #f59d5e;
  --concrete:  #a09890;
  --concrete-lt: #e8e2dc;
  --bg:        #f5f4f0;
  --bg-card:   #ffffff;
  --text:      #1c1c1c;
  --text-muted:#6b6b6b;
  --border:    #ddd8d0;
  --green:     #27ae60;
  --yellow:    #f39c12;
  --red:       #e74c3c;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(26,60,94,.10);
  --shadow-lg: 0 8px 32px rgba(26,60,94,.16);
  --transition: .2s ease;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-lt); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: .75rem; color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ── Utilities ── */
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.bold        { font-weight: 700; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.badge-green  { background: #e6f7ed; color: #1a8a45; }
.badge-yellow { background: #fef6e0; color: #b8860b; }
.badge-red    { background: #fdecea; color: #c0392b; }
.badge-navy   { background: #e3ecf5; color: var(--navy); }
.badge-orange { background: #fef0e5; color: var(--orange); }
.badge-gray   { background: #f0eeec; color: #666; }

.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .6rem;
}
.section-title { color: var(--navy); margin-bottom: .5rem; }
.section-sub   { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.divider { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin: .8rem 0 1.4rem; }

/* ── Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-alt { background: var(--concrete-lt); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary   { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-lt); border-color: var(--orange-lt); color: #fff; }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white     { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--concrete-lt); border-color: var(--concrete-lt); }
.btn-sm        { padding: 7px 16px; font-size: .85rem; }

/* ── Card ── */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 22px; }
.card-header { padding: 18px 22px 0; }
.card-footer { padding: 0 22px 18px; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }

/* ── NAV ── */
#nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: background var(--transition);
}
#nav .inner {
  display: flex; align-items: center; gap: 18px;
  max-width: 1440px; margin: 0 auto; padding: 0 32px; height: 62px;
}
/* Logo + links group on the left; the CTA cluster is pushed to the right so
   no empty gap opens up between the logo and the menu. */
#nav .nav-cta { margin-left: auto; }
#nav .logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.01em;
}
#nav .logo span { color: var(--orange); }
/* The concrete-placer mark uses the same orange as "Verteilung" (currentColor). */
#nav .logo .icon { font-size: 1.5rem; color: var(--orange); display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px; color: rgba(255,255,255,.78);
  font-size: .9rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a.active { color: var(--orange-lt); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Outline button needs light text on the dark navy navbar */
#nav .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
#nav .btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#hero .container { position: relative; z-index: 1; }
#hero .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
#hero .hero-text .eyebrow { color: var(--orange); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }
#hero h1 { color: #fff; margin-bottom: 1.2rem; }
#hero h1 em { color: var(--orange-lt); font-style: normal; }
#hero .lead { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
#hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
#hero .hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3rem;
}
#hero .stat-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 20px;
}
#hero .stat-chip .number { font-size: 1.9rem; font-weight: 800; color: var(--orange-lt); line-height: 1; }
#hero .stat-chip .label  { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; }

.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-visual .v-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.hero-visual .v-card .emoji { font-size: 2.2rem; margin-bottom: 8px; }
.hero-visual .v-card .vt    { font-size: .85rem; color: rgba(255,255,255,.8); font-weight: 600; }
.hero-visual .v-card .vs    { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.hero-visual .v-card.big    { grid-column: 1/-1; display: flex; align-items: center; gap: 18px; text-align: left; }
.hero-visual .v-card.big .emoji { font-size: 3rem; }

/* ── FEATURES ── */
.feature-card { padding: 28px; }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h4 { color: var(--navy); margin-bottom: 8px; }

/* ── STATS BAR ── */
#stats-bar {
  background: var(--navy); color: #fff; padding: 40px 0;
}
#stats-bar .grid-4 { gap: 0; }
#stats-bar .stat-item {
  text-align: center; padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}
#stats-bar .stat-item:last-child { border-right: none; }
#stats-bar .stat-number { font-size: 2.2rem; font-weight: 800; color: var(--orange-lt); }
#stats-bar .stat-label  { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── SECTION TABS ── */
.tab-bar {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 2px solid var(--border); background: #fff; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.tab-btn:hover  { border-color: var(--navy); color: var(--navy); }
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; gap: 12px; margin-bottom: 28px;
  flex-wrap: wrap; align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font); background: #fff; color: var(--text);
  transition: border-color var(--transition);
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--navy);
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar .filter-count { color: var(--text-muted); font-size: .88rem; margin-left: auto; }

/* ── SUPPLIER CARD ── */
.supplier-card .card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.supplier-card .s-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.supplier-card .s-location { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .85rem; margin-top: 3px; }
.supplier-card .score-ring {
  min-width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.score-high   { background: var(--green); }
.score-mid    { background: var(--yellow); }
.score-low    { background: var(--red); }

.supplier-card .s-cats  { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.supplier-card .s-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.supplier-card .s-stat  { font-size: .83rem; color: var(--text-muted); }
.supplier-card .s-stat strong { display: block; color: var(--text); font-size: .92rem; }
.supplier-card .certs   { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.cert-badge {
  padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 600;
  background: #e3ecf5; color: var(--navy);
}

/* ── PRODUCT CARD ── */
.product-card .p-icon   { font-size: 3rem; text-align: center; padding: 20px 0 8px; }
.product-card .p-sku    { text-align: center; font-size: .78rem; font-weight: 700; color: var(--concrete); letter-spacing: .08em; text-transform: uppercase; }
.product-card .p-name   { text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 4px 0 14px; }
.product-card .p-specs  { font-size: .83rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card .p-specs span { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); }
.product-card .p-specs span:last-child { border-bottom: none; }
.product-card .p-specs span strong { color: var(--text); }
.product-card .p-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.product-card .p-price  { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.product-card .p-price small { font-size: .72rem; font-weight: 400; color: var(--text-muted); display: block; }

/* ── CUSTOMER CARD ── */
.customer-card .c-head  { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.customer-card .c-avatar {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.customer-card .c-name  { font-weight: 700; font-size: 1rem; color: var(--navy); }
.customer-card .c-sub   { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.customer-card .c-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.customer-card .c-m     { text-align: center; }
.customer-card .c-m .val { font-size: 1rem; font-weight: 700; color: var(--navy); }
.customer-card .c-m .lbl { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.churn-bar { height: 5px; background: var(--border); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.churn-fill { height: 100%; border-radius: 999px; }
.churn-low  { background: var(--green); }
.churn-mid  { background: var(--yellow); }
.churn-high { background: var(--red); }

/* ── SCORE BAR ── */
.score-bar { background: var(--border); border-radius: 999px; height: 6px; overflow: hidden; margin-top: 4px; }
.score-fill { height: 100%; border-radius: 999px; background: var(--green); }

/* ── CHARTS SECTION ── */
.chart-card { padding: 24px; }
.chart-card h4 { color: var(--navy); margin-bottom: 16px; }
.chart-wrap { position: relative; height: 220px; }

/* ── TABLE ── */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; }
thead { background: var(--navy); color: #fff; }
thead th { padding: 12px 16px; font-size: .83rem; font-weight: 600; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 12px 16px; font-size: .88rem; vertical-align: middle; }

/* ── NETWORK MAP ── */
#network-map {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--radius); padding: 40px; text-align: center; color: #fff;
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
#network-map .map-countries { display: flex; gap: 30px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
#network-map .map-country {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 20px 28px; min-width: 140px;
}
#network-map .map-country .flag { font-size: 2.5rem; margin-bottom: 8px; }
#network-map .map-country .cname { font-weight: 700; margin-bottom: 4px; }
#network-map .map-country .cstats { font-size: .82rem; color: rgba(255,255,255,.65); }
.connector-line { color: rgba(255,255,255,.3); font-size: 1.5rem; display: flex; align-items: center; }

/* ── CERTIFICATION GRID ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cert-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px;
}
.cert-item .cert-icon { font-size: 1.6rem; flex-shrink: 0; }
.cert-item .cert-code { font-weight: 700; font-size: .9rem; color: var(--navy); }
.cert-item .cert-label{ font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ── CONTACT / CTA ── */
#contact {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 80px 0; text-align: center;
}
#contact h2 { color: #fff; margin-bottom: 1rem; }
#contact .lead { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2.5rem; }
#contact .cta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 3rem; }
#contact .cta-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 20px; text-align: center;
}
#contact .cta-card .icon { font-size: 2rem; margin-bottom: 12px; }
#contact .cta-card h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
#contact .cta-card p  { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,.6);
  padding: 36px 0 24px;
}
footer .f-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap; gap: 16px;
}
footer .f-logo { font-weight: 800; font-size: 1.1rem; color: #fff; }
footer .f-logo span { color: var(--orange); }
footer .f-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .f-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); }
footer .f-links a:hover { color: var(--orange-lt); }
footer .f-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.f-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.f-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 3px 10px; font-size: .75rem; color: rgba(255,255,255,.7);
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg); transition: opacity var(--transition), transform var(--transition);
  font-size: 1.1rem; opacity: 0; pointer-events: none; transform: translateY(8px);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scroll-top:hover { background: var(--navy); }

/* ── TOOLTIP ── */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
  background: var(--navy-dark); color: #fff; font-size: .75rem; padding: 5px 10px;
  border-radius: 6px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--transition); z-index: 99;
}
[data-tip]:hover::after { opacity: 1; }

/* ── PROGRESS BAR ANIMATION ── */
@keyframes fillBar { from { width: 0; } to { width: var(--w); } }
.animated .score-fill { animation: fillBar .8s ease forwards; }
.animated .churn-fill { animation: fillBar .8s ease forwards; }

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 8px 10px; font-size: .85rem; }
}

/* Tablet / mobile: collapse the nav into a hamburger-driven drawer */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Let the bar grow when the drawer opens (was a fixed 62px height) */
  #nav .inner { flex-wrap: wrap; height: auto; min-height: 62px; row-gap: 0; }
  .nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 8px;
    background: var(--navy);   /* solid backdrop so links are always readable */
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 14px; font-size: .95rem; border-radius: 8px;
    color: #fff; background: rgba(255,255,255,.06);
  }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.16); }
  .nav-cta { gap: 8px; }
}

@media (max-width: 768px) {
  #hero .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  #stats-bar .grid-4 { grid-template-columns: 1fr 1fr; }
  #stats-bar .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  #contact .cta-cards { grid-template-columns: 1fr; }
  .nav-cta .btn-outline { display: none; }
  .section-header.flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  /* AI Network picker: stack every control full-width */
  .ai-net-picker, .ai-net-picker.ai-net-picker-wide { flex-direction: column; align-items: stretch; }
  .ai-net-picker select, .ai-net-picker .btn-primary { flex: 1 1 auto; width: 100%; }
  .ai-reach-arrow { display: none; }
  /* ML decision-support controls stack */
  .scm-ml-controls { flex-direction: column; align-items: stretch; }
  .scm-ml-controls .btn-primary { width: 100%; }
  /* Cookie banner: stack text over full-width buttons */
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-ghost, .cookie-actions .btn-primary { flex: 1 1 auto; }
  /* Inquiry form: single-column field pairs */
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  /* Modal padding a touch tighter */
  .modal { padding: 22px 20px 20px; }
  .network-opt-head { flex-direction: column; align-items: stretch; }
  .network-opt-head .btn-primary { width: 100%; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  #stats-bar .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .ai-net-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ai-net-action, .ai-net-action .btn-primary { width: 100%; }
  .contact-direct { flex-direction: column; }
  .contact-item { min-width: 0; width: 100%; }
  .ai-net-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ── LOADING ANIMATION ── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8e2dc 25%, #f0ece8 50%, #e8e2dc 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}

/* ── COUNTER ── */
.counter { font-variant-numeric: tabular-nums; }

/* ── SECTION SPECIFIC OVERRIDES ── */
#products  { background: var(--bg); }
#suppliers { background: var(--concrete-lt); }
#customers { background: var(--bg); }
#analytics { background: var(--concrete-lt); }
#network   { background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%); }
#network .section-title { color: #fff; }
#network .section-sub   { color: rgba(255,255,255,.72); }
#network .divider       { background: var(--orange); }

.section-header { margin-bottom: 36px; }
.section-header.flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* product top strip colour */
.product-card .cat-strip {
  height: 4px;
  background: var(--orange);
}
.cat-Concrete\ Pumps     .cat-strip { background: #e87b35; }
.cat-Concrete\ Mixers    .cat-strip { background: #27ae60; }
.cat-Placing\ Booms      .cat-strip { background: #2980b9; }
.cat-Batching\ Plants    .cat-strip { background: #8e44ad; }
.cat-Distributors        .cat-strip { background: #16a085; }
.cat-Accessories         .cat-strip { background: #95a5a6; }

/* ══════════════════════════════════════════════════════
   INQUIRE-US BUTTON + MODAL FORM
══════════════════════════════════════════════════════════ */
.btn-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 14px;
  background: var(--orange, #e87b35);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  width: 100%;
  transition: background .15s ease, transform .15s ease;
}
.btn-inquire:hover { background: #c8631e; transform: translateY(-1px); }
.btn-inquire:active { transform: translateY(0); }
.btn-inquire::before { content: "✉"; font-size: 1rem; }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 30, 50, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 28px 32px 24px;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(15px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.modal h3 {
  margin: 0 0 6px;
  color: var(--navy, #1a2c44);
  font-size: 1.35rem;
  padding-right: 30px;
}
.modal-sub { color: var(--text-muted, #6a7a8a); font-size: .9rem; margin: 0 0 20px; }

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted, #6a7a8a);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close:hover { background: #f1f3f6; color: var(--navy); }

#inquiry-form .form-row { margin-bottom: 14px; }
#inquiry-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy, #1a2c44);
  margin-bottom: 5px;
}
#inquiry-form .req { color: #d04040; margin-left: 2px; }
#inquiry-form input[type="text"],
#inquiry-form input[type="email"],
#inquiry-form input[type="tel"],
#inquiry-form select,
#inquiry-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d6de;
  border-radius: 6px;
  font-size: .94rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
#inquiry-form input:focus,
#inquiry-form select:focus,
#inquiry-form textarea:focus {
  outline: none;
  border-color: var(--orange, #e87b35);
  box-shadow: 0 0 0 3px rgba(232, 123, 53, .15);
}
#inquiry-form textarea { resize: vertical; min-height: 80px; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }

.form-consent .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: .85rem;
  color: var(--text-muted, #6a7a8a);
  cursor: pointer;
}
.form-consent input[type="checkbox"] { margin-top: 3px; }

.form-status {
  min-height: 1.2em;
  font-size: .88rem;
  margin: 6px 0 4px;
}
.form-status.is-error   { color: #c0392b; }
.form-status.is-success { color: #27ae60; }
.form-status.is-info    { color: var(--text-muted, #6a7a8a); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.btn-ghost,
.btn-primary {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted, #6a7a8a);
  border: 1px solid #d0d6de;
}
.btn-ghost:hover { background: #f1f3f6; color: var(--navy); }
.btn-primary {
  background: var(--orange, #e87b35);
  color: #fff;
}
.btn-primary:hover { background: #c8631e; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

/* ── Direct contact block in the CTA section ──────────────── */
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px auto 8px;
  max-width: 720px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  min-width: 260px;
}
.contact-item:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}
.contact-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange, #e87b35);
  color: #fff;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-weight: 600;
  font-size: .96rem;
}

/* ══════════════════════════════════════════════════════
   SUPPLY CHAIN MANAGEMENT SECTION
══════════════════════════════════════════════════════════ */
.scm-group-title {
  color: var(--navy, #1a2c44);
  font-size: 1.15rem;
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange, #e87b35);
  display: inline-block;
}
.scm-card {
  border-left: 4px solid var(--orange, #e87b35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.scm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.scm-card .scm-icon { font-size: 2rem; margin-bottom: 8px; }
.scm-card h4 { color: var(--navy, #1a2c44); margin: 0 0 6px; font-size: 1.05rem; }
.scm-card p { font-size: .85rem; color: var(--text-muted, #6a7a8a); line-height: 1.5; margin: 0 0 10px; }
.scm-card .scm-metrics {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.scm-card .scm-metric {
  background: #f1f3f6; border-radius: 5px; padding: 4px 9px;
  font-size: .76rem; color: var(--navy, #1a2c44); font-weight: 600;
}
.scm-card .scm-metric span { color: var(--text-muted, #6a7a8a); font-weight: 400; }
.scm-card .scm-loading { font-size: .8rem; color: var(--text-muted, #6a7a8a); font-style: italic; }

.scm-flow-card {
  border-top: 4px solid var(--navy, #1a2c44);
  text-align: center;
}
.scm-flow-card .scm-icon { font-size: 2.4rem; margin-bottom: 6px; }
.scm-flow-card h4 { color: var(--navy, #1a2c44); margin: 0 0 8px; }
.scm-flow-card p  { font-size: .84rem; color: var(--text-muted, #6a7a8a); line-height: 1.5; }
.scm-flow-card .scm-flow-tags {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px;
}
.scm-flow-card .scm-flow-tag {
  background: var(--navy, #1a2c44); color: #fff; border-radius: 4px;
  padding: 3px 8px; font-size: .72rem;
}

/* ML panel: wider cards with comfortable internal padding */
#scm-ml-panel {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}
.scm-ml-card { text-align: left; padding: 28px 30px; }
.scm-ml-card .scm-ml-icon { font-size: 1.9rem; margin-bottom: 8px; }
.scm-ml-card h4 { color: var(--navy, #1a2c44); margin: 0 0 8px; font-size: 1.1rem; }
.scm-ml-card p  { font-size: .85rem; color: var(--text-muted, #6a7a8a); margin: 0 0 16px; line-height: 1.55; }
.scm-ml-controls { display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.scm-ml-controls input,
.scm-ml-controls select {
  flex: 1 1 0; min-width: 0; width: 0; padding: 8px 10px; border: 1px solid #d0d6de;
  border-radius: 6px; font-size: .85rem; font-family: inherit; background: #fff;
}
.scm-ml-controls input:focus,
.scm-ml-controls select:focus {
  outline: none; border-color: var(--orange, #e87b35);
  box-shadow: 0 0 0 3px rgba(232,123,53,.15);
}
.scm-ml-controls .btn-primary { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; }
.scm-ml-out {
  background: #1a2c44; color: #d6e2f0; border-radius: 6px;
  padding: 12px; font-size: .74rem; line-height: 1.45;
  max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  margin: 0; display: none;
}
.scm-ml-out.show { display: block; }
.scm-note {
  margin-top: 30px; padding: 14px 18px; background: #f1f3f6;
  border-radius: 8px; font-size: .85rem; color: var(--text-muted, #6a7a8a);
}

/* ══════════════════════════════════════════════════════
   LIVE NETWORK GRAPH (#network section)
══════════════════════════════════════════════════════════ */
.network-summary {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 22px 0 26px;
}
.network-summary .ns-chip {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 10px 16px; text-align: center; min-width: 120px;
}
.network-summary .ns-num { font-size: 1.5rem; font-weight: 800; color: var(--orange-lt, #f59d5e); line-height: 1; }
.network-summary .ns-lbl { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

.network-graph {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  margin-top: 8px; align-items: start;
}
@media (max-width: 760px) { .network-graph { grid-template-columns: 1fr; } }
.network-loading { grid-column: 1 / -1; text-align: center; color: rgba(255,255,255,.6); font-style: italic; padding: 30px; }
.network-col-title {
  text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange-lt, #f59d5e); margin-bottom: 12px;
}
.net-node {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.net-node:hover { background: rgba(255,255,255,.14); border-color: var(--orange, #e87b35); transform: translateX(2px); }
.net-node.net-hub { border-left: 3px solid var(--orange, #e87b35); }
.net-node .nn-title { font-weight: 700; color: #fff; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.net-node .nn-meta  { font-size: .76rem; color: rgba(255,255,255,.62); margin-top: 3px; }
.net-node .nn-vol   { font-size: .74rem; color: var(--orange-lt, #f59d5e); margin-top: 4px; font-weight: 600; }
.net-node.is-active { background: rgba(232,123,53,.22); border-color: var(--orange, #e87b35); }

.net-edges-note { font-size: .74rem; color: rgba(255,255,255,.5); text-align: center; margin-top: 6px; }

.network-opt {
  margin-top: 30px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 20px 24px;
}
.network-opt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.network-opt-head h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.network-opt-sub { color: rgba(255,255,255,.6); font-size: .84rem; margin: 8px 0 12px; }

/* ══════════════════════════════════════════════════════
   SCM COMPONENT DETAIL MODAL
══════════════════════════════════════════════════════════ */
.scm-modal { max-width: 760px; }
.scm-card { cursor: pointer; }
.scm-modal-body { margin-top: 8px; }
.scm-modal-body h4 {
  color: var(--navy, #1a2c44); font-size: .95rem; margin: 18px 0 8px;
  padding-bottom: 5px; border-bottom: 2px solid #eee;
}
.scm-modal-body h4:first-child { margin-top: 4px; }
.scm-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 6px; }
.scm-kv .kv-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 3px 0; border-bottom: 1px dotted #e6e6e6; }
.scm-kv .kv-row span:first-child { color: var(--text-muted, #6a7a8a); }
.scm-kv .kv-row span:last-child { color: var(--navy, #1a2c44); font-weight: 600; text-align: right; }
.scm-table-wrap { overflow-x: auto; margin-bottom: 8px; }
table.scm-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
table.scm-table th {
  background: var(--navy, #1a2c44); color: #fff; text-align: left;
  padding: 7px 10px; font-weight: 600; white-space: nowrap;
}
table.scm-table td { padding: 6px 10px; border-bottom: 1px solid #eee; }
table.scm-table tr:nth-child(even) td { background: #f7f8fa; }
.scm-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.scm-pill.ok        { background: #e6f7ed; color: #1a8a45; }
.scm-pill.warn      { background: #fff4e0; color: #b8730b; }
.scm-pill.crit      { background: #fdecea; color: #c0392b; }
.scm-pill.neutral   { background: #eef1f5; color: #41526b; }
.scm-tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.scm-tag-list .scm-tag { background: #eef1f5; color: #41526b; border-radius: 5px; padding: 3px 9px; font-size: .76rem; }

/* SCM detail-modal plain-language summary paragraph */
.scm-summary {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--navy, #1a2c44);
  background: #f1f5f9;
  border-left: 3px solid var(--orange, #e87b35);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 18px;
}
.scm-summary strong { color: var(--navy, #1a2c44); }

/* ══════════════════════════════════════════════════════
   AI STAKEHOLDER NETWORK (#ai-network)
══════════════════════════════════════════════════════════ */
#ai-network { background: var(--bg, #f5f4f0); }
.ai-net-help { color: var(--text-muted, #6a7a8a); font-size: .92rem; margin: 0 0 16px; }

.ai-net-summary {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 22px 0 32px;
}
.ai-net-summary .ans-chip {
  background: #fff; border: 1px solid var(--border, #ddd);
  border-radius: 10px; padding: 14px 22px; text-align: center; min-width: 150px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ai-net-summary .ans-num { font-size: 1.7rem; font-weight: 800; color: var(--orange, #e87b35); line-height: 1; }
.ai-net-summary .ans-lbl { font-size: .76rem; color: var(--text-muted, #6a7a8a); margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; }

.ai-net-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.ai-net-loading { color: var(--text-muted, #6a7a8a); font-style: italic; text-align: center; padding: 22px; }
.ai-net-empty   { color: var(--text-muted, #6a7a8a); font-style: italic; text-align: center; padding: 16px; }

.ai-net-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border, #ddd);
  border-left: 4px solid var(--orange, #e87b35);
  border-radius: 10px; padding: 16px 20px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ai-net-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }

.ai-net-score {
  flex: 0 0 auto;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange, #e87b35), var(--orange-lt, #f59d5e));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(232,123,53,.4);
}
.ai-net-score.medium { background: linear-gradient(135deg, #6a7a8a, #94a3b8); box-shadow: none; }
.ai-net-score.low    { background: linear-gradient(135deg, #b0b8c2, #d0d6de); color: #444; box-shadow: none; }

.ai-net-pair { flex: 1; min-width: 0; }
.ai-net-pair .ai-pair-line {
  font-weight: 600; color: var(--navy, #1a2c44); font-size: .98rem;
  margin-bottom: 4px;
}
.ai-net-pair .ai-pair-meta {
  font-size: .82rem; color: var(--text-muted, #6a7a8a);
}
.ai-net-pair .ai-pair-reason {
  font-size: .82rem; color: var(--navy, #1a2c44);
  margin-top: 4px; font-style: italic;
}

.ai-net-action { flex: 0 0 auto; }
.ai-net-action .btn-primary { padding: 8px 16px; font-size: .85rem; }

.ai-net-picker {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.ai-net-picker select {
  flex: 1 1 200px; min-width: 0; padding: 9px 12px; border: 1px solid #d0d6de;
  border-radius: 6px; font-size: .9rem; font-family: inherit; background: #fff;
}
.ai-net-picker select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,123,53,.15); }
.ai-net-picker .btn-primary { flex: 0 0 auto; }

/* Status toast for connection results */
.ai-net-toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 18px; border-radius: 8px;
  font-size: .9rem; max-width: 360px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 9999; animation: aiToastIn .25s ease;
}
.ai-net-toast.ok    { background: #1a8a45; color: #fff; }
.ai-net-toast.err   { background: #c0392b; color: #fff; }
@keyframes aiToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Direct-reach picker — three controls + an arrow */
.ai-net-picker.ai-net-picker-wide {
  align-items: center;
}
.ai-net-picker.ai-net-picker-wide select {
  flex: 1 1 180px;
}
.ai-reach-arrow {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--orange, #e87b35);
  font-size: 1.3rem;
  align-self: center;
}

/* ══════════════════════════════════════════════════════
   COOKIE CONSENT BANNER + PREFERENCES
══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: var(--navy, #1a2c44); color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  animation: cookieUp .3s ease;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h4 { color: #fff; margin: 0 0 4px; font-size: 1rem; }
.cookie-text p  { color: rgba(255,255,255,.78); font-size: .85rem; margin: 0; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-actions .btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Persistent floating "Cookie settings" button (bottom-left) */
.cookie-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1px solid var(--border, #ddd); border-radius: 999px;
  background: #fff; color: var(--navy, #1a2c44);
  font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,60,94,.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cookie-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,60,94,.26); }
.cookie-fab[hidden] { display: none; }
@media (max-width: 480px) {
  .cookie-fab { left: 12px; bottom: 12px; padding: 8px 12px; font-size: .78rem; }
}

/* Cookie preferences modal categories */
.cookie-cat {
  border: 1px solid var(--border, #ddd); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 12px;
}
.cookie-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px;
}
.cookie-cat-head strong { color: var(--navy, #1a2c44); font-size: .95rem; }
.cookie-cat p { font-size: .82rem; color: var(--text-muted, #6a7a8a); margin: 0; line-height: 1.5; }
.cookie-pill {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #e6f7ed; color: #1a8a45; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}

/* Toggle switch */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #c4ccd6; border-radius: 999px; transition: background .15s;
}
.cookie-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--orange, #e87b35); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch.is-locked .cookie-slider { background: #1a8a45; cursor: not-allowed; opacity: .8; }

#cookie-settings-link { cursor: pointer; }

/* ══════════════════════════════════════════════════════
   LANGUAGE SWITCHER (nav)
══════════════════════════════════════════════════════════ */
.lang-dropdown { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.lang-btn:hover { background: rgba(255,255,255,.18); }
.lang-caret { font-size: .7rem; opacity: .8; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--border, #ddd);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 6px; min-width: 200px; max-height: 60vh; overflow-y: auto;
  display: none; z-index: 1200;
}
.lang-menu.is-open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: none; background: transparent;
  border-radius: 7px; cursor: pointer; font-size: .9rem; font-family: inherit;
  color: var(--navy, #1a2c44); text-align: left;
}
.lang-option:hover { background: #f1f5f9; }
.lang-option.is-active { background: #fef0e5; color: var(--orange, #e87b35); font-weight: 700; }
.lang-option .lang-flag { font-size: 1.1rem; flex: 0 0 auto; }

@media (max-width: 900px) {
  /* On mobile the language switcher drops into the CTA row, keep it compact */
  .lang-menu { right: auto; left: 0; }
}
