/* ══════════════════════════════════════════════════════════
   Safflower Infotech — Additive styles (non-minified layer)
   ══════════════════════════════════════════════════════════ */

/* ── FAQ Section ────────────────────────────────────────── */
.si-faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.si-faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.si-faq-item[open] {
  border-color: var(--c-navy);
  box-shadow: 0 4px 24px rgba(7, 41, 98, .07);
}

.si-faq-item + .si-faq-item {
  margin-top: 10px;
}

.si-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .18s, background .18s;
}

.si-faq-question::-webkit-details-marker { display: none; }

.si-faq-item[open] .si-faq-question {
  color: var(--c-navy);
  background: rgba(7, 41, 98, .03);
}

.si-faq-question::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .22s ease;
}

.si-faq-item[open] .si-faq-question::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23072962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.si-faq-answer {
  padding: 0 28px 24px;
}

.si-faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-slate);
  margin: 0;
}

.si-faq-answer a {
  color: var(--c-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .si-faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }
  .si-faq-answer {
    padding: 0 20px 20px;
  }
}

/* ── Nav dropdown hover bridge ──────────────────────────────
   The dropdown sits top: calc(100% + 8px), creating an 8px gap
   between the trigger and the panel. The cursor leaves the
   parent across that gap and :hover drops, closing the dropdown
   before the user reaches it.
   Fix: invisible ::after pseudo-element fills the gap so the
   :hover chain stays unbroken as the mouse moves downward.
──────────────────────────────────────────────────────────── */
.si-nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 12px; /* covers the calc(100% + 8px) gap with margin */
  display: block;
}

/* ── Footer entrance: gradient bridge + gold accent line ───
   Softens the hard #F5F7FA → #0D1B2E jump from contact section.
   ::before  = 80px gradient fade (surface → transparent)
   ::after   = 1px gold accent line at the very top seam
──────────────────────────────────────────────────────────── */
.si-footer {
  position: relative;
}

.si-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #F5F7FA 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.si-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(217, 119, 6, 0.45) 20%,
    rgba(217, 119, 6, 0.7) 50%,
    rgba(217, 119, 6, 0.45) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Footer logo watermark ──────────────────────────────── */
.si-footer-logo-wrap {
  position: relative;
  cursor: default;
}

.si-footer-logo-wrap:hover .si-footer-logo {
  opacity: 0.22;
  transition: opacity 0.6s ease;
}

/* ── Footer WCAG contrast overrides ────────────────────────
   Minified sheet has several values below 4.5:1 on --c-ink bg.
   Measured ratios:
     0.35 → 3.21:1  FAIL  (col-title 11px, copyright 13px)
     0.45 → 4.45:1  FAIL  (legal links — just 0.05 below threshold)
   Fixed values below all exceed 4.5:1.
──────────────────────────────────────────────────────────── */
.si-footer-col-title {
  color: rgba(255, 255, 255, 0.58) !important; /* → 6.19:1 PASS */
}

.si-footer-copy {
  color: rgba(255, 255, 255, 0.58) !important; /* → 6.19:1 PASS */
}

.si-footer-legal a {
  color: rgba(255, 255, 255, 0.55) !important; /* → 5.96:1 PASS */
}

/* ── Footer link focus-visible ──────────────────────────── */
.si-footer-col-link:focus-visible,
.si-footer-contact-item a:focus-visible,
.si-footer-legal a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Footer address labels ──────────────────────────────── */
.si-footer-contact-item--address {
  align-items: flex-start;
}

.si-footer-address-label {
  display: block;
  font-size: 11px; /* up from 10px — minimum legible size */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted); /* #8FA3BC → 6.70:1 on --c-ink PASS */
  margin-bottom: 2px;
}

/* ── Policy page breadcrumb ─────────────────────────────── */
.si-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 14px 0 0;
}

.si-breadcrumb a {
  color: var(--c-slate);
  text-decoration: none;
  transition: color .15s;
}

.si-breadcrumb a:hover { color: var(--c-navy); }

.si-breadcrumb-sep {
  color: var(--c-border);
}

/* ── Availability badge — standalone pill ────────────────── */
.si-contact-availability {
  display: flex !important; /* block-level flex → own row */
  width: fit-content;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: var(--r-full);
  padding: 5px 14px 5px 10px;
  margin-bottom: 18px;
  margin-top: 0 !important;
}

/* ── Contact form card — shadow upgrade + gold accent ───────
   Base has --shadow-sm (flat). Upgraded to --shadow-card.
──────────────────────────────────────────────────────────── */
.si-contact-form-card {
  box-shadow: var(--shadow-card) !important;
  border-top: 2px solid rgba(217, 119, 6, 0.28);
}

/* Reset browser italic default on <address> element */
address.si-contact-details {
  font-style: normal;
}

/* ── Contact form popup overlay ─────────────────────────── */
.si-contact-form-card {
  position: relative;
  overflow: hidden;
}

/* Override UA display:none from [hidden] so CSS transition works.
   JS removes hidden → opacity/scale transition plays → si--visible */
.si-form-popup[hidden] {
  display: flex !important;
}

.si-form-popup {
  position: absolute;
  inset: 0;
  background: var(--c-white);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.si-form-popup.si--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.si-form-popup-inner {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 40px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.si-form-popup-close {
  margin-top: 8px;
  padding: 9px 28px;
  border-radius: var(--r-full);
  border: 1.5px solid currentColor;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  letter-spacing: 0.3px;
}

/* Inherits the icon colour per state so border + text always match */
.si-form-popup.si--success .si-form-popup-close { color: #166534; }
.si-form-popup.si--error   .si-form-popup-close { color: #991b1b; }
.si-form-popup.si--info    .si-form-popup-close { color: var(--c-navy); }

.si-form-popup-close:hover   { opacity: 0.7; }
.si-form-popup-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.si-form-popup-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.si-form-popup.si--info    .si-form-popup-icon { background: rgba(7,41,98,.07);  color: var(--c-navy); }
.si-form-popup.si--success .si-form-popup-icon { background: #dcfce7;            color: #166534; }
.si-form-popup.si--error   .si-form-popup-icon { background: #fee2e2;            color: #991b1b; }

.si-form-popup-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.3;
}

.si-form-popup-body {
  font-size: 14px;
  color: var(--c-slate);
  line-height: 1.65;
  margin: 0;
}

.si-form-popup-body p { margin: 0; }

/* Numbered list inside info popup */
.si-form-popup-steps {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: popup-steps;
  width: 100%;
}

.si-form-popup-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--c-slate);
  line-height: 1.55;
  counter-increment: popup-steps;
}

.si-form-popup-steps li::before {
  content: counter(popup-steps);
  width: 22px;
  height: 22px;
  background: rgba(7, 41, 98, 0.07);
  color: var(--c-navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 22px;
  text-align: center;
  display: block;
  flex-shrink: 0;
}

/* Debug pre inside error popup */
.si-form-popup-debug {
  font-size: 11px;
  background: #fff7e6;
  border: 1px solid #f1d39a;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-top: 8px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  color: #7a3f05;
}

/* ── Form micro-copy (below submit button) ──────────────── */
.si-form-micro {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.5;
}

.si-form-micro a {
  color: var(--c-slate);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.si-form-micro a:hover {
  color: var(--c-navy);
}

/* ══════════════════════════════════════════════════════════
   Policy pages (Terms, Privacy, Refund)
   ══════════════════════════════════════════════════════════ */

/* ── Page hero ─────────────────────────────────────────────
   Clears fixed nav (--nav-h: 80px) and sets the document
   context before the reading body begins.
──────────────────────────────────────────────────────────── */
.si-policy-hero {
  padding: calc(var(--nav-h, 80px) + 40px) 0 40px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.si-policy-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.1;
  margin: 10px 0 8px;
}

.si-policy-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}

/* ── Reading body ──────────────────────────────────────────
   Constrain line length for comfortable reading (~70ch).
──────────────────────────────────────────────────────────── */
.si-policy-body {
  padding-block: 56px 80px;
}

.si-policy-content {
  max-width: 760px;
}

/* Intro lead paragraph */
.si-policy-lead {
  font-size: 16px;
  color: var(--c-slate);
  line-height: 1.8;
  border-left: 3px solid var(--c-crimson);
  padding-left: 16px;
  margin: 0 0 48px;
}

/* Section headings — deliberately smaller than homepage titles */
.si-policy-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 40px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
}

.si-policy-heading:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* Body text */
.si-policy-text {
  font-size: 15px;
  color: var(--c-slate);
  line-height: 1.85;
  margin: 0 0 16px;
}

.si-policy-text:last-child { margin-bottom: 0; }

/* Lists inside policy text */
.si-policy-list {
  margin: 8px 0 16px 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.si-policy-list li {
  font-size: 15px;
  color: var(--c-slate);
  line-height: 1.75;
  list-style: disc;
}
