/* MAS-STEEL — shared styles */
:root {
  --navy: #001F3F;
  --navy-2: #0a3a6b;
  --navy-3: #c9d8e8;
  --red: #E63946;
  --red-dark: #C73140;
  --red-darker: #A82A31;
  --amber: #F59E0B;
  --amber-soft: #FEF3C7;
  --teal: #0D9488;
  --gray: #F5F5F5;
  --gray-2: #EEF2F6;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
  --max: 1400px;
  --max-narrow: 1200px;
  --shadow-sm: 0 2px 8px rgba(0, 31, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 31, 63, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 31, 63, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0 0 16px; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}
.section-title { font-size: 40px; margin-bottom: 18px; }
.section-desc { font-size: 17px; color: var(--charcoal); max-width: 680px; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 8px; font-weight: 700;
  font-family: 'Work Sans', sans-serif; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,57,70,0.35); }
.btn-primary:active { background: var(--red-darker); transform: translateY(0); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .ico { width: 18px; height: 18px; }

/* ======= HEADER ======= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #eee;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,31,63,0.08); }
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 52px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: 0.02em; }
.brand-text .tag { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--navy);
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.2s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--navy); font-weight: 500;
}
.header-phone .num { color: var(--red); font-weight: 700; font-size: 15px; }
.header-phone .ico { width: 22px; height: 22px; padding: 5px; background: var(--red); border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-phone .ico svg { width: 12px; height: 12px; display: block; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--navy); border-radius: 6px; overflow: hidden;
  font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  background: transparent; color: var(--navy); border: 0;
  padding: 6px 10px; cursor: pointer; font-family: inherit;
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

/* ======= HERO CAROUSEL ======= */
.hero {
  position: relative; min-height: 680px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--navy);
  opacity: 0; transition: opacity 1s ease, transform 8s ease;
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,31,63,0.85) 0%, rgba(0,31,63,0.6) 60%, rgba(0,31,63,0.45) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 100px 40px; width: 100%; }
.hero-content > * {
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.hero-key { display: none; }
.hero-key.show { display: block; }
.hero-key.show > * { animation: none; opacity: 1; transform: none; }

.hero-controls {
  position: absolute; bottom: 110px; right: 40px; z-index: 3;
  display: flex; gap: 10px; align-items: center;
}
.hero-dots { display: flex; gap: 8px; margin-right: 14px; }
.hero-dot {
  width: 36px; height: 3px; background: rgba(255,255,255,0.35);
  border: 0; cursor: pointer; padding: 0; transition: 0.3s; border-radius: 2px;
}
.hero-dot.active { background: var(--red); width: 52px; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); transform: scale(1.05); }
.hero h1 {
  font-size: 56px; line-height: 1.05; color: #fff; margin-bottom: 22px;
  max-width: 880px; font-weight: 700;
}
.hero .lead {
  font-size: 19px; color: rgba(255,255,255,0.95); max-width: 680px; margin-bottom: 36px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(0,31,63,0.92); border-top: 3px solid var(--red);
  backdrop-filter: blur(6px);
}
.hero-meta-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  color: #fff;
}
.hero-meta .item { display: flex; align-items: baseline; gap: 12px; }
.hero-meta .num { font-family: 'Poppins'; font-weight: 700; font-size: 28px; color: var(--red); }
.hero-meta .item { transition: transform 0.25s; }
.hero-meta .item:hover { transform: translateY(-2px); }
.hero-meta .item:hover .num { text-shadow: 0 0 16px rgba(230,57,70,0.6); }
.hero-meta .lbl { font-size: 13px; opacity: 0.85; }

/* ======= SECTIONS ======= */
section { padding: 90px 0; }
.bg-gray { background: var(--gray); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy .eyebrow { color: #fff; }
.bg-navy .eyebrow { color: var(--red); }
.bg-navy .section-desc { color: rgba(255,255,255,0.85); }

/* ======= ABOUT ======= */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.about-grid h2 { font-size: 42px; }
.credentials { list-style: none; padding: 0; margin: 24px 0 0; }
.credentials li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; font-size: 15px; border-bottom: 1px solid #e5e5e5;
}
.credentials li:last-child { border-bottom: 0; }
.credentials .check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; margin-top: 2px;
}
.stat-stack { display: grid; gap: 16px; }
.stat-card {
  padding: 28px; border-radius: 8px; text-align: center;
  border: 2px solid transparent;
}
.stat-card.navy { background: var(--navy); color: #fff; }
.stat-card.outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.stat-card.red { background: var(--red); color: #fff; }
.stat-card { transition: 0.3s; }
.stat-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.stat-card .num {
  font-family: 'Poppins'; font-weight: 700; font-size: 56px; line-height: 1;
  margin-bottom: 8px; display: block;
}
.stat-card .lbl { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.92; }

/* ======= SERVICES ======= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service-card {
  background: #fff; border: 1px solid #ececec; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-img {
  aspect-ratio: 16/10; background: var(--gray); position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img { transform: scale(1.08); }
.service-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(0,31,63,0.4) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover .service-img::before { opacity: 1; }
.service-img::after {
  content: ""; position: absolute; left: 16px; top: 16px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase;
}
.service-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 22px; margin-bottom: 10px; }
.service-body p { font-size: 14.5px; color: #555; flex: 1; margin-bottom: 18px; }
.service-foot {
  border-top: 1px solid #ececec; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.service-foot a.learn {
  font-size: 13px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--navy); padding: 9px 14px; border-radius: 4px;
  transition: 0.2s;
}
.service-foot a.learn:hover { background: var(--navy); color: #fff; }
.service-foot .ph { font-size: 12px; color: var(--red); font-weight: 600; }

/* Layout variant: list */
.services-grid.layout-list { grid-template-columns: 1fr; gap: 18px; }
.services-grid.layout-list .service-card { flex-direction: row; }
.services-grid.layout-list .service-img { flex: 0 0 320px; aspect-ratio: auto; min-height: 200px; }
.services-grid.layout-list .service-body { flex: 1; }

/* Layout variant: minimal (no images) */
.services-grid.layout-minimal .service-img { display: none; }
.services-grid.layout-minimal .service-card { border-top: 4px solid var(--navy); }
.services-grid.layout-minimal .service-body { padding: 32px; }

/* ======= WHY CHOOSE ======= */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 56px; }
.feature {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-left: 3px solid var(--red); padding-left: 24px;
  transition: 0.3s;
}
.feature:hover { transform: translateX(6px); border-left-width: 5px; }
.feature:hover .feature-ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.05); }
.feature-ico { transition: 0.3s; }
.feature-ico {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(230, 57, 70, 0.15); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.feature p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.65; margin: 0; }

/* ======= PROCESS ======= */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; position: relative; }
.step { position: relative; }
.step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins'; font-weight: 700; font-size: 32px;
  margin-bottom: -40px; margin-left: 24px;
  position: relative; z-index: 2;
  border: 4px solid var(--gray);
  transition: 0.3s;
}
.step:hover .step-num { background: var(--red); transform: scale(1.08) rotate(-5deg); }
.step-box { transition: 0.3s; }
.step:hover .step-box { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-box {
  background: #fff; border: 2px solid var(--navy); border-radius: 10px;
  padding: 56px 28px 28px;
}
.step-box h3 { font-size: 20px; margin-bottom: 10px; }
.step-box p { font-size: 14.5px; color: #555; margin: 0; }
.step::after {
  content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  font-size: 28px; color: var(--navy); font-weight: 700;
}
.step:last-child::after { display: none; }

/* ======= PORTFOLIO ======= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.proj-card {
  background: #fff; border: 1px solid #ececec; border-radius: 8px; overflow: hidden;
  transition: 0.2s;
}
.proj-card { cursor: pointer; }
.proj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.proj-img {
  aspect-ratio: 4/3; background: var(--gray);
  background-image: repeating-linear-gradient(45deg, #e8e8e8 0 12px, #f0f0f0 12px 24px);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-img { transform: scale(1.06); }
.proj-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,31,63,0.55));
  opacity: 0; transition: opacity 0.3s;
}
.proj-card:hover .proj-img::after { opacity: 1; }
.proj-img .ph-label {
  background: rgba(0,31,63,0.85); color: #fff; padding: 8px 14px; border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
}
.proj-body { padding: 24px; }
.proj-tag {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.proj-body h3 { font-size: 19px; margin-bottom: 8px; }
.proj-body p { font-size: 14px; color: #555; margin-bottom: 14px; }
.proj-body .view { color: var(--red); font-weight: 600; font-size: 13px; }

/* ======= REVEAL ON SCROLL ======= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ======= LOGOS STRIP ======= */
.logos { padding: 50px 0; background: #fff; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; overflow: hidden; }
.logos-marquee { display: flex; gap: 32px; animation: marquee 32s linear infinite; width: max-content; }
.logos-marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logos h4 {
  font-family: 'Work Sans'; font-weight: 500; font-size: 13px;
  color: #888; letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
  margin-bottom: 28px;
}
.logos-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center;
}
.client-logo {
  height: 56px; min-width: 180px; display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins'; font-weight: 700; color: #888; font-size: 15px;
  letter-spacing: 0.06em; border: 1px solid #e8e8e8; border-radius: 6px;
  padding: 0 22px; text-align: center; transition: 0.25s; flex: 0 0 auto;
}
.client-logo:hover { color: var(--navy); border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ======= FAQ ======= */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 48px; max-width: 880px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px 24px;
  cursor: pointer; transition: 0.2s;
}
.faq-item[open] { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: 'Poppins'; font-weight: 700; color: var(--navy); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--red);
  transition: 0.2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding-top: 12px; color: #444; font-size: 15px; line-height: 1.7; }

/* ======= CONTACT CTA ======= */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 44px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin: 28px 0 48px; flex-wrap: wrap; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 960px; margin: 0 auto; }
.contact-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  padding: 24px; border-radius: 8px; text-align: left;
}
.contact-card .ico-wrap {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.contact-card h4 { font-family: 'Poppins'; font-size: 14px; color: #fff; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card p { color: rgba(255,255,255,0.85); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ======= FORM (contact page) ======= */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  border: 1px solid #d5d5d5; border-radius: 6px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--charcoal); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ======= FOOTER ======= */
.footer {
  background: var(--charcoal); color: rgba(255,255,255,0.85);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
}
.footer h5 {
  font-family: 'Work Sans'; font-weight: 700; color: #fff;
  text-transform: uppercase; font-size: 13px; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer p, .footer li { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.9; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a:hover { color: var(--red); }
.footer-brand-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand-row .brand-logo { height: 44px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 24px 40px 0; max-width: var(--max); margin: 50px auto 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.footer-bottom .badges { display: flex; gap: 14px; }
.footer-bottom .badge {
  border: 1px solid rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px;
  font-size: 11px; letter-spacing: 0.06em;
}

/* ======= FLOATING WHATSAPP ======= */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

/* ======= PAGE HEADER (sub-pages) ======= */
.page-head {
  background: var(--navy); color: #fff;
  padding: 70px 0 60px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(230,57,70,0.18) 100%);
  pointer-events: none;
}
.page-head h1 { font-size: 48px; color: #fff; margin-bottom: 12px; }
.page-head .crumbs { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; }
.page-head .crumbs a:hover { color: var(--red); }

/* ======= TWEAKS PANEL ======= */
.tweaks-panel {
  position: fixed; bottom: 24px; left: 24px; z-index: 60;
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  box-shadow: var(--shadow-lg); width: 280px; padding: 16px;
  font-family: 'Work Sans', sans-serif;
}
.tweaks-panel h6 {
  margin: 0 0 12px; font-family: 'Poppins'; font-size: 13px; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.1em; display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel h6 button { background: none; border: 0; cursor: pointer; font-size: 16px; color: #999; }
.tweaks-row { margin-bottom: 14px; }
.tweaks-row .lbl { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 500; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd;
  cursor: pointer; transition: 0.15s;
}
.swatch.active { box-shadow: 0 0 0 2px var(--navy); transform: scale(1.1); }
.layout-radio { display: flex; gap: 6px; }
.layout-radio button {
  flex: 1; padding: 8px; border: 1px solid #ddd; background: #fff; border-radius: 6px;
  font-size: 11px; cursor: pointer; font-family: inherit; color: #555;
}
.layout-radio button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ======= URDU MODE ======= */
body.lang-ur { font-family: 'Noto Nastaliq Urdu', 'Work Sans', sans-serif; }
body.lang-ur h1, body.lang-ur h2, body.lang-ur h3 {
  font-family: 'Noto Nastaliq Urdu', 'Poppins', sans-serif;
}
body.lang-ur .nav, body.lang-ur .header-cta { direction: rtl; }
body.lang-ur [data-en] { display: none; }
body.lang-ur [data-ur] { display: inline; }
body:not(.lang-ur) [data-ur] { display: none; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .services-grid, .portfolio-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 22px; }
  section { padding: 60px 0; }
  .hero { min-height: 540px; }
  .hero-content { padding: 70px 22px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .section-title { font-size: 28px; }
  .services-grid, .portfolio-grid, .process, .logos-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-phone .num { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stat-card .num { font-size: 44px; }
}


/* ======= HERO GRID OVERLAY (subtle blueprint) ======= */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 60px, 60px 60px; }
}

/* ======= HERO STORY CARD (overlay) ======= */
.hero-story {
  position: absolute; right: 40px; top: 130px; z-index: 4;
  width: 380px; max-width: calc(100% - 80px);
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  padding: 22px;
  animation: storyFloat 6s ease-in-out infinite;
  transform-origin: top right;
}
@keyframes storyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-story::before {
  content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 4px;
  background: linear-gradient(180deg, var(--red), var(--amber));
  border-radius: 14px 0 0 14px;
}
.story-row { display: flex; gap: 16px; align-items: flex-start; }
.story-photo {
  flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden; position: relative;
  border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--red);
  animation: storyPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes storyPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.story-text { flex: 1; min-width: 0; }
.story-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.hero-story h3 {
  font-family: 'Poppins', sans-serif; font-size: 17px; line-height: 1.3;
  color: var(--navy); margin: 0 0 8px;
}
.hero-story p {
  font-size: 13.5px; color: #444; line-height: 1.55; margin: 0 0 12px;
}
.story-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.story-link .arr { transition: transform 0.25s; }
.story-link:hover .arr { transform: translateX(4px); }

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

/* ======= CEO CARD (about page) ======= */
.ceo-card-wrap {
  position: relative;
}
.ceo-photo {
  position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray);
}
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s ease;
}
.ceo-photo:hover img { transform: scale(1.04); }
.ceo-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,31,63,0.45));
}
.ceo-badge {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.95); color: var(--navy);
  padding: 7px 12px; border-radius: 100px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; box-shadow: var(--shadow-sm);
}
.ceo-badge svg { width: 14px; height: 14px; color: var(--red); }
.ceo-meta {
  margin-top: 18px; padding: 18px 22px;
  background: linear-gradient(135deg, var(--gray) 0%, var(--gray-2) 100%);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
}
.ceo-meta strong {
  display: block; color: var(--navy); font-family: Poppins; font-size: 18px;
  margin-bottom: 4px;
}
.ceo-meta span { font-size: 13px; color: #666; }

/* ======= PROCESS — LIVE CYCLE ======= */
.cycle { position: relative; margin-top: 60px; }
.cycle-flow {
  position: absolute; left: 0; right: 0; top: 90px; width: 100%; height: 120px;
  pointer-events: none; z-index: 1;
}
.cycle-track { stroke: rgba(0,31,63,0.16); }
.cycle-progress {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawFlow 4s ease-out forwards;
  animation-play-state: paused;
}
.reveal.in .cycle-progress { animation-play-state: running; }
.cycle.in .cycle-progress { animation-play-state: running; }
@keyframes drawFlow {
  to { stroke-dashoffset: 0; }
}

.cycle-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.cstep {
  background: #fff; border-radius: 14px; padding: 26px 24px 24px;
  border: 1px solid #ececec;
  position: relative;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, border-color 0.3s;
}
.cstep::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  border-radius: 14px 14px 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.cstep:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.cstep:hover::before { transform: scaleX(1); }
.cstep[data-step="2"]::before { background: linear-gradient(90deg, var(--red), var(--amber)); }
.cstep[data-step="3"]::before { background: linear-gradient(90deg, var(--amber), var(--teal)); }
.cstep[data-step="4"]::before { background: linear-gradient(90deg, var(--teal), var(--navy)); }

.cstep-icon {
  position: relative;
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: 0.4s;
}
.cstep[data-step="2"] .cstep-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.cstep[data-step="3"] .cstep-icon { background: linear-gradient(135deg, var(--amber), #d97706); }
.cstep[data-step="4"] .cstep-icon { background: linear-gradient(135deg, var(--teal), #0f766e); }
.cstep-icon svg { width: 26px; height: 26px; position: relative; z-index: 2; }
.cstep:hover .cstep-icon { transform: rotate(-6deg) scale(1.06); }
.cstep-pulse {
  position: absolute; inset: 0; border-radius: 14px;
  border: 2px solid currentColor; opacity: 0;
}
.cstep:hover .cstep-pulse {
  animation: cstepPulse 1.4s ease-out infinite;
}
@keyframes cstepPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.cstep-num {
  position: absolute; right: 18px; top: 18px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 36px;
  color: rgba(0,31,63,0.08); line-height: 1; letter-spacing: -0.02em;
}
.cstep h3 { font-size: 19px; margin-bottom: 8px; color: var(--navy); }
.cstep p { font-size: 13.5px; color: #555; line-height: 1.55; margin-bottom: 14px; }
.cstep-bullets { list-style: none; padding: 0; margin: 0; border-top: 1px dashed #e0e0e0; padding-top: 12px; }
.cstep-bullets li {
  font-size: 12.5px; color: var(--navy); padding-left: 18px; position: relative;
  margin-bottom: 4px; font-weight: 500;
}
.cstep-bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.18);
}
.cstep[data-step="3"] .cstep-bullets li::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.cstep[data-step="4"] .cstep-bullets li::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.2); }

.cycle-recap {
  margin-top: 36px; text-align: center;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px 22px; border-radius: 100px;
  border: 1px solid #e5e5e5; box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--navy); font-weight: 500;
  position: relative; left: 50%; transform: translateX(-50%);
}
.cycle-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.2);
  animation: dotBlink 1.6s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ======= EXTRA ANIMATIONS (gasp / float / shimmer) ======= */
.float-up { animation: floatUp 5s ease-in-out infinite; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section title accent — animated underline */
.section-title { position: relative; display: inline-block; }
.center .section-title::after,
.section-title::after {
  content: ""; display: block;
  width: 56px; height: 4px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--red), var(--amber));
  border-radius: 4px;
  animation: barSweep 3s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes barSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* GASP — emphasis pop on stat numbers when revealed */
.stat-card.in-view .num { animation: gasp 0.7s cubic-bezier(.2,1.4,.6,1) both; }
@keyframes gasp {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* Hero buttons subtle glow */
.btn-primary { box-shadow: 0 4px 14px rgba(230,57,70,0.25); }

/* About stat-card enrich */
.stat-card.outline { background: linear-gradient(135deg, #fff, var(--gray-2)); }
.stat-card.red { background: linear-gradient(135deg, var(--red), var(--amber)); }
.stat-card.navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.stat-card .num { transition: text-shadow 0.4s; }
.stat-card:hover .num { text-shadow: 0 0 24px rgba(255,255,255,0.4); }

/* Service card image — slow pan */
.service-img { transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }

/* Process responsive */
@media (max-width: 1024px) {
  .cycle-steps { grid-template-columns: repeat(2, 1fr); }
  .cycle-flow { display: none; }
}
@media (max-width: 640px) {
  .cycle-steps { grid-template-columns: 1fr; }
}

/* Hero responsive — story card */
@media (max-width: 1280px) {
  .hero-story { width: 320px; top: 110px; right: 24px; padding: 18px; }
  .hero-story h3 { font-size: 15px; }
  .hero-story p { font-size: 12.5px; }
}


/* ======= MOBILE DRAWER ======= */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(85vw, 360px); background: #fff;
  z-index: 1100; transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
  padding: 80px 24px 32px;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-backdrop {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(0,31,63,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }
/* Hamburger needs to sit above the drawer so the close-X is tappable */
.hamburger { position: relative; z-index: 1200; }
/* When drawer open, ensure header's burger-area pops above */
body:has(.mobile-drawer.open) .site-header { z-index: 1150; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 18px;
  color: var(--navy); padding: 14px 16px; border-radius: 8px;
  border-bottom: 1px solid #f0f0f0; transition: 0.2s;
  position: relative;
}
.mobile-nav a.active { background: var(--gray); color: var(--red); }
.mobile-nav a:hover { background: var(--gray); padding-left: 22px; }
.mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav { display: none !important; }
  .hamburger { display: block; }
  .header-phone span:not(.ico):not(.num) { display: none; }
}
@media (max-width: 720px) {
  .header-phone { display: none; }
  .header-cta { gap: 10px; }
  .lang-toggle { font-size: 11px; }
  .lang-toggle button { padding: 5px 8px; }
  .brand-logo { height: 42px; }
  .header-inner { padding: 12px 22px; gap: 12px; }
}

/* ======= PEC LOGO BLOCK ======= */
.pec-block {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
  padding: 10px 18px 10px 12px; box-shadow: var(--shadow-sm);
  margin-top: 18px;
}
.pec-block img {
  width: 56px; height: 56px; object-fit: contain;
  background: #fff; padding: 4px; border-radius: 8px;
  border: 1px solid #eee;
}
.pec-block .pec-text { font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--navy); line-height: 1.3; }
.pec-block .pec-text strong { display: block; font-size: 15px; color: var(--red); letter-spacing: 0.04em; }

/* ======= GLOBAL HOVER / REVEAL extras for sub-pages ======= */
img { transition: transform 0.5s ease; }
.proj-card img:hover, .service-card img:hover { transform: scale(1.04); }

/* card-like default for sub-page articles */
.lift { transition: transform 0.3s, box-shadow 0.3s; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* keep service card icons crisp - object-contain images */
.service-img.contain {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-color: #f0f4f8;
  background-position: center;
}

.values-row > div, .offices-row > div { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.values-row > div:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.offices-row .contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.proj-img.contain-img { background-size: contain !important; background-repeat: no-repeat; background-color: #f0f4f8; }
