/* ==========================================================================
   Sarjan Solution — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand colors (from Sarjan Solution logo) */
  --navy-950: #060a16;
  --navy-900: #0a1128;
  --navy-800: #101a35;
  --navy-700: #17223f;
  --navy-600: #1f2c4d;

  --blue-700: #1440c4;
  --blue-600: #2554f0;
  --blue-500: #3b6bf5;
  --blue-400: #5b8bfb;
  --cyan-400: #38bdf8;

  --amber-500: #f5a623;
  --amber-400: #ffb84d;

  --white: #ffffff;
  --gray-50: #f6f8fc;
  --gray-100: #eef1f8;
  --gray-200: #e2e6f0;
  --gray-400: #9aa3b8;
  --gray-500: #6b7488;
  --gray-600: #4b5568;
  --gray-700: #333c52;

  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(10, 17, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 17, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 17, 40, 0.18);

  --container: 1220px;
  --gradient-brand: linear-gradient(120deg, var(--navy-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  --gradient-accent: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.bg-light { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); color: var(--gray-200); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- Eyebrow / Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}
.bg-navy .kicker { color: var(--cyan-400); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--gray-500); font-size: 17px; }
.bg-navy .section-head p { color: var(--gray-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 84, 240, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 84, 240, 0.36); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 10, 22, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding: 18px 0;
}
.site-header.is-solid {
  background: rgba(6, 10, 22, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .brand-text { line-height: 1.1; }
.brand .brand-text strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--white); letter-spacing: 0.02em; }
.brand .brand-text span { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-400); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { background: rgba(255,255,255,0.10); color: var(--white); }
.main-nav li { position: relative; }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
}
.dropdown a:hover { background: var(--gray-50); }
.dropdown a strong { font-size: 14px; font-weight: 600; }
.dropdown a small { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

@media (max-width: 1080px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(340px, 86vw);
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 100px 26px 26px; transition: right 0.35s ease; overflow-y: auto; }
  .main-nav.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.35); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; width: 100%;
    max-height: 0; overflow: hidden; padding: 0; box-shadow: none; background: rgba(255,255,255,0.04); }
  .has-dropdown.dd-open .dropdown { max-height: 600px; padding: 8px; margin-top: 6px; }
  .dropdown a { color: var(--gray-200); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }
}
@media (min-width: 1081px) { .nav-toggle { display: none; } }

body.nav-locked { overflow: hidden; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 900; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.nav-scrim.show { opacity: 1; visibility: visible; }

/* ---------- Hero (generic, non-home pages) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 100px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,10,22,0.94) 10%, rgba(20,64,196,0.82) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--gray-400); margin-bottom: 18px; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 54px); max-width: 780px; }
.page-hero p.lead { margin-top: 18px; max-width: 640px; font-size: 18px; color: var(--gray-200); }

/* ---------- Home Hero ---------- */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 90px;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,9,20,0.95) 20%, rgba(15,35,110,0.82) 65%, rgba(37,84,240,0.55) 100%);
}
.home-hero .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: 1;
}
.home-hero .blob-1 { width: 480px; height: 480px; background: var(--blue-600); top: -120px; right: -100px; }
.home-hero .blob-2 { width: 380px; height: 380px; background: var(--cyan-400); bottom: -140px; right: 20%; opacity: 0.25; }
.home-hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }
.home-hero h1 { color: var(--white); font-size: clamp(36px, 5.4vw, 66px); max-width: 800px; }
.home-hero h1 em { font-style: normal; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p.lead { margin-top: 22px; font-size: 18.5px; max-width: 620px; color: var(--gray-200); }
.home-hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.home-hero .hero-meta { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 64px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.14); }
.home-hero .hero-meta div strong { display: block; font-family: var(--font-head); font-size: 26px; color: var(--white); }
.home-hero .hero-meta div span { font-size: 13px; color: var(--gray-400); }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; z-index: 2;
}
.scroll-cue .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); animation: bob 1.8s infinite ease-in-out; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: 1;} 50% { transform: translateY(10px); opacity: 0.4;} }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 44px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 44px); color: var(--white); }
.stat-item strong .suffix { color: var(--cyan-400); }
.stat-item span { font-size: 13.5px; color: var(--gray-400); margin-top: 6px; display: block; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item { border-bottom: 1px solid rgba(255,255,255,0.08); } }

/* ---------- About / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media .float-card {
  position: absolute; bottom: -28px; left: -28px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 22px 26px; display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.split-media .float-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.split-media .float-card .icon svg { width: 22px; height: 22px; stroke: var(--white); }
.split-media .float-card strong { display: block; font-size: 20px; color: var(--navy-900); }
.split-media .float-card span { font-size: 12.5px; color: var(--gray-500); }
@media (max-width: 560px) { .split-media .float-card { left: 12px; bottom: -20px; padding: 16px 18px; } }

.check-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--gray-600); }
.check-list li .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(37,84,240,0.12); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-list li .tick svg { width: 12px; height: 12px; }

/* ---------- Cards grid (services) ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .num { position: absolute; top: 20px; right: 26px; font-family: var(--font-head); font-size: 14px; color: var(--gray-200); font-weight: 700; }
.service-card .icon-badge {
  width: 58px; height: 58px; border-radius: 16px; background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.service-card .icon-badge svg { width: 28px; height: 28px; stroke: var(--white); fill: none; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--gray-500); font-size: 14.5px; margin-bottom: 18px; }
.service-card .more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue-600); }
.service-card .more-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.service-card:hover .more-link svg { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.reason-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--gray-200); }
.reason-item .idx { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--blue-600); width: 40px; flex-shrink: 0; }
.reason-item h4 { font-size: 17px; margin-bottom: 6px; }
.reason-item p { font-size: 14.5px; color: var(--gray-500); }

/* ---------- Industries ---------- */
.industry-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.industry-card::before { content:""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,10,22,0.92) 10%, rgba(6,10,22,0.15) 70%); }
.industry-card .content { position: relative; z-index: 2; padding: 26px; color: var(--white); }
.industry-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.industry-card .tags span { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255,255,255,0.14); padding: 4px 10px; border-radius: 999px; }
.industry-card h4 { color: var(--white); font-size: 19px; margin-bottom: 6px; }
.industry-card p { font-size: 13.5px; color: var(--gray-300, #d5dbea); max-height: 0; overflow: hidden; opacity: 0; transition: all 0.3s ease; }
.industry-card:hover p { max-height: 120px; opacity: 1; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark { font-family: var(--font-head); font-size: 46px; color: var(--blue-500); opacity: 0.35; line-height: 1; margin-bottom: 6px; }
.testimonial-card p.quote { font-size: 15.5px; color: var(--gray-600); flex-grow: 1; }
.testimonial-card .person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar-badge {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-accent);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.testimonial-card .person strong { display: block; font-size: 14.5px; color: var(--navy-900); }
.testimonial-card .person span { font-size: 12.5px; color: var(--gray-500); }
.stars { color: var(--amber-500); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- Blog / Insights ---------- */
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { height: 210px; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .body { padding: 26px 26px 30px; }
.blog-card .tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.blog-card .tags span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-600); background: rgba(37,84,240,0.08); padding: 4px 10px; border-radius: 999px; }
.blog-card .date { font-size: 12.5px; color: var(--gray-400); margin-bottom: 10px; display: block; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--blue-600); }
.blog-card p { font-size: 14px; color: var(--gray-500); }
.blog-card .read-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy-900); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(6,10,22,0.85), rgba(37,84,240,0.55)); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); max-width: 480px; }
.cta-band p { color: var(--gray-300, #d5dbea); margin-top: 10px; max-width: 460px; }
@media (max-width: 640px) { .cta-band { padding: 44px 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-400); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--blue-600); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--white); fill: none; }
.site-footer h5 { color: var(--white); font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; font-size: 14px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--cyan-400); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { padding: 26px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.field label .req { color: var(--amber-500); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  background: var(--gray-50);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { font-size: 12.5px; color: #d9455f; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d9455f; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 14px; background: #e9fbf1; border: 1px solid #b7ecd0;
  color: #14824b; padding: 18px 22px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 24px;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-success.is-error { background: #fdecea; border-color: #f5c2bc; color: #a8261c; }

/* Honeypot: invisible to people, irresistible to spam bots. Kept out of the
   layout and out of the accessibility tree rather than display:none, which
   some bots detect and skip. */
.hp-field {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Misc components ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(37,84,240,0.08); color: var(--blue-600); font-size: 13px; font-weight: 700;
}
.divider-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200), transparent); }

.info-tile { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.info-tile .icon-badge { width: 46px; height: 46px; border-radius: 12px; background: rgba(37,84,240,0.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-tile .icon-badge svg { width: 22px; height: 22px; stroke: var(--blue-600); fill:none; }
.info-tile h4 { font-size: 15.5px; margin-bottom: 4px; }
.info-tile p { font-size: 13.5px; color: var(--gray-500); }

.process-step { text-align: center; padding: 0 12px; }
.process-step .step-num {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--gray-500); }

.tab-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-buttons button { padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 14px; font-weight: 600; color: var(--gray-600); transition: all 0.2s ease; }
.tab-buttons button.active, .tab-buttons button:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15.5px; color: var(--navy-900);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.25s ease; }
.accordion-item[open] summary .plus { transform: rotate(45deg); background: var(--blue-600); color: var(--white); }
.accordion-item .accordion-body { padding-bottom: 22px; font-size: 14.5px; color: var(--gray-500); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 500;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

.breadcrumb a, .breadcrumb span { color: inherit; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- CAD imagery: never crop ----------
   Project and insight images are CAD screenshots — the model IS the content, so
   `cover` cannot be used: it crops whatever does not fit the box. These rules
   switch the affected components to `contain` and give them the same 3:2 frame
   the images are generated at, so the whole model is always visible. The white
   backing matches the images' own background, so the fit is invisible. */

/* Insight article thumbnails */
/* .thumb is an <a>, which is inline by default — aspect-ratio needs a block box */
.blog-card .thumb { display: block; height: auto; aspect-ratio: 3 / 2; background: var(--white); }
.blog-card .thumb img { object-fit: contain; }
/* gentler hover, so the zoom cannot push the model past the frame */
.blog-card:hover .thumb img { transform: scale(1.03); }

/* Project page galleries (images sitting inside a grid, not the big split layout) */
.grid-2 > .split-media img,
.grid-3 > .split-media img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--white);
}

/* Project cards on the Projects hub and related-project strips */
.industry-card {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--white);
  /* Card is 300px tall but the artwork is 3:2, so `contain` leaves a gap.
     Anchoring the image to the top puts that gap at the bottom, where the
     caption scrim covers it — the card reads as artwork above, caption below. */
  background-position: center top;
}
/* With the artwork on white, the scrim has to be bottom-weighted and stronger
   so the white caption text stays legible over it. */
.industry-card::before {
  background: linear-gradient(0deg, rgba(6,10,22,0.94) 0%, rgba(6,10,22,0.72) 34%, rgba(6,10,22,0.06) 62%, rgba(6,10,22,0) 100%);
}
