/**
 * TechHand public front theme — RC-inspired layout, tech blue / black / white.
 * Accent: #00CCFF. Load only with $th_front_layout (see inc/head.php).
 */
:root {
  --th-bg: #050a12;
  --th-bg-mid: #0a1628;
  --th-bg-elevated: #0c1c32;
  --th-accent: #00ccff;
  --th-accent-soft: #33d6ff;
  --th-accent-dim: #0099bf;
  --th-text: #f0f4fc;
  --th-muted: #8a9bb8;
  --th-border: rgba(0, 204, 255, 0.14);
  --th-border-soft: rgba(255, 255, 255, 0.08);
  --th-card: rgba(12, 28, 48, 0.72);
  --th-card-strong: rgba(16, 36, 62, 0.88);
  --th-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  --th-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
  --th-radius: 16px;
  --th-radius-lg: 22px;
  --th-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --th-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

.th-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 204, 255, 0.08), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(0, 153, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #03060c 0%, var(--th-bg) 35%, #060d18 100%);
  color: var(--th-text);
  font-family: var(--th-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

.th-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.th-body > * {
  position: relative;
  z-index: 1;
}

.th-main {
  flex: 1 0 auto;
}

/* --- Top bar --- */
.th-topbar {
  background: rgba(3, 8, 16, 0.92);
  border-bottom: 1px solid var(--th-border-soft);
  font-size: 0.82rem;
}

.th-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.45rem 0;
}

.th-topbar-badge {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-accent);
  font-size: 0.72rem;
}

.th-topbar-tagline {
  color: var(--th-muted);
}

.th-topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.th-topbar-link {
  color: var(--th-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.th-topbar-link:hover {
  color: var(--th-accent);
}

/* --- Header / nav --- */
.th-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 18, 0.82);
  border-bottom: 1px solid var(--th-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.th-navbar {
  padding: 0.15rem 0;
}

.th-brand-logo {
  max-height: 38px;
  width: auto;
  display: block;
}

.th-brand-icon {
  border-radius: 8px;
  object-fit: contain;
}

.th-navbar .nav-link {
  color: var(--th-muted) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.th-navbar .nav-link:hover,
.th-navbar .nav-link:focus {
  color: var(--th-text) !important;
  background: rgba(0, 204, 255, 0.06);
}

.th-navbar .nav-link.active {
  color: var(--th-accent) !important;
}

.th-dropdown-menu {
  background: var(--th-card-strong);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 0.35rem;
  box-shadow: var(--th-shadow);
}

.th-dropdown-menu .dropdown-item {
  border-radius: 8px;
  color: var(--th-text);
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}

.th-dropdown-menu .dropdown-item:hover,
.th-dropdown-menu .dropdown-item:focus {
  background: rgba(0, 204, 255, 0.12);
  color: var(--th-text);
}

.th-dropdown-menu .dropdown-item.active {
  background: rgba(0, 204, 255, 0.2);
  color: var(--th-accent);
}

.th-btn-nav-cta {
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  color: #031018 !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 1.1rem !important;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 204, 255, 0.25);
}

.th-btn-nav-cta:hover {
  color: #031018 !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.th-btn-nav-cta.th-btn-nav-cta--active {
  box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.55), 0 8px 24px rgba(0, 204, 255, 0.25);
}

.th-nav-toggler {
  border-color: var(--th-border);
}

.th-nav-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 204, 255, 0.25);
}

/* --- Hero --- */
.th-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.th-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-accent);
  margin-bottom: 0.75rem;
}

.th-hero-h1 {
  font-family: var(--th-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--th-text);
  margin: 0 0 1rem;
}

.th-hero-lead {
  font-size: 1.08rem;
  color: var(--th-muted);
  max-width: 38rem;
  margin-bottom: 0;
}

.th-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.th-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #031018 !important;
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 204, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-btn-primary:hover {
  color: #031018 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 204, 255, 0.35);
}

.th-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--th-text) !important;
  background: transparent;
  border: 1px solid var(--th-border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.th-btn-ghost:hover {
  border-color: var(--th-accent);
  background: rgba(0, 204, 255, 0.08);
  color: var(--th-text) !important;
}

.th-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.th-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--th-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--th-border-soft);
  border-radius: 999px;
}

.th-chip i {
  color: var(--th-accent);
}

/* --- Panels --- */
.th-panel {
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--th-shadow-sm);
  height: 100%;
}

.th-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-accent);
  margin-bottom: 0.35rem;
}

.th-panel-title {
  font-family: var(--th-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--th-text);
}

.th-panel-copy {
  color: var(--th-muted);
  font-size: 0.95rem;
  margin: 0;
}

.th-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (max-width: 575px) {
  .th-stat-grid {
    grid-template-columns: 1fr;
  }
}

.th-stat-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--th-border-soft);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

.th-stat-card strong {
  display: block;
  color: var(--th-accent);
  font-size: 0.9rem;
}

.th-stat-card span {
  color: var(--th-muted);
}

/* --- Sections --- */
.th-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.th-section-alt {
  background: rgba(0, 204, 255, 0.03);
  border-top: 1px solid var(--th-border-soft);
  border-bottom: 1px solid var(--th-border-soft);
}

.th-section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.th-section-title {
  font-family: var(--th-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--th-text);
  margin: 0 0 0.5rem;
}

.th-section-intro p {
  color: var(--th-muted);
  margin: 0;
}

/* --- Service grid (home) --- */
.th-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.th-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.25rem;
  background: var(--th-card);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.th-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 204, 255, 0.35);
  box-shadow: var(--th-shadow-sm);
  color: inherit;
}

.th-service-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(0, 204, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--th-accent);
  font-size: 1.25rem;
}

.th-service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--th-text);
}

.th-service-card p {
  font-size: 0.92rem;
  color: var(--th-muted);
  flex: 1;
  margin: 0 0 1rem;
}

.th-service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--th-muted);
}

.th-service-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.th-service-card li .fa-check {
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--th-accent);
  font-size: 0.75rem;
}

/* --- Partner logos --- */
.th-clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: center;
}

.th-clients-grid img.th-client-logo {
  max-height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.2) brightness(1.1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Logos shipped on white rectangles (e.g. Hawk Host): blend into dark section */
.th-clients-grid img.th-client-logo--light-bg {
  mix-blend-mode: multiply;
  filter: none;
  opacity: 1;
  max-height: 56px;
  padding: 0.2rem 0.35rem;
}

.th-clients-grid img.th-client-logo:hover {
  opacity: 1;
}

.th-clients-grid img.th-client-logo--light-bg:hover {
  filter: brightness(1.06);
}

/* In-page anchors: clear sticky topbar + nav + about subnav */
main.th-scroll-anchors > section[id] {
  scroll-margin-top: 10rem;
}

@media (max-width: 991px) {
  main.th-scroll-anchors > section[id] {
    scroll-margin-top: 8.5rem;
  }
}

/* --- Reveal --- */
.th-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.th-reveal.th-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.th-footer {
  background: #03060c;
  border-top: 1px solid var(--th-border);
  margin-top: auto;
}

.th-footer-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.th-footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-accent);
  margin-bottom: 1rem;
}

.th-footer-text,
.th-footer-links a,
.th-footer-contact a {
  color: var(--th-muted);
}

.th-footer-links a:hover,
.th-footer-contact a:hover {
  color: var(--th-accent);
}

.th-footer-links li,
.th-footer-contact li {
  margin-bottom: 0.4rem;
}

.th-footer-portal {
  color: var(--th-accent);
  font-weight: 600;
  text-decoration: none;
}

.th-footer-portal:hover {
  color: var(--th-accent-soft);
}

.th-footer-note {
  color: var(--th-muted);
  opacity: 0.85;
}

.th-footer-contact i {
  color: var(--th-accent);
  width: 1.1rem;
}

.th-bottom-bar {
  border-top: 1px solid var(--th-border-soft);
  color: var(--th-muted);
}

.th-bottom-link {
  color: var(--th-muted);
  text-decoration: none;
}

.th-bottom-link:hover {
  color: var(--th-accent);
}

/* --- Forms (contact) --- */
.th-form .form-label {
  color: var(--th-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.th-form .form-control,
.th-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--th-border);
  color: var(--th-text);
  border-radius: 10px;
}

.th-form .form-control:focus,
.th-form textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--th-accent);
  color: var(--th-text);
  box-shadow: 0 0 0 0.2rem rgba(0, 204, 255, 0.2);
}

.th-form button[type="submit"] {
  background: linear-gradient(135deg, var(--th-accent) 0%, var(--th-accent-soft) 100%);
  color: #031018;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
}
