/* =============================================================================
   gurwara.com — styles.css
   Tokens (design.md) → base → layout primitives → shared components → page styles
   → responsive. No build step; authored as served. Root-relative paths only.
   ============================================================================ */

/* ---------- Tokens ---------------------------------------------------------- */
:root {
  /* palette (design.md) */
  --bg: #0a0a0a;
  --bg-elev: #161616;
  --surface: #1a1a1a;
  --surface-2: #202020;
  --border: #2a2a2a;
  --accent: #c5f82a;
  --accent-dim: #a6d61f;
  --accent-ink: #0a0a0a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --red-dot: #ff3b30;
  --whatsapp: #25d366;

  /* glows */
  --glow-lime: rgba(197, 248, 42, 0.18);
  --glow-lime-strong: rgba(197, 248, 42, 0.4);

  /* typography (font confirmed against comp during verify) */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale */
  --fs-hero: clamp(2.2rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* spacing / layout */
  --container: 1200px;
  --pad-x: 24px;
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 700; }
p { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }

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

.accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }
.section--elev { background: var(--bg-elev); }

/* Signature lime "circuit/streak" glow bleeding from edges on dark sections */
.glow-edge { position: relative; isolation: isolate; }
.glow-edge::before,
.glow-edge::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  background: var(--glow-lime);
  pointer-events: none;
}
.glow-edge::before { top: -160px; left: -160px; }
.glow-edge::after { bottom: -160px; right: -160px; }

.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 48px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-muted); margin-top: 12px; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Button --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 rgba(197, 248, 42, 0);
}
.btn--primary:hover { background: var(--accent-dim); color: var(--accent-ink); box-shadow: 0 8px 24px var(--glow-lime-strong); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { color: var(--accent); border-color: var(--accent); }
.btn--whatsapp { background: var(--whatsapp); color: #04210f; }
.btn--whatsapp:hover { color: #04210f; filter: brightness(1.08); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header (glassy sticky pill) ------------------------------------ */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-top: 16px;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); font-weight: 800; }
.brand__tg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand__dot {
  position: absolute; top: 5px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-dot);
}
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-small); }
.header-mail .icon { width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--wa { color: var(--whatsapp); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* secondary nav (Contact page) */
.subnav { display: flex; justify-content: center; gap: 28px; margin-top: 24px; }
.subnav a { font-size: var(--fs-small); color: var(--text-muted); padding-bottom: 6px; }
.subnav a.is-active { color: var(--text); border-bottom: 2px solid var(--accent); }

/* ---------- Hero ----------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.02em; }
.hero__creds { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero__creds li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-small); }
.hero__creds li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__media { position: relative; display: flex; justify-content: center; }
.glow-ring { position: relative; }
.glow-ring::before {
  content: ""; position: absolute; inset: -8% -4%; z-index: 0;
  background: radial-gradient(closest-side, var(--glow-lime-strong), transparent 70%);
  filter: blur(20px);
}
.glow-ring > * { position: relative; z-index: 1; }

/* ---------- Placeholder media (assets pending) ----------------------------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(197, 248, 42, 0.04) 0 14px, transparent 14px 28px),
    var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.ph::after {
  content: "PLACEHOLDER";
  position: absolute; top: 8px; left: 8px;
  font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.6);
  padding: 2px 7px; border-radius: 4px;
}
.ph span { padding: 16px; max-width: 80%; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--ring { aspect-ratio: 1 / 1; border-radius: 50%; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--banner { aspect-ratio: 21 / 7; }
.ph--logo { aspect-ratio: 5 / 2; filter: grayscale(1); opacity: 0.7; }
.ph--video { aspect-ratio: 16 / 10; }

/* ---------- Logo strip ----------------------------------------------------- */
.logostrip { border-block: 1px solid var(--border); background: var(--bg-elev); }
.logostrip .container { display: flex; flex-direction: column; gap: 24px; padding-block: 40px; }
.logostrip__label { text-align: center; color: var(--text-muted); font-size: var(--fs-small); letter-spacing: 0.1em; }
.logostrip__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
.logostrip__row .ph--logo { height: 48px; }

/* ---------- About ---------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__copy h2 { font-size: var(--fs-h2); margin: 14px 0 18px; }
.about__copy p { color: var(--text-muted); }
.about__media { max-width: 360px; margin-inline: auto; }

/* ---------- Card grids / Expertise ----------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expertise-card { padding: 32px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.expertise-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  background: rgba(197, 248, 42, 0.1);
  color: var(--accent);
}
.icon-tile .icon { width: 28px; height: 28px; }
.expertise-card h3 { font-size: var(--fs-h3); }
.expertise-card p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Stats bar ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent); line-height: 1; }
.stat__label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 10px; }

/* ---------- UAV banner ----------------------------------------------------- */
.uav { position: relative; padding: 0; }
.uav__inner { position: relative; min-height: clamp(360px, 48vw, 560px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.uav .ph--banner { position: absolute; inset: 0; border: 0; border-radius: 0; height: 100%; width: 100%; }
.uav__ghost {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 9rem); letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.14);
  text-align: center; user-select: none; pointer-events: none;
}
.uav__badge {
  position: absolute; z-index: 3; left: 50%; bottom: 22%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-small);
}

/* ---------- Industry Insights carousel ------------------------------------- */
.insights__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.insights__head h2 { font-size: var(--fs-h2); }
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.video-card { scroll-snap-align: start; }
.video-card__thumb { position: relative; }
.video-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(197, 248, 42, 0.92); color: var(--accent-ink);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s var(--ease);
}
.video-card__play:hover { transform: scale(1.08); }
.video-card__caption { margin-top: 12px; font-size: var(--fs-small); color: var(--text-muted); }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel__btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel__btn .icon { width: 20px; height: 20px; }

/* ---------- "Building the Next Generation" --------------------------------- */
.nextgen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nextgen__copy h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.nextgen__copy p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- CTA band ------------------------------------------------------- */
.ctaband { padding: 0; }
.ctaband__inner {
  background: linear-gradient(100deg, var(--accent), var(--accent-dim));
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
}
.ctaband__inner h2 { font-size: var(--fs-h2); color: var(--accent-ink); }
.ctaband__inner .accent-ink { color: rgba(10, 10, 10, 0.6); }
.ctaband .btn--dark { background: var(--accent-ink); color: var(--text); }
.ctaband .btn--dark:hover { background: #1c1c1c; color: var(--accent); }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-block: 56px 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-col h4 { font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: var(--fs-small); color: var(--text-muted); }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-small); margin-top: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Contact page --------------------------------------------------- */
.contact-hero { position: relative; padding-top: 24px; }
.contact-watermark {
  text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 18vw, 13rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.045);
  user-select: none; pointer-events: none;
  margin-block: 8px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: stretch; margin-top: -40px; }
.infocards { display: flex; flex-direction: column; gap: 16px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.info-card .icon-tile { width: 46px; height: 46px; flex: none; }
.info-card .icon-tile .icon { width: 22px; height: 22px; }
.info-card__label { color: var(--text-muted); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.08em; }
.info-card__value { color: var(--text); font-size: var(--fs-small); margin-top: 2px; word-break: break-word; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Contact form --------------------------------------------------- */
.contact-form { padding: 30px 28px; }
.contact-form h2 { font-size: var(--fs-h3); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 8px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body); font-size: var(--fs-small);
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field--invalid input,
.field--invalid textarea { border-color: var(--red-dot); }
.field__error { color: var(--red-dot); font-size: var(--fs-eyebrow); margin-top: 6px; display: none; }
.field--invalid .field__error { display: block; }
.form-recaptcha { margin: 4px 0 18px; }
.form-status { font-size: var(--fs-small); margin-top: 14px; min-height: 1.4em; }
.form-status--ok { color: var(--accent); }
.form-status--err { color: var(--red-dot); }
.contact-form .btn--primary { width: 100%; justify-content: center; }

/* ---------- Mobile nav drawer ---------------------------------------------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a { font-size: 1.4rem; font-family: var(--font-display); font-weight: 600; }
.mobile-drawer__close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: var(--text); cursor: pointer; }
.mobile-drawer__close .icon { width: 28px; height: 28px; }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .nextgen__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .about__media { order: -1; max-width: 280px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .logostrip__row { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; margin-top: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-mail span, .site-header__actions .btn span { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions .desktop-only { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .logostrip__row { grid-template-columns: repeat(2, 1fr); }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .insights__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
