/* ===========================
   Testra UI — style2.css (complete)
   =========================== */

/* ---- Design tokens ---- */
:root{
  --bg: #0b1220;
  --surface: #0e1730;
  --card: #151c2b;                 /* solid (no blur) */
  --border: rgba(255,255,255,0.12);
  --text: #e8ecf3;
  --muted: #a9b3c7;
  --brand: #3a7bff;
  --brand-2: #6ae0ff;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 16px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(58,123,255,.35);
  --header-h: 230px;                /* sticky header height for anchor offset */
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f8fb;
    --surface:#ffffff;
    --card:#ffffff;
    --border:#e7e9ee;
    --text:#12141a;
    --muted:#5b667a;
    --shadow: 0 10px 30px rgba(16,24,40,.08);
  }
}

/* ---- Animations ---- */
@keyframes spin { from {transform: rotate(0)} to {transform: rotate(360deg)} }

/* ---- Base ---- */
*{ box-sizing: border-box }
html,body{ margin:0; padding:0 }
html{ scroll-behavior: smooth; }     /* smooth in-page jumps */
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(58,123,255,.18), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(106,224,255,.12), transparent 60%),
    var(--bg);
  line-height: 1.6;
}
img{ max-width:100%; height:auto; display:block }
.container{ width:min(1100px, 92%); margin-inline:auto }

/* ---- Header ---- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0px; color: var(--muted);
  margin: 0 1rem 0 1rem;
  width: auto;
}
.brand{ display:flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--text); padding-right: 30px; margin-right: 30px }
.brand-logo{ height:32px; width:auto; border-radius:50% }
.brand-logo:hover{ animation: spin .2s linear 1 }
.brand-name{ font-weight:700; letter-spacing:.2px }

.menu{ display:flex; gap:0.6rem; align-items:center; flex-wrap:wrap; }
.menu a{
  color: var(--muted);
  text-decoration:none;
  padding:.4rem 1rem;
  border-radius:10px;
  transition: color .15s ease, background .15s ease;
}
.menu a:hover{ color:var(--text); background: color-mix(in oklab, var(--card) 80%, transparent) }
.menu .active{ color:var(--text) }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; text-decoration:none; padding:.8rem 1.1rem;
  border-radius:12px; box-shadow: var(--shadow); font-weight:600;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}
.btn:hover{ transform: translateY(-1px) }
.btn:active{ transform: translateY(0) }
.btn:focus-visible{ outline: none; box-shadow: var(--focus) }
.btn--ghost{ background:transparent; color:var(--text); border:1px solid var(--border); box-shadow:none }
.btn--block{ width:100% }
.btn--sm{ padding:.55rem .8rem; border-radius:10px; box-shadow:none }
.btn--lg{ padding:1rem 1.25rem; font-size:1.05rem }
.btn--light{ background:#fff; color:#111; box-shadow: var(--shadow) }
#navContactBtn{ color:#fff }

/* ---- Hero ---- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(900px 500px at -10% 0%, rgba(58,123,255,.28), transparent 60%),
    radial-gradient(700px 400px at 120% -10%, rgba(106,224,255,.22), transparent 60%);
}
.hero__inner{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:center;
  padding: clamp(48px, 8vw, 96px) 0 10px;
  min-height: 500px;
}
.hero__copy h1{
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height:1.15; margin: 0 0 .8rem 0; max-width: 520px;
}
.hero .lead{ color:var(--muted); max-width: 60ch; margin:0 0 1.4rem 0 }
.hero__cta{ display:flex; gap:.8rem; flex-wrap:wrap }
.accent{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Subtle shapes */
.hero__art{ position:relative; min-height:260px }
.orb{
  position:absolute; right:12%; top:8%; width:160px; height:160px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #8ac7ff, #3a7bff 60%, transparent 62%);
  filter: saturate(1.05);
  opacity:.8;
}
.orb--2{ width:220px; height:220px; right:2%; top:40%; opacity:.35 }
.orb--3{ width:120px; height:120px; right:35%; top:55%; opacity:.25 }

/* Waves */
.wave{ display:block; width:100%; height:130px; fill:var(--surface) }
.wave.flipped{ transform: rotate(180deg) }

/* ---- Sections & cards ---- */
.section{ padding:56px 0 }
.section__title{ font-size:1.6rem; margin:0 0 1.2rem 0 }

.grid{
  display:grid; gap:1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform .1s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.18) }
.card__icon{
  width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow);
  margin-bottom:.6rem;
}
.card__icon svg{ width:22px; height:22px; fill:#fff }
.card h3{ margin:.4rem 0 .2rem 0; font-size:1.1rem }

.list{ margin:.4rem 0 1rem 0; padding-left:1rem; color:var(--muted) }
.list li{ margin:.25rem 0 }

/* ---- Footer ---- */
.site-footer{
  background: var(--surface);
  border-top:1px solid var(--border);
  padding:22px 0; color:var(--muted);
}
.footer__grid{ display:flex; align-items:center; justify-content:space-between; gap:1rem }
.footer__menu{ display:flex; gap:1rem; flex-wrap:wrap }
.footer__menu a{ color:var(--muted); text-decoration:none }
.footer__menu a:hover{ color:var(--text) }

/* ---- Forms (Contact page) ---- */
.form{ display:grid; gap:1rem }
.form-row{ display:grid; gap:.5rem }
.form-row.inline{ grid-template-columns:1fr 1fr; gap:1rem }

label{ font-weight:600; font-size:.95rem }
input, textarea, select{
  width:100%;
  padding:.75rem .85rem;
  border-radius:10px;
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
}
textarea{ min-height:140px; resize:vertical }
input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:none; box-shadow: var(--focus); border-color: transparent;
}
.help{ font-size:.9rem; color:var(--muted) }

.status{
  display:none; margin-top:.5rem; padding:.75rem .9rem; border-radius:10px; font-weight:600;
}
.status.show{ display:block }
.status.ok{ background:#eaf7ef; color:#136c3f; border:1px solid #bfe6cd }
.status.err{ background:#fdecec; color:#8d1a1a; border:1px solid #f4c5c5 }
.btn[disabled]{ opacity:.7; cursor:not-allowed }
.hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden }

/* ---- Anchor offsets for sticky header ---- */
/* Specific sections used across pages */
#services, #courses, #it-services, #contact{
  scroll-margin-top: var(--header-h); 
  padding: 0 0 30px 0 
}
#contact .section__title {
  margin-top: 18px;
  margin-bottom: 18px;
}
form .help {
  justify-self: center;
}
form .btn {
  width: 200px;
  justify-self: center;
}

/* Utility: apply to any anchor target if needed */
.anchor-offset{ scroll-margin-top: var(--header-h); }

/* ---- Responsive ---- */
@media (max-width: 900px){
  :root{ --header-h: 72px; } /* slightly shorter header on mobile */
  .hero__inner{ grid-template-columns:1fr; text-align:center }
  .hero__copy .hero__cta{ justify-content:center }
  .grid{ grid-template-columns:1fr }
}
/* --- Mobile nav toggle (adds to your current CSS) --- */
.nav { min-height: 56px; } /* keeps toggle vertically centered */

/* Hidden on desktop */
.hamburger,
.nav-toggle,
.menu-toggle,
[data-mobile-toggle]{
  display: none;
}

/* Positioning context for absolute children */
.site-header .nav{ position: relative; }

/* Mobile behavior */
@media (max-width: 900px){
  /* Show & pin the toggle on mobile */
  .hamburger,
  .nav-toggle,
  .menu-toggle,
  [data-mobile-toggle]{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 80%, transparent);
    cursor: pointer;
    z-index: 5;
    font-size: 20px; /* makes ☰ visible */
    line-height: 1;
    color: var(--text);
  }

  /* Hide the horizontal menu by default on mobile */
  .menu{
    display: none;
  }

  /* When opened via JS */
  .menu.is-open{
    display: flex;
    flex-direction: column;
    gap: .6rem;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 12px);
    background: color-mix(in oklab, var(--surface) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 901px) {
  .menu a + a::before {
    content: "|  ";
    color: var(--muted);
    opacity: 0.4;
    margin: 0 0.4rem;
  }

