/* ============================================================
   components.css — Reusable UI components
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em; border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn i { font-size: 1.15em; transition: transform var(--t-base) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(24,24,27,.22); }

.btn-accent { background: var(--peak-gradient); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { box-shadow: var(--shadow-accent-hover); }
.btn-accent:hover i { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(24,24,27,.18); }
.btn-ghost:hover { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }

/* On a dark background (hero CTAs) */
.btn-on-dark { background: transparent; color: #fff; border-color: var(--white-38); }
.btn-on-dark:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

/* Light buttons on the accent CTA band */
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow i { color: var(--orange); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--orange-deep); gap: var(--sp-3); }
.link-arrow:hover i { transform: translateX(2px); }

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-data); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(245,130,32,.10); color: var(--orange-deep);
}
.chip i { font-size: 1.1em; }
.chip.chip-glass { background: var(--white-14); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip.chip-dark { background: var(--white-10); color: var(--gold); }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(245,130,32,.35); }
.card .ico {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--surface); color: var(--charcoal); font-size: 1.6rem;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.card-hover:hover .ico { background: var(--peak-gradient); color: #fff; }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

.pillar .num { font-family: var(--font-data); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: var(--orange); display: block; margin-bottom: 14px; }

/* ---- Stats ---- */
.stat .value { font-family: var(--font-data); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.dark .stat .value { background: var(--peak-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-family: var(--font-data); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }
.dark .stat .label { color: #8b8d90; }
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.stat-bar .stat { text-align: center; padding: clamp(24px,3vw,38px) 16px; border-right: 1px solid var(--line-soft); }
.stat-bar .stat:last-child { border-right: 0; }

/* ---- Forms ---- */
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-family: var(--font-data); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 9px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9a9b9e; }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--charcoal); box-shadow: var(--focus-ring); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2347464b' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-note { margin-top: 18px; color: var(--orange-deep); font-weight: 600; }

/* Search field */
.search { position: relative; }
.search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 1.2rem; }
.search .input { padding-left: 48px; border-radius: var(--r-full); }

/* Segmented radio group */
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 10px 20px; border-radius: var(--r-full); border: 1px solid var(--line); background: #fff; color: var(--ink-muted); cursor: pointer; margin: 0; transition: all var(--t-fast) var(--ease); }
.seg input:checked + label { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.seg label:hover { border-color: var(--charcoal); }

/* Selectable program tiles */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.option-tile { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; cursor: pointer; background: #fff; transition: all .3s var(--ease); display: block; }
.option-tile:hover { border-color: rgba(245,130,32,.5); }
.option-tile .tile-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; color: var(--charcoal); }
.option-tile h4 { font-size: 1.05rem; margin-bottom: 4px; }
.option-tile small { color: var(--ink-faint); font-size: 0.85rem; }
.option-tile .tile-img { border-radius: var(--r-sm); margin-top: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; background: linear-gradient(135deg,#2b2723,#18181b); }
.option-tile .check { position: absolute; top: 16px; right: 16px; color: var(--orange); opacity: 0; transition: opacity var(--t-fast); font-size: 1.3rem; }
.option-tile input { position: absolute; opacity: 0; }
.option-tile:has(input:checked),
.option-tile.is-checked { border-color: var(--orange); background: rgba(245,130,32,.04); box-shadow: 0 0 0 4px rgba(245,130,32,.10); }
.option-tile:has(input:checked) .check,
.option-tile.is-checked .check { opacity: 1; }
.option-tile:has(input:checked) .tile-ico,
.option-tile.is-checked .tile-ico { background: var(--peak-gradient); color: #fff; }

/* ---- Deliver list ---- */
.deliver-head { margin-top: var(--sp-5); margin-bottom: 6px; }
.deliver-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.deliver-item { display: flex; gap: 14px; align-items: flex-start; }
.deliver-item i { color: var(--orange); font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.deliver-item span { font-size: 0.96rem; color: var(--ink-muted); }
.deliver-item strong { color: var(--ink); }

/* ---- Value rows ---- */
.value-row { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-soft); }
.value-row:last-child { border-bottom: 0; }
.value-row .ico { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; font-size: 1.5rem; color: var(--charcoal); flex-shrink: 0; }
.value-row h4 { margin-bottom: 6px; }
.value-row p { font-size: 0.96rem; }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.gallery a { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; background: linear-gradient(135deg,#2b2723,#18181b); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,12,14,.55)); }
.gallery a span { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Accordion ---- */
.accordion { display: grid; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.acc-item.open { border-color: rgba(245,130,32,.4); box-shadow: var(--shadow); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 24px; background: none; border: 0; font-family: var(--font-head); font-weight: 400; font-size: 1.08rem; color: var(--ink); }
.acc-q i { color: var(--orange); font-size: 1.3rem; transition: transform var(--t-base) var(--ease); flex-shrink: 0; }
.acc-item.open .acc-q i { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-a-inner { padding: 0 24px 24px; color: var(--ink-muted); font-size: 0.98rem; max-width: var(--measure); }
.faq-group-title { margin: 36px 0 16px; }

/* FAQ category cards */
.faq-cats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.faq-cat { display: flex; gap: var(--sp-4); align-items: center; }
.faq-cat .ico { width: 48px; height: 48px; margin: 0; border-radius: var(--r-full); flex-shrink: 0; }
.faq-cat h4 { font-size: 1rem; margin-bottom: 2px; }
.faq-cat small { color: var(--ink-faint); font-size: 0.85rem; }

/* ---- CTA band ---- */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(48px,7vw,84px) clamp(28px,5vw,64px); background: var(--peak-gradient); overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 120%, rgba(255,255,255,.25), transparent 50%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 16px auto 0; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: var(--sp-6); }

/* ---- Stepper ---- */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: var(--sp-3); }
.step .dot { width: 38px; height: 38px; border-radius: var(--r-full); border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--font-data); font-weight: 600; font-size: 0.85rem; color: var(--ink-faint); background: #fff; flex-shrink: 0; }
.step.active .dot { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.step.done .dot { background: var(--peak-gradient); border-color: transparent; color: #fff; }
.step .step-label { font-family: var(--font-data); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.step.active .step-label,
.step.done .step-label { color: var(--ink); }
.step-line { flex: 1; height: 1.5px; background: var(--line); margin: 0 16px; }

/* ---- Assist card + timeline ---- */
.assist-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.assist-card.dark { background: var(--charcoal); border-color: var(--charcoal); }
.assist-card.dark h4 { color: #fff; }
.assist-card.dark p { color: var(--on-dark-muted); }
.assist-card h4 { margin-bottom: 6px; }
.assist-card h4.with-ico { display: flex; align-items: center; gap: var(--sp-2); }
.assist-card h4.with-ico i { color: var(--orange); }
.assist-row { display: flex; gap: var(--sp-3); align-items: center; font-size: 0.94rem; color: var(--ink-muted); margin-top: var(--sp-4); }
.assist-row.top { align-items: flex-start; }
.assist-row i { color: var(--orange); font-size: 1.2rem; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-4); padding-bottom: 22px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.tl-dot { width: 28px; height: 28px; border-radius: var(--r-full); border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; z-index: 1; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tl-item.done .tl-dot { border-color: var(--orange); }
.tl-item.done .tl-dot::after { background: var(--orange); }
.tl-item h5 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.tl-item small { color: var(--ink-faint); font-size: 0.85rem; }

img[data-fallback].failed { opacity: 0; }

/* White cards inside a dark section keep dark text */
.dark .card h3, .dark .card h4 { color: var(--ink); }
.dark .card p { color: var(--ink-muted); }
