/* public_html/assets/app.css */

/* Core variables */
:root {
  --primary: #00f2ea;
  --bg-dark: #060b14;
  --card-bg: #0a0f12;
  --border: #1e262b;
  --text-muted: #a0a0a0;
  --text: #ffffff;
}

html[data-theme="light"] {
  --bg-dark: #f6f7fb;
  --card-bg: #ffffff;
  --border: #e6e9ef;
  --text: #0b1220;
  --text-muted: #4b5563;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.sp-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.sp-skip:focus { left: 12px; }

/* Header */
.sp-header {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand lockup: Logo + company name */
.sp-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width: 240px;
}

.sp-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.sp-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.sp-brand-name{
  font-weight:800;
  letter-spacing:1px;
  font-size:14px;
  text-transform:uppercase;
  color: var(--text);
  white-space: nowrap;
}

.sp-brand-sub{
  font-size:10px;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color: var(--text-muted);
}

/* If you add class="sp-brand-logo" in footer, this will apply */
.sp-brand--footer .sp-brand-logo { height: 34px; }

/* Nav */
.sp-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.sp-nav-link {
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
  transition: opacity .2s ease, color .2s ease;
}

.sp-nav-link:hover { opacity: 1; color: var(--primary); }
.sp-nav-link.is-active { color: var(--primary); opacity: 1; }

/* Buttons */
.sp-btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  gap: 10px;
}

.sp-btn-primary {
  background: var(--primary);
  color: #001213;
  box-shadow: 0 0 22px rgba(0, 242, 234, 0.18);
}

.sp-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.sp-header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Sections */
.sp-section { padding: 80px 0; }
.sp-section-tight { padding: 52px 0; }

/* Cards / grids */
.sp-card-soft {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}

.sp-grid-2 {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 50px;
  align-items: center;
}

.sp-media-card {
  height: 420px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow: hidden;
}

/* HERO: video background helper */
.sp-hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.sp-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 11, 20, 0.35), rgba(6, 11, 20, 0.92));
}

html[data-theme="light"] .sp-hero-overlay{
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(246,247,251,.92));
}

.sp-hero-inner {
  position: relative;
  z-index: 2;
  padding: 88px 0;
}

.sp-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 15, 18, .55);
  backdrop-filter: blur(10px);
  font-weight: 700;
  color: var(--text-muted);
}

.sp-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.sp-hero p {
  margin: 0 0 18px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 16px;
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: flex; gap: 14px; }

.input, .textarea {
  width: 100%;
  padding: 12px 12px;
  background: rgba(22, 27, 34, .9);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

html[data-theme="light"] .input,
html[data-theme="light"] .textarea {
  background: #fbfbfd;
}

.row2 .input { flex: 1; }
.textarea { min-height: 140px; resize: vertical; }

/* Footer */
.sp-footer {
  border-top: 1px solid var(--border);
  padding: 76px 0 28px;
  margin-top: 52px;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.sp-footer-brand p { color: var(--text-muted); margin: 14px 0 0; max-width: 48ch; }

.sp-footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.sp-footer-links {
  display: grid;
  gap: 10px;
}

.sp-footer-links a { text-decoration: none; color: var(--text-muted); }
.sp-footer-links a:hover { color: var(--primary); }

.sp-footer-meta {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ✅ Footer logo safety rule (fixes huge logo even if <img> has no class) */
.sp-footer-brand img {
  height: 34px;
  width: auto;
  max-width: 180px;
  display: block;
}

/* Reveal animation */
.sp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
}
.sp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px) {
  .sp-grid-2 { grid-template-columns: 1fr; }
  .sp-media-card { height: 360px; }
  .sp-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sp-header-inner { flex-direction: column; align-items: center; }
  .sp-brand { justify-content: center; min-width: auto; }
  .sp-brand-text { align-items: center; text-align: center; }
  .sp-header-cta { width: 100%; justify-content: center; flex-wrap: wrap; }
  .row2 { flex-direction: column; }

  /* Optional: reduce brand size on small screens */
  .sp-brand-name { font-size: 13px; }
  .sp-brand-sub  { font-size: 9px; }
}