/* ShunyaEkay Tech — brand: Charcoal #22252B / Ivory #F5F0E3 / Brass #B8934E
   Type: Poppins (Latin) + Hind (Devanagari) */

:root {
  --charcoal: #22252b;
  --charcoal-soft: #2f333b;
  --charcoal-line: #3a3e47;
  --ivory: #f5f0e3;
  --paper: #fbf8f2;
  --white: #ffffff;
  --brass: #b8934e;
  --brass-light: #d4b578;
  --brass-dark: #93732e;
  --brass-ink: #6b5420; /* darker brass for small text — meets WCAG AA (4.5:1) on paper/ivory/white; --brass-dark does not */
  --text: #22252b;
  --text-muted: #5c5f66;
  --text-on-dark: #f5f0e3;
  --text-on-dark-muted: #b7b2a3;
  --border: rgba(34, 37, 43, 0.12);
  --shadow-sm: 0 2px 10px rgba(34, 37, 43, 0.06);
  --shadow-lg: 0 30px 60px -28px rgba(34, 37, 43, 0.35);
  --radius: 16px;
  --container: 1180px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

body {
  margin: 0;
  font-family: 'Poppins', 'Hind', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

[lang="hi"] { font-family: 'Hind', 'Poppins', sans-serif; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--charcoal); color: var(--ivory); padding: 0.8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Keyboard focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass-dark); outline-offset: 3px; border-radius: 4px;
}
.hero a:focus-visible, .hero button:focus-visible,
.section-dark a:focus-visible, .section-dark button:focus-visible {
  outline-color: var(--brass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.4em; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.9em 1.8em; font-size: 1rem; }
.btn-primary { background: var(--charcoal); color: var(--ivory); }
.btn-primary:hover { background: var(--brass-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--charcoal); }

.hero .btn-primary, .section-dark .btn-primary {
  background: var(--brass); color: var(--charcoal);
}
.hero .btn-primary:hover, .section-dark .btn-primary:hover { background: var(--brass-light); }
.hero .btn-ghost, .section-dark .btn-ghost { color: var(--ivory); border-color: rgba(245,240,227,0.3); }
.hero .btn-ghost:hover, .section-dark .btn-ghost:hover { border-color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a ::before, not on .site-header itself: a `backdrop-filter`
   on an actual ancestor creates a new containing block for its
   position:fixed descendants (the mobile nav drawer below), which would trap
   the drawer to the header's own ~76px height instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: -1;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { position: relative; width: 30px; height: 22px; display: inline-flex; align-items: center; }
.brand-mark .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--charcoal); }
.brand-mark .bar { width: 7px; height: 20px; border-radius: 4px; background: var(--brass); margin-left: 5px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.15rem; color: var(--charcoal); }
.brand-word span { font-family: 'Hind', sans-serif; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--charcoal); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s 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); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 85% -10%, var(--charcoal-soft), var(--charcoal) 55%);
  color: var(--text-on-dark);
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }

.kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600;
  color: var(--brass-light); letter-spacing: 0.03em; margin-bottom: 1em;
}
.hero h1 { color: var(--white); }
.hero-lede { color: var(--text-on-dark-muted); font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.6em 0 2em; }

.cloud-strip {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 0.82rem; color: var(--text-on-dark-muted); letter-spacing: 0.02em;
  border-top: 1px solid var(--charcoal-line); padding-top: 1.2em;
}
.cloud-strip span:not(:last-child):not([aria-hidden]) { font-weight: 600; color: var(--ivory); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.binary-mark { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.glyph { position: absolute; }
/* The dot and its two rings all live inside this wrapper and share ITS float
   animation, so the rings stay pinned to the dot's actual (bobbing) position
   instead of pulsing from a fixed point the dot has since drifted away from.
   Each ring keeps its own independent scale/opacity animation as a child --
   that composes on top of the wrapper's translateY rather than fighting it,
   since they're different elements, not two animations on the same element. */
.dot-orbit { position: absolute; inset: 0; animation: float 6s ease-in-out infinite; }
.glyph-zero {
  width: 96px; height: 96px; border-radius: 50%; background: var(--ivory);
  left: 22px; top: 62px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.glyph-one {
  width: 34px; height: 130px; border-radius: 17px; background: var(--brass);
  right: 34px; top: 46px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite 0.4s;
}
.pulse-ring {
  /* centered on .glyph-zero: dot center is (left 22 + width/2 48, top 62 + width/2 48) = (70, 110) */
  position: absolute; left: 25px; top: 65px; width: 90px; height: 90px; border-radius: 50%;
  border: 1.5px solid var(--brass); opacity: 0; animation: pulse 3.6s ease-out infinite;
}
.pulse-ring.ring-2 { animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--charcoal); color: var(--text-on-dark); }

.eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 0.9em;
}
.eyebrow-light { color: var(--brass-light); }
.section-lede { color: var(--text-muted); max-width: 62ch; font-size: 1.05rem; }
.section-lede.light { color: var(--text-on-dark-muted); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0.4; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; margin-top: 48px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.engagement-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.why-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; background: var(--ivory); color: var(--brass-dark);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.service-card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--text-muted); font-size: 0.92rem; }
.service-card li { margin-bottom: 0.4em; }

.eng-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 0.6em; }
.check-list { list-style: none; padding: 0; margin: 1em 0 0; }
.check-list li { position: relative; padding-left: 1.6em; margin-bottom: 0.55em; color: var(--text-muted); font-size: 0.94rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass);
}

.why-item h3 { font-size: 1.05rem; }
.why-item p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none; margin: 50px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  counter-reset: step;
}
.timeline li { position: relative; padding-top: 30px; }
.timeline li::before {
  /* centered on .tl-index: circle center is top -2 + height/2 10 = 8px */
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border);
}
.timeline li:first-child::before { left: 50%; }
.timeline li:last-child::before { right: 50%; }
.tl-index {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--charcoal); color: var(--ivory);
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.timeline h3 { font-size: 1rem; text-align: center; }
.timeline p { font-size: 0.88rem; color: var(--text-muted); text-align: center; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 48px; }
.about p { color: var(--text-muted); font-size: 1.03rem; max-width: 62ch; }
.about strong { color: var(--text); }
.about-mark { display: flex; justify-content: center; opacity: 0.9; }
.about-mark img { width: 180px; height: 180px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 2em 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-on-dark-muted); }
.contact-details a { font-size: 1.05rem; font-weight: 600; }
.contact-details a:hover { color: var(--brass-light); }

.contact-form { background: var(--charcoal-soft); border: 1px solid var(--charcoal-line); border-radius: var(--radius); padding: 32px; }
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-on-dark-muted); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--charcoal); border: 1px solid var(--charcoal-line); border-radius: 10px;
  padding: 0.7em 0.9em; color: var(--ivory); font-family: inherit; font-size: 0.96rem; resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.contact-status { margin: 14px 0 0; font-size: 0.9rem; }
.contact-status.success { color: var(--brass-light); }
.contact-status.error { color: #e08a7d; } /* muted, not a jarring bright red -- matches the rest of the palette's restraint */

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--text-on-dark-muted); padding: 44px 0; border-top: 1px solid var(--charcoal-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer .brand-word { color: var(--ivory); }
.brand-footer .brand-word span { color: var(--text-on-dark-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ivory); }
.footer-meta { font-size: 0.85rem; margin: 0; width: 100%; text-align: center; }

@media (min-width: 720px) {
  .footer-meta { width: auto; text-align: right; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-mark { order: -1; }
  .about-mark img { width: 120px; height: 120px; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); flex-direction: column;
    justify-content: flex-start; padding: 32px 24px; gap: 6px; transform: translateX(100%);
    transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li::before { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
}
