/* ============================================================
   HOME.CSS — Professional design pass
   Inter font, soft layered shadows, consistent eyebrow → heading
   → body → card pattern. New: client marquee, dynamic services,
   testimonials, Watch & Learn (YouTube), enquiry form.
   ============================================================ */

:root {
  --primary: #0b2544;
  --primary-dark: #071a33;
  --accent: #1455d9;
  --accent-dark: #0d48be;
  --accent-soft: #eaf1ff;
  --ivory: #faf9f5;
  --surface: #f6f8fb;
  --text: #1a2233;
  --text-soft: #3d4759;
  --muted: #667085;
  --border: #e6e9ef;
  --white: #ffffff;
  --bronze: #b08a4e;
  --success: #16825d;
  --danger: #c0362c;
  --star: #f5a623;
  --shadow-sm: 0 1px 2px rgba(15,30,55,.04), 0 4px 14px rgba(15,30,55,.05);
  --shadow-md: 0 2px 4px rgba(15,30,55,.04), 0 14px 32px rgba(15,30,55,.09);
  --shadow-lg: 0 24px 60px rgba(7,26,51,.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-height: 84px;
  --transition: 180ms ease;
}

/* ---------- Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
address { font-style: normal; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 {
  color: var(--primary-dark);
  font-family: Inter, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-ivory { background: var(--ivory); }
.section-surface { background: var(--surface); }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---------- Shared UI bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: .74rem; line-height: 1;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content:""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-heading { max-width: 700px; margin-bottom: 40px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .eyebrow { justify-content:center; }
.section-heading h2 { margin: 12px 0 14px; }
.section-heading p { color: var(--muted); font-size: 1.02rem; max-width: 640px; }
.section-heading.center p { margin-inline:auto; }
.section-heading.split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.section-heading.split h2 { margin-bottom: 0; max-width: 640px; }
.section-actions { display: flex; justify-content: center; margin-top: 40px; }
.empty-note { text-align: center; color: var(--muted); margin: 0; grid-column: 1 / -1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 16px rgba(20,85,217,.22); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20,85,217,.28); }
.btn-secondary { border-color: var(--border); color: var(--primary); background: var(--white); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.text-link { display:inline-flex; align-items:center; gap:6px; color: var(--accent); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.text-link span { transition: transform var(--transition); }
.text-link:hover span { transform: translateX(3px); }

.dev-hint {
  margin: 0; padding: 14px 18px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font-size: .88rem; background: var(--white);
}
.dev-hint code { background: var(--surface); padding: 1px 6px; border-radius: 4px; font-size: .84rem; }

/* ---------- Hero ---------- */
.hero {
  position:relative; min-height:calc(100vh - var(--header-height));
  display:flex; align-items:center; overflow:hidden;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(20,85,217,.08), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(176,138,78,.07), transparent 60%),
    var(--white);
}
.hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:56px; padding:64px 0; }
.hero-copy h1 { margin:16px 0 20px; max-width:720px; }
.hero-copy h1 .accent { color:var(--accent); }
.hero-copy > p { max-width:620px; color:var(--muted); font-size:clamp(1rem,1.4vw,1.12rem); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hero-proof { display:flex; flex-wrap:wrap; gap:18px; margin-top:34px; padding-top:22px; border-top:1px solid var(--border); }
.hero-proof span { display:flex; align-items:center; gap:8px; color:var(--text-soft); font-size:.88rem; font-weight:600; }
.hero-proof span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--success); }

.hero-visual { position:relative; min-height:480px; }
.globe {
  position:absolute; inset:50% auto auto 50%; width:380px; aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #eef4ff 55%, #dfe9fb 100%);
  border:1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.globe::before {
  content:""; position:absolute; inset:12%; border:1px solid rgba(20,85,217,.14); border-radius:50%;
}
.globe-lines { position:absolute; inset:0; overflow:hidden; border-radius:50%; }
.globe-lines::before, .globe-lines::after {
  content:""; position:absolute; left:-10%; right:-10%; height:1px; background:rgba(20,85,217,.12);
}
.globe-lines::before { top:38%; } .globe-lines::after { top:62%; }
.visual-card {
  position:absolute; min-width:190px; padding:16px 18px; background:var(--white);
  border:1px solid var(--border); border-radius:var(--radius-md); box-shadow: var(--shadow-md);
}
.visual-card strong { display:block; color:var(--primary-dark); font-size:1rem; font-weight:700; }
.visual-card small { display:block; margin-top:3px; color:var(--muted); font-size:.82rem; }
.visual-card::before { content:""; display:block; width:22px; height:3px; margin-bottom:10px; border-radius:2px; background:var(--accent); }
.visual-card.card-1 { left:0; top:76px; }
.visual-card.card-2 { right:0; top:180px; }
.visual-card.card-3 { left:44px; bottom:70px; }
.visual-node { position:absolute; width:9px; height:9px; background:var(--accent); border-radius:50%; box-shadow: 0 0 0 6px rgba(20,85,217,.12); }
.node-1{left:50%;top:20%}.node-2{right:22%;top:44%}.node-3{left:25%;bottom:28%}

.trust-bar { border-block:1px solid var(--border); background:var(--white); }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.trust-item { padding:22px 16px; text-align:center; font-weight:600; font-size:.92rem; color:var(--primary); border-right:1px solid var(--border); }
.trust-item:last-child { border-right:0; }

/* ---------- Trusted by (logo marquee) ---------- */
.logos-section { padding: 44px 0 52px; background: var(--white); border-bottom: 1px solid var(--border); }
.logos-title {
  margin: 0 0 26px; text-align: center; color: var(--muted);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding: 0 32px; margin: 0; list-style: none; }
.marquee-item { display: flex; align-items: center; justify-content: center; height: 56px; }
.marquee-item img {
  max-height: 44px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter var(--transition), opacity var(--transition);
}
.marquee-item:hover img { filter: none; opacity: 1; }
.logo-fallback { color: var(--muted); font-weight: 700; white-space: nowrap; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- Who we are ---------- */
.about-split { display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:center; }
.image-panel {
  position:relative; min-height:460px; overflow:hidden; border-radius:var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.image-panel img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.image-panel-badge {
  position:absolute; left:18px; bottom:18px; max-width:250px; padding:18px;
  color:var(--white); background:rgba(7,26,51,.9); border-radius:var(--radius-md);
  backdrop-filter: blur(4px);
}
.image-panel-badge strong { display:block; margin-bottom:4px; font-size:1rem; }
.image-panel-badge span { font-size:.86rem; color:rgba(255,255,255,.78); }
.about-content h2 { margin:12px 0 18px; }
.about-content p { color:var(--muted); }
.check-list { list-style:none; padding:0; margin:24px 0 28px; display:grid; grid-template-columns:repeat(2,1fr); gap:12px 18px; }
.check-list li { position:relative; padding-left:28px; color:var(--text-soft); font-weight:600; font-size:.95rem; }
.check-list li::before {
  content:"✓"; position:absolute; left:0; top:1px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; background:rgba(22,130,93,.12); color:var(--success); font-size:.72rem; font-weight:800;
}

/* ---------- Our Services (dynamic) ---------- */
.svc-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin: -8px 0 32px; }
.svc-tab {
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--text-soft); font-size: .88rem; font-weight: 600;
  transition: var(--transition);
}
.svc-tab:hover { border-color: var(--accent); color: var(--accent); }
.svc-tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.svc-card {
  position: relative; display:flex; flex-direction:column; min-height: 240px; padding: 28px;
  border:1px solid var(--border); border-radius: var(--radius-md); background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.svc-card::before {
  content:""; position:absolute; left:28px; top:0; width:44px; height:3px; border-radius:0 0 3px 3px;
  background: var(--accent); transition: width var(--transition);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(20,85,217,.4); }
.svc-card:hover::before { width: 88px; }
.svc-card[hidden] { display: none; }
.svc-kicker { color: var(--bronze); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.svc-card h3 { margin: 12px 0 10px; font-size: 1.18rem; }
.svc-card p { margin: 0 0 20px; color: var(--muted); font-size: .92rem; flex: 1; }
.svc-link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .92rem; }
.svc-link span { display:inline-block; transition: transform var(--transition); }
.svc-card:hover .svc-link span { transform: translateX(4px); }

/* ---------- India market access ---------- */
.cert-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:12px; align-content:start; }
.cert-card {
  position:relative; display:block; min-height:132px; padding:18px 14px;
  border:1px solid var(--border); border-radius:var(--radius-md); background:var(--white);
  transition:var(--transition); align-self:start;
}
.cert-card:hover { border-color:var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cert-card strong { position:static; display:block; margin:10px 0 4px; color:var(--primary-dark); font-size:.95rem; }
.cert-card span { position:static; color:var(--muted); font-size:.78rem; }
/* "cert-tag": site ke existing .cert-mark class se clash na ho */
.cert-tag {
  position:static; display:grid; place-items:center;
  width:34px; height:34px; margin:0 0 10px;
  border-radius:var(--radius-sm); background:var(--accent-soft);
  color:var(--accent); font-weight:700; font-size:.9rem;
}

/* ---------- How we work ---------- */
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); position:relative; }
.process-grid::before { content:""; position:absolute; left:10%; right:10%; top:24px; height:1px; background:var(--border); }
.process-step { position:relative; z-index:1; padding:0 20px; text-align:center; }
.process-number {
  width:48px; height:48px; display:grid; place-items:center; margin:0 auto 22px;
  border-radius:50%; background:var(--white); border:1px solid var(--border);
  color:var(--accent); font-size:.8rem; font-weight:700; box-shadow: var(--shadow-sm);
}
.process-step h3 { margin-bottom:8px; }
.process-step p { color:var(--muted); font-size:.92rem; }

/* ---------- Why ERCS ---------- */
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.why-card {
  position:relative; padding:28px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--white);
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: rgba(20,85,217,.3); }
.why-index { display:block; margin-bottom:14px; color:var(--bronze); font-size:.76rem; font-weight:700; letter-spacing:.1em; }
.why-card strong { display:block; margin-bottom:8px; color:var(--primary-dark); font-size:1.05rem; }
.why-card p { margin:0; color:var(--muted); font-size:.92rem; }

/* ---------- Stats ---------- */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-lg); overflow:hidden; }
.stat { padding:34px 24px; background:var(--primary-dark); }
.stat-number { display:block; color:var(--white); font-family:Inter,sans-serif; font-size:clamp(1.9rem,3.4vw,2.9rem); font-weight:800; letter-spacing:-.02em; }
.stat-label { color:rgba(255,255,255,.7); font-size:.9rem; }

/* ---------- Industries ---------- */
.industry-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; align-content:start; }
.industry-card {
  align-self:start; box-sizing:border-box;
  height:110px; min-height:0; max-height:110px;
  display:flex; align-items:flex-end; padding:18px;
  border-radius:var(--radius-md); border:1px solid var(--border); background:var(--white);
  border-left:3px solid var(--accent-soft);
  font-weight:700; font-size:.95rem; line-height:1.3; color:var(--primary-dark); transition:var(--transition);
}
.industry-card:hover { border-color:var(--accent); border-left-color:var(--accent); box-shadow: var(--shadow-sm); }

/* ---------- Testimonials ---------- */
.testimonial-shell { position:relative; max-width: 900px; margin-inline: auto; overflow:hidden; padding: 2px; }
.testimonial-track { display:flex; transition:transform 420ms ease; }
.testimonial {
  position:relative; min-width:100%; padding:clamp(28px,4.5vw,52px);
  border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--white);
  box-shadow: var(--shadow-sm);
}
.quote-mark {
  position:absolute; right:32px; top:6px; font-size:7rem; line-height:1; font-weight:800;
  color: var(--accent-soft); pointer-events:none; user-select:none;
}
.stars { color: var(--star); letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }
.testimonial blockquote { position:relative; margin:0 0 26px; font-size:clamp(1.05rem,1.8vw,1.35rem); font-weight:500; line-height:1.55; color:var(--primary-dark); }
.testimonial-person { display:flex; align-items:center; gap:14px; }
.avatar {
  width:46px; height:46px; border-radius:50%; display:grid; place-items:center; flex:0 0 46px;
  background: var(--accent); color: var(--white); font-weight:700; font-size:1.05rem;
}
.testimonial-person strong { display:block; color:var(--primary-dark); font-size:.98rem; line-height:1.3; }
.testimonial-person small { color:var(--muted); font-size:.85rem; }
.slider-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; }
.slider-dots { display:flex; gap:8px; }
.slider-dot { width:9px; height:9px; padding:0; border:0; border-radius:50%; background:var(--border); cursor:pointer; transition:var(--transition); }
.slider-dot.is-active { width:26px; border-radius:6px; background:var(--accent); }
.slider-controls { display:flex; gap:8px; }
.icon-button { width:42px; height:42px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--white); cursor:pointer; transition:var(--transition); }
.icon-button:hover { border-color:var(--accent); color:var(--accent); }

/* ---------- Watch & Learn ---------- */
.video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.video-card { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--white); transition:var(--transition); }
.video-card:hover { box-shadow: var(--shadow-md); }
.yt-frame {
  position:relative; display:block; width:100%; aspect-ratio:16/9; padding:0; border:0; cursor:pointer; overflow:hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.yt-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform 300ms ease; }
.yt-frame:hover img { transform: scale(1.04); }
.yt-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.yt-play {
  position:absolute; left:50%; top:50%; width:64px; height:64px; transform:translate(-50%,-50%);
  display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform var(--transition);
}
.yt-play svg { width:26px; height:26px; margin-left:3px; fill:var(--accent); }
.yt-frame:hover .yt-play { transform:translate(-50%,-50%) scale(1.08); }
.video-body { padding:18px 20px 22px; }
.video-body h3 { margin:0 0 6px; font-size:1.02rem; line-height:1.35; }
.video-body p { margin:0; color:var(--muted); font-size:.88rem; }

/* ---------- Insights / Blog ---------- */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.blog-card {
  display:flex; flex-direction:column;
  border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden;
  background:var(--white); transition:var(--transition);
}
.blog-card:hover { border-color:rgba(20,85,217,.35); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-image { display:block; aspect-ratio:16/10; overflow:hidden; background:var(--surface); flex-shrink:0; }
.blog-image img { width:100%; height:100%; object-fit:cover; transition: transform 300ms ease; }
.blog-card:hover .blog-image img { transform: scale(1.04); }
.blog-body { display:flex; flex-direction:column; flex:1 1 auto; padding:22px; }
.blog-meta { display:flex; gap:8px; margin-bottom:10px; color:var(--muted); font-size:.78rem; }
.blog-title { margin:0 0 10px; font-size:1.08rem; line-height:1.35; }
.blog-title a { color: var(--primary-dark); display:block; }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { margin:0 0 16px; color:var(--muted); font-size:.9rem; flex-grow:1; }
.blog-readmore { margin-top:auto; }

/* ---------- Contact / enquiry ---------- */
.contact-section {
  padding: clamp(44px, 5vw, 64px) 0;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(20,85,217,.28), transparent 60%),
    var(--primary-dark);
  scroll-margin-top: calc(var(--header-height) + 10px);
}
.contact-grid { display:grid; grid-template-columns:1fr 1.05fr; gap:56px; align-items:center; }
.contact-copy h2 { color:var(--white); margin:14px 0 16px; }
.contact-copy p { color:rgba(255,255,255,.74); max-width:480px; }
.contact-points { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:12px; }
.contact-points li { position:relative; padding-left:28px; color:rgba(255,255,255,.88); font-weight:500; }
.contact-points li::before {
  content:"✓"; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; background:rgba(255,255,255,.14); color:#8eb9ff; font-size:.72rem; font-weight:800;
}

/* Card */
.contact-card {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg);
}
.contact-card h3 { margin: 0 0 14px; font-size: 1.15rem; }

/* Form layout */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row > .form-field { min-width: 0; }
.form-field { margin-bottom: 10px; }
.form-field label { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: .8rem; font-weight: 600; }
.form-field label span, .form-required { color: var(--danger); }

/* Inputs, select, textarea */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; min-width: 0; max-width: 100%;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background-color: var(--white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { resize: vertical; min-height: 72px; }
.form-field select {
  padding-right: 38px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,85,217,.15); }
.form-field [aria-invalid="true"] { border-color: var(--danger); }

/* Errors, alerts, turnstile, button, note */
.form-error { margin: 6px 0 0; color: var(--danger); font-size: .82rem; }
.form-error[hidden] { display: none; }
.form-alert { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alert--success { background: rgba(22,130,93,.1); color: #0f5f44; border: 1px solid rgba(22,130,93,.3); }
.form-alert--error { background: rgba(192,54,44,.08); color: #8f2820; border: 1px solid rgba(192,54,44,.25); }
.form-turnstile { margin: 2px 0 12px; min-height: 0; }
.contact-card .btn-block { min-height: 44px; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity:1; transform:none; }
[data-reveal-delay="1"] { transition-delay:.06s; }
[data-reveal-delay="2"] { transition-delay:.12s; }
[data-reveal-delay="3"] { transition-delay:.18s; }

:focus-visible { outline:2px solid rgba(20,85,217,.45); outline-offset:2px; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
  [data-reveal] { opacity:1; transform:none; }
  .marquee-track { animation:none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns:1fr .82fr; gap:32px; }
  .hero-visual { min-height:420px; }
  .globe { width:320px; }
  .svc-grid { grid-template-columns:repeat(2,1fr); }
  .cert-grid { grid-template-columns:repeat(4,1fr); }
}

@media (max-width: 920px) {
  .hero { min-height:auto; }
  .hero-grid { grid-template-columns:1fr; padding:56px 0 40px; }
  .hero-copy { max-width:720px; }
  .hero-visual { min-height:400px; max-width:560px; width:100%; margin-inline:auto; }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right:0; }
  .trust-item:nth-child(-n+2) { border-bottom:1px solid var(--border); }

  .about-split { grid-template-columns:1fr; gap:36px; }
  .image-panel { min-height:380px; }
  .cert-grid { grid-template-columns:repeat(3,1fr); }
  .process-grid { grid-template-columns:repeat(2,1fr); gap:32px 0; }
  .process-grid::before { display:none; }
  .why-grid, .blog-grid, .video-grid { grid-template-columns:repeat(2,1fr); }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .industry-grid { grid-template-columns:repeat(2,1fr); }
  .contact-grid { grid-template-columns:1fr; gap:36px; }
  .section-heading.split { flex-direction:column; align-items:flex-start; }
}

@media (max-width: 640px) {
  .container { width:min(calc(100% - 28px), var(--container)); }
  .section { padding:56px 0; }
  h1 { font-size:clamp(2.1rem,10vw,3rem); }
  h2 { font-size:clamp(1.6rem,8vw,2.1rem); }

  .hero-grid { padding-top:44px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .hero-actions .btn { width:100%; }
  .hero-proof { display:grid; grid-template-columns:1fr; gap:8px; }
  .hero-visual { min-height:340px; }
  .globe { width:260px; }
  .visual-card { min-width:140px; padding:12px; }
  .visual-card.card-1 { left:0; top:50px; }
  .visual-card.card-2 { right:0; top:150px; }
  .visual-card.card-3 { left:14px; bottom:40px; }

  .trust-grid { grid-template-columns:1fr; }
  .trust-item { border-right:0; border-bottom:1px solid var(--border); }
  .trust-item:last-child { border-bottom:0; }

  .marquee-group { gap:44px; }
  .image-panel { min-height:300px; }
  .check-list { grid-template-columns:1fr; }
  .svc-grid, .cert-grid, .why-grid, .blog-grid, .industry-grid, .video-grid { grid-template-columns:1fr; }
  .svc-card { min-height:200px; }
  .process-grid { grid-template-columns:1fr; }
  .process-step { padding:0; }
  .stats-grid { grid-template-columns:1fr; }
  .stat { padding:24px 20px; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .quote-mark { font-size:5rem; right:18px; }
}

@media (max-width: 390px) {
  .hero-visual { min-height:320px; }
  .globe { width:230px; }
  .visual-card { min-width:120px; font-size:.82rem; }
  .visual-card.card-3 { display:none; }
}



/* HOMEPAGE TABLET / MOBILE LAYOUT */

@media (max-width: 1023.98px) {
    .hero {
        min-height: auto;
        overflow: hidden;
    }

    .hero .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        width: calc(100% - 40px);
        max-width: 1200px;
        padding: 100px 0 48px;
    }

    .hero-copy {
        min-width: 0;
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(30px, 5vw, 44px);
        overflow-wrap: break-word;
    }

    .hero-copy p {
        max-width: 100%;
    }

    .hero-visual {
        width: 100%;
        max-width: 560px;
        min-width: 0;
        margin: auto;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-grid {
        width: calc(100% - 32px);
        padding-top: 100px;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
