/* ============================================================
   CONTATO — page styles (static stylesheet)
   Loaded directly via <link>, bypassing Astro scoping/processing.
   All selectors namespaced .ct-*.
   ============================================================ */
.ct-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.ct-section { padding: 64px 0; }

/* HERO */
.ct-hero { position: relative; padding: 80px 0 48px; overflow: hidden; text-align: center; }
.ct-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ct-blob { position: absolute; border-radius: 50%; filter: blur(140px); }
.ct-blob--1 { width: 580px; height: 580px; top: -180px; left: -120px; background: radial-gradient(circle, #8a2bd6, transparent 70%); opacity: 0.3; }
.ct-blob--2 { width: 460px; height: 460px; bottom: -160px; right: -110px; background: radial-gradient(circle, #6a1ab0, transparent 70%); opacity: 0.26; }
html[data-theme="light"] .ct-blob { opacity: 0.16; }
.ct-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin: 22px auto 18px; font-weight: 800; max-width: 920px; color: var(--text-primary); }
.ct-lead { font-size: 17px; line-height: 1.55; color: var(--text-secondary); margin: 0 auto; max-width: 720px; }
.ct-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(138, 43, 214, 0.08); border: 1px solid rgba(138, 43, 214, 0.22); border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rh-purple); }
html[data-theme="light"] .ct-eyebrow { color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.05); border-color: rgba(106, 26, 176, 0.18); }
.ct-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--rh-purple); box-shadow: 0 0 0 0 rgba(138, 43, 214, 0.7); animation: ct-pulse 2s infinite; }
@keyframes ct-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(138, 43, 214, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(138, 43, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 43, 214, 0); }
}
.ct-grad { background: linear-gradient(135deg, #b855ff 0%, #8a2bd6 50%, #6a1ab0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .ct-grad { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }

/* SECTION HEAD */
.ct-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.ct-section-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 10px; color: var(--text-primary); font-weight: 800; }
.ct-kicker { display: inline-block; padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rh-purple); background: rgba(138, 43, 214, 0.1); border: 1px solid rgba(138, 43, 214, 0.25); border-radius: 999px; }
html[data-theme="light"] .ct-kicker { color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.06); border-color: rgba(106, 26, 176, 0.18); }

/* CHANNELS */
.ct-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
a.ct-channel, button.ct-channel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "icon eyebrow"
    "icon title"
    "desc desc"
    "meta meta"
    "cta  cta";
  gap: 4px 16px;
  padding: 26px 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
          appearance: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
button.ct-channel { margin: 0; }
.ct-channel:hover { transform: translateY(-3px); border-color: rgba(138, 43, 214, 0.4); box-shadow: 0 14px 32px rgba(138, 43, 214, 0.14); }
.ct-channel--featured { border-color: rgba(138, 43, 214, 0.35); background: linear-gradient(180deg, rgba(138, 43, 214, 0.04), transparent 60%), var(--bg-card); }
.ct-channel--featured::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.ct-channel-icon {
  grid-area: icon;
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(138, 43, 214, 0.32);
  align-self: start;
}
html[data-theme="light"] .ct-channel-icon { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }
.ct-channel-eyebrow { grid-area: eyebrow; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ct-channel-title { grid-area: title; font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.3; }
.ct-channel-desc { grid-area: desc; margin: 12px 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.ct-channel-meta { grid-area: meta; font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 14px; }
.ct-channel-cta { grid-area: cta; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--rh-purple); padding-top: 14px; border-top: 1px dashed var(--border-subtle); }
html[data-theme="light"] .ct-channel-cta { color: var(--rh-purple-deep); }
.ct-channel:hover .ct-channel-cta { gap: 10px; }

/* FORM + SIDEBAR */
.ct-section--form { padding-top: 32px; padding-bottom: 96px; }
.ct-form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 28px; align-items: start; }

.ct-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 18px 40px rgba(13, 10, 31, 0.18);
}
html[data-theme="light"] .ct-form-card { box-shadow: 0 18px 40px rgba(13, 10, 31, 0.06); }
.ct-form-head { margin-bottom: 28px; }
.ct-form-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 12px 0 10px; color: var(--text-primary); font-weight: 800; letter-spacing: -0.015em; }
.ct-form-head p { margin: 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.ct-form-head p strong { color: var(--text-primary); font-weight: 700; }

.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ct-field input,
.ct-field textarea {
  padding: 14px 16px;
  background: rgba(138, 43, 214, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 150ms ease, background 150ms ease;
  width: 100%; box-sizing: border-box;
}
html[data-theme="light"] .ct-field input,
html[data-theme="light"] .ct-field textarea { background: rgba(106, 26, 176, 0.025); }
.ct-field input:focus,
.ct-field textarea:focus { outline: none; border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.06); }
html[data-theme="light"] .ct-field input:focus,
html[data-theme="light"] .ct-field textarea:focus { border-color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.04); }
.ct-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Custom listbox */
.ct-select { position: relative; }
.ct-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(138, 43, 214, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}
html[data-theme="light"] .ct-select-trigger { background: rgba(106, 26, 176, 0.025); }
.ct-select-trigger:hover { border-color: rgba(138, 43, 214, 0.4); }
.ct-select-trigger:focus-visible,
.ct-select.is-open .ct-select-trigger {
  outline: none;
  border-color: var(--rh-purple);
  background: rgba(138, 43, 214, 0.06);
  box-shadow: 0 0 0 4px rgba(138, 43, 214, 0.12);
}
html[data-theme="light"] .ct-select-trigger:focus-visible,
html[data-theme="light"] .ct-select.is-open .ct-select-trigger {
  border-color: var(--rh-purple-deep);
  background: rgba(106, 26, 176, 0.04);
  box-shadow: 0 0 0 4px rgba(106, 26, 176, 0.1);
}
.ct-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-select-value[data-placeholder="true"] { color: var(--text-muted); font-weight: 400; }
.ct-select-chevron { display: inline-flex; color: var(--text-muted); transition: transform 200ms ease; flex-shrink: 0; }
.ct-select.is-open .ct-select-chevron { transform: rotate(180deg); color: var(--rh-purple); }
html[data-theme="light"] .ct-select.is-open .ct-select-chevron { color: var(--rh-purple-deep); }

.ct-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  list-style: none;
  margin: 0; padding: 6px;
  /* Solid background — must occlude content behind it.
     var(--bg-card) is translucent for glassmorphism on cards;
     a dropdown needs opacity 1. */
  background-color: #1a1232;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(138, 43, 214, 0.12);
  max-height: 280px;
  overflow-y: auto;
  animation: ct-select-in 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="light"] .ct-select-list {
  background-color: #ffffff;
  box-shadow: 0 16px 40px rgba(13, 10, 31, 0.18), 0 0 0 1px rgba(106, 26, 176, 0.1);
  border-color: rgba(13, 10, 31, 0.08);
}
@keyframes ct-select-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ct-select-list:focus-visible { outline: none; }
.ct-select-option {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  line-height: 1.4;
}
.ct-select-option.is-active,
.ct-select-option:hover {
  background: rgba(138, 43, 214, 0.1);
  color: var(--text-primary);
}
html[data-theme="light"] .ct-select-option.is-active,
html[data-theme="light"] .ct-select-option:hover {
  background: rgba(106, 26, 176, 0.06);
}
.ct-select-option[aria-selected="true"] {
  background: rgba(138, 43, 214, 0.14);
  color: var(--text-primary);
  font-weight: 600;
}
html[data-theme="light"] .ct-select-option[aria-selected="true"] {
  background: rgba(106, 26, 176, 0.08);
}
.ct-select-option[aria-selected="true"]::after {
  content: '';
  float: right;
  width: 14px; height: 14px;
  margin-top: 2px;
  background: currentColor;
  color: var(--rh-purple);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
html[data-theme="light"] .ct-select-option[aria-selected="true"]::after { color: var(--rh-purple-deep); }

.ct-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin-top: 4px; }
.ct-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--rh-purple); }
.ct-consent a { color: var(--rh-purple); text-decoration: none; font-weight: 600; }
.ct-consent a:hover { text-decoration: underline; }
html[data-theme="light"] .ct-consent a { color: var(--rh-purple-deep); }

.ct-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #b855ff 0%, #8a2bd6 50%, #6a1ab0 100%);
  color: #fff !important;
  border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 10px 26px rgba(138, 43, 214, 0.4);
}
.ct-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(138, 43, 214, 0.55); filter: brightness(1.06); }
html[data-theme="light"] .ct-btn-primary { background: linear-gradient(135deg, #8a2bd6, #6a1ab0 50%, #4a0e80); box-shadow: 0 10px 26px rgba(106, 26, 176, 0.32); }
.ct-btn-block { width: 100%; padding: 16px 26px; font-size: 15.5px; }
.ct-form-foot { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 8px 0 0; text-align: center; }

/* SIDEBAR */
.ct-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.ct-side-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 22px 22px; }
.ct-side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; margin: 0 0 12px; color: var(--text-primary); letter-spacing: -0.005em; }
.ct-side-card h3 svg { color: var(--rh-purple); flex-shrink: 0; }
html[data-theme="light"] .ct-side-card h3 svg { color: var(--rh-purple-deep); }
.ct-side-card p { margin: 4px 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.ct-side-card p strong { color: var(--text-primary); font-weight: 600; }
.ct-side-muted { font-size: 11.5px !important; color: var(--text-muted) !important; font-family: 'JetBrains Mono', monospace; margin-top: 8px !important; }

.ct-faq { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ct-faq > div { padding-bottom: 12px; border-bottom: 1px dashed var(--border-subtle); }
.ct-faq > div:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-faq dt { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ct-faq dd { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .ct-channels { grid-template-columns: 1fr; max-width: 560px; }
  .ct-form-grid { grid-template-columns: 1fr; }
  .ct-side { position: static; }
}
@media (max-width: 720px) {
  .ct-container { padding: 0 18px; }
  .ct-section { padding: 48px 0; }
  .ct-section--form { padding-bottom: 64px; }
  .ct-hero { padding: 56px 0 32px; }
  .ct-form-card { padding: 24px 20px; border-radius: 18px; }
  .ct-row { grid-template-columns: 1fr; gap: 14px; }
  .ct-channel { padding: 22px 20px; }
  .ct-channel-icon { width: 42px; height: 42px; }
}
