/* ==========================================================================
   Seiva - UI layer: buttons, cards, tiles, tables, FAQ, footer, responsive
   ========================================================================== */

/* Buttons ================================================================ */

.seiva-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.75rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--seiva-radius-sm);
}
.seiva-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.seiva-btn--gold {
  background: var(--wp--preset--color--gold);
  color: #fff;
}
.seiva-btn--gold:hover {
  background: #8a5406;
  color: #fff;
  box-shadow: var(--seiva-shadow-lifted);
}
.seiva-btn--navy {
  background: var(--wp--preset--color--navy);
  color: #fff;
}
.seiva-btn--navy:hover {
  background: var(--wp--preset--color--navy-mid);
  color: #fff;
  box-shadow: var(--seiva-shadow-lifted);
}
.seiva-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.seiva-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.seiva-btn--outline {
  background: transparent;
  color: var(--wp--preset--color--navy);
  border-color: var(--wp--preset--color--line);
}
.seiva-btn--outline:hover {
  background: var(--wp--preset--color--surface-alt);
  border-color: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--navy);
}
/* Disabled reads as disabled: opacity + cursor + no pointer events */
.seiva-btn[aria-disabled="true"],
.seiva-btn:disabled,
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Grids ================================================================== */

.seiva-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.seiva-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seiva-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.seiva-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.seiva-grid--split {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Feature card =========================================================== */

.seiva-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--seiva-radius);
  box-shadow: var(--seiva-shadow-soft);
  transition:
    transform var(--seiva-dur) var(--seiva-ease-out),
    box-shadow var(--seiva-dur) var(--seiva-ease-out),
    border-color var(--seiva-dur) var(--seiva-ease-out);
}
/* Lift only where hover genuinely exists */
@media (hover: hover) {
  .seiva-card--link:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--seiva-shadow-lifted);
    border-color: rgba(161, 98, 7, 0.35);
  }
}
.seiva-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  background: var(--wp--preset--color--surface-alt);
  color: #7a4c05;
}
.seiva-card__icon svg {
  width: 24px;
  height: 24px;
}
.seiva-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wp--preset--color--navy);
}
.seiva-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--wp--preset--color--ink-muted);
}

.seiva-section--navy .seiva-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.seiva-section--navy .seiva-card__title {
  color: #fff;
}
.seiva-section--navy .seiva-card__text {
  color: #cbd5e1;
}
.seiva-section--navy .seiva-card__icon {
  background: rgba(224, 178, 82, 0.14);
  color: var(--wp--preset--color--gold-soft);
}

/* Category tile ========================================================== */

.seiva-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--seiva-radius);
  background: var(--wp--preset--color--navy);
  text-decoration: none;
  aspect-ratio: 4 / 3;
  box-shadow: var(--seiva-shadow-soft);
}
.seiva-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--seiva-dur-slow) var(--seiva-ease-out);
}
@media (hover: hover) {
  .seiva-tile:hover img {
    transform: scale(1.05);
  }
}
.seiva-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.55) 55%, rgba(2, 6, 23, 0) 100%);
  color: #fff;
}
.seiva-tile__title {
  margin: 0 0 0.2rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.seiva-tile__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Trust bar ============================================================== */

.seiva-trustbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--wp--preset--color--line);
}
.seiva-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  text-align: left;
}
.seiva-trust svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #7a4c05;
}
.seiva-trust__title {
  display: block;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--navy);
  line-height: 1.3;
}
.seiva-trust__text {
  display: block;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--ink-muted);
  line-height: 1.4;
}

/* Steps ================================================================== */

.seiva-step {
  position: relative;
  padding-left: 3.5rem;
}
.seiva-step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--gold-soft);
  font-family: var(--wp--preset--font-family--rubik);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Comparison table ======================================================= */

.seiva-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--seiva-radius);
  background: #fff;
}
.seiva-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.seiva-table th,
.seiva-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.seiva-table thead th {
  font-family: var(--wp--preset--font-family--rubik);
  font-weight: 600;
  color: var(--wp--preset--color--navy);
  background: var(--wp--preset--color--surface-alt);
  white-space: nowrap;
}
.seiva-table tbody tr:last-child th,
.seiva-table tbody tr:last-child td {
  border-bottom: 0;
}
.seiva-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}
.seiva-table th[scope="row"] {
  font-weight: 600;
  color: var(--wp--preset--color--navy);
}
/* Yes/no carry an icon + text, never colour alone */
.seiva-yes {
  color: #15803d;
  font-weight: 600;
}
.seiva-no {
  color: var(--wp--preset--color--ink-muted);
}

/* FAQ - native details/summary is keyboard accessible for free =========== */

.seiva-faq {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--seiva-radius);
  background: #fff;
  overflow: hidden;
}
.seiva-faq + .seiva-faq {
  margin-top: 0.75rem;
}
.seiva-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--wp--preset--color--navy);
  list-style: none;
  transition: background-color var(--seiva-dur) var(--seiva-ease-out);
}
.seiva-faq__q::-webkit-details-marker {
  display: none;
}
.seiva-faq__q:hover {
  background: var(--wp--preset--color--surface-alt);
}
.seiva-faq__q::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--wp--preset--color--gold);
  border-bottom: 2px solid var(--wp--preset--color--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--seiva-dur) var(--seiva-ease-out);
}
.seiva-faq[open] .seiva-faq__q::after {
  transform: rotate(-135deg) translate(-4px, -4px);
}
.seiva-faq__a {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--wp--preset--color--ink-muted);
  line-height: 1.7;
}

/* Testimonial ============================================================ */

.seiva-quote {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--seiva-radius);
  box-shadow: var(--seiva-shadow-soft);
}
.seiva-quote__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.9rem;
  color: #A16207;
}
.seiva-quote__stars svg {
  width: 17px;
  height: 17px;
}
.seiva-quote__text {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wp--preset--color--ink);
}
.seiva-quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.seiva-quote__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--gold-soft);
  font-family: var(--wp--preset--font-family--rubik);
  font-weight: 700;
  font-size: 0.9375rem;
}
.seiva-quote__name {
  display: block;
  font-family: var(--wp--preset--font-family--rubik);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--navy);
}
.seiva-quote__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--ink-muted);
}

/* CTA band =============================================================== */

.seiva-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--seiva-radius-lg);
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
}
.seiva-cta::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(224, 178, 82, 0.16) 0%, rgba(224, 178, 82, 0) 68%);
  pointer-events: none;
}
.seiva-cta > * {
  position: relative;
}
.seiva-cta__title {
  margin: 0 0 0.85rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.seiva-cta__text {
  max-width: 55ch;
  margin: 0 auto 2rem;
  color: #cbd5e1;
  font-size: var(--wp--preset--font-size--large);
}
.seiva-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Footer ================================================================= */

.seiva-footer {
  background: var(--wp--preset--color--navy);
  color: #94a3b8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.seiva-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.seiva-footer__title {
  margin: 0 0 1rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.seiva-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.seiva-footer__list li + li {
  margin-top: 0.6rem;
}
.seiva-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--seiva-dur) var(--seiva-ease-out);
}
.seiva-footer a:hover {
  color: var(--wp--preset--color--gold-soft);
  text-decoration: underline;
}
.seiva-footer__brand {
  max-width: 34ch;
  line-height: 1.7;
}
.seiva-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.seiva-footer__logo svg {
  width: 30px;
  height: 30px;
}
.seiva-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}
.seiva-footer__pay {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #94a3b8;
}

/* Utilities ============================================================== */

.seiva-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(161, 98, 7, 0.1);
  color: #7a4c05;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.seiva-badge--dark {
  background: rgba(224, 178, 82, 0.16);
  color: var(--wp--preset--color--gold-soft);
}

.seiva-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seiva-stack > * + * {
  margin-top: 1rem;
}
.seiva-center {
  text-align: center;
}
.seiva-mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Responsive ============================================================= */

@media (max-width: 1024px) {
  .seiva-hero__inner {
    grid-template-columns: 1fr;
  }
  .seiva-hero__media {
    aspect-ratio: 16 / 10;
    order: -1;
  }
  .seiva-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seiva-grid--split {
    grid-template-columns: 1fr;
  }
  .seiva-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  :root {
    --seiva-header-h: 64px;
  }
  .seiva-grid--2,
  .seiva-grid--3 {
    grid-template-columns: 1fr;
  }
  .seiva-trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .seiva-trust {
    justify-content: flex-start;
  }
  .seiva-herostats {
    gap: 1.5rem 2rem;
  }
  .seiva-hero__cta .seiva-btn {
    flex: 1 1 100%;
  }
  .seiva-cta__actions .seiva-btn {
    flex: 1 1 100%;
  }
}

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

/* Landscape phones - keep vertical rhythm sane */
@media (max-height: 500px) and (orientation: landscape) {
  .seiva-hero {
    padding-block: 2.5rem;
  }
}
