/* ==========================================================================
   Revision Round 1 — additions on top of the locked design.
   Dark is the default (:root); light mode hangs off html.light, as in the
   rest of the theme. Loaded after every design layer (see inc/r1-revisions.php).
   ========================================================================== */

/* ---------- Footer: legal links + company line ---------- */
.r1-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.5rem;
}
.r1-footer-legal a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.r1-footer-legal a:hover,
.r1-footer-legal a:focus-visible {
  color: var(--color-orange-light, #C75F40);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.r1-footer-legal-sep {
  color: rgba(255, 255, 255, 0.35);
}
.r1-footer-company {
  margin: 0;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .r1-footer-legal {
    justify-content: center;
  }
}
html.light .r1-footer-legal-sep {
  color: rgba(0, 0, 0, 0.35) !important;
}

/* ---------- Form consent line ---------- */
.r1-form-consent {
  margin: 0.75rem 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}
.r1-form-consent a {
  color: var(--color-orange-light, #C75F40);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.r1-form-consent a:hover,
.r1-form-consent a:focus-visible {
  color: var(--color-orange-accent, #EDBDA6);
}
.r1-form-consent--modal {
  font-size: 11px;
}
html.light .r1-form-consent {
  color: #3f3f46 !important;
}
html.light .r1-form-consent a {
  color: var(--color-orange-primary, #8A2818) !important;
}

/* ---------- Metrics heading ("Our delivery team's track record") ---------- */
.r1-metrics-heading {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
@media (min-width: 640px) {
  .r1-metrics-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}
#about-hero .r1-metrics-heading {
  margin-bottom: 1rem;
}

/* ---------- Portfolio: Live Demo badge ---------- */
.r1-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.375rem;
}
.r1-live-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.r1-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: r1-live-pulse 1.8s ease-out infinite;
}
@keyframes r1-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
html.light .r1-live-demo-badge {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(4, 120, 87, 0.35) !important;
}
@media (prefers-reduced-motion: reduce) {
  .r1-live-dot { animation: none; }
}

/* ---------- Service-page FAQ accordion ---------- */
.r1-faq-list {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.r1-faq-item {
  background: var(--bg-card, #160806);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.r1-faq-item:hover {
  border-color: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.35);
}
.r1-faq-item[open] {
  border-color: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.45);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.6), 0 0 22px -8px rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.25);
}
.r1-faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
}
.r1-faq-q::-webkit-details-marker {
  display: none;
}
.r1-faq-q::marker {
  content: "";
}
.r1-faq-q:focus-visible {
  outline: 2px solid var(--color-orange-light, #C75F40);
  outline-offset: 2px;
}
.r1-faq-q-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.r1-faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.45);
  background: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.12);
}
.r1-faq-icon::before,
.r1-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--color-orange-light, #C75F40);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.r1-faq-icon::after {
  transform: rotate(90deg);
}
.r1-faq-item[open] .r1-faq-icon::after {
  transform: rotate(0deg);
  opacity: 0;
}
.r1-faq-a {
  padding: 0 1.25rem 1.2rem;
}
.r1-faq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .r1-faq-q { padding: 1.2rem 1.5rem; }
  .r1-faq-a { padding: 0 1.5rem 1.35rem; }
  .r1-faq-q-text { font-size: 16px; }
}
html.light .r1-faq-item {
  background: #ffffff !important;
  border-color: rgba(27, 7, 3, 0.12) !important;
}
html.light .r1-faq-item[open] {
  border-color: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.4) !important;
  box-shadow: 0 10px 28px -16px rgba(27, 7, 3, 0.25) !important;
}
html.light .r1-faq-icon::before,
html.light .r1-faq-icon::after {
  background: var(--color-orange-primary, #8A2818);
}

/* ---------- Compliance-Ready Builds ---------- */
.r1-compliance-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--bg-card, #160806);
  border: 1px solid rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.35);
  box-shadow: 0 0 30px -12px rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.35);
}
.r1-compliance-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange-light, #C75F40);
  background: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.15);
  border: 1px solid rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.45);
}
.r1-compliance-title {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.r1-compliance-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 60rem;
}
.r1-badges {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.r1-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #f1f5f9;
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.r1-badge svg {
  flex: 0 0 auto;
  color: var(--color-orange-light, #C75F40);
}
@media (min-width: 768px) {
  .r1-compliance-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
  }
  .r1-compliance-title {
    font-size: 1.625rem;
  }
}
html.light .r1-compliance-card {
  background: #ffffff !important;
  box-shadow: 0 12px 30px -18px rgba(27, 7, 3, 0.25) !important;
}
html.light .r1-compliance-icon {
  color: var(--color-orange-primary, #8A2818) !important;
}
html.light .r1-badge {
  color: #1B0703 !important;
  background: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.07) !important;
  border-color: rgba(var(--color-orange-primary-rgb, 138, 40, 24), 0.25) !important;
}
html.light .r1-badge svg {
  color: var(--color-orange-primary, #8A2818) !important;
}

/* ---------- Voice hero trust row: allow wrapping for longer statements ---------- */
.r1-trust-row {
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

/* ---------- Custom AI Agent tiers: "Book a Scoping Call" under the price ---------- */
.r1-scoping-row {
  flex-wrap: wrap !important;
}
.r1-scoping-row .service-price-val {
  white-space: nowrap;
}
.r1-scoping-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Checkout: required Terms & Conditions checkbox must be visible ---------- */
.synapse-woo #payment .woocommerce-terms-and-conditions-wrapper,
.synapse-woo .woocommerce-terms-and-conditions-wrapper {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
