/* ============================================
   NAKHOMBE CONSULTANTS — Contact Page Styles
   Requires: css/common.css (design tokens)
   Prefix: ct-
   ============================================ */

/* ============================================
   1. HERO
   ============================================ */
.ct-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
  background: var(--brown-900);
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-in-out);
}

.ct-hero-bg-slide.active {
  opacity: 1;
}

.ct-hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.ct-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 46, 22, 0.94) 0%,
    rgba(44, 26, 14, 0.86) 46%,
    rgba(15, 23, 42, 0.72) 100%
  );
}

.ct-hero-inner {
  position: relative;
  z-index: 2;
}

.ct-hero-content {
  max-width: 780px;
}

/* ============================================
   BREADCRUMB — Terrain Waypoint Trail
   (.bc system, ported from the shared pattern
   used on certificates/profile/projects pages)
   ============================================ */
.ct-breadcrumb { margin-bottom: 28px; }

.ct-breadcrumb .bc { display: inline-flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.ct-breadcrumb .bc__waypoint { display: flex; align-items: center; position: relative; animation: ct-bc-item-in 0.55s var(--ease-out) both; }
.ct-breadcrumb .bc__waypoint:nth-child(1) { animation-delay: 0.2s; }
.ct-breadcrumb .bc__waypoint:nth-child(3) { animation-delay: 0.5s; }

@keyframes ct-bc-item-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.ct-breadcrumb .bc__node { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: var(--radius-full); transition: all 0.35s var(--ease-out); }
.ct-breadcrumb .bc__node:hover { background: rgba(255, 255, 255, 0.06); }
.ct-breadcrumb .bc__node-ring {
    width: 34px; height: 34px; min-width: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-out);
}
.ct-breadcrumb .bc__node-ring--active { background: rgba(22, 163, 74, 0.15); border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.06); }
.ct-breadcrumb .bc__node-icon { color: rgba(255, 255, 255, 0.4); transition: color 0.35s; }
.ct-breadcrumb .bc__node:hover .bc__node-icon { color: rgba(255, 255, 255, 0.75); }
.ct-breadcrumb .bc__node-ring--active .bc__node-icon { color: var(--green-300); }
.ct-breadcrumb .bc__label { font-size: 0.82rem; font-weight: 500; color: rgba(255, 255, 255, 0.38); white-space: nowrap; }
.ct-breadcrumb .bc__label--active { font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.ct-breadcrumb .bc__trail { display: flex; align-items: center; gap: 2px; padding: 0 4px; animation: ct-bc-trail 0.5s var(--ease-out) 0.35s both; }
@keyframes ct-bc-trail { from { opacity: 0; transform: scaleX(0.5); } to { opacity: 1; transform: scaleX(1); } }
.ct-breadcrumb .bc__trail-path { stroke-dasharray: 3 5; animation: ct-bc-flow 3.5s linear infinite; }
@keyframes ct-bc-flow { to { stroke-dashoffset: -40; } }
.ct-breadcrumb .bc__trail-arrow { color: rgba(255, 255, 255, 0.22); }

.ct-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 18px;
}

.ct-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-wrap: balance;
}

.ct-hero h1 em {
  font-style: italic;
  color: #16653C;
}

.ct-hero h1 .ct-deadline {
  color: #594C42;
}

.ct-hero-lead {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  max-width: 620px;
  margin-bottom: 34px;
  text-wrap: pretty;
}

/* Hero fact strip */
.ct-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ct-hero-fact {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ct-hero-fact-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ct-hero-fact-num {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

/* ============================================
   2. CHANNEL CARDS
   ============================================ */
.ct-channels {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 clamp(20px, 3vw, 32px);
  background: var(--slate-50);
}

.ct-channels-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.ct-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.18;
  margin-bottom: 14px;
  text-wrap: balance;
}

.ct-section-title em {
  font-style: italic;
  color: var(--green-600);
}

.ct-section-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-500);
  text-wrap: pretty;
}

.ct-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ct-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  overflow: hidden;
}

.ct-channel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.ct-channel:hover,
.ct-channel:focus-within {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
}

.ct-channel:hover::before,
.ct-channel:focus-within::before {
  transform: scaleX(1);
}

.ct-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-600);
  flex-shrink: 0;
}

.ct-channel--wa .ct-channel-icon {
  background: var(--green-100);
  color: var(--green-700);
}

.ct-channel--post .ct-channel-icon {
  background: var(--brown-100);
  color: var(--brown-600);
}

.ct-channel-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--slate-400);
}

.ct-channel-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-channel-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.45;
  word-break: break-word;
}

a.ct-channel-value:hover {
  color: var(--green-600);
}

.ct-channel-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--slate-500);
  margin-top: auto;
  padding-top: 6px;
}

/* ============================================
   3. FORM + PRACTICAL INFO
   ============================================ */
.ct-enquiry {
  padding: clamp(48px, 6vw, 90px) 0;
  background: var(--slate-50);
}

.ct-enquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 992px) {
  .ct-enquiry-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---- Form card ---- */
.ct-form-card {
  padding: clamp(24px, 3.4vw, 40px);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.ct-form-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
}

.ct-form-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 10px;
}

.ct-form-head p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 620px) {
  .ct-field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ct-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--slate-600);
}

.ct-label .ct-req {
  color: var(--green-600);
  margin-left: 2px;
}

.ct-label .ct-opt {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-400);
  margin-left: 6px;
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.ct-textarea {
  min-height: 148px;
  resize: vertical;
}

.ct-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 42px;
  cursor: pointer;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
  color: var(--slate-400);
}

.ct-input:hover,
.ct-select:hover,
.ct-textarea:hover {
  border-color: var(--slate-300);
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

/* Validation states */
.ct-field.is-invalid .ct-input,
.ct-field.is-invalid .ct-select,
.ct-field.is-invalid .ct-textarea {
  border-color: #dc2626;
  background: #fef2f2;
}

.ct-field.is-invalid .ct-input:focus,
.ct-field.is-invalid .ct-select:focus,
.ct-field.is-invalid .ct-textarea:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.ct-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #dc2626;
}

.ct-field.is-invalid .ct-error {
  display: flex;
}

.ct-help {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--slate-400);
}

/* Honeypot — hidden from humans, visible to naive bots */
.ct-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consent */
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.ct-consent input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-600);
  cursor: pointer;
  flex-shrink: 0;
}

.ct-consent span {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.ct-field.is-invalid .ct-consent {
  border-color: #dc2626;
  background: #fef2f2;
}

/* Actions */
.ct-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.ct-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-green);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-green);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ct-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

.ct-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ct-submit .ct-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-spin 0.7s linear infinite;
}

.ct-submit.is-loading .ct-spinner {
  display: block;
}

.ct-submit.is-loading .ct-submit-icon {
  display: none;
}

@keyframes ct-spin {
  to {
    transform: rotate(360deg);
  }
}

.ct-form-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--slate-500);
}

.ct-form-assurance svg {
  color: var(--green-600);
  flex-shrink: 0;
}

/* Form feedback banner */
.ct-form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ct-form-status.is-visible {
  display: flex;
}

.ct-form-status--success {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
}

.ct-form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ct-form-status svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ct-form-status strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---- Practical info aside ---- */
.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ct-panel--dark {
  background: var(--gradient-dark);
  border-color: rgba(255, 255, 255, 0.1);
}

.ct-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}

.ct-panel--dark .ct-panel-title {
  color: var(--green-300);
}

/* Address block */
.ct-address {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-address-item {
  display: flex;
  gap: 13px;
}

.ct-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-600);
  flex-shrink: 0;
}

.ct-address-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ct-address-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate-400);
}

.ct-address-value {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--slate-800);
}

.ct-address-value a:hover {
  color: var(--green-600);
}

.ct-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-600);
}

.ct-directions-link:hover {
  gap: 10px;
  color: var(--green-700);
}

/* Office hours */
.ct-hours {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--slate-200);
}

.ct-hours-row:last-child {
  border-bottom: none;
}

.ct-hours-day {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--slate-700);
}

.ct-hours-time {
  font-size: 0.87rem;
  color: var(--slate-500);
  text-align: right;
}

.ct-hours-row--closed .ct-hours-time {
  color: var(--brown-400);
}

.ct-hours-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--slate-500);
}

.ct-hours-note svg {
  color: var(--brown-400);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Dark checklist panel */
.ct-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-checklist li {
  display: flex;
  gap: 11px;
  font-size: 0.89rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.ct-checklist svg {
  color: var(--green-400);
  flex-shrink: 0;
  margin-top: 4px;
}

.ct-panel--dark .ct-panel-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   4. MAP
   ============================================ */
.ct-map {
  padding: 0 0 clamp(48px, 6vw, 90px);
  background: var(--slate-50);
}

.ct-map-head {
  max-width: 620px;
  margin-bottom: 28px;
}

.ct-map-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  background: var(--slate-100);
}

.ct-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 46vw, 460px);
  border: 0;
  filter: saturate(0.9);
}

.ct-map-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid var(--slate-200);
}

.ct-map-card-main {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1 1 260px;
  min-width: 0;
}

.ct-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gradient-green);
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}

.ct-map-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.35;
}

.ct-map-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ============================================
   5. VERIFY / REFEREES
   ============================================ */
.ct-verify {
  position: relative;
  padding: clamp(52px, 6.5vw, 96px) 0;
  background: var(--gradient-dark);
  overflow: hidden;
}

.ct-verify::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.0048) 0%, transparent 70%);
  pointer-events: none;
}

.ct-verify-head {
  position: relative;
  max-width: 660px;
  margin-bottom: 40px;
}

.ct-verify-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 16px;
}

.ct-verify-label::before,
.ct-verify-label::after {
  content: '';
  width: 30px;
  height: 10px;
  background:
    var(--gradient-accent) center center / 100% 2px no-repeat,
    var(--gradient-accent) left center / 2px 10px no-repeat;
}

.ct-verify-label::after {
  background:
    var(--gradient-accent) center center / 100% 2px no-repeat,
    var(--gradient-accent) right center / 2px 10px no-repeat;
}

.ct-verify-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 14px;
  text-wrap: balance;
}

.ct-verify-head h2 em {
  font-style: italic;
  color: var(--green-300);
}

.ct-verify-head p {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.66);
  text-wrap: pretty;
}

.ct-referee-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.ct-referee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    background 0.4s var(--ease-out);
}

.ct-referee:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
}

.ct-referee-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 1px;
}

.ct-referee-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.ct-referee-role {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.56);
}

.ct-referee-org {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-300);
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-full);
}

.ct-referee-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-referee-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.74);
  word-break: break-word;
}

.ct-referee-contacts a:hover {
  color: var(--green-300);
}

.ct-referee-contacts svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Credentials strip */
.ct-credentials {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ct-credential {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 20px;
  background: rgba(15, 23, 42, 0.5);
}

.ct-credential-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.ct-credential-value {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
}

.ct-credential-note {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   6. FAQ
   ============================================ */
.ct-faq {
  padding: clamp(52px, 6.5vw, 96px) 0;
  background: var(--slate-50);
}

.ct-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .ct-faq-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 52px;
  }

  .ct-faq-head {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ct-faq-item.is-open {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.ct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 22px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--slate-800);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}

.ct-faq-q:hover {
  color: var(--green-600);
}

.ct-faq-item.is-open .ct-faq-q {
  color: var(--green-700);
}

.ct-faq-sign {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), background 0.35s var(--ease-out);
}

.ct-faq-item.is-open .ct-faq-sign {
  transform: rotate(45deg);
  background: var(--green-100);
}

.ct-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-in-out);
}

.ct-faq-a-inner {
  padding: 0 22px 21px;
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--slate-500);
}

.ct-faq-a-inner strong {
  color: var(--slate-700);
  font-weight: 600;
}

/* ============================================
   7. CLOSING CTA
   ============================================ */
.ct-cta {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0;
  overflow: hidden;
  background: var(--brown-900);
}

.ct-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5, 46, 22, 0.92) 0%,
    rgba(44, 26, 14, 0.88) 100%
  );
}

.ct-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ct-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.16;
  margin-bottom: 16px;
  text-wrap: balance;
}

.ct-cta-content p {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  text-wrap: pretty;
}

.ct-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================
   8. ACCESSIBILITY & MOTION
   ============================================ */
.ct-skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 9999;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--green-700);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.25s var(--ease-out);
}

.ct-skip-link:focus {
  top: 0;
}

.ct-hero a:focus-visible,
.ct-verify a:focus-visible,
.ct-cta a:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.ct-channel a:focus-visible,
.ct-faq-q:focus-visible,
.ct-submit:focus-visible,
.ct-directions-link:focus-visible,
.ct-map-card a:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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;
}

/* No-JS fallback: never leave reveal content invisible */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero-bg-slide,
  .ct-channel,
  .ct-referee,
  .ct-faq-a,
  .ct-faq-sign,
  .ct-submit,
  .ct-directions-link {
    transition: none !important;
  }

  .ct-hero-bg-slide {
    opacity: 1;
  }

  .ct-hero-bg-slide:not(.active) {
    opacity: 0;
  }

  .ct-submit .ct-spinner {
    animation: none;
  }

  .ct-channel:hover,
  .ct-referee:hover {
    transform: none;
  }
}

/* ============================================
   9. PRINT
   ============================================ */
@media print {
  .navbar,
  .nav-overlay,
  .back-to-top,
  .ct-hero-bg,
  .ct-cta,
  .ct-form-card,
  .ct-map-frame iframe,
  .ct-faq-sign {
    display: none !important;
  }

  .ct-hero {
    min-height: auto;
    padding: 0 0 20px;
    background: none;
  }

  .ct-hero h1,
  .ct-hero-lead,
  .ct-hero-fact-num,
  .ct-verify-head h2,
  .ct-referee-name,
  .ct-credential-value {
    color: #000 !important;
  }

  .ct-verify,
  .ct-referee,
  .ct-credential {
    background: none !important;
    border-color: #999 !important;
  }

  .ct-faq-a {
    max-height: none !important;
  }

  .ct-faq-a-inner {
    padding-top: 0;
  }
}

/* ============================================
   10. SMALL-SCREEN REFINEMENTS
   ============================================ */
@media (max-width: 600px) {
  .ct-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
  }

  .ct-hero-fact {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
  }

  .ct-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-submit {
    width: 100%;
  }

  .ct-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ct-map-card {
    padding: 18px;
  }
}
