/* ==========================================================================
   Design tokens
   Palette extracted from the live mirazfacility.com site's own generated
   CSS (2026-08-25) — real brand teal, not a guess. Deepened where the raw
   value wouldn't pass contrast against white text.

   Rebrand (2026-09-25, owner decision): dark navy + white as the primary
   palette, with the original brand teal kept as the accent color. Done as
   a single token swap on --teal-900 (the "dark surface" slot used for the
   header/hero/footer/stats backgrounds) rather than a find-replace across
   every template, so every dark-surface element repaints consistently and
   the accent teal (--teal-500/300, buttons, highlights) is untouched.
   ========================================================================== */
:root {
  --teal-900: #0B1E33;
  --teal-700: #0E5C55;
  --teal-600: #00877A;
  --teal-500: #00B8A5;
  --teal-300: #30C7B5;
  --teal-100: #BCD2D5;
  --teal-50:  #EFF7F6;

  --ink: #1c2422;
  --muted: #5b6a68;
  --paper: #ffffff;
  --surface: #F5F5F5;
  --border: #e2e8e7;

  /* 2026-09-26 polish pass: larger radii, deeper/softer shadows, and a
     proper ease-out-expo curve — technique borrowed from studying
     tenonworld.com's real compiled CSS (larger corner radii, more
     diffused shadows, confident motion), applied on top of the existing
     navy/teal palette rather than adopting their color scheme. */
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 24px rgba(11, 30, 51, 0.07);
  --shadow-lift: 0 20px 45px rgba(11, 30, 51, 0.18);
  --shadow-xl: 0 30px 70px rgba(11, 30, 51, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  /* 2026-09-26: matched to tenonworld.com's real typefaces where possible.
     Inter is genuinely the same font they use for body copy (free, OFL-
     licensed). Their display font, Vinila, is a paid commercial typeface
     from Plau/Type Network — not something to copy from their server or
     redistribute. Space Grotesk is the free substitute for the same
     confident-geometric-display role. */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
body {
  font-family: var(--font);
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; line-height: 1.7; }
a { color: var(--teal-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-900); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-block;
  color: var(--teal-600);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-heading h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-heading p { color: var(--muted); font-size: 1.05rem; }

section { padding: 7rem 0; }
section.alt { background: var(--surface); }
@media (max-width: 640px) {
  section { padding: 4rem 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--teal-600); color: var(--paper); box-shadow: 0 8px 20px rgba(0, 135, 122, 0.22); }
.btn-primary:hover { background: var(--teal-900); color: var(--paper); box-shadow: 0 16px 32px rgba(0, 135, 122, 0.32); }
.btn-outline { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--teal-900); }
.btn-outline-dark { background: transparent; border-color: var(--teal-600); color: var(--teal-700); }
.btn-outline-dark:hover { background: var(--teal-600); color: var(--paper); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 20px rgba(11, 30, 51, 0.07);
}
.site-header .logo img { height: 68px; }
.site-header nav { display: flex; align-items: center; gap: 1.75rem; flex: 1; justify-content: center; }
.site-header nav > a, .nav-item-dropdown > a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.site-header nav > a:hover, .nav-item-dropdown > a:hover { color: var(--teal-600); }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-item-dropdown .caret { font-size: 0.7em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 0.6rem;
  min-width: 240px;
  z-index: 60;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--teal-50); color: var(--teal-700); }
.dropdown-menu .dropdown-view-all {
  margin-top: 0.3rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--teal-600);
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle-label span { width: 26px; height: 3px; background: var(--teal-900); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--paper);
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.08);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(11,30,51,0.92) 0%, rgba(11,30,51,0.6) 40%, rgba(11,30,51,0.5) 65%, rgba(0,135,122,0.7) 100%);
  z-index: -1;
}
.hero-inner { max-width: 1040px; margin: 0 auto; }
.hero .eyebrow { color: var(--teal-300); font-size: 0.9rem; animation: fade-in-up 0.7s var(--ease) both; }
.brand-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0.5rem 0 1.4rem;
  animation: fade-in-up 0.7s 0.1s var(--ease) both;
}
.brand-title span { display: block; color: var(--teal-300); font-size: 0.55em; letter-spacing: 0.01em; margin-top: 0.3rem; }
.hero-subheading { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; margin: 0 0 0.5rem; animation: fade-in-up 0.7s 0.15s var(--ease) both; }
.hero-motto { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--teal-300); margin: -1.25rem auto 2.25rem; animation: fade-in-up 0.7s 0.25s var(--ease) both; }
.hero .tagline { font-size: 1.35rem; font-weight: 300; opacity: 0.95; max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.5; animation: fade-in-up 0.7s 0.2s var(--ease) both; }
.hero .btn-row { justify-content: center; animation: fade-in-up 0.7s 0.3s var(--ease) both; }
@media (max-width: 640px) {
  .hero { min-height: 78vh; padding: 6rem 1.25rem; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .brand-title, .hero-subheading, .hero-motto, .hero .tagline, .hero .btn-row { animation: none; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: var(--teal-900);
  color: var(--paper);
  padding: 4.5rem 0;
}
.stats .container {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  text-align: center;
}
.stats .container > div {
  flex: 1 1 160px;
  padding: 0 2.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.stats .container > div:first-child { border-left: none; }
.stats strong { display: block; font-size: clamp(2.4rem, 4.5vw, 3.75rem); font-weight: 800; color: var(--teal-300); line-height: 1; margin-bottom: 0.4rem; }
.stats span { font-size: 0.9rem; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* ==========================================================================
   Cards (services, general)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.card-with-image { padding: 0 0 2.25rem; overflow: hidden; }
.card-with-image .service-icon { display: none; }
.card-with-image h3, .card-with-image p, .card-with-image .card-link { margin-left: 2.25rem; margin-right: 2.25rem; }
.card-with-image h3 { margin-top: 1.75rem; }
.card-image { width: 100%; height: 220px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card-with-image:hover .card-image img { transform: scale(1.06); }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon-svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin-bottom: 1.1rem; font-size: 0.98rem; }
.card .card-link { font-weight: 700; font-size: 0.9rem; }
.card .card-link::after { content: " →"; }

.services-cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.testimonial-card .stars { color: var(--teal-500); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 1rem; }
.testimonial-card blockquote { margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.testimonial-card cite { font-style: normal; font-weight: 700; font-size: 1.05rem; display: block; }
.testimonial-card .cite-title { color: var(--muted); font-size: 0.88rem; }

/* ==========================================================================
   Client logos
   ========================================================================== */

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow 0.4s var(--ease); }
.gallery-grid figure:hover { box-shadow: var(--shadow-lift); }
.gallery-grid img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.5s var(--ease); }
@media (max-width: 640px) {
  .gallery-grid img { height: 220px; }
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11,30,51,0.85));
  color: var(--paper);
  font-size: 0.85rem;
  padding: 2rem 0.9rem 0.7rem;
}

/* ==========================================================================
   Page hero (non-home pages)
   ========================================================================== */
.page-hero {
  background: var(--teal-900);
  color: var(--paper);
  text-align: center;
  padding: 4.5rem 1.5rem;
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin: 0; animation: fade-in-up 0.6s var(--ease) both; }
.page-hero p { animation: fade-in-up 0.6s 0.1s var(--ease) both; }
.page-hero-photo { background-size: cover; background-position: center; padding: 7rem 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  .page-hero h1, .page-hero p { animation: none; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-content { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.badge {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.pull-quote {
  background: var(--teal-900);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin: 2rem 0;
}

/* ==========================================================================
   Clients page
   ========================================================================== */
.clients-page { padding: 3.5rem 1.5rem; }
.client-category { margin-bottom: 2.5rem; }
.client-category h2 {
  color: var(--teal-700);
  border-bottom: 2px solid var(--teal-50);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.client-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem 1.5rem;
}
.client-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--teal-50);
  font-size: 0.95rem;
}

/* ==========================================================================
   Careers page
   ========================================================================== */
.job-list { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.job-card {
  background: var(--teal-50);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.job-card h3 { margin: 0 0 0.25rem; }
.job-meta { color: var(--teal-700); font-size: 0.9rem; margin: 0; }
.job-description { flex-basis: 100%; margin: 0.5rem 0 0; font-size: 0.9rem; }
.pull-quote p { font-size: 1.15rem; margin-bottom: 1rem; }
.pull-quote cite { font-style: normal; color: var(--teal-300); font-weight: 700; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.6fr);
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  align-items: start;
}
.contact-info { background: var(--teal-900); color: var(--paper); border-radius: var(--radius); padding: 2.25rem; }
.contact-info h2 { font-size: 1.3rem; }
.contact-info p { opacity: 0.9; }
.contact-info .info-line { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; font-size: 0.95rem; }
.contact-info a { color: var(--paper); white-space: nowrap; }
.contact-info a:hover { color: var(--teal-300); }
.contact-form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow-soft); }
form p { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
form input, form textarea, form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(0, 184, 165, 0.18);
}
form button[type="submit"] {
  background: var(--teal-600);
  color: var(--paper);
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
form button[type="submit"]:hover { background: var(--teal-900); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,0.85);
  padding: 4rem 1.5rem 1.75rem;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--paper); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
.site-footer h5 { color: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin: 1rem 0 0.4rem; }
.footer-logo { height: 84px; width: auto; margin-bottom: 1rem; }
.footer-brand p.footer-legal-name { color: var(--paper); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.4; }
.footer-brand p, .footer-address p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.5rem; }
.site-footer a.footer-strong { color: var(--paper); font-weight: 600; margin-bottom: 0.3rem; }
.footer-address a { margin-bottom: 0.3rem; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--teal-300); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.messages { list-style: none; padding: 1rem 1.5rem; margin: 0; }
.messages .success { background: var(--teal-50); color: var(--teal-900); border: 1px solid var(--teal-100); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }

/* ==========================================================================
   Header call/WhatsApp actions + floating WhatsApp button
   ========================================================================== */
.header-actions .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
}
.header-actions .icon-link:hover { background: var(--teal-100); }
.header-actions .icon-link svg { width: 18px; height: 18px; }

.contact-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-float a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease;
}
.contact-float a:hover { transform: scale(1.08); }
.contact-float svg { width: 20px; height: 20px; fill: #fff; }
.contact-float svg.stroke-icon { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cf-phone { background: var(--teal-700); }
.cf-whatsapp { background: #25D366; }
.cf-email { background: #e5484d; }
.cf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.cf-facebook { background: #1877f2; }
@media (max-width: 640px) {
  .contact-float a { width: 40px; height: 40px; }
  .contact-float svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   Why Miraz / Our Approach (icon-list sections)
   ========================================================================== */
.why-grid, .approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.why-card, .approach-step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.why-card:hover, .approach-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why-card .why-number, .approach-step .step-number {
  display: inline-block;
  color: var(--teal-500);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-card h3, .approach-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-card p, .approach-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Industries We Serve
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.industry-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--teal-900);
}
.industry-chip .service-icon { margin-bottom: 0; flex-shrink: 0; }

/* ==========================================================================
   Grouped services (homepage service verticals)
   ========================================================================== */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.vertical-card h3 { color: var(--teal-700); border-bottom: 2px solid var(--teal-50); padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.vertical-card ul { list-style: none; margin: 0; padding: 0; }
.vertical-card li { padding: 0.3rem 0; font-size: 0.92rem; }
.vertical-card li a { color: var(--ink); }
.vertical-card li a:hover { color: var(--teal-600); }

/* ==========================================================================
   Compliance page
   ========================================================================== */
.compliance-content { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem; }

.cert-banner { background: #fff; border: 1px solid #e3e6e8; border-radius: var(--radius-sm); padding: 1.75rem 1.5rem 2rem; margin: 1.5rem auto; max-width: 1100px; box-shadow: 0 1px 3px rgba(11,30,51,0.06); }
.cert-banner-title { text-align: center; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: #111; margin: 0 0 1.25rem; }
.cert-row { display: grid; gap: 1rem; align-items: center; }
.cert-row-top { grid-template-columns: repeat(4, 1fr); margin-bottom: 1.75rem; }
.cert-row-bottom { grid-template-columns: repeat(9, 1fr); gap: 1rem; }
.cert-badge { display: flex; align-items: center; justify-content: center; }
.cert-badge img { width: 100%; object-fit: contain; }
.cert-row-top .cert-badge { border: 1px solid #dcdfe2; background: #fff; padding: 0.75rem 1rem; height: 110px; }
.cert-row-top .cert-badge img { height: 100%; }
.cert-row-bottom .cert-badge img { height: 92px; }
.cert-badge-name { font-weight: 700; color: var(--teal-900); font-size: 0.9rem; text-align: center; }
@media (max-width: 900px) {
  .cert-row-top { grid-template-columns: repeat(2, 1fr); }
  .cert-row-bottom { grid-template-columns: repeat(3, 1fr); }
  .cert-row-bottom .cert-badge img { height: 80px; }
}
@media (max-width: 480px) {
  .cert-banner { padding: 1.25rem 0.75rem 1.5rem; }
  .cert-row-top .cert-badge { height: 80px; padding: 0.5rem; }
  .cert-row-bottom { gap: 0.75rem; }
  .cert-row-bottom .cert-badge img { height: 60px; }
}

.cert-registration-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.cert-registration-list li { background: var(--teal-50); border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: 0.9rem; color: var(--teal-900); }

/* ==========================================================================
   SEO landing pages
   ========================================================================== */
.landing-content { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.landing-content h2 { margin-top: 2.25rem; color: var(--teal-700); }
.landing-content ul { padding-left: 1.25rem; }
.landing-content li { margin-bottom: 0.4rem; }
.landing-cta { background: var(--teal-50); border-radius: var(--radius); padding: 2rem; text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   Footer social icons
   ========================================================================== */
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); margin: 0;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-social svg.stroke-icon { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Scroll-reveal motion
   Purely additive, presentation-only: fades/lifts these existing component
   classes into place as they enter the viewport, applied via IntersectionObserver
   (see base.html) rather than the AOS library, to avoid a new dependency.
   Progressive enhancement — .js-ready gates the hidden state so content is
   fully visible if JS doesn't run (see the .js class toggle in base.html and
   the <noscript> override), and prefers-reduced-motion disables it entirely.
   ========================================================================== */
.js-ready .section-heading,
.js-ready .card,
.js-ready .why-card,
.js-ready .approach-step,
.js-ready .testimonial-card,
.js-ready .vertical-card,
.js-ready .industry-chip {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Cascade grid children in with a slight stagger instead of popping in unison */
.card-grid > *, .why-grid > *, .vertical-grid > *, .industry-grid > *, .testimonial-grid > *, .approach-grid > * {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.card-grid > *:nth-child(1), .why-grid > *:nth-child(1), .vertical-grid > *:nth-child(1), .industry-grid > *:nth-child(1), .testimonial-grid > *:nth-child(1), .approach-grid > *:nth-child(1) { --stagger: 0; }
.card-grid > *:nth-child(2), .why-grid > *:nth-child(2), .vertical-grid > *:nth-child(2), .industry-grid > *:nth-child(2), .testimonial-grid > *:nth-child(2), .approach-grid > *:nth-child(2) { --stagger: 1; }
.card-grid > *:nth-child(3), .why-grid > *:nth-child(3), .vertical-grid > *:nth-child(3), .industry-grid > *:nth-child(3), .testimonial-grid > *:nth-child(3), .approach-grid > *:nth-child(3) { --stagger: 2; }
.card-grid > *:nth-child(4), .why-grid > *:nth-child(4), .vertical-grid > *:nth-child(4), .industry-grid > *:nth-child(4), .testimonial-grid > *:nth-child(4), .approach-grid > *:nth-child(4) { --stagger: 3; }
.card-grid > *:nth-child(5), .why-grid > *:nth-child(5), .vertical-grid > *:nth-child(5), .industry-grid > *:nth-child(5), .testimonial-grid > *:nth-child(5), .approach-grid > *:nth-child(5) { --stagger: 4; }
.card-grid > *:nth-child(n+6), .why-grid > *:nth-child(n+6), .vertical-grid > *:nth-child(n+6), .industry-grid > *:nth-child(n+6), .testimonial-grid > *:nth-child(n+6), .approach-grid > *:nth-child(n+6) { --stagger: 5; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .section-heading,
  .js-ready .card,
  .js-ready .why-card,
  .js-ready .approach-step,
  .js-ready .testimonial-card,
  .js-ready .vertical-card,
  .js-ready .industry-chip {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .site-header nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .nav-toggle-label { display: flex; }
  .header-actions .btn-primary { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .site-header .logo img { height: 52px; }
  .contact-layout { grid-template-columns: 1fr; }

  /* No hover on touch — show the services list inline instead of as a
     floating dropdown once the mobile nav is already expanded. */
  .site-header nav { width: 100%; }
  .nav-item-dropdown { width: 100%; }
  .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .dropdown-menu a { padding: 0.4rem 0.5rem; font-size: 0.85rem; }

  .stats .container > div { border-left: none; padding: 0 1rem; margin-bottom: 1rem; }
}

/* ==========================================================================
   Auto-scrolling strips (business segments, client logos)
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; margin-right: 1.25rem; display: flex; align-items: center; justify-content: center; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1rem; padding: 0 1rem; }
  .marquee-dup { display: none; }
}
.segment-tile img { height: 90px; width: auto; border-radius: var(--radius-sm); box-shadow: 0 1px 3px rgba(11,30,51,0.1); }
.logo-strip .marquee-track { animation-duration: 90s; }
.client-logo-tile { height: 96px; width: 150px; background: #fff; border-radius: var(--radius-sm); padding: 0.6rem; }
.client-logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ==========================================================================
   Our Presence
   ========================================================================== */
.presence-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.presence-grid p { color: var(--muted); line-height: 1.7; }
.presence-footprint { color: var(--teal-900) !important; font-size: 1.05rem; }
.presence-map { width: 100%; max-width: 520px; justify-self: center; margin: 0; }
.india-map { width: 100%; height: auto; display: block; }
.india-map .state { fill: #e4e9ec; stroke: #fff; stroke-width: 0.9; stroke-linejoin: round; transition: fill 0.2s ease; }
.india-map .state.served { fill: var(--teal-700); }
.india-map .state.served:hover { fill: var(--teal-900); }
.india-map .state:not(.served):hover { fill: #d3dadf; }
.india-map .hq-dot { fill: #e5484d; stroke: #fff; stroke-width: 1.5; }
.india-map .hq-pulse { fill: #e5484d; opacity: 0.25; }
.india-map text { font-size: 15px; font-weight: 700; fill: var(--teal-900); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.presence-map figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; align-items: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.map-legend { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.swatch-served { background: var(--teal-700); }
.swatch-hq { background: #e5484d; border-radius: 50%; }
.map-credit { font-size: 0.72rem; opacity: 0.7; }
.state-chips { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.state-chips li { background: var(--teal-50); color: var(--teal-900); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 800px) { .presence-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ==========================================================================
   Services list page
   ========================================================================== */
.page-hero p { max-width: 640px; margin: 0.9rem auto 0; opacity: 0.85; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: inherit; }
.service-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-50); }
.service-card-tag { position: absolute; left: 0.75rem; top: 0.75rem; background: rgba(11,30,51,0.82); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-media--icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: var(--teal-300); }
.service-card-media--icon .service-icon-svg { width: 72px; height: 72px; stroke-width: 1.4; }
.service-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.service-card-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-link { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--teal-600); }
.service-card-link::after { content: " →"; transition: margin-left 0.2s ease; }
.service-card:hover .service-card-link::after { margin-left: 0.25rem; }
.services-cta-band { background: var(--teal-900); color: var(--paper); }
.services-cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.services-cta-band h2 { color: var(--paper); margin: 0 0 0.4rem; }
.services-cta-band p { opacity: 0.8; margin: 0; max-width: 560px; }
