/* ==========================================================================
   Andreas Burger Consulting - reusable components
   ========================================================================== */

/* ---- Partner logo badge (DynamicERMS logo on dark sections) ---- */
.logo-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-m);
  padding: 18px 28px;
  box-shadow: var(--shadow-card);
}
.logo-badge--center { margin-left: auto; margin-right: auto; }
.logo-badge img { display: block; height: 44px; width: auto; }
.logo-badge--lg img { height: 56px; }

/* ---- Animated hero backdrop (from the original landing page) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(186,252,255,0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(250,70,22,0.14), transparent 60%),
    linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-primary-light) 100%);
  color: var(--color-white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 75%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; animation: abc-float 16s ease-in-out infinite; z-index: 0; }
.hero__orb--1 { width: 380px; height: 380px; background: var(--color-primary-light); top: -120px; left: -100px; }
.hero__orb--2 { width: 300px; height: 300px; background: var(--color-accent); bottom: -100px; right: -80px; animation-delay: -6s; }
.hero__orb--3 { width: 220px; height: 220px; background: var(--color-primary-light); top: 40%; right: 12%; opacity: 0.18; animation-delay: -11s; }
@keyframes abc-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}
.hero h1, .hero h2, .hero h3, .hero p { color: var(--color-white); }
.hero .lede { color: var(--color-muted); }
.hero .eyebrow { color: var(--color-accent); }
.hero .accent { color: var(--color-accent); }
.hero .btn--outline { color: var(--color-white); border-color: rgba(255,255,255,0.4); }
.hero .btn--outline:hover { color: var(--color-accent); border-color: var(--color-accent); }
.hero__inner { position: relative; z-index: 1; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.hero--page .hero__inner { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--space-3) var(--space-4); max-width: 620px; margin-top: var(--space-5); }
.hero__stat b { display: block; font-family: var(--font-heading); font-size: var(--step-2); color: var(--color-accent); }
.hero__stat span { font-size: 0.9rem; color: var(--color-muted); }
.section--flush-top { padding-top: 0; }
.section--band { padding: var(--space-5) 0; }
.stat-row--center { justify-content: center; text-align: center; margin-bottom: 0; }
section[data-tone="dark"] .stat-row__item b { color: var(--color-accent); }
section[data-tone="dark"] .stat-row__item span { color: var(--color-muted); }
/* Stat tiles for light sections (hero__stat is styled for the dark hero). */
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-bottom: var(--space-4); }
.stat-row__item b { display: block; font-family: var(--font-heading); font-size: var(--step-3, 2.4rem); line-height: 1.1; color: var(--color-accent-dim); }
.stat-row__item span { font-size: 0.95rem; color: var(--color-ink-soft); }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.monogram {
  width: 220px; height: 220px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative; margin: 0 auto;
  animation: abc-breathe 5s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px -20px rgba(0,0,0,0.5);
}
.monogram img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 50%; }
.monogram::before, .monogram::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
.monogram::before { border: 1px solid rgba(186,252,255,0.35); animation: abc-spin 22s linear infinite; }
.monogram::after { border-top: 1px solid var(--color-accent); border-right: 1px solid transparent; animation: abc-spin 22s linear infinite; }
@keyframes abc-spin { to { transform: rotate(360deg); } }
@keyframes abc-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 0 rgba(186,252,255,0.25); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 14px rgba(186,252,255,0); }
}
.monogram--sm { width: 88px; height: 88px; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-dim); background: rgba(186,252,255,0.14);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: var(--space-2); width: fit-content;
}
.card h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.card--product h3 { min-height: 3.6em; }
.card p { color: var(--color-ink-soft); margin-bottom: var(--space-3); flex-grow: 1; }
.card__link { font-weight: 700; text-decoration: none; color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px; }
.card__link:hover { color: var(--color-accent-dim); }

/* ---- FAQ accordion ---- */
.faq { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) 0; font-family: var(--font-heading); font-weight: 700; font-size: var(--step-0);
  color: var(--color-ink);
}
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--color-accent-dim); flex-shrink: 0; transition: transform 0.2s ease; }
.faq__item[data-open="true"] .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq__a p { padding-bottom: var(--space-4); color: var(--color-ink-soft); margin: 0; }
.faq__item[data-open="true"] .faq__a { max-height: 600px; }

/* ---- Process steps ---- */
.steps { counter-reset: step; display: grid; gap: var(--space-4); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); align-items: start; }
.step__num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1);
}
.step__num::before { content: counter(step); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 0.82rem; color: var(--color-muted); margin-bottom: var(--space-3); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.6; }
section[data-tone="light"] .breadcrumbs, .breadcrumbs--light { color: var(--color-ink-soft); }

/* ---- Forms ---- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-s);
  border: 1.5px solid var(--color-border); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--color-paper);
}
.enquiry-consent { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-4) 0; font-size: .9rem; color: var(--color-ink-soft); }
.enquiry-consent input { margin-top: 4px; flex-shrink: 0; }
/* The parent theme (Astra) styles bare input/select elements; make sure our fields keep room for their text. */
.field input, .field select { height: auto !important; min-height: 50px; line-height: 1.5 !important; box-sizing: border-box; }
.field select { padding-top: 12px !important; padding-bottom: 12px !important; padding-right: 40px; overflow: visible; text-overflow: ellipsis; }
.field textarea { line-height: 1.5; box-sizing: border-box; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-accent-dim); }

/* ---- WhatsApp CTA ---- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.4);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
/* The parent theme's scroll-to-top button sits in the same corner; lift it above the WhatsApp button. */
#ast-scroll-top { bottom: 96px !important; right: 31px !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s ease both; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__stats { justify-content: center; }
  .hero__cta-row { justify-content: center; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .monogram { width: 140px; height: 140px; }
}
