/* ============================================================
   Global Technologies — Shared Stylesheet v2 (Premium)
   globaltchindia.com
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:          #F5F7FA;
  --surface:     #ffffff;
  --surface-alt: #F0F4F8;
  --fg:          #0A1628;
  --fg-sub:      #44566C;
  --fg-muted:    #8D9EAF;
  --accent:      #E05D00;
  --accent-h:    #FF6B00;
  --navy:        #0A1628;
  --navy-mid:    #122036;
  --border:      #DDE4EE;
  --r:           8px;
  --r-lg:        16px;
  /* legacy aliases for inner-page compat */
  --bg-surface:  #ffffff;
  --bg-raised:   #F0F4F8;
  --accent-fg:   #ffffff;
  --hero-bg:     #0A1628;
  --hero-fg:     #f1f3f5;
  --hero-sub:    #8D9EAF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0A1628;
    --surface:    #122036;
    --surface-alt:#1a2d42;
    --fg:         #f1f3f5;
    --fg-sub:     #8D9EAF;
    --fg-muted:   #4a6278;
    --border:     #1e3350;
    --bg-surface: #122036;
    --bg-raised:  #1a2d42;
    --hero-sub:   #8D9EAF;
  }
}

:root[data-theme="dark"] {
  --bg:         #0A1628;
  --surface:    #122036;
  --surface-alt:#1a2d42;
  --fg:         #f1f3f5;
  --fg-sub:     #8D9EAF;
  --fg-muted:   #4a6278;
  --border:     #1e3350;
  --bg-surface: #122036;
  --bg-raised:  #1a2d42;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Utilities ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--fg);
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: .9375rem;
  color: var(--fg-sub);
  line-height: 1.7;
  max-width: 56ch;
}
.section-sub.light { color: rgba(255,255,255,.6); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.625rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 600;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  cursor: pointer;
  border: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: .5rem 1.125rem; font-size: .8125rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(224,93,0,.35); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.btn-ghost-dark {
  background: transparent;
  color: var(--fg-sub);
  border: 1.5px solid var(--border);
}
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }

.btn-white { background: #fff; color: var(--accent); font-weight: 700; }
.btn-white:hover { background: #ffe8d6; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 24px rgba(10,22,40,.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* Inner pages: nav is always "scrolled" white */
.nav.solid {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 24px rgba(10,22,40,.09);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.nav-logo { flex-shrink: 0; overflow: visible; }
.nav-logo img { height: 40px; width: auto !important; max-width: none !important; display: block; }
/* logo-white = white version shown on dark transparent nav */
/* logo-color = colour version shown on white/scrolled nav  */
.nav-logo img.logo-white { display: block; }
.nav-logo img.logo-color { display: none; }
.nav.scrolled .nav-logo img.logo-white,
.nav.solid .nav-logo img.logo-white { display: none; }
.nav.scrolled .nav-logo img.logo-color,
.nav.solid .nav-logo img.logo-color { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: .4rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav.scrolled .nav-links a,
.nav.solid .nav-links a { color: var(--fg-sub); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active,
.nav.solid .nav-links a:hover,
.nav.solid .nav-links a.active { color: var(--fg); background: var(--surface-alt); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, background .35s;
}
.nav.scrolled .nav-burger span,
.nav.solid .nav-burger span { background: var(--fg); }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.nav-drawer-close {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-drawer-close svg { width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round; }
.nav-drawer-links { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.nav-drawer-links a {
  display: block;
  padding: 1rem .5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.nav-drawer-links a:hover { color: #fff; }
.nav-drawer-footer { margin-top: auto; padding-top: 2rem; }
.nav-drawer-footer .btn { width: 100%; justify-content: center; }

/* Floating CTA */
.float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 190;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 8rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224,93,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,93,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-inner { position: relative; }
.page-header-eyebrow { margin-bottom: 1.25rem; }
.page-header-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: .75rem;
}
.page-header-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.55);
  max-width: 58ch;
  line-height: 1.7;
}

/* ── Section shared ───────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-header .section-title { margin-top: .75rem; }
.section-header .section-sub { margin-top: .875rem; }
/* Consistent section padding across all inner sections */
.section { padding: 5.5rem 0; }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  padding: 5rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.cta-band-sub { color: rgba(255,255,255,.8); font-size: .9375rem; }
.cta-band-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #070F1D;
  color: #8D9EAF;
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.25fr 1fr 1fr 1.75fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand-img { height: 40px; width: auto; max-width: none; }
.footer-brand-desc {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.4);
  max-width: 32ch;
}
.footer-std {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.footer-std-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.footer-col-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.38);
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.38);
  line-height: 1.55;
  margin-bottom: .875rem;
}
.footer-contact-item svg {
  width: 14px; height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: .2rem;
}
.footer-contact-item a { color: rgba(255,255,255,.38); transition: color .15s; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.22); }
.footer-tagline { font-size: .75rem; color: rgba(255,255,255,.22); }

/* ── Form ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-sub);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .75rem 1rem;
  font-size: .875rem;
  font-family: inherit;
  color: var(--fg);
  transition: border-color .15s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .container { padding-inline: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .float-cta { bottom: 1.25rem; right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
