/* =========================================================
   Meralli LLC — components.css
   Buttons, cards, lists, accordion, forms, badges, widgets
   ========================================================= */

/* ---------- 1. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn svg { flex: none; width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.btn--primary {
  background: var(--lime-400);
  color: var(--green-950);
  box-shadow: var(--shadow-lime);
}
.btn--primary:hover {
  background: var(--lime-300);
  color: var(--green-950);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(132, 204, 22, 0.34);
}

.btn--dark {
  background: var(--green-900);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--green-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--green-900);
}
.btn--outline:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--green-700);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast) var(--ease);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 2. Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(132, 204, 22, 0.45);
}
.card h3 { margin-bottom: 0.55em; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: var(--green-900);
  color: var(--lime-400);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon { background: var(--lime-400); color: var(--green-950); }

.card__index {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--light-2);
}

.card__list {
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px dashed var(--border-strong);
  list-style: none;
}
.card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 0.9rem;
  color: var(--muted);
}
.card__list li:last-child { margin-bottom: 0; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime-400);
  transform: rotate(45deg);
}

/* Feature card (compact, on light) */
.feature {
  display: flex;
  gap: 18px;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--lime-100);
  color: var(--green-700);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.feature p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Dark variant on dark sections */
.section--dark .feature,
.feature--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section--dark .feature h3 { color: var(--white); }
.section--dark .feature p { color: rgba(255, 255, 255, 0.66); }
.section--dark .feature__icon {
  background: rgba(163, 230, 53, 0.14);
  color: var(--lime-400);
}

/* ---------- 3. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 34px;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.step:last-child::before { right: 50%; }
.step:first-child::before { left: 50%; }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--lime-400);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.45em; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.step__meta {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--lime-100);
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 650;
}

/* ---------- 4. Check list ---------- */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 15px;
  color: var(--muted);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--lime-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A5240' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list strong { display: block; color: var(--green-900); margin-bottom: 2px; }
.section--dark .check-list li { color: rgba(255, 255, 255, 0.7); }
.section--dark .check-list strong { color: var(--white); }

/* ---------- 5. Audience / tier cards ---------- */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier--featured {
  background: var(--green-900);
  border-color: var(--green-900);
  color: rgba(255, 255, 255, 0.74);
}
.tier--featured h3 { color: var(--white); }
.tier--featured .tier__size { background: rgba(163, 230, 53, 0.16); color: var(--lime-300); }
.tier--featured .check-list li { color: rgba(255, 255, 255, 0.72); }
.tier--featured .check-list li::before { background-color: rgba(163, 230, 53, 0.22); }
.tier__size {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--light-2);
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier p { font-size: 0.95rem; }
.tier .check-list { margin-top: 20px; font-size: 0.93rem; }
.tier__flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--lime-400);
  color: var(--green-950);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 6. Accordion (FAQ) ---------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.accordion + .accordion { margin-top: 14px; }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--green-900);
  transition: background var(--t-fast) var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--light); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-800);
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion[open] .accordion__icon {
  background: var(--lime-400);
  border-color: var(--lime-400);
  transform: rotate(180deg);
}
.accordion[open] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__body {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.96rem;
}
.accordion[open] .accordion__body { animation: fadeSlide var(--t) var(--ease-out); }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 7. Contact info panel ---------- */
.info-card {
  padding: 32px 30px;
  border-radius: var(--r-lg);
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.72);
}
.info-card h3 { color: var(--white); margin-bottom: 0.5em; }
.info-card > p { color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; }
.info-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.info-list li {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(163, 230, 53, 0.13);
  color: var(--lime-400);
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
  font-weight: 600;
}
.info-list__value {
  display: block;
  margin: 0;
  color: var(--white);
  font-weight: 550;
  line-height: 1.55;
  font-style: normal;
}
.info-list__value a { color: var(--white); }
.info-list__value a:hover { color: var(--lime-300); }
.info-list small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 0.84rem;
}

/* ---------- 8. Forms ---------- */
.form-card {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-900);
}
.field label .req { color: var(--lime-500); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7269' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px 17px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.16);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}
.field__hint {
  margin-top: 6px;
  font-size: 0.81rem;
  color: var(--muted-2);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.87rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--lime-500);
  cursor: pointer;
}
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot — kept out of sight for humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted-2);
}
.form-note svg { flex: none; width: 15px; height: 15px; color: var(--lime-500); }

/* Form feedback */
.form-alert {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  margin-bottom: 22px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}
.form-alert.is-shown { display: flex; }
.form-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.form-alert--ok {
  background: var(--lime-100);
  color: #2C5A10;
  border: 1px solid rgba(132, 204, 22, 0.4);
}
.form-alert--err {
  background: #FCEDEB;
  color: #8E2A1E;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

/* Loading spinner inside submit button */
.btn .spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(7, 26, 20, 0.25);
  border-top-color: var(--green-950);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__label { opacity: 0.7; }
.btn.is-loading svg:not(.spinner) { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 9. Badges & pills ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill-row li { margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--white);
  font-size: 0.87rem;
  font-weight: 550;
  color: var(--green-800);
}
.pill svg { width: 15px; height: 15px; color: var(--lime-500); }
.section--dark .pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}
.section--dark .pill svg { color: var(--lime-400); }

/* ---------- 10. Quote / highlight block ---------- */
.callout {
  display: flex;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--r-md);
  background: var(--lime-100);
  border: 1px solid rgba(132, 204, 22, 0.3);
}
.callout__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green-900);
  color: var(--lime-400);
}
.callout__icon svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.callout p { margin: 0; color: var(--green-800); font-size: 0.94rem; }

/* ---------- 11. Mobile sticky action bar ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 30px rgba(7, 26, 20, 0.22);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  background: var(--green-900);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
}
.action-bar a svg { width: 18px; height: 18px; }
.action-bar a.is-primary { background: var(--lime-400); color: var(--green-950); }

/* ---------- 12. Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--lime-400);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: var(--shadow-md);
  transition: all var(--t) var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lime-400); color: var(--green-950); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 13. Photos ---------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--hero {
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
/* Deepens the lower edge so the floating badges stay readable */
.photo--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 20, 0) 46%, rgba(7, 26, 20, 0.55) 100%);
  pointer-events: none;
}

.photo--wide { aspect-ratio: 16 / 9; }

.photo--desk {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

/* Small label pinned inside the bottom-left corner of a photo */
.photo__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(7, 26, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Inside the framed coverage panel the corners are tighter and the shadow is redundant */
.coverage__visual .photo {
  border-radius: var(--r-md);
  box-shadow: none;
}
