/**
 * Contact Us page — bespoke conversion layout.
 *
 * Loaded only on /contact/. Declares its own token block on the section roots
 * so it never depends on the surrounding design-system cascade.
 *
 * @package seoservices1theme
 * @since 1.10.0
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

.ctc-hero,
.ctc-hub,
.ctc-help-section,
.ctc-faq,
.ctc-cta-section {
  --ctc-navy: #0B2545;
  --ctc-slate: #13315C;
  --ctc-gold: #F5B700;
  --ctc-gold-soft: rgba(245, 183, 0, 0.14);
  --ctc-white: #FFFFFF;
  --ctc-soft: #F8FAFC;
  --ctc-border: #E2E8F0;
  --ctc-ink: #0E1B2C;
  --ctc-body: #3E5065;
  --ctc-muted: #64748B;
  --ctc-radius: 12px;
  --ctc-radius-lg: 18px;
  --ctc-shadow: 0 18px 45px -28px rgba(11, 37, 69, 0.35);
}

/* ==========================================================================
   2. Section 1 — Compact navy hero
   ========================================================================== */

.audit-hero.ctc-hero {
  position: relative;
  overflow: hidden;
  /* Solid base only: pages.css strips `background-image` from any
     `.audit-hero` that carries the dot texture pseudo-element. */
  background-color: var(--ctc-navy);
  background-image: none;
  color: var(--ctc-white);
  padding-top: clamp(2.25rem, 3.5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

/* Kill the shared dot/texture overlay so the banner stays flat navy. */
.audit-hero.ctc-hero::before {
  display: none;
}

.ctc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.ctc-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(245, 183, 0, 0.4);
  border-radius: 999px;
  color: var(--ctc-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audit-hero.ctc-hero .ctc-hero__inner h1 {
  margin: 0 0 1rem;
  color: var(--ctc-white);
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.ctc-hero__lead {
  max-width: 46rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.65;
}

.ctc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ctc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
}

.ctc-hero__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--ctc-gold);
}

.ctc-hero__badge-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   3. Section 2 — Conversion hub
   ========================================================================== */

.ctc-hub {
  background: var(--ctc-white);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.ctc-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  align-items: start;
}

.ctc-hub__main {
  min-width: 0;
}

.ctc-hub__side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  min-width: 0;
}

/* --- Shared card ---------------------------------------------------------- */

.ctc-card {
  background: var(--ctc-white);
  border: 1px solid var(--ctc-border);
  border-radius: var(--ctc-radius-lg);
  box-shadow: var(--ctc-shadow);
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
}

.ctc-card--form {
  padding: clamp(1.5rem, 2.4vw, 2.35rem);
}

.ctc-card__head {
  margin-bottom: 1.4rem;
}

.ctc-card__head h2,
.ctc-card__title {
  margin: 0 0 0.55rem;
  color: var(--ctc-ink);
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.ctc-card__head p {
  margin: 0;
  color: var(--ctc-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ctc-card__head .eyebrow {
  margin-bottom: 0.5rem;
}

/* --- Status banner -------------------------------------------------------- */

.ctc-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--ctc-radius);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ctc-alert p {
  margin: 0;
}

.ctc-alert--ok {
  background: rgba(15, 122, 80, 0.08);
  border: 1px solid rgba(15, 122, 80, 0.35);
  color: #0B5A3B;
}

.ctc-alert--error {
  background: rgba(214, 58, 52, 0.07);
  border: 1px solid rgba(214, 58, 52, 0.35);
  color: #A62620;
}

.ctc-alert__icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: #0F7A50;
}

.ctc-alert__icon svg {
  width: 100%;
  height: 100%;
}

/* --- Form ----------------------------------------------------------------- */

.ctc-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.ctc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.ctc-field--full {
  grid-column: 1 / -1;
}

.ctc-field__label {
  color: var(--ctc-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ctc-field__req {
  color: #B3261E;
  text-decoration: none;
}

.ctc-field__opt {
  color: var(--ctc-muted);
  font-weight: 500;
}

.ctc-field input,
.ctc-field select,
.ctc-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ctc-ink);
  background: var(--ctc-soft);
  border: 1px solid var(--ctc-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ctc-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.ctc-field textarea {
  resize: vertical;
  min-height: 5.6rem;
  line-height: 1.55;
}

.ctc-field input::placeholder,
.ctc-field textarea::placeholder {
  color: #94A3B8;
}

.ctc-field input:focus,
.ctc-field select:focus,
.ctc-field textarea:focus {
  outline: none;
  background: var(--ctc-white);
  border-color: var(--ctc-slate);
  box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.13);
}

.ctc-field input:user-invalid,
.ctc-field select:user-invalid {
  border-color: #D63A34;
}

/* Honeypot: removed from the visual and accessibility tree. */
.ctc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* --- Submit --------------------------------------------------------------- */

.ctc-form__submit {
  margin-top: 1.4rem;
}

.ctc-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ctc-navy);
  background: var(--ctc-gold);
  border: 1px solid var(--ctc-gold);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ctc-form__button:hover {
  background: #DEA400;
  border-color: #DEA400;
  box-shadow: 0 12px 26px -16px rgba(11, 37, 69, 0.7);
}

.ctc-form__button:focus-visible {
  outline: 3px solid rgba(11, 37, 69, 0.45);
  outline-offset: 2px;
}

.ctc-form__note {
  margin: 0.7rem 0 0;
  color: var(--ctc-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

/* --- Direct channels card ------------------------------------------------- */

.ctc-channels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.ctc-channel {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  background: var(--ctc-soft);
  border: 1px solid var(--ctc-border);
  border-radius: var(--ctc-radius);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ctc-channel:hover {
  background: var(--ctc-white);
  border-color: rgba(19, 49, 92, 0.28);
}

.ctc-channel__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--ctc-white);
  background: var(--ctc-navy);
  border-radius: 9px;
}

.ctc-channel__badge svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ctc-channel__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ctc-channel__body strong {
  color: var(--ctc-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.ctc-channel__body a {
  color: var(--ctc-slate);
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ctc-channel__body a:hover {
  color: var(--ctc-navy);
  text-decoration: underline;
}

.ctc-channels__foot {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ctc-border);
  color: var(--ctc-muted);
  font-size: 0.8125rem;
}

.ctc-channels__foot a {
  color: var(--ctc-slate);
  font-weight: 600;
  text-decoration: none;
}

.ctc-channels__foot a:hover {
  text-decoration: underline;
}

/* --- What happens next ---------------------------------------------------- */

.ctc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
  counter-reset: none;
}

.ctc-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-left: 0;
}

.ctc-step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--ctc-navy);
  background: var(--ctc-gold-soft);
  border: 1px solid rgba(245, 183, 0, 0.4);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ctc-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.ctc-step__body strong {
  color: var(--ctc-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.ctc-step__body span {
  color: var(--ctc-body);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ==========================================================================
   4. Section 3 — How we can help
   ========================================================================== */

.ctc-help-section {
  background: var(--ctc-soft);
  border-top: 1px solid var(--ctc-border);
  border-bottom: 1px solid var(--ctc-border);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.ctc-help__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: stretch;
}

.ctc-help {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: clamp(1.2rem, 1.8vw, 1.6rem);
  background: var(--ctc-white);
  border: 1px solid var(--ctc-border);
  border-radius: var(--ctc-radius-lg);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ctc-help:hover {
  border-color: rgba(19, 49, 92, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--ctc-shadow);
}

.ctc-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.3rem;
  color: var(--ctc-navy);
  background: var(--ctc-gold-soft);
  border-radius: 10px;
}

.ctc-help__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.ctc-help__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.ctc-help__title a {
  color: var(--ctc-ink);
  text-decoration: none;
}

.ctc-help__title a:hover {
  color: var(--ctc-slate);
  text-decoration: underline;
}

.ctc-help__text {
  margin: 0;
  color: var(--ctc-body);
  font-size: 0.875rem;
  line-height: 1.6;
  /* Push the arrow to the card base so all four align. */
  flex: 1 1 auto;
}

.ctc-help__arrow {
  display: inline-flex;
  align-items: center;
  color: var(--ctc-slate);
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ctc-help__arrow svg {
  width: 1rem;
  height: 1rem;
}

.ctc-help:hover .ctc-help__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ==========================================================================
   5. Section 4 — Onboarding FAQs
   ========================================================================== */

.ctc-faq {
  background: var(--ctc-white);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.ctc-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.ctc-faq__col {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.ctc-faq__item {
  background: var(--ctc-soft);
  border: 1px solid var(--ctc-border);
  border-radius: var(--ctc-radius);
  padding: 0.15rem 1rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ctc-faq__item[open] {
  background: var(--ctc-white);
  border-color: rgba(19, 49, 92, 0.26);
}

.ctc-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 0;
  color: var(--ctc-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.ctc-faq__item summary::-webkit-details-marker {
  display: none;
}

.ctc-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  color: var(--ctc-slate);
  background: var(--ctc-white);
  border: 1px solid var(--ctc-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.ctc-faq__item[open] summary::after {
  content: "−";
  background: var(--ctc-gold);
  border-color: var(--ctc-gold);
  color: var(--ctc-navy);
}

.ctc-faq__item summary:focus-visible {
  outline: 2px solid var(--ctc-slate);
  outline-offset: 2px;
  border-radius: 6px;
}

.ctc-faq__body {
  padding: 0 0 1rem;
  color: var(--ctc-body);
  font-size: 0.875rem;
  line-height: 1.68;
}

.ctc-faq__body p {
  margin: 0 0 0.7rem;
}

.ctc-faq__body p:last-child {
  margin-bottom: 0;
}

.ctc-faq__body strong {
  color: var(--ctc-ink);
}

/* ==========================================================================
   6. Section 5 — Closing CTA
   ========================================================================== */

.ctc-cta-section {
  background: var(--ctc-white);
  padding-bottom: clamp(3rem, 4.5vw, 4.5rem);
}

.ctc-cta {
  padding: clamp(2rem, 3.5vw, 3.25rem);
  background: var(--ctc-navy);
  border-radius: var(--ctc-radius-lg);
  text-align: center;
}

.ctc-cta .eyebrow {
  color: var(--ctc-gold);
}

.ctc-cta h2 {
  margin: 0.35rem 0 0.85rem;
  color: var(--ctc-white);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ctc-cta p {
  max-width: 44rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ctc-cta .audit-cta__actions {
  justify-content: center;
  margin-top: 1.6rem;
}

.ctc-cta .btn--primary {
  color: var(--ctc-navy);
  background: var(--ctc-gold);
  border-color: var(--ctc-gold);
}

.ctc-cta .btn--primary:hover {
  background: #DEA400;
  border-color: #DEA400;
}

.ctc-cta .btn--ghost {
  color: var(--ctc-white);
  border-color: rgba(255, 255, 255, 0.42);
}

.ctc-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */

/* Tablet: stack the hub, 2-up service cards, single-column FAQ. */
@media (max-width: 1023px) {
  .ctc-hub__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctc-hub__side {
    grid-template-rows: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ctc-card--contact,
  .ctc-card--steps {
    height: 100%;
  }

  .ctc-help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: single column throughout. */
@media (max-width: 767px) {
  .ctc-hero__lead .ctc-hero__br {
    display: none;
  }

  .ctc-hero__badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .ctc-hub__side {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctc-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctc-faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ctc-card {
    padding: 1.25rem;
  }

  .ctc-card--form {
    padding: 1.25rem;
  }

  .ctc-cta .audit-cta__actions {
    flex-direction: column;
  }

  .ctc-cta .audit-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Narrow phones: tighten the step rows. */
@media (max-width: 400px) {
  .ctc-channel {
    padding: 0.75rem;
  }

  .ctc-step {
    gap: 0.7rem;
  }
}

/* ==========================================================================
   8. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ctc-help,
  .ctc-help__arrow,
  .ctc-channel,
  .ctc-form__button,
  .ctc-faq__item summary::after,
  .ctc-field input,
  .ctc-field select,
  .ctc-field textarea {
    transition: none;
  }

  .ctc-help:hover {
    transform: none;
  }

  .ctc-help:hover .ctc-help__arrow {
    transform: none;
  }
}
