/* Metro Consulting Engineers Pvt. Ltd. — responsive site stylesheet
   Save this file as style.css in the same folder as index.html. */

:root {
  --navy: #123047;
  --navy-deep: #0a2234;
  --teal: #0b8c8c;
  --teal-dark: #087474;
  --ink: #263746;
  --muted: #647482;
  --surface: #ffffff;
  --surface-alt: #f2f6f8;
  --line: #dce5ea;
  --shadow: 0 14px 38px rgba(15, 42, 59, .10);
  --radius: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Contact strip */
.top {
  color: #eaf4f7;
  background: var(--navy-deep);
  font-size: 13px;
}
.top .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 7px;
}
.top span:last-child { text-align: right; }

/* Header and navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(220,229,234,.9);
  box-shadow: 0 4px 18px rgba(15,42,59,.045);
  backdrop-filter: blur(12px);
}
.head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .035em;
}
.brand small {
  display: inline-block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--teal), var(--navy));
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px rgba(11,140,140,.2);
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #435665;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
nav a:hover, nav a:focus-visible {
  color: var(--teal-dark);
  background: #eaf6f6;
}
nav a.active {
  color: var(--teal-dark);
  background: #e5f4f4;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--navy);
  background: white;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 58vw, 650px);
  overflow: hidden;
  color: white;
  background-color: var(--navy);
  background-image: var(--bg);
  background-size: cover;
  background-position: center 48%;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5,24,39,.88) 0%, rgba(8,37,54,.72) 48%, rgba(8,37,54,.25) 100%),
    linear-gradient(0deg, rgba(5,24,39,.25), transparent 55%);
}
.hero .container { padding-block: 80px; }
.eyebrow {
  margin: 0 0 14px;
  color: #77e1d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero p {
  max-width: 650px;
  margin: 24px 0 30px;
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 1.8vw, 20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(11,140,140,.2);
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--teal-dark);
  box-shadow: 0 12px 24px rgba(11,140,140,.27);
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid #72d9d2;
  outline-offset: 3px;
}

/* General sections */
.section { padding-block: clamp(58px, 7vw, 94px); }
.section.alt { background: var(--surface-alt); }
.section h2, .callout h2 {
  max-width: 850px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
  text-wrap: balance;
}
.section p, .callout p { margin-top: 0; }
.intro {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
}

/* Capability cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.card {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(15,42,59,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 4px;
  background: var(--teal);
  content: "";
}
.card:hover {
  transform: translateY(-4px);
  border-color: #b6dada;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.card p { margin: 0; color: var(--muted); }

/* Image and text split section */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}
.split > img {
  width: 100%;
  min-height: 320px;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split h2 { margin-top: 0; }
.split p { color: var(--muted); }
.split .btn { margin-top: 8px; }

/* Solution tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 24px rgba(15,42,59,.055);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.tile:hover img { transform: scale(1.035); }
.tile > div { padding: 20px; }
.tile strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}
.tile p {
  margin: 10px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

/* Gallery */
.visual-gallery { background: #f8fafb; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.photo-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(15,42,59,.1);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(4,23,37,.8));
  content: "";
  pointer-events: none;
}
.photo-tile figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

/* Closing call-to-action */
.callout {
  padding-block: clamp(56px, 7vw, 82px);
  color: white;
  text-align: center;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #0a686c);
}
.callout h2 {
  margin-inline: auto;
  color: white;
}
.callout p {
  max-width: 680px;
  margin: 0 auto 25px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
}
.callout .btn {
  color: var(--navy);
  border-color: white;
  background: white;
  box-shadow: none;
}
.callout .btn:hover { color: white; border-color: var(--teal); background: var(--teal); }

/* Footer */
footer {
  padding-top: 58px;
  color: #d8e3e9;
  background: #071d2c;
}
.cols {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 42px;
  padding-bottom: 38px;
}
.cols h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 16px;
  line-height: 1.4;
}
.cols p { margin: 0; color: #b9c9d2; font-size: 14px; }
.cols a { color: #c5d8e0; transition: color .2s ease; }
.cols a:hover { color: #77e1d7; }
.fine {
  padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #93a8b4;
  font-size: 12px;
  line-height: 1.7;
}

/* Other pages can reuse common typography and content patterns */
main { min-width: 0; }
section { min-width: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* Tablet */
@media (max-width: 1080px) {
  .head { gap: 16px; }
  nav { gap: 1px; }
  nav a { padding-inline: 7px; font-size: 11px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile navigation. script.js should toggle the "open" class on nav
   and update aria-expanded on .menu-toggle. */
@media (max-width: 820px) {
  .container { width: min(100% - 36px, var(--container)); }
  .top .container { align-items: flex-start; flex-direction: column; gap: 2px; padding-block: 8px; }
  .top span:last-child { text-align: left; }
  .head { min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
  .brand { font-size: 11px; }
  .logo { width: 48px; height: 48px; flex-basis: 48px; font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }
  nav.open { display: flex; }
  nav a { min-height: 42px; padding: 10px 12px; font-size: 14px; }
  .hero { min-height: 490px; background-position: center; }
  .hero .container { padding-block: 64px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(5,24,39,.86), rgba(8,37,54,.55)),
                linear-gradient(0deg, rgba(5,24,39,.2), transparent);
  }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split > img { min-height: 240px; max-height: 390px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cols > div:first-child { grid-column: 1 / -1; }
}

/* Small phones */
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .top { font-size: 12px; }
  .brand { gap: 9px; letter-spacing: 0; }
  .brand small { font-size: 8px; }
  .hero { min-height: 450px; }
  .hero .container { padding-block: 54px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero p { margin-block: 20px 25px; font-size: 16px; }
  .section { padding-block: 54px; }
  .section h2, .callout h2 { font-size: 30px; }
  .intro { font-size: 16px; }
  .cards, .tiles, .photo-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .tile img { aspect-ratio: 16 / 9; }
  .photo-tile { aspect-ratio: 5 / 4; }
  .cols { grid-template-columns: 1fr; gap: 25px; }
  .cols > div:first-child { grid-column: auto; }
  .fine { font-size: 11px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
