/* ==========================================================================
   Illustration + visual-effects layer.
   Loaded after styles.css. Everything here is original line art drawn in SVG —
   no photographs, no stock imagery. Colours come from the tokens in styles.css
   so the drawings follow light and dark mode.
   ========================================================================== */

:root {
  --illus-line:   #2E4088;
  --illus-soft:   #AFB8D4;
  --illus-accent: #C39A3C;
  --illus-fill:   #EEF0F8;
  --illus-fill-2: #F7EFDC;
  --illus-bg:     #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --illus-line:   #8FA4E0;
    --illus-soft:   #39426A;
    --illus-accent: #D6B25F;
    --illus-fill:   #1A2238;
    --illus-fill-2: #262012;
    --illus-bg:     #121829;
  }
}
:root[data-theme="dark"] {
  --illus-line:   #8FA4E0;
  --illus-soft:   #39426A;
  --illus-accent: #D6B25F;
  --illus-fill:   #1A2238;
  --illus-fill-2: #262012;
  --illus-bg:     #121829;
}

/* Illustrations sitting on the dark hero / dark bands invert their palette. */
.on-dark {
  --illus-line:   #BFCBF0;
  --illus-soft:   rgba(255,255,255,.22);
  --illus-accent: #D9B764;
  --illus-fill:   rgba(255,255,255,.05);
  --illus-fill-2: rgba(217,183,100,.10);
  --illus-bg:     transparent;
}

.illus { display: block; width: 100%; height: auto; }
.illus-frame {
  background: var(--illus-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.illus-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(195,154,60,.07), transparent 45%);
}

/* --------------------------------------------------- diagonal dividers --- */

.edge { display: block; width: 100%; height: clamp(38px, 5vw, 78px); }
.edge path { fill: currentColor; }

.edge-top { margin-bottom: -1px; }
.edge-bot { margin-top: -1px; }

/* colour helpers so a divider can hand off between two section backgrounds */
.to-cream   { color: var(--bg); }
.to-alt     { color: var(--surface-2); }
.to-green   { color: var(--brand-800); }
.to-deep    { color: var(--brand-900); }

/* A thin gold rule that echoes the brochure's swoosh. */
.gold-rule {
  height: 3px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400) 40%, transparent 92%);
}

/* ------------------------------------------------------------ hero art --- */

.hero-art { position: relative; }
.hero-art .illus { filter: drop-shadow(0 18px 40px rgba(0,0,0,.28)); }

.hero-badge {
  position: absolute; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border-radius: 100px; padding: .45rem .9rem;
  font-size: .76rem; font-weight: 600; color: #EAF3EE;
  display: inline-flex; align-items: center; gap: .45rem;
  white-space: nowrap;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--gold-400); }
.hero-badge.b1 { top: 6%;  left: -6%; }
.hero-badge.b2 { bottom: 16%; right: -4%; }

@media (max-width: 900px) { .hero-art { display: none; } }

/* ------------------------------------------------- numbered svc cards --- */

.svc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-400); color: inherit; }

.svc-card .thumb {
  background: linear-gradient(150deg, var(--illus-fill), var(--illus-fill-2));
  border-bottom: 1px solid var(--border);
  padding: .4rem .4rem 0;
}
.svc-card .thumb .illus { border-radius: 8px 8px 0 0; }

.svc-card .body { padding: 1.3rem 1.3rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { margin: 0 0 .5rem; padding-right: 2.5rem; }
.svc-card p { color: var(--text-muted); font-size: .94rem; margin: 0 0 1rem; }
.svc-card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .86rem; }

.svc-num {
  position: absolute; top: .9rem; right: 1.1rem; z-index: 2;
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700; line-height: 1;
  color: var(--gold-400); opacity: .55;
}

/* -------------------------------------------------------- stat counters --- */

.stats-band {
  background:
    radial-gradient(900px 300px at 12% -40%, rgba(195,154,60,.20), transparent 60%),
    linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #EAF3EE;
}
.stats-grid {
  display: grid; gap: 1.2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  text-align: left;
}
.stat { border-left: 2px solid rgba(217,183,100,.55); padding-left: 1rem; }
.stat .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.1rem); line-height: 1;
  color: #fff; display: block;
}
.stat .num .suffix { color: var(--gold-400); }
.stat .lbl { font-size: .84rem; color: #BDD3C9; display: block; margin-top: .45rem; }

/* ------------------------------------------------------------ timeline --- */

.flow { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.flow-step {
  position: relative; padding: 1.4rem 1.2rem 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--accent);
  border-bottom: 2px solid var(--gold-400); padding-bottom: .15rem; margin-bottom: .8rem;
}
.flow-step h4 { margin: 0 0 .4rem; }
.flow-step p { margin: 0; font-size: .92rem; color: var(--text-muted); }
/* connecting arrow between steps on wide screens */
@media (min-width: 900px) {
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -1rem; width: 1rem; height: 1px;
    background: var(--border);
  }
}

/* ---------------------------------------------------------- sector tiles --- */

.tile {
  position: relative; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.tile .cap {
  height: 128px;
  background: var(--brand-800) center / cover no-repeat;
  position: relative; overflow: hidden;
}
/* a thin navy wash keeps five different photographs reading as one set */
.tile .cap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,22,48,.26), rgba(31,46,98,.10) 55%, transparent);
}
.tile .txt { padding: 1.1rem 1.15rem 1.3rem; }
.tile h4 { margin: 0 0 .35rem; }
.tile p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* ------------------------------------------------------ coastline band --- */

.coast-band {
  position: relative;
  height: clamp(170px, 24vw, 280px);
  overflow: hidden;
  background: var(--brand-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.coast-photo {
  position: absolute; inset: 0;
  /* The file is cropped to this band's exact 1920x560 ratio from the 6000x4000
     original, so it is placed centred rather than nudged - no upscaling, which
     is what made the first version soft. */
  background: url("../img/photos/vizag-band.jpg") center center / cover no-repeat;
}
.coast-veil {
  /* Lighter at the foot than it used to be: the heavy bottom stop existed to
     carry the place-name overlay, which is gone. Enough tint remains to tie
     the band to the sections either side of it. */
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,22,48,.20) 0%, rgba(13,22,48,.03) 42%, rgba(13,22,48,.34) 100%);
}
/* -------------------------------------------------- alternating service --- */

.svc-row {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 156px;
}
.svc-row:first-of-type { border-top: 0; }
.svc-row.flip .svc-media { order: 2; }
@media (max-width: 820px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-row.flip .svc-media { order: 0; }
}
.svc-row .kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .7rem;
}
.svc-row .kicker .n {
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0;
  border-right: 1px solid var(--border); padding-right: .6rem;
}

/* ------------------------------------------------------------- reveals --- */

/* Hidden only when JS is present to reveal it again — see main.js. */
html.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js [data-reveal].in { opacity: 1; transform: none; }
@media print { html.js [data-reveal] { opacity: 1 !important; transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------- map --- */

.map-frame {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface-2); line-height: 0;
}
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; filter: saturate(.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-frame iframe { filter: saturate(.75) brightness(.86) contrast(1.05); }
}

/* --------------------------------------------------------- misc accents --- */

.watermark {
  position: absolute; right: -4%; bottom: -18%;
  width: min(420px, 46%); opacity: .045; pointer-events: none; z-index: 0;
}
.watermark svg { width: 100%; height: auto; }

.has-watermark { position: relative; overflow: hidden; }
.has-watermark > .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   Components introduced in the visual rebuild
   ========================================================================== */

/* ------------------------------------------------------------ hero copy --- */
.hero h1 em { font-style: normal; color: var(--gold-400); display: inline-block; }
.hero-split h1 { max-width: 16ch; }
/* the angled divider is the hero's bottom edge — no section padding beneath it */
.hero { padding-bottom: 0; }
.hero .edge { margin-bottom: -1px; }
/* Without JS the reveal class never lands, so content must not stay hidden. */

.hero-inner h1 em { color: var(--gold-400); }

/* ---------------------------------------------------------- trust strip --- */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.trust-item {
  display: flex; align-items: center; gap: .7rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
  padding: .3rem 0;
}
.trust-ic {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-800); color: var(--gold-400);
}
.trust-ic svg { width: 18px; height: 18px; }

/* -------------------------------------------------------- split heading --- */
.split-head {
  max-width: none;
  display: grid; gap: 1.2rem 3rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
}
.split-head > p { color: var(--text-muted); font-size: 1rem; margin: 0 0 .3rem; }
.split-head h2 { margin-bottom: .8rem; }
@media (max-width: 800px) { .split-head { grid-template-columns: 1fr; align-items: start; } }

/* ------------------------------------------------------------- why band --- */
.why-band {
  position: relative;
  background:
    radial-gradient(800px 420px at 92% 4%, rgba(214,178,95,.14), transparent 62%),
    linear-gradient(150deg, var(--brand-900), var(--brand-800) 62%, var(--brand-700));
  color: #E9EDF8;
  padding-top: 0;
}
.why-band > .wrap { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.why-band h2 { color: #fff; }
.why-band p { color: #BFC9E4; }
.why-band .edge { color: var(--bg); }

.why-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.pillar-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 1.1rem 1.1rem 1.2rem;
}
.pillar h4 { color: #fff; display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; font-size: .96rem; }
.pillar p { margin: 0; font-size: .88rem; color: #B8C3E0; }
.p-ic { color: var(--gold-400); display: inline-flex; }
.p-ic svg { width: 17px; height: 17px; }

.script-line {
  text-align: right; margin: 2.4rem 0 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem); line-height: 1.35;
  color: var(--gold-400);
}

/* ------------------------------------------------------------- why row --- */
.why-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.why-item {
  text-align: center; padding: 1.6rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.why-item .icon { margin: 0 auto 1rem; background: var(--brand-800); color: var(--gold-400); }
.why-item h4 { margin: 0 0 .4rem; }
.why-item p { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* ------------------------------------------------------------ cta band --- */
.cta-band {
  background:
    radial-gradient(700px 320px at 88% 110%, rgba(214,178,95,.22), transparent 62%),
    linear-gradient(115deg, var(--brand-900), var(--brand-700));
  color: #E9EDF8;
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #BFC9E4; }
.cta-inner {
  display: grid; gap: 1.6rem 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) auto; align-items: center;
}
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: .9rem 0 0; font-size: .9rem; }
.cta-contacts a { color: #E9EDF8; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.cta-contacts a:hover { color: var(--gold-400); }
.cta-contacts svg { width: 15px; height: 15px; flex: none; color: var(--gold-400); }

.btn-outline-light { border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-400); color: var(--gold-400); background: rgba(255,255,255,.04); }

/* --------------------------------------------------------- svc row misc --- */
.svc-row .who {
  font-size: .85rem; color: var(--text-muted);
  border-left: 2px solid var(--gold-400); padding-left: .85rem; margin: 1.2rem 0 0;
}
.pill { text-decoration: none; }
a.pill:hover { border-color: var(--gold-400); color: var(--accent); }

/* ---------------------------------------------------------- footer bits --- */
.site-footer { background: var(--brand-900); }
.motto-line { color: var(--gold-400); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; font-weight: 600; }
.fline { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; font-size: .88rem; }
.fline svg { width: 15px; height: 15px; flex: none; margin-top: .3rem; color: var(--gold-400); }
.site-footer h4 { font-family: var(--font-display); font-size: .84rem; letter-spacing: .14em; }

/* -------------------------------------------------------------- tweaks --- */
.icon { background: var(--brand-800); color: var(--gold-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon { background: rgba(214,178,95,.14); color: var(--gold-400); }
  :root:not([data-theme="light"]) .trust-ic { background: rgba(214,178,95,.14); color: var(--gold-400); }
  :root:not([data-theme="light"]) .why-item .icon { background: rgba(214,178,95,.14); }
}

/* ------------------------------------------------- where we operate --- */
/* Named places, set as a list rather than a map. A map of India with pins
   reads as "we cover India"; a list of seven names reads as seven jobs,
   which is what it is and what a procurement officer can check. */
.loc-grid {
  display: grid; gap: clamp(1.4rem, 3.5vw, 2.6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 1.6rem;
}
@media (max-width: 760px) { .loc-grid { grid-template-columns: 1fr; } }

.loc-head {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
  padding-bottom: .6rem; margin: 0 0 .2rem;
  border-bottom: 2px solid var(--accent);
}
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: .2rem .9rem; align-items: baseline;
  padding: .72rem 0; border-bottom: 1px solid var(--border);
}
.loc-list.offices li { grid-template-columns: minmax(0, 1fr) auto; }
.loc-name { font-weight: 650; color: var(--text); }
.loc-state { font-size: .82rem; color: var(--text-muted); text-align: right; white-space: nowrap; }
.loc-note {
  grid-column: 1 / -1; font-size: .86rem; color: var(--text-muted); line-height: 1.45;
}
@media (max-width: 420px) {
  .loc-list li { grid-template-columns: 1fr; }
  .loc-state { text-align: left; }
}
.loc-intro h2 { margin-top: .2rem; }
.loc-intro > p { color: var(--text-muted); max-width: 46ch; }
.loc-intro .loc-head { margin-top: 2rem; }
.loc-foot {
  margin-top: 1.1rem; font-size: .8rem; line-height: 1.5;
  color: var(--text-muted); max-width: 46ch;
}
/* Capability statement under the location list. Set as a statement, not a
   footnote: a small grey line saying something this assertive reads like a
   disclaimer, which is the opposite of what it is meant to do. */
.loc-claim {
  margin-top: 1.2rem; padding-top: .95rem;
  border-top: 2px solid var(--accent);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent-text);
}
@media (min-width: 761px) { .loc-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
