/* ─────────────────────────────────────────────────────────
   TESTA — Components
   ───────────────────────────────────────────────────────── */

/* ═══════════════════════════════
   NAV
   ═══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(250,248,245,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250,248,245,0.95);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__logo-dot { color: var(--coral); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 0 2px 8px rgba(19,17,14,0.2);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19,17,14,0.25);
}
.nav__cta::after { display: none !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(250,248,245,0.98);
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--coral); }

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease),
    background 0.2s,
    color 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(224,92,46,0.3);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224,92,46,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 0.5px solid var(--border-mid);
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--border-heavy);
}
.btn-white {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}
.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ═══════════════════════════════
   BADGES / PILLS
   ═══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-coral  { background: var(--coral-light); color: var(--coral-dark); border: 0.5px solid var(--coral-mid); }
.badge-coral::before  { background: var(--coral); }
.badge-blue   { background: var(--blue-wash); color: var(--blue-deep); border: 0.5px solid var(--blue-mid); }
.badge-blue::before   { background: var(--blue-deep); }
.badge-green  { background: var(--green-wash); color: var(--green-deep); border: 0.5px solid var(--green-mid); }
.badge-green::before  { background: var(--green-deep); }
.badge-neutral { background: var(--paper-2); color: var(--ink-3); border: 0.5px solid var(--border); }
.badge-neutral::before { background: var(--ink-4); }

/* ═══════════════════════════════
   CARDS
   ═══════════════════════════════ */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-mid);
}
.card--flat {
  background: var(--paper-2);
  border-color: transparent;
}
.card--flat:hover { border-color: var(--border); }

.card__icon {
  width: 44px; height: 44px;
  background: var(--blue-wash);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-4);
}
.card__icon--coral { background: var(--coral-light); }
.card__icon--green { background: var(--green-wash); }

.card__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--paper-3);
  margin-bottom: var(--space-3);
  letter-spacing: -1px;
}

/* ═══════════════════════════════
   ACCORDION
   ═══════════════════════════════ */
.accordion-item {
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
}
.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.accordion-trigger:hover { background: transparent; }

.accordion-trigger__left {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.accordion-trigger__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.accordion-item.open .accordion-trigger__icon {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.accordion-trigger__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.accordion-trigger__sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 3px;
}

.accordion-trigger__arrow {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.accordion-trigger__arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.accordion-item.open .accordion-trigger__arrow {
  transform: rotate(180deg);
  background: var(--paper-3);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), padding 0.3s var(--ease);
  padding: 0 0 0 48px;
}
.accordion-item.open .accordion-body {
  max-height: 1200px;
  padding-bottom: 28px;
}

.accordion-body__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.accordion-body__block {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.accordion-body__block h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.accordion-body__block ul {
  list-style: none;
}
.accordion-body__block ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 3.5px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}
.accordion-body__block ul li::before {
  content: '→';
  color: var(--coral);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════ */
.section-header {
  margin-bottom: var(--space-9);
}
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin-left: auto; margin-right: auto; }

.section-intro {
  max-width: 520px;
  margin-top: var(--space-4);
}

/* ═══════════════════════════════
   STATUS PILLS
   ═══════════════════════════════ */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.status-done    { background: #e6f7ec; color: #2d7a4a; }
.status-active  { background: var(--blue-wash); color: var(--blue-deep); }
.status-pending { background: var(--paper-2); color: var(--ink-3); }
.status-warn    { background: var(--amber-wash); color: #9a6d1a; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 0;
  text-align: center;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  display: block;
  text-decoration: none;
  color: var(--white);
}
.footer__logo span { color: var(--coral); }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 220px; margin: 0 auto; }
.footer__col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════ */
.progress-bar {
  height: 6px;
  background: var(--paper-3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-2);
}
.progress-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  transition: width 0.6s var(--ease-out);
}

/* ═══════════════════════════════
   TAG / CHIP
   ═══════════════════════════════ */
.chip {
  display: inline-block;
  background: var(--white);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ═══════════════════════════════
   FAQ accordion variant
   ═══════════════════════════════ */
.faq-item {
  border-bottom: 0.5px solid var(--border);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.faq-trigger span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.faq-trigger__plus {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.faq-item.open .faq-trigger__plus {
  transform: rotate(45deg);
  background: var(--paper-3);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease);
}
.faq-body__inner {
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}
.faq-item.open .faq-body { max-height: 400px; }

/* ═══════════════════════════════
   FLOATING DECORATIONS
   ═══════════════════════════════ */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Decorative gradient-ribbon background art */
.bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-swirl {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: swirlDrift 24s ease-in-out infinite;
  will-change: transform;
}
@keyframes swirlDrift {
  0%, 100% { transform: scaleX(var(--swirl-flip, 1)) rotate(var(--swirl-rot, 0deg)) translate(0, 0) scale(1); }
  50%      { transform: scaleX(var(--swirl-flip, 1)) rotate(calc(var(--swirl-rot, 0deg) + 4deg)) translate(14px, -12px) scale(1.03); }
}
@media (max-width: 640px) {
  .bg-decor { display: none; }
  .bg-swirl--anchor { opacity: 0.5; }
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .accordion-body { padding-left: 0; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
