/* FVMI shared stylesheet — used by every page */
:root {
  --blue: #1E3A8A;
  --blue-deep: #0F1E4A;
  --blue-soft: #2E4FAB;
  --cyan: #06B6D4;
  --amber: #F59E0B;
  --ink: #0F172A;
  --slate: #475569;
  --mute: #94A3B8;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px; margin: 0 auto;
}
.logo-img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,58,138,0.3); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FBBF24; transform: translateY(-1px); }

/* HERO (full) */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, var(--blue-soft) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(6,182,212,0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(245,158,11,0.10), transparent 35%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  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;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero.compact { padding: 64px 0 72px; }
.hero.compact h1 { font-size: clamp(32px, 4.5vw, 48px); }

/* Small hero for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: var(--white); padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(6,182,212,0.18), transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; margin: 18px 0 16px; max-width: 820px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 700px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.15); color: var(--cyan);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(6,182,212,0.35);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.eyebrow-light {
  color: var(--blue); background: rgba(30,58,138,0.08);
  border: 1px solid rgba(30,58,138,0.18);
}
.eyebrow-light .dot { background: var(--blue); box-shadow: none; }

.hero h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; margin: 24px 0; }
.hero h1 .accent { color: var(--cyan); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.85); max-width: 660px; margin-bottom: 36px; }
.hero-tagline { font-style: italic; color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 36px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative; z-index: 2;
}
.stat .num { font-family: 'Manrope', sans-serif; font-size: 36px; font-weight: 800; color: var(--white); line-height: 1; }
.stat .num .unit { color: var(--cyan); font-size: 24px; }
.stat .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; letter-spacing: 0.02em; }

/* TRUSTED BY */
.trusted { background: var(--white); padding: 56px 0; border-bottom: 1px solid var(--line); }
.trusted-label {
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--slate); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
}
.trusted-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 32px; align-items: center; }
.trusted-name {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  color: var(--slate); font-size: 14px; text-align: center;
  padding: 18px 12px; border-radius: 8px;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.trusted-name:hover { color: var(--blue); background: var(--bg); }

/* SECTION */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 18px 0 16px; }
.section-head p { color: var(--slate); font-size: 17px; }

/* SERVICES GRID */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--white); padding: 28px;
  border-radius: 14px; border: 1px solid var(--line);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,30,74,0.12); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(30,58,138,0.25);
}
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 14px; line-height: 1.55; }

/* Service detail card (large) */
.service-detail {
  background: var(--white); padding: 40px;
  border-radius: 16px; border: 1px solid var(--line);
  margin-bottom: 20px;
}
.service-detail h3 { font-size: 24px; margin-bottom: 12px; color: var(--blue); }
.service-detail p.lead { color: var(--ink); font-size: 16px; margin-bottom: 20px; font-weight: 500; }
.service-detail p { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.service-detail .caps-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-detail .caps-list div { font-size: 14px; color: var(--slate); padding-left: 20px; position: relative; }
.service-detail .caps-list div::before { content: '→'; color: var(--cyan); position: absolute; left: 0; font-weight: 700; }

/* WHY */
.why { background: var(--white); }
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-visual {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 20px; padding: 44px; color: var(--white);
  position: relative; overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.why-visual::before {
  content: ''; position: absolute; right: -60px; bottom: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.3), transparent 70%);
}
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 2; }
.badge {
  background: rgba(255,255,255,0.08); padding: 18px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
}
.badge .badge-num { color: var(--cyan); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.badge .badge-text { font-size: 13px; margin-top: 4px; color: rgba(255,255,255,0.9); line-height: 1.4; }
.why h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 20px; }
.why-list { list-style: none; margin-top: 28px; }
.why-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: none; }
.why-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(6,182,212,0.15); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.why-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.why-list span { color: var(--slate); font-size: 15px; }

/* TIMELINE */
.timeline { background: var(--bg); }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tl-card {
  background: var(--white); padding: 28px;
  border-radius: 14px; border: 1px solid var(--line);
  transition: all 0.3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,30,74,0.10); }
.tl-year { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 32px; color: var(--blue); line-height: 1; margin-bottom: 14px; }
.tl-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tl-card p { color: var(--slate); font-size: 14px; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); transition: all 0.3s;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,30,74,0.12); }
.project-image {
  height: 160px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  position: relative; overflow: hidden;
}
.project-image::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-image .icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.project-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  color: var(--white); font-size: 10px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.project-body { padding: 22px; }
.project-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.project-body p { color: var(--slate); font-size: 13.5px; line-height: 1.55; }

/* Clients table */
.clients-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
}
.clients-table th, .clients-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.clients-table th { background: var(--blue); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.clients-table td { font-size: 14px; color: var(--slate); }
.clients-table td strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 4px; }
.clients-table tr:last-child td { border-bottom: none; }
.clients-table tr:hover td { background: var(--bg); }

/* VALUES */
.values { background: var(--blue-deep); color: var(--white); position: relative; overflow: hidden; }
.values::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(6,182,212,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,0.10), transparent 45%);
}
.values .container { position: relative; z-index: 2; }
.values .section-head h2 { color: var(--white); }
.values .section-head p { color: rgba(255,255,255,0.75); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 26px; border-radius: 12px;
  transition: all 0.3s;
}
.value-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(6,182,212,0.4); }
.value-card .v-num { color: var(--cyan); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 10px; }
.value-card h4 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.value-card p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.55; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.contact-info { background: var(--bg); padding: 40px; border-radius: 16px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; }
.contact-info .info-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: start; }
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-item strong { display: block; font-size: 12px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }
.contact-info .info-item a { color: var(--blue); font-weight: 600; }
.contact-info .info-item a:hover { color: var(--cyan); }
.contact-form { }
.contact-form h3 { font-size: 24px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  transition: all 0.2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }

/* CTA */
.cta { background: var(--blue); color: var(--white); position: relative; overflow: hidden; padding: 80px 0; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(6,182,212,0.18), transparent 50%); }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-logo-img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
footer h5 { color: var(--white); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; font-size: 14px; }
footer li a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.foot-tag { font-size: 14px; margin: 0 0 14px; max-width: 340px; line-height: 1.55; }
.foot-affil { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.6); }
.foot-affil span { padding: 4px 10px; border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trusted-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .service-detail .caps-list { grid-template-columns: 1fr; }
  .clients-table th:nth-child(2), .clients-table td:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .trusted-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ TEAM PAGE STYLES ============ */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.team-card {
  background: var(--white); padding: 28px 24px;
  border-radius: 14px; border: 1px solid var(--line);
  text-align: center;
  transition: all 0.3s;
  display: block;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,30,74,0.12);
  border-color: transparent;
}
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white); font-weight: 800; font-size: 32px;
  font-family: 'Manrope', sans-serif;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(30,58,138,0.25);
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.team-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.team-card .role { color: var(--slate); font-size: 13px; margin-bottom: 12px; }
.team-card .view-link {
  color: var(--blue); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

/* Team member detail page */
.member-detail {
  max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: 20px;
  padding: 40px; border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15,30,74,0.06);
}
.member-card-slot {
  background: var(--bg);
  border: 2px dashed var(--line);
  border-radius: 12px;
  aspect-ratio: 1.75 / 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 14px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.member-card-slot img {
  width: 100%; height: 100%; object-fit: contain; background: var(--white);
}
.member-header { text-align: center; margin-bottom: 28px; }
.member-header h2 { font-size: 32px; margin-bottom: 6px; color: var(--ink); }
.member-header .role { color: var(--blue); font-weight: 600; font-size: 16px; }
.member-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px;
}
.member-info-item {
  background: var(--bg); padding: 16px 20px; border-radius: 10px;
}
.member-info-item strong {
  display: block; font-size: 11px; color: var(--slate);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700;
}
.member-info-item a, .member-info-item span { color: var(--blue); font-weight: 600; font-size: 15px; }
.member-info-item a:hover { color: var(--cyan); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--slate); font-size: 14px; font-weight: 500;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--blue); }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .member-info-grid { grid-template-columns: 1fr; }
  .member-detail { padding: 24px; }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* RECENT WORK GALLERY (projects.html) */
.gallery-group { margin-bottom: 52px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.gallery-group-title h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.gallery-group-title span { font-size: 13.5px; color: var(--slate); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: all 0.25s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,30,74,0.12); }
.gallery-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.gallery-item figcaption { font-size: 12.5px; color: var(--slate); padding: 9px 11px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }


/* =====================================================================
   V2 ADDITIONS — accessibility, mobile menu, homepage sections,
   services grouping, gallery filter + lightbox, form states.
   (Everything above this line is the original design, unchanged.)
   ===================================================================== */

[hidden] { display: none !important; }
img { max-width: 100%; }

/* Skip link + visible keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 300;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
.hero a:focus-visible, .page-hero a:focus-visible, .cta a:focus-visible,
.values a:focus-visible, footer a:focus-visible, .lightbox button:focus-visible {
  outline-color: var(--white);
}
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 0;
}

/* Team member page heading is now the page's h1 */
.member-header h1 { font-size: 32px; margin-bottom: 6px; color: var(--ink); }

/* Footer logo: real white artwork (the old filter turned the logo into a white box) */
.foot-logo-img { filter: none; height: 52px; }

/* Hero: text block now lines up with the logo and the rest of the page */
.hero .hero-content { max-width: 1200px; }
.hero-content > :not(.hero-stats) { max-width: 820px; }
.hero .hero-tagline { max-width: 600px; }

/* Header: menu button + mobile panel */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--white); color: var(--blue);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav.open .nav-toggle .i-open { display: none; }
.nav.open .nav-toggle .i-close { display: block; }
.nav-links a.nav-cta-m { display: none; }
.nav-links a.nav-buildplus { border-bottom: 2px solid #E8752B; padding-bottom: 2px; }
.nav-links a.active { font-weight: 700; }

@media (max-width: 1000px) {
  .nav-inner { position: relative; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 4px 24px 22px; box-shadow: 0 14px 24px rgba(15,30,74,0.08);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-buildplus { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .nav-links a.nav-buildplus::after { content: ' — a division of FVMI'; font-weight: 400; color: var(--mute); font-size: 13px; }
  .nav-links a.nav-cta-m {
    display: flex; justify-content: center; margin-top: 18px;
    background: var(--blue); color: var(--white); border: 0; border-radius: 8px;
    padding: 14px 22px; font-weight: 600;
  }
}

/* Homepage: recent work strip */
.work-strip { background: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-tile img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover;
  display: block; border-radius: 6px; background: var(--bg);
}
.work-tile figcaption { padding: 10px 2px 0; font-size: 14px; color: var(--slate); line-height: 1.45; }
.work-tile figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.work-more { text-align: center; margin-top: 40px; }

/* Homepage: FVMI Build+ introduction — uses the Build+ palette so it reads as its own brand */
.bp-teaser { background: #F7F6F2; border-top: 1px solid rgba(23,53,126,0.12); border-bottom: 1px solid rgba(23,53,126,0.12); }
.bp-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.bp-teaser h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: #0E2154; margin-bottom: 16px; }
.bp-teaser p { color: #4A4A49; font-size: 17px; max-width: 560px; }
.bp-note { margin-top: 14px; font-weight: 600; color: #17357E; font-size: 15px; }
.bp-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 8px; }
.bp-list li { padding-left: 18px; position: relative; color: #1B1B1A; font-size: 15.5px; }
.bp-list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: #E8752B; }
.btn-bp { background: #E8752B; color: #1B1B1A; }
.btn-bp:hover { background: #F08A46; }
.bp-logo {
  background: var(--white); border: 1px solid rgba(23,53,126,0.14); border-radius: 6px;
  padding: 44px 36px; text-align: center;
}
.bp-logo img { width: 100%; max-width: 420px; height: auto; margin: 0 auto; display: block; }
.bp-logo p { margin: 18px auto 0; font-size: 14px; color: #4A4A49; }

/* Services: category headings, jump links, photos, per-service link */
.svc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.svc-jump a {
  padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: 14px; font-weight: 600; color: var(--blue);
  min-height: 44px; display: inline-flex; align-items: center;
}
.svc-jump a:hover { border-color: var(--blue); }
.svc-cat { margin-bottom: 64px; scroll-margin-top: 96px; }
.svc-cat:last-child { margin-bottom: 0; }
.svc-cat-head { margin-bottom: 24px; }
.svc-cat-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.svc-cat-head p { color: var(--slate); font-size: 16px; max-width: 640px; }
.service-detail { scroll-margin-top: 96px; }
.service-detail.has-photo { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.service-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); }
.service-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--blue); }
.service-link:hover { color: var(--blue-deep); text-decoration: underline; }
@media (max-width: 760px) {
  .service-detail { padding: 28px 22px; }
  .service-detail.has-photo { grid-template-columns: 1fr; gap: 20px; }
  .service-photo { order: -1; }
}

/* Projects: filter bar, clickable thumbnails, lightbox */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--slate);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.gallery-item img { height: auto; aspect-ratio: 4 / 3; }
a.lb { display: block; cursor: zoom-in; }
.gallery-item a.lb img { transition: opacity .2s; }
.gallery-item a.lb:hover img { opacity: .9; }
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { font-size: 12px; padding: 8px; }
}
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 64px 16px 24px;
  background: rgba(9,16,38,0.94);
}
.lightbox.open { display: flex; }
.lb-figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-cap { color: var(--white); font-size: 14px; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1px solid rgba(255,255,255,0.35); font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,0.24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Contact form states */
.form-success {
  display: none; background: var(--bg); border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: 8px; padding: 32px;
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 10px; color: var(--blue); }
.form-success p { color: var(--slate); }
.form-error {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; font-size: 14px;
}
.form-error.show { display: block; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Fade-in on scroll: opacity only, and only when JavaScript is running */
.js .reveal { opacity: 0; transition: opacity .6s ease; }
.js .reveal.in { opacity: 1; }

/* Small screens */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 56px 0 44px; }
  .page-hero { padding: 56px 0 48px; }
  .hero-stats { margin-top: 44px; padding-top: 28px; }
  .stat .num { font-size: 30px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .hero p.lead, .page-hero p { font-size: 17px; }
  .work-grid { gap: 10px; }
  .work-tile figcaption { font-size: 13px; }
  .work-tile figcaption strong { font-size: 14px; }
  .bp-logo { padding: 28px 20px; }
  .contact-info { padding: 26px 22px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; }
  .btn:hover, .service-card:hover, .project:hover, .gallery-item:hover, .team-card:hover, .tl-card:hover { transform: none; }
}

/* About page uses inline multi-column grids: stack them on small screens */
@media (max-width: 700px) {
  [style*="grid-template-columns:repeat(3,1fr)"], [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Homepage hero: plain background, no photo or pattern */
.hero.hero-plain { background: var(--blue-deep); background-image: none; }
.hero.hero-plain::before, .hero.hero-plain::after { display: none; }
