/* ==========================================================================
   Luftech Smart Limited — Design System (All-White / One-Page)
   Palette: white base, deep-navy ink text, amber + teal accents
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (utility)
   ========================================================================== */

:root {
  /* Color */
  --paper: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f8;
  --ink: #10162e;
  --ink-soft: #454c6b;
  --mist: #6a7290;          /* accessible secondary text, ~4.75:1 on white */
  --mist-dim: #7b84a3;
  --line: #e2e5f1;
  --line-strong: #cbd0e4;

  --signal-amber: #f2a93b;        /* button fills */
  --signal-amber-soft: rgba(168, 101, 10, 0.1);
  --signal-amber-ink: #a8650a;    /* accessible amber for text/icons on white */

  --circuit-cyan: #078176;         /* accessible teal for text/icons on white */
  --circuit-cyan-soft: rgba(7, 129, 118, 0.1);
  --circuit-cyan-bright: #4fd8c4;  /* only for the logo's own dark chip */

  --danger: #c23a3a;

  /* Theme tokens — kept as a single (light) set. .section-alt is a harmless
     no-op now that the whole site is one theme, so any section can still
     carry the class without changing anything. */
  --t-ink: var(--ink);
  --t-body: var(--ink-soft);
  --t-mist: var(--mist);
  --t-line: var(--line);
  --t-line-strong: var(--line-strong);
  --t-cyan: var(--circuit-cyan);
  --t-amber: var(--signal-amber-ink);
  --t-amber-soft: var(--signal-amber-soft);
  --t-cyan-soft: var(--circuit-cyan-soft);

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5: clamp(2.8rem, 2.1rem + 3.2vw, 4.6rem);

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* anchor targets: offset for the sticky header */
#home, #about, #services, #contact { scroll-margin-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--t-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--paper); }
.grid { display: grid; gap: 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--t-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--t-cyan); box-shadow: 0 0 0 3px var(--t-cyan-soft); flex-shrink: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--t-ink); }
h2 { font-size: var(--step-3); line-height: 1.12; }
h3 { font-size: var(--step-1); line-height: 1.3; }
.lede { color: var(--t-mist); font-size: var(--step-1); max-width: 62ch; }
.body-text { color: var(--t-body); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

.head-block { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal-amber); color: #241503; }
.btn-primary:hover { background: #ffbe5c; }
.btn-ghost { background: transparent; color: var(--t-ink); border-color: var(--t-line-strong); }
.btn-ghost:hover { border-color: var(--t-cyan); color: var(--t-cyan); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost--light:hover { border-color: var(--circuit-cyan-bright); color: var(--circuit-cyan-bright); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { height: 42px; width: auto; display: block; }
.footer-brand .brand-logo { height: 54px; }

.nav-primary { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2rem; font-size: var(--step--1); }
.nav-links a { position: relative; padding-block: 0.3rem; color: var(--mist); transition: color 0.25s var(--ease); cursor: pointer; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--circuit-cyan);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-primary { position: fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 1.5rem; gap: 1.5rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); overflow-y: auto; }
  .nav-primary.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 1.25rem; font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero (video background — kept dark for legibility over footage) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding-block: clamp(6rem, 14vh, 8rem) clamp(2rem, 5vw, 3rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: #060b1a; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,11,26,0.4) 0%, rgba(6,11,26,0.22) 42%, rgba(6,11,26,0.58) 80%, #060b1a 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content .wrap {
  max-width: 850px;
  background: rgba(6, 11, 26, 0.4);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero .eyebrow { justify-content: center; color: var(--circuit-cyan-bright); }
.hero .eyebrow::before { background: var(--circuit-cyan-bright); box-shadow: 0 0 0 3px rgba(79,216,196,0.18); }
.hero h1 {
  font-size: var(--step-5);
  line-height: 1.1;
  margin-bottom: 1.35rem;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0,0,0,0.45);
}
.hero h1 .accent { color: var(--signal-amber); }
.hero .lede { color: rgba(255,255,255,0.82); margin-inline: auto; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }

.stat-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem); border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center;
}
.stat-strip .stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); color: #fff; }
.stat-strip .stat span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.68); text-transform: uppercase; }

@media (max-width: 720px) {
  .hero { min-height: min(88vh, 620px); }
  .stat-strip { grid-template-columns: repeat(2, auto); row-gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
}

/* ---------- Circuit divider (signature element) ---------- */
.circuit-divider { width: 100%; height: 34px; margin-block: 0; }
.circuit-divider svg { width: 100%; height: 100%; overflow: visible; }
.circuit-divider .trace { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.circuit-divider .pad { fill: var(--paper); stroke: var(--mist-dim); stroke-width: 1.2; }
.circuit-divider .pulse { fill: var(--circuit-cyan); filter: drop-shadow(0 0 5px rgba(7,129,118,0.5)); offset-path: path("M0,17 H1180"); animation: travel 5.5s linear infinite; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- Photo frame (real photography) ---------- */
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(16, 22, 48, 0.08); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,11,26,0) 40%, rgba(6,11,26,0.55) 100%); }
.photo-credit { position: absolute; right: 0.75rem; bottom: 0.6rem; font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.85); z-index: 2; letter-spacing: 0.02em; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 1px 2px rgba(16,22,48,0.04);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { border-color: rgba(7, 129, 118, 0.35); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16,22,48,0.09); }
.card-icon { width: 46px; height: 46px; margin-bottom: 1.25rem; color: var(--t-cyan); }
.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { color: var(--mist); font-size: 0.95rem; }

.services-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid--full .card { display: flex; flex-direction: column; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tag-list li { font-family: var(--font-mono); font-size: 0.72rem; color: var(--t-body); background: var(--surface); border: 1px solid var(--t-line); border-radius: 999px; padding: 0.3rem 0.7rem; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: -1; } }

.id-list { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.id-list li { display: flex; gap: 1rem; }
.id-list .id-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--t-amber); border: 1px solid color-mix(in srgb, var(--t-amber) 40%, transparent); background: var(--t-amber-soft); border-radius: 6px; padding: 0.2rem 0.5rem; height: fit-content; white-space: nowrap; }
.id-list h4 { font-size: 1.02rem; margin-bottom: 0.25rem; color: var(--t-ink); font-family: var(--font-body); font-weight: 600; }
.id-list p { color: var(--t-mist); font-size: 0.92rem; margin: 0; }

/* ---------- Process (real ordered sequence) ---------- */
.process-grid { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process-step { position: relative; padding-top: 2.5rem; border-top: 2px solid var(--t-line-strong); }
.process-step .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--t-cyan); }
.process-step h4 { color: var(--t-ink); font-size: 1.05rem; margin: 0.6rem 0 0.5rem; }
.process-step p { color: var(--t-mist); font-size: 0.9rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Stat cards ---------- */
.stat-cards { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 1px 2px rgba(16,22,48,0.04); }
.stat-card b { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--t-cyan); }
.stat-card span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--t-mist); text-transform: uppercase; }
@media (max-width: 800px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Values ---------- */
.values-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: radial-gradient(circle at 20% 20%, rgba(7,129,118,0.08), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(242,169,59,0.1), transparent 55%),
              var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { max-width: 26ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); margin-bottom: 1.1rem; }
.footer-grid ul { display: grid; gap: 0.65rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-grid a:hover { color: var(--circuit-cyan); }
.footer-brand p { color: var(--mist); font-size: 0.92rem; margin-top: 1rem; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; color: var(--mist); flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner section intro (About/Services/Contact chapter openers) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h2 { font-size: var(--step-4); max-width: 26ch; }

/* ---------- Contact page ---------- */
.contact-grid { grid-template-columns: 1fr 1.1fr; align-items: flex-start; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: 0 1px 2px rgba(16,22,48,0.04); }
.info-card svg { width: 22px; height: 22px; color: var(--t-amber); flex-shrink: 0; margin-top: 0.15rem; }
.info-card h4 { font-size: 0.95rem; color: var(--t-ink); margin-bottom: 0.3rem; }
.info-card p, .info-card a { color: var(--t-mist); font-size: 0.9rem; }
.info-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.social-row { display: flex; gap: 0.75rem; }
.social-row a { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.social-row a:hover { border-color: var(--circuit-cyan); color: var(--circuit-cyan); }
.social-row svg { width: 17px; height: 17px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 1px 2px rgba(16,22,48,0.04); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; color: var(--ink); transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--circuit-cyan); background: var(--paper); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-error { display: block; font-size: 0.78rem; color: var(--danger); margin-top: 0.4rem; min-height: 1em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.form-note { font-size: 0.8rem; color: var(--mist); margin-top: 1rem; }
.form-success { display: none; align-items: center; gap: 0.75rem; background: var(--circuit-cyan-soft); border: 1px solid rgba(7,129,118,0.35); color: var(--circuit-cyan); border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.9rem; margin-top: 1.25rem; }
.form-success.is-visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

.form-error { display: none; align-items: flex-start; gap: 0.75rem; background: rgba(194,58,58,0.08); border: 1px solid rgba(194,58,58,0.35); color: var(--danger); border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.9rem; margin-top: 1.25rem; }
.form-error.is-visible { display: flex; }
.form-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }
.form-error a { color: var(--danger); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 340px; box-shadow: 0 1px 2px rgba(16,22,48,0.04); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.divider-line { height: 1px; background: var(--line); border: 0; margin-block: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badge-row span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; }
