/* ==========================================================================
   Technovate Solutions LTD — Design System & Global Styles
   Hand-coded, mobile-first, no framework.
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Brand palette */
  --ink: #0b1736;          /* deep navy — primary brand colour */
  --ink-800: #12224d;
  --primary: #1d4ed8;      /* action blue */
  --primary-600: #2563eb;
  --primary-700: #1e40af;
  --accent: #06b6d4;       /* cyan/teal accent */
  --accent-500: #0891b2;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-muted: #eef2f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #59647c;
  --white: #ffffff;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 54, 0.06), 0 1px 3px rgba(11, 23, 54, 0.08);
  --shadow: 0 10px 25px -10px rgba(11, 23, 54, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(11, 23, 54, 0.35);
  --gradient: linear-gradient(135deg, var(--ink) 0%, var(--primary-700) 55%, var(--accent-500) 130%);
  --gradient-accent: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ----- Reset ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture { display: block; max-width: 100%; }

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Skip link --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ----- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--gradient); color: #e8eefb; }
.section--ink h2,
.section--ink h3 { color: #fff; }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 0.85rem;
}
.section--ink .eyebrow { color: var(--accent); }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-muted);
}
.section--ink .lead { color: #c7d4ee; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(29, 78, 216, 0.6);
}
.btn--accent { --btn-bg: var(--gradient-accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

/* ----- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.nav-menu a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}
.nav-menu a:hover { background: var(--bg-muted); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--primary-700); background: var(--bg-muted); }
.nav-menu .nav-cta { margin-left: 0.4rem; }
.nav-menu .nav-cta a { color: #fff; background: var(--primary); padding: 0.6rem 1.15rem; }
.nav-menu .nav-cta a:hover { background: var(--primary-700); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { padding: 0.8rem 0.9rem; font-size: 1.02rem; }
  .nav-menu .nav-cta { margin-left: 0; margin-top: 0.4rem; }
  .nav-menu .nav-cta a { text-align: center; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #e8eefb;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.35), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(37, 99, 235, 0.35), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #cdd9f3; max-width: 52ch; margin-top: 1.1rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d7e2fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.2rem;
}
.hero-stats li { color: #cdd9f3; font-size: 0.9rem; }
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.1;
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ----- Cards / grids ----------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
}
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 680px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cdd8ec;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-muted);
  color: var(--primary-700);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card--service ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.card--service li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.card--service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Feature list with check icons */
.check-list { list-style: none; display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, none;
}
.check-list li strong { color: var(--text); display: block; }

/* ----- Stats strip ------------------------------------------------------- */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
}
.section--ink .stats strong { color: #fff; }
.stats span { font-size: 0.92rem; color: var(--text-muted); }
.section--ink .stats span { color: #c7d4ee; }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Process steps ----------------------------------------------------- */
.steps { list-style: none; display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.step-num {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ----- CTA banner -------------------------------------------------------- */
.cta {
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #fff;
  padding: clamp(2.4rem, 6vw, 4rem);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { color: #cdd9f3; max-width: 46ch; margin: 1rem auto 0; }
.cta .btn-row { justify-content: center; }

/* ----- Contact / forms --------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.info-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.6rem; }
.info-list li { display: flex; gap: 0.9rem; }
.info-list .card-icon { width: 46px; height: 46px; margin: 0; }
.info-list .card-icon svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 1rem; margin-bottom: 0.1rem; }
.info-list a, .info-list span { color: var(--text-muted); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field label .req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.field-error {
  display: block;
  color: #dc2626;
  font-size: 0.84rem;
  margin-top: 0.35rem;
  min-height: 1em;
}
/* Honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.form-consent input { width: auto; margin-top: 0.25rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

.form-alert {
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.3rem;
  font-size: 0.94rem;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ----- Page header (interior pages) ------------------------------------- */
.page-header {
  background: var(--gradient);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3), transparent 45%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; max-width: 20ch; }
.page-header p { color: #cdd9f3; max-width: 56ch; margin-top: 1rem; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: #b9c8ec; }
.breadcrumb li::after { content: "/"; margin-left: 0.45rem; color: #6b7da6; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: #fff; }

/* ----- Prose (privacy / legal) ------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.prose a { text-decoration: underline; }

/* ----- About split ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.media-card {
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: #fff;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.media-card h3 { color: #fff; }
.media-card .check-list li { color: #d7e2fb; }
.media-card .check-list li strong { color: #fff; }

/* ----- Values ------------------------------------------------------------ */
.value h3 { display: flex; align-items: center; gap: 0.6rem; }
.value .card-icon { width: 40px; height: 40px; margin-bottom: 0; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: #aebbd6;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 36px; }
.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.site-footer p { color: #97a6c6; font-size: 0.92rem; margin-top: 1rem; max-width: 38ch; }
.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: #aebbd6; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #7e8db0;
}
.footer-legal { max-width: 70ch; }
.footer-bottom a { color: #aebbd6; }

/* ----- Utilities --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----- Reveal on scroll -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
