/* =====================================================================
   GEO MAPPING TECHNOLOGY — STYLES
   Layout idea: survey-sheet precision. Deep navy field, white sheets,
   contour linework and coordinate readouts as the signature detail.
   To change the brand colours, edit the values in :root below.
   ===================================================================== */
:root {
  --navy-950: #061528;
  --navy-900: #0B2545;   /* main brand navy */
  --navy-700: #16407A;
  --blue-500: #1F6FD1;   /* action blue */
  --blue-300: #7FB8FF;   /* linework on navy */
  --sky-50:  #F3F7FC;    /* tinted section */
  --sky-100: #E4EDF8;
  --line:    #D5DFEB;
  --ink:     #0D1B2E;
  --muted:   #52647A;
  --white:   #FFFFFF;
  --wa:      #1FA855;
  --wa-dark: #178A45;
  --err:     #C0392B;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-tamil: "Noto Sans Tamil", "Latha", "Nirmala UI", sans-serif;

  --r: 10px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .08);
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--white); }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--f-body); }
img { max-width: 100%; display: block; }
a { color: var(--blue-500); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; margin: 0; text-wrap: balance; color: var(--navy-900); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* Tamil typography: longer words, slightly smaller headings */
.lang-ta, .lang-ta h1, .lang-ta h2, .lang-ta h3, .lang-ta .btn { font-family: var(--f-tamil); }
.lang-ta .mono { font-family: var(--f-mono), var(--f-tamil); }
.lang-ta h1 { font-size: clamp(1.75rem, 4vw, 2.9rem) !important; line-height: 1.35; }
.lang-ta h2 { line-height: 1.4; }
.lang-ta p, .lang-ta li { line-height: 1.8; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.15em; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9em 1.4em; font-size: 1rem; }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--sky-100); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: var(--sky-50); color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-950); color: #bcd3ee; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); min-width: 0; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-img { height: 52px; width: auto; flex: none; }
.ftr-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px; }
.ftr-logo img { width: 150px; height: 150px; display: block; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt strong { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand-txt small { font-size: .72rem; color: var(--muted); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 11px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap; }
.nav a:not(.btn):hover { background: var(--sky-50); }
.nav a[aria-current="page"] { color: var(--blue-500); box-shadow: inset 0 -2px 0 var(--blue-500); border-radius: 0; }
.nav-quote { margin-left: 8px; }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.lang-btn { border: 1.5px solid var(--navy-900); background: #fff; color: var(--navy-900); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.lang-btn[lang="ta"] { font-family: var(--f-tamil); }
.lang-btn:hover { background: var(--navy-900); color: #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; cursor: pointer; color: var(--navy-900); }
.menu-btn .ic { width: 24px; height: 24px; }
.lang-ta .nav a:not(.btn) { font-size: .85rem; padding: 8px 8px; }

@media (max-width: 1280px) {
  .menu-btn { display: inline-flex; }
  .hdr-in { gap: 12px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gut-r) 16px var(--gut-l); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; border-bottom: 1px solid var(--sky-100); font-size: 1rem !important; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue-500); padding-left: 14px; }
  .nav-quote { margin: 12px 0 0; }
  .hdr-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .topbar-in span { display: none; }
  .topbar-in { justify-content: flex-end; }
  .brand-txt small { display: none; }
  .brand-txt strong { font-size: .95rem; white-space: normal; line-height: 1.2; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-img { height: 42px; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #fff; overflow: hidden; }
.hero-bg, .phead-bg { position: absolute; inset: 0; color: var(--blue-300); opacity: .22; pointer-events: none; }
.hero-bg svg, .phead-bg svg { width: 100%; height: 100%; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -.015em; margin: 14px 0 18px; }
.hero .lead { color: #d3e3f7; font-size: 1.1rem; max-width: 56ch; margin-bottom: 28px; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-300); }
.hero-call { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: #bcd3ee; }
.hero-call a { color: #fff; font-family: var(--f-mono); font-size: 1.1rem; text-decoration: none; }

.readout { background: rgba(6, 21, 40, .72); border: 1px solid rgba(127, 184, 255, .35); border-radius: 14px; padding: 18px; backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.readout-top { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-300); }
.dot-live { display: inline-flex; align-items: center; gap: 6px; }
.dot-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.readout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 12px 0 18px; background: rgba(127, 184, 255, .25); border-radius: 8px; overflow: hidden; }
.readout-grid div { background: var(--navy-950); padding: 10px; }
.readout-grid dt { font-size: .65rem; color: #8aa6c8; letter-spacing: .1em; text-transform: uppercase; }
.readout-grid dd { margin: 2px 0 0; font-size: .9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { background: #fff; color: var(--ink); border-radius: 10px; padding: 18px; display: grid; gap: 10px; }
.quick h2 { font-size: 1.15rem; }
.quick p { color: var(--muted); font-size: .9rem; }
.quick select { width: 100%; }

/* ---------- trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 22px 16px; font-weight: 600; color: var(--navy-900); font-size: .95rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ic { width: 30px; height: 30px; color: var(--blue-500); }

/* ---------- sections ---------- */
.sec { padding-block: 72px; }
.sec-tint { background: var(--sky-50); border-block: 1px solid var(--sky-100); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

.phead { position: relative; background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; overflow: hidden; }
.phead-in { position: relative; padding-block: 56px 52px; }
.phead h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 10px 0 12px; }
.phead .lead { color: #d3e3f7; max-width: 62ch; font-size: 1.07rem; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card h3 { font-size: 1.08rem; }
.svc-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-500); font-weight: 600; font-size: .9rem; }
.svc-ic { width: 48px; height: 48px; border-radius: 10px; background: var(--sky-100); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.svc-ic .ic { width: 28px; height: 28px; }

/* ---------- process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { padding: 22px 22px 0 0; border-top: 2px solid var(--navy-900); position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px var(--sky-50); }
.step-n { color: var(--blue-500); font-size: .85rem; font-weight: 600; }
.steps h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: .93rem; }
.steps-mini { grid-template-columns: 1fr; gap: 0; }
.steps-mini li { display: flex; gap: 14px; border-top: 0; border-left: 2px solid var(--line); padding: 0 0 18px 18px; }
.steps-mini li::before { left: -7px; top: 2px; box-shadow: 0 0 0 4px #fff; }
.steps-mini h3 { margin-top: 0; font-size: .98rem; }

/* ---------- projects ---------- */
.prj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.prj { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.prj-img { position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--navy-900); aspect-ratio: 10 / 7; width: 100%; overflow: hidden; }
.prj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prj-img:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.prj figcaption { padding: 18px 20px 22px; display: grid; gap: 6px; }
.prj-svc { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-500); font-weight: 700; }
.prj h3 { font-size: 1.08rem; }
.prj p { color: var(--muted); font-size: .92rem; }
.prj-place { display: flex; align-items: center; gap: 6px; color: var(--navy-700) !important; font-weight: 500; }
.prj-place .ic { width: 1em; height: 1em; }
.empty { color: var(--muted); padding: 30px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.phead .chips { margin: 26px 0 0; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--navy-900); padding: 7px 14px; border-radius: 999px; font-size: .87rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--blue-500); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.phead .chip { background: rgba(255, 255, 255, .08); border-color: rgba(127, 184, 255, .35); color: #e4efff; }
.phead .chip:hover { background: rgba(255, 255, 255, .18); }

/* map */
.map { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.map > svg { width: 100%; height: auto; display: block; }
.map-bg { fill: #F7FAFE; }
.map-contours path { stroke: #C9DAF0; stroke-width: 1; }
.sea { fill: #DCEAF8; }
.grid line { stroke: #B7C8DD; stroke-width: .7; stroke-dasharray: 3 5; }
.grid .ax { font: 12px var(--f-mono); fill: var(--muted); }
.mpt { cursor: pointer; }
.mpt circle { fill: var(--blue-500); stroke: #fff; stroke-width: 2; }
.mpt .mpt-halo { fill: rgba(31, 111, 209, .16); stroke: none; }
.mpt text { font: 600 14px var(--f-body); fill: var(--navy-900); paint-order: stroke; stroke: #F7FAFE; stroke-width: 4px; }
.lang-ta .mpt text, .lang-ta .moff text { font-family: var(--f-tamil); }
.mpt:hover circle:not(.mpt-halo), .mpt:focus circle:not(.mpt-halo) { fill: var(--navy-900); }
.moff rect { fill: var(--navy-900); stroke: #fff; stroke-width: 2; }
.moff text { font: 700 14px var(--f-body); fill: var(--navy-900); paint-order: stroke; stroke: #F7FAFE; stroke-width: 4px; }
.map-compact .mpt { pointer-events: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6, 21, 40, .92); display: flex; align-items: center; justify-content: center; padding: 60px max(60px, env(safe-area-inset-right, 0px)) 40px max(60px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--navy-900); }
.lightbox figcaption { color: #fff; padding-top: 14px; display: grid; gap: 4px; }
.lightbox figcaption span { color: var(--blue-300); font-size: .9rem; }
.lightbox figcaption p { color: #c9d9ee; font-size: .95rem; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(10px + env(safe-area-inset-left, 0px)); top: 50%; }
.lb-next { right: calc(10px + env(safe-area-inset-right, 0px)); top: 50%; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.prose { display: grid; gap: 18px; font-size: 1.07rem; max-width: 65ch; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: #fff; }
.panel h2 { font-size: 1.25rem; margin-bottom: 16px; }
.panel-navy { background: var(--navy-900); border-color: var(--navy-900); color: #d3e3f7; display: grid; gap: 12px; justify-items: start; }
.panel-navy .big { color: #fff; text-decoration: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--blue-500); margin-top: .2em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { border-left: 3px solid var(--blue-500); padding-left: 18px; }
.value h3 { font-size: 1.12rem; margin-bottom: 8px; }
.value p { color: var(--muted); }
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.area h2 { font-size: 1.7rem; margin-bottom: 12px; }
.area p { color: var(--muted); margin-bottom: 20px; }

/* ---------- services list ---------- */
.svc-list { display: grid; gap: 0; }
.svc-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 28px; padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-row:first-child { padding-top: 0; }
.svc-row-ic { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.svc-row-ic .ic { width: 64px; height: 64px; padding: 14px; background: var(--navy-900); color: var(--blue-300); border-radius: 14px; }
.svc-row-ic .mono { color: var(--muted); font-size: .85rem; }
.svc-row-body { display: grid; gap: 14px; justify-items: start; }
.svc-row h2 { font-size: 1.6rem; }
.svc-short { font-size: 1.1rem; color: var(--navy-700); font-weight: 500; }
.svc-row-body > p { max-width: 72ch; color: var(--ink); }
.svc-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; width: 100%; background: var(--sky-50); border-radius: var(--r); padding: 20px 22px; }
.svc-meta h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; font-family: var(--f-body); }
.lang-ta .svc-meta h3 { font-family: var(--f-tamil); }

/* ---------- equipment ---------- */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.eq { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; }
.eq h2 { font-size: 1.15rem; }
.eq p { color: var(--muted); }
.eq-spec { color: var(--navy-700) !important; font-size: .85rem; background: var(--sky-50); padding: 6px 10px; border-radius: 6px; justify-self: start; }
.sw-table-wrap { overflow-x: auto; }
.sw { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sw th, .sw td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--sky-100); }
.sw th { font-weight: 600; color: var(--navy-900); }
.sw td { color: var(--muted); font-size: .9rem; }

/* ---------- contact & forms ---------- */
.contact-grid, .quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.quote-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.ccard > div { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.ccard h2 { font-size: 1rem; }
.ccard p { color: var(--muted); }
.big { font-size: 1.45rem !important; color: var(--navy-900) !important; font-weight: 600; }
.form-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.form-card > h2 { font-size: 1.3rem; margin-bottom: 18px; }
form { display: grid; gap: 16px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fld { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fld label, .fld legend { font-weight: 600; font-size: .9rem; color: var(--navy-900); padding: 0; margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; font-size: 1rem; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31, 111, 209, .15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; }
.area-in { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .92rem; }
.radio input:checked + span { border-color: var(--blue-500); background: var(--sky-100); color: var(--navy-900); font-weight: 600; }
.radio input:focus-visible + span { outline: 3px solid var(--blue-300); outline-offset: 2px; }
form > .btn { justify-self: start; }
.fine { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.done:focus { outline: none; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; background: #E3F5EA; color: var(--wa-dark); display: grid; place-items: center; }
.done-ic .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.done h2 { font-size: 1.4rem; }
.done p { color: var(--muted); }
.quote-side { display: grid; gap: 18px; }

/* ---------- CTA band + footer ---------- */
.cta { background: var(--blue-500); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta p { color: #e3eeff; margin-top: 6px; }
.ftr { background: var(--navy-950); color: #a9bfdb; font-size: .92rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 36px; padding-block: 56px 36px; }
.ftr h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-family: var(--f-body); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #d3e3f7; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-brand p { margin-top: 14px; max-width: 34ch; }
.brand-inv { color: #fff; }
.brand-inv small { color: #8aa6c8; }
.ftr-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr-contact .ic { margin-top: .2em; color: var(--blue-300); }
.ftr-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(127, 184, 255, .15); padding-block: 18px calc(90px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; }

/* floating WhatsApp + call */
.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-weight: 600; }
.fab-wa { background: var(--wa); padding: 13px 18px 13px 14px; }
.fab-wa:hover { background: var(--wa-dark); }
.fab-wa .ic { width: 26px; height: 26px; }
.fab-call { background: var(--navy-900); width: 50px; height: 50px; justify-content: center; }
.fab-call .ic { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in, .about-grid, .area, .contact-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-block: 48px 56px; gap: 32px; }
  .trust-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .sec { padding-block: 52px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .fgrid, .svc-meta { grid-template-columns: minmax(0, 1fr); }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc-row-ic { flex-direction: row; }
  .svc-row-ic .ic { width: 52px; height: 52px; padding: 11px; }
  .trust-item { padding: 16px 10px; font-size: .86rem; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 20px; }
  .fab-wa span { display: none; }
  .fab-wa { padding: 13px; }
  .readout-grid { grid-template-columns: 1fr 1fr; }
  .readout-grid div:last-child { grid-column: span 2; }
  .lightbox { padding: 60px 12px 30px; }
  .lb-nav { top: auto; bottom: 14px; }
  .btn { white-space: normal; text-align: center; }
}
/* ---------- background photos (navy tinted) ---------- */
.has-photo::before { content: ""; position: absolute; inset: -2%; background: var(--photo) center / cover no-repeat; animation: kenburns 28s ease-in-out infinite alternate; }
.has-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero.has-photo::before { background-position: 50% 45%; }
.hero.has-photo::after { background: linear-gradient(90deg, rgba(6, 21, 40, .97) 0%, rgba(6, 21, 40, .88) 40%, rgba(11, 37, 69, .45) 72%, rgba(11, 37, 69, .3) 100%); }
.phead.has-photo::after { background: linear-gradient(90deg, rgba(6, 21, 40, .95) 0%, rgba(11, 37, 69, .82) 45%, rgba(11, 37, 69, .45) 100%); }
.has-photo .hero-bg, .has-photo .phead-bg { z-index: 1; opacity: .14; }
.has-photo .hero-in, .has-photo .phead-in { z-index: 2; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate3d(-1%, -1%, 0); } }
@media (max-width: 960px) {
  .hero.has-photo::after { background: linear-gradient(180deg, rgba(6, 21, 40, .9) 0%, rgba(6, 21, 40, .82) 55%, rgba(6, 21, 40, .92) 100%); }
  .phead.has-photo::after { background: rgba(6, 21, 40, .78); }
}

/* ---------- animations (layout unchanged) ---------- */
#main, .ftr { overflow-x: clip; }
.rv { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.rv-up { transform: translateY(28px); }
.rv-left { transform: translateX(-40px); }
.rv-right { transform: translateX(40px); }
.rv-zoom { transform: scale(.96); }
.rv.rv-in { opacity: 1; transform: none; }
.rv.rv-now { transition: none; }
/* slow drifting contour lines behind the hero and page titles */
.hero-bg svg, .phead-bg svg { animation: drift 38s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes drift { from { transform: scale(1.05) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.12) translate3d(1.5%, 1%, 0); } }
/* soft pulse on the floating WhatsApp button */
.fab-wa { animation: wa-pulse 2.6s ease-out 3s infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(31, 168, 85, .55); } 70% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 16px rgba(31, 168, 85, 0); } 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(31, 168, 85, 0); } }
/* image zoom on hover for service and equipment cards */
.svc-card .svc-ic, .eq .svc-ic { transition: transform .3s, background .3s, color .3s; }
.svc-card:hover .svc-ic, .eq:hover .svc-ic { transform: rotate(-6deg) scale(1.08); background: var(--navy-900); color: var(--blue-300); }
.eq { transition: border-color .15s, box-shadow .15s, transform .15s; }
.eq:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); }
/* back-to-top ring */
.to-top { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 59; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(11, 37, 69, .2); cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 48px; height: 48px; display: block; transform: rotate(-90deg); }
.to-top path { transform: rotate(90deg); transform-origin: 24px 24px; fill: none; stroke: var(--navy-900); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tt-track, .tt-ring { fill: none; stroke-width: 3; }
.tt-track { stroke: var(--sky-100); }
.tt-ring { stroke: var(--blue-500); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.nav a:not(.btn) { transition: color .2s, background .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Equipment photo on service cards */
.svc-card { overflow: hidden; }
.svc-ph { display: block; margin: -22px -22px 6px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.svc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-ph img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .svc-card:hover .svc-ph img { transform: none; } }

/* Real map (Leaflet) laid over the drawn map, same size */
.map-live { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s; background: #F7FAFE; font: inherit; }
.map.is-live .map-live { opacity: 1; }
.map.is-live > svg { visibility: hidden; }
.map-gm { position: absolute; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--navy-900); font-weight: 600; font-size: .88rem; text-decoration: none; box-shadow: 0 2px 10px rgba(6, 21, 40, .18); }
.map-gm .ic { width: 18px; height: 18px; color: var(--blue-500); }
.map-gm:hover { background: var(--navy-900); color: #fff; }
.map-gm:hover .ic { color: var(--blue-300); }
.map:not(.is-live) .map-gm { display: none; }
.mk-off span { display: block; width: 18px; height: 18px; background: var(--navy-900); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.leaflet-tooltip.mk-lbl { background: rgba(255,255,255,.92); border: 0; box-shadow: 0 1px 4px rgba(6,21,40,.18); color: var(--navy-900); font: 600 12px var(--f-body); padding: 2px 6px; }
.leaflet-tooltip.mk-lbl::before { display: none; }
.leaflet-tooltip.mk-lbl-off { background: var(--navy-900); color: #fff; }
.lang-ta .leaflet-tooltip.mk-lbl, .lang-ta .leaflet-popup-content { font-family: var(--f-tamil); }
.leaflet-popup-content { margin: 12px 14px; display: grid; gap: 6px; font: 14px var(--f-body); color: var(--ink); }
.leaflet-popup-content strong { color: var(--navy-900); }
.leaflet-popup-content span { color: var(--muted); font-size: .85rem; }
.leaflet-popup-content .mp-gm { color: var(--blue-500); font-weight: 600; }
.mp-view { justify-self: start; border: 0; border-radius: 6px; background: var(--navy-900); color: #fff; padding: 6px 10px; font: 600 13px var(--f-body); cursor: pointer; }
.map-gm { transition: opacity .2s; }
.map.pop-open .map-gm { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .map.is-live { min-height: 340px; } }

/* Google map embed over the drawn map (same size) */
.map .gmap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #F7FAFE; }
.map:has(.gmap) > svg { visibility: hidden; }
@media (max-width: 600px) { .map:has(.gmap) { min-height: 340px; } }

/* Services page: equipment photo instead of the symbol */
.svc-row.svc-row-ph { grid-template-columns: 280px minmax(0, 1fr); }
.svc-row-ph .svc-row-ic { align-items: flex-start; }
.svc-row-ph .svc-row-ic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--navy-900); box-shadow: 0 6px 18px rgba(6, 21, 40, .14); }
@media (max-width: 860px) {
  .svc-row.svc-row-ph { grid-template-columns: minmax(0, 1fr); }
  .svc-row-ph .svc-row-ic { flex-direction: column; }
}

/* Equipment page: instrument photo at the top of each card */
.eq.eq-has-ph { overflow: hidden; background: #fff; }
.eq-ph { display: block; margin: -24px -24px 8px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-50); }
.eq-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.eq:hover .eq-ph img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .eq:hover .eq-ph img { transform: none; } }

/* Software & file formats: dark modern cards */
.sw-sec { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #1B4C8F 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; }
.sw-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(127, 184, 255, .10); pointer-events: none; }
.sw-sec .wrap { position: relative; }
.sw-sec .sec-head h2 { color: #fff; }
.sw-sec .sec-head p { color: #b9cbe4; }
.sw-sec .sec-head .sw-eyebrow { color: var(--blue-300); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sw-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.sw-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(127,184,255,.7), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.sw-card:hover { transform: translateY(-4px); border-color: rgba(127,184,255,.35); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.sw-card:hover::before { opacity: 1; }
.sw-top { display: flex; align-items: center; justify-content: space-between; }
.sw-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-500), #134a94); color: #fff; box-shadow: 0 8px 20px rgba(31,111,209,.35); }
.sw-ic .ic { width: 26px; height: 26px; }
.sw-num { color: rgba(185,203,228,.55); font-size: .85rem; }
.sw-card h3 { color: #fff; font-size: 1.15rem; }
.sw-card p { color: #b9cbe4; font-size: .93rem; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sw-tags span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--blue-300); background: rgba(127,184,255,.10); border: 1px solid rgba(127,184,255,.28); padding: 4px 10px; border-radius: 999px; }
.sw-other { background: linear-gradient(135deg, rgba(31,111,209,.35), rgba(31,111,209,.12)); border-style: dashed; border-color: rgba(127,184,255,.45); }
.sw-other .btn { justify-self: start; margin-top: 4px; }
.lang-ta .sw-card h3, .lang-ta .sw-card p { font-family: var(--f-tamil); }
@media (prefers-reduced-motion: reduce) { .sw-card, .sw-card:hover { transition: none; transform: none; } }

/* "How a survey works" step-by-step animation */
.steps-flow.anim li { border-top-color: var(--line); }
.steps-flow.anim li::after { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--navy-900)); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * .7s); }
.steps-flow.anim li::before { transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .7s), background .3s, box-shadow .3s; z-index: 1; }
.steps-flow.anim li > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(var(--i) * .7s + .15s), transform .5s ease calc(var(--i) * .7s + .15s), color .3s; }
.steps-flow.anim.play li::after { transform: scaleX(1); }
.steps-flow.anim.play li::before { transform: scale(1); }
.steps-flow.anim.play li > * { opacity: 1; transform: none; }
.steps-flow li.is-active::before { background: var(--navy-900); animation: stepPulse 1.6s ease-out infinite; }
.steps-flow li.is-active h3 { color: var(--blue-500); }
.steps-flow.looping li > * { transition: opacity .5s ease, transform .5s ease, color .3s; }
.steps-flow.looping li:not(.is-active) > * { opacity: .45; }
.steps-flow.looping li.is-active > * { transform: translateY(-3px); }
.steps-flow li.is-active .step-n { color: var(--navy-900); }
@keyframes stepPulse {
  0% { box-shadow: 0 0 0 4px var(--sky-50), 0 0 0 4px rgba(31, 111, 209, .45); }
  100% { box-shadow: 0 0 0 4px var(--sky-50), 0 0 0 16px rgba(31, 111, 209, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .steps-flow.anim li::after, .steps-flow.anim li::before, .steps-flow.anim li > * { transition: none; }
  .steps-flow li.is-active::before { animation: none; }
}

/* About page: photo collage, counters and capability cards */
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.ab-media { position: relative; min-height: 520px; }
.ab-dots { position: absolute; top: -18px; left: -18px; width: 180px; height: 180px; background-image: radial-gradient(var(--blue-500) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: .35; border-radius: 12px; }
.ab-ph { position: absolute; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 50px rgba(6, 21, 40, .22); background: var(--navy-900); }
.ab-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ab-ph1 { top: 0; left: 0; width: 78%; height: 82%; }
.ab-ph2 { right: 0; bottom: 0; width: 50%; height: 52%; border: 6px solid #fff; animation: abFloat 6s ease-in-out infinite; }
.ab-media:hover .ab-ph img { transform: scale(1.05); }
.ab-badge { position: absolute; left: 6%; bottom: 6%; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 34px rgba(6, 21, 40, .2); animation: abFloat 6s ease-in-out -3s infinite; }
.ab-badge-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); color: #fff; }
.ab-badge-ic .ic { width: 24px; height: 24px; }
.ab-badge strong { display: block; font-size: 1.1rem; color: var(--navy-900); line-height: 1.2; }
.ab-badge div span { font-size: .85rem; color: var(--muted); }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ab-copy { display: grid; gap: 16px; }
.ab-eyebrow { color: var(--blue-500); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ab-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue-500); }
.ab-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ab-copy > p:not(.ab-eyebrow) { color: var(--muted); font-size: 1.03rem; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.ab-stat { padding: 16px; border-radius: 14px; background: var(--sky-50); border: 1px solid var(--sky-100); }
.ab-stat strong { display: block; font-size: 1.8rem; color: var(--navy-900); line-height: 1.1; }
.ab-stat > span { font-size: .85rem; color: var(--muted); }
.cap-sec { background: linear-gradient(180deg, var(--sky-50), #fff); }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cap-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cap-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.cap-card:hover::after { transform: scaleX(1); }
.cap-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--blue-300); transition: background .25s, transform .25s; }
.cap-ic .ic { width: 28px; height: 28px; }
.cap-card:hover .cap-ic { background: var(--blue-500); color: #fff; transform: rotate(-6deg); }
.cap-n { position: absolute; top: 20px; right: 22px; color: var(--sky-100); font-size: 2rem; font-weight: 700; }
.cap-card p { color: var(--navy-900); font-weight: 600; }
.lang-ta .cap-card p, .lang-ta .ab-copy h2 { font-family: var(--f-tamil); }
@media (max-width: 1080px) { .ab-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ab-media { min-height: 440px; max-width: 620px; } .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ab-media { min-height: 330px; } .ab-badge { padding: 10px 12px; } .ab-badge strong { font-size: 1rem; } .ab-stats { gap: 8px; } .ab-stat { padding: 12px 10px; } .ab-stat strong { font-size: 1.4rem; } .cap-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ab-ph2, .ab-badge { animation: none; } }

/* About page: surveyor photos beside "What we can do" (mirrors the collage above) */
.cap-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cap-wrap .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-media { min-height: 560px; }
.cap-media .ab-dots { left: auto; right: -18px; }
.cap-media .ab-ph1 { left: auto; right: 0; width: 80%; height: 84%; }
.cap-media .ab-ph2 { right: auto; left: 0; width: 56%; height: 40%; }
.cap-media .ab-badge { left: auto; right: 6%; bottom: 4%; }
@media (max-width: 1080px) { .cap-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .cap-media { min-height: 460px; max-width: 620px; } }
@media (max-width: 600px) { .cap-wrap .cap-grid { grid-template-columns: minmax(0, 1fr); } .cap-media { min-height: 380px; } }
.cap-media .ab-ph1 img { object-position: 52% 50%; }
.cap-media .ab-ph2 img { object-position: 42% 40%; }

/* ---------- About: Our Clients ---------- */
.cl-sec { border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); }
.cl-head { text-align: center; margin-inline: auto; max-width: 640px; }
.cl-head .eyebrow { color: var(--blue-500); }
.cl-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.cl-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 18px 18px; display: grid; justify-items: center; align-content: space-between; gap: 16px; min-height: 200px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.cl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.cl-card:hover { transform: translateY(-6px); border-color: #C6D5E8; box-shadow: 0 18px 40px rgba(11, 37, 69, .12); }
.cl-card:hover::before { transform: scaleX(1); }
.cl-card img { width: 100%; height: 110px; object-fit: contain; transition: transform .35s ease; }
.cl-card:hover img { transform: scale(1.06); }
.cl-card span { font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.35; }
@media (max-width: 1080px) { .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cl-card { min-height: 160px; padding: 18px 12px 14px; } .cl-card img { height: 80px; } .cl-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 6px); justify-self: center; width: 100%; } }

/* ---------- Happy Customers page ---------- */
.cu-sec { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); }
.cu-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.cu-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; display: grid; gap: 2px; min-width: 150px; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); }
.cu-stats b { font-size: 1.7rem; color: var(--navy-900); line-height: 1.1; }
.cu-stats b small { font-size: .9rem; color: var(--muted); margin-left: 2px; }
.cu-stats span { font-size: .85rem; color: var(--muted); }
.cu-chips .chip span { opacity: .7; margin-left: 4px; font-size: .78rem; }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.cu-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(11, 37, 69, .04); transition: transform .3s ease, box-shadow .3s ease; display: inline-block; width: 100%; }
.cu-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 37, 69, .12); }
.cu-media { position: relative; display: block; width: 100%; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--navy-900); overflow: hidden; }
.cu-card[data-type="video"] .cu-media { cursor: pointer; aspect-ratio: 16 / 10; }
.cu-media img, .cu-media video { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.cu-card[data-type="video"] .cu-media img, .cu-card[data-type="video"] .cu-media video { height: 100%; object-fit: cover; }
.cu-card:hover .cu-media img, .cu-card:hover .cu-media video { transform: scale(1.04); }
.cu-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--blue-500); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(6, 21, 40, .35); transition: transform .25s ease; }
.cu-card[hidden] { display: none; }
.cu-play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: cuPulse 2s ease-out infinite; }
.cu-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.cu-card:hover .cu-play { transform: scale(1.08); }
.cu-tag { position: absolute; top: 12px; left: 12px; display: inline-flex; gap: 4px; align-items: center; background: rgba(6, 21, 40, .78); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px 4px 7px; border-radius: 999px; }
.cu-tag .ic { width: 12px; height: 12px; }
@keyframes cuPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.cu-card figcaption { padding: 16px 18px 18px; display: grid; gap: 12px; }
.cu-stars { display: inline-flex; gap: 2px; color: #D5DFEB; }
.cu-stars i { display: inline-flex; } .cu-stars i.on { color: #F5B301; }
.cu-stars .ic { width: 17px; height: 17px; }
.cu-card blockquote { margin: 0; position: relative; padding-left: 30px; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.cu-card blockquote .ic { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; color: var(--blue-300); }
.cu-who { display: flex; gap: 10px; align-items: center; }
.cu-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; text-transform: uppercase; }
.cu-who strong { display: block; color: var(--navy-900); font-size: .93rem; }
.cu-who small { color: var(--muted); font-size: .8rem; }
.cu-skel { height: 320px; border-radius: 16px; background: linear-gradient(90deg, var(--sky-100), #fff, var(--sky-100)); background-size: 200% 100%; animation: cuSh 1.2s linear infinite; break-inside: avoid; }
@keyframes cuSh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cu-empty { text-align: center; max-width: 520px; margin: 10px auto 40px; padding: 48px 24px; background: #fff; border: 1px dashed #BBCDE4; border-radius: 20px; display: grid; gap: 10px; justify-items: center; }
.cu-empty .ic { width: 44px; height: 44px; color: var(--blue-500); }
.cu-empty p { color: var(--muted); }
.cu-share { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: 20px; background: var(--navy-900) radial-gradient(circle at 90% 0%, rgba(31, 111, 209, .55), transparent 55%); color: #fff; }
.cu-share h2 { color: #fff; font-size: 1.35rem; }
.cu-share p { color: #C9D8EC; margin-top: 4px; max-width: 560px; }
.cu-lb .cu-lb-media img, .cu-lb .cu-lb-media video { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 8px; background: #000; display: block; }
.cu-lb figcaption strong { font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .cu-play::before { animation: none; } }
@media (max-width: 600px) { .cu-grid { grid-template-columns: minmax(0, 1fr); } .cu-stats > div { flex: 1 1 40%; min-width: 0; padding: 12px 14px; } .cu-share { padding: 22px 18px; } .cu-share .btn { width: 100%; justify-content: center; } }

/* Header with 7 links: a little tighter so the tagline fits */
@media (min-width: 1281px) {
  .hdr-in { gap: 14px; }
  .nav a:not(.btn) { padding: 8px 9px; }
  .lang-ta .nav a:not(.btn) { padding: 8px 6px; font-size: .82rem; }
  .nav-quote { margin-left: 6px; }
}

/* Upcoming projects */
.prj-img .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.prj-img .badges .badge { position: static; }
.badge-up { background: var(--blue-500) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(31, 111, 209, .4); }
.chip-up { border-color: var(--blue-500); color: var(--blue-500); font-weight: 600; }

/* Tamil words are longer: on desktop the menu moves to its own row under the logo,
   so the company name and the links never overlap. */
@media (min-width: 521px) { .brand { flex-shrink: 0; } }
@media (min-width: 1281px) {
  .lang-ta .hdr-in { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  .lang-ta .brand { order: 1; }
  .lang-ta .hdr-actions { order: 2; margin-left: auto; }
  .lang-ta .nav { order: 3; flex: 1 0 100%; margin-left: 0; justify-content: space-between; border-top: 1px solid var(--line); padding: 6px 0; gap: 4px; }
  .lang-ta .nav a:not(.btn) { font-size: .9rem; padding: 8px 10px; }
  .lang-ta .nav-quote { margin-left: auto; }
}

/* Happy Customers: every card the same size, photos and videos cropped to the same shape */
.cu-grid { align-items: stretch; }
.cu-card { display: flex; flex-direction: column; height: 100%; }
.cu-media, .cu-card[data-type="video"] .cu-media { aspect-ratio: 4 / 3; flex: none; }
.cu-media img, .cu-media video { width: 100%; height: 100% !important; object-fit: cover; }
.cu-card figcaption { flex: 1; grid-template-rows: auto 1fr auto; }
.cu-card figcaption > :only-child { grid-row: 3; }
.cu-who { align-self: end; }

/* Home: "Why choose us" (isometric scenes drawn in site.js) */
.why-sec { background: radial-gradient(1200px 500px at 50% 0%, #EAF2FD 0%, rgba(234,242,253,0) 70%), linear-gradient(180deg, #F7FAFE, #fff); }
.why-head { text-align: center; margin-inline: auto; }
.why-head h2 { color: var(--navy-900); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.why-card { text-align: center; padding: 22px 18px 24px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .3s; }
.why-card h3 { margin: 0; font-size: 1.12rem; color: var(--ink); }
.why-card p { margin: 6px auto 0; max-width: 30ch; color: var(--muted); font-size: .93rem; }
.why-art { display: block; width: min(220px, 80%); height: auto; margin: 16px auto 0; overflow: visible; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.why-card:hover { border-color: var(--sky-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.why-card:hover .why-art { transform: translateY(-6px); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .why-art { width: min(200px, 70%); } }
@media (prefers-reduced-motion: reduce) { .why-card, .why-art { transition: none; } .why-card:hover, .why-card:hover .why-art { transform: none; } }

/* ---------- FAQ (home page) ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 600 1.4rem/1 var(--f-display); color: var(--navy-700); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { font-size: 1.05rem; }
.faq-item p { margin: 0 0 18px; color: var(--muted); }
.faq-item summary:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 4px; border-radius: 6px; }

/* ---------- footer: business profile links ---------- */
.ftr .ftr-sub { margin-top: 22px; }
.ftr-profiles { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 18px; }
@media (max-width: 600px) { .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
