/* Teresio Engineering — Professional Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Franklin:wght@600;700;800&display=swap');

:root {
  --navy-950: #061018;
  --navy-900: #0a1628;
  --navy-800: #122640;
  --navy-700: #1a3354;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-300: #7dd3fc;
  --blue-50: #f0f9ff;
  --copper-600: #b45309;
  --copper-500: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Libre Franklin', 'Inter', sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-500); }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ─── Top bar ─── */
.top-bar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: var(--white); }
.top-bar__email { display: flex; align-items: center; gap: 0.5rem; }
.top-bar__social { display: flex; gap: 0.625rem; list-style: none; }
.top-bar__social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.875rem;
}
.top-bar__social a:hover { background: var(--blue-600); color: var(--white); }

/* ─── Header ─── */
.site-header-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-nav__header,
.mobile-nav__actions,
.nav-backdrop { display: none; }
.logo img { height: 44px; width: auto; max-width: 220px; }

.main-nav { display: flex; align-items: center; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.main-nav > li > a,
.nav-item-row > a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius);
}
.main-nav > li > a:hover,
.main-nav > li > a.active,
.nav-item-row > a:hover,
.nav-item-row > a.active { color: var(--blue-600); background: var(--gray-50); }

.nav-item-row { display: contents; }
.nav-expand { display: none; }

.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  line-height: 1.4;
}
.dropdown a:hover { background: var(--gray-50); color: var(--blue-600); }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.75rem 1.375rem;
  background: var(--navy-900);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-contact:hover { background: var(--blue-600); color: var(--white) !important; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 260;
  width: 44px; height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--transition), background var(--transition);
}
.menu-toggle.is-open {
  border-color: var(--navy-900);
  background: var(--navy-900);
}
.menu-toggle.is-open span { background: var(--white); }
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gray-900);
  transition: var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-500); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy-900); border: 2px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}
.hero__bg.is-hidden { opacity: 0; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 16, 24, 0.88) 0%, rgba(6, 16, 24, 0.55) 55%, rgba(6, 16, 24, 0.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: 4rem; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-500);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.hero__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero__nav button {
  width: 48px; height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}
.hero__nav button.active { background: var(--white); width: 64px; }

/* ─── Page banner (inner pages) ─── */
.page-banner {
  background: var(--navy-900);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-banner.has-image {
  background-size: cover;
  background-position: center;
}
.page-banner.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 16, 24, 0.62), rgba(10, 22, 40, 0.48));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.375rem; opacity: 0.5; }

/* ─── Sections ─── */
.section { padding: 5rem 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--navy-900); color: var(--white); }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center p { max-width: 560px; margin: 1rem auto 0; }
.section-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.section--dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--gray-500); font-size: 1.0625rem; }

/* ─── About split ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split__badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--blue-600);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.split__badge span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.split__badge strong { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; line-height: 1; }
.split__content p { margin-bottom: 1rem; color: var(--gray-500); }
.split__content p:last-of-type { margin-bottom: 1.75rem; }

/* About — founder profile */
.profile-intro { padding-top: 4rem; }
.profile-intro__inner {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 3.5rem;
  align-items: center;
}
.profile-intro__photo {
  position: relative;
}
.profile-intro__frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  border: 4px solid #fff;
  background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
}
.profile-intro__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.profile-intro__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.profile-intro__caption {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-align: center;
}
.profile-intro__caption code {
  font-size: 0.75rem;
  background: var(--gray-100);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.profile-intro__name {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.5rem 0 0.25rem;
  color: var(--navy-900);
}
.profile-intro__role {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}
.profile-intro__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.profile-intro__creds {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-intro__creds li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 999px;
  border: 1px solid var(--blue-100);
}

/* ─── Service cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card__image { aspect-ratio: 16/10; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__image img { transform: scale(1.04); }
.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.card__body h3 a { color: inherit; }
.card__body h3 a:hover { color: var(--blue-600); }
.card__body ul {
  list-style: none;
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  flex: 1;
}
.card__body li {
  padding: 0.25rem 0 0.25rem 1.125rem;
  position: relative;
}
.card__body li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.75em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
}
.card__link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.card__link:hover { gap: 0.625rem; }

/* ─── Stats ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
}
.section--dark .stat-item__number { color: var(--white); }
.stat-item__label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
}
.section--dark .stat-item__label { color: rgba(255, 255, 255, 0.7); }

/* ─── Projects grid ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--caption {
  position: relative;
  display: block;
  text-decoration: none;
}
.gallery-item--caption::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.15) 55%, transparent 100%);
  pointer-events: none;
}
.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.35rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.gallery-item__label em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 0.35rem;
}
.gallery-grid--wide { grid-template-columns: repeat(4, 1fr); }
.gallery-item--tall { aspect-ratio: 3/4; }

/* ─── Project case studies ─── */
.project-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.project-stat {
  text-align: center;
}
.project-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-900);
}
.project-stat span {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}
.project-list__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.project-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.project-showcase--reverse { direction: rtl; }
.project-showcase--reverse > * { direction: ltr; }
.project-showcase__media {
  position: relative;
  min-height: 360px;
}
.project-showcase__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.project-showcase__meta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.project-showcase__body {
  padding: 2.25rem 2.5rem 2.5rem 0;
}
.project-showcase--reverse .project-showcase__body {
  padding: 2.25rem 0 2.5rem 2.5rem;
}
.project-showcase__category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}
.project-showcase__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.project-showcase__client {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.project-showcase__client i { margin-right: 0.35rem; color: var(--blue-500); }
.project-showcase__summary {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.project-showcase__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.project-showcase__cols h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.65rem;
}
.project-showcase__cols ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.55;
}
.project-showcase__cols li { margin-bottom: 0.35rem; }
.project-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
}
.section--dark .gallery-item { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 3rem;
  list-style: none;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 42px; height: 42px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.pagination a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pagination .current { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

/* ─── Clients ─── */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
}
.clients img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.65;
  transition: var(--transition);
}
.clients img:hover { opacity: 1; }

/* ─── Values ─── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.value-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 4px solid var(--blue-600);
}
.value-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.value-box p, .value-box li { color: var(--gray-500); font-size: 0.9375rem; }
.value-box ul { list-style: none; }
.value-box li { padding: 0.375rem 0; padding-left: 1rem; position: relative; }
.value-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ─── Team ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 720px;
  margin-inline: auto;
}
.team-member {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.team-member img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-member__info { padding: 1.5rem; }
.team-member h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.team-member h3 a { color: inherit; }
.team-member span { font-size: 0.875rem; font-weight: 600; color: var(--blue-600); }

/* ─── Service detail ─── */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.sidebar__title {
  background: var(--navy-900);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.sidebar ul { list-style: none; }
.sidebar a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  border-left: 3px solid transparent;
}
.sidebar a:hover { background: var(--gray-50); color: var(--blue-600); }
.sidebar a.active { background: var(--gray-50); color: var(--blue-600); border-left-color: var(--blue-600); font-weight: 600; }

.detail h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.detail__lead { color: var(--gray-500); margin-bottom: 1.75rem; font-size: 1.0625rem; }
.detail__hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.detail__list {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin-bottom: 2rem;
}
.detail__list li {
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-700);
  position: relative;
}
.detail__list li::before {
  content: '\f058';
  font-family: FontAwesome;
  position: absolute;
  left: 1rem;
  color: var(--blue-600);
}
.detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.detail__gallery img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}
.form-field textarea { min-height: 150px; resize: vertical; }

.info-panel {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.info-block { margin-bottom: 1.75rem; }
.info-block:last-child { margin-bottom: 0; }
.info-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-500);
  margin-bottom: 0.375rem;
}
.info-block p, .info-block a { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; }
.info-block a:hover { color: var(--white); }
.info-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.info-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
}
.info-social a:hover { background: var(--blue-600); }

.map-embed {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ─── CTA band ─── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.75rem; max-width: 480px; margin-inline: auto; }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand img { height: 48px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-brand address { font-style: normal; font-size: 0.875rem; line-height: 1.8; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cred-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin-inline: auto;
}
.sector-tag {
  padding: 0.625rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.card__text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.6;
}

.footer-brand img { height: 44px; width: auto; max-width: 220px; margin-bottom: 1.25rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.65); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .card-grid, .gallery-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__badge { right: 1rem; bottom: -1rem; }
  .profile-intro__inner { grid-template-columns: 1fr; gap: 2rem; max-width: 420px; margin: 0 auto; }
  .profile-intro__content { text-align: center; }
  .profile-intro__creds { justify-content: center; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-showcase,
  .project-showcase--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .project-showcase__body,
  .project-showcase--reverse .project-showcase__body {
    padding: 1.75rem;
  }
  .project-showcase__cols { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .site-header-bar .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--header-h);
    pointer-events: none;
  }
  .site-header-bar .site-nav nav {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .menu-toggle { display: flex; margin-left: auto; }
  .btn-contact { display: none; }

  .has-dropdown:not(.is-open):hover .dropdown {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .site-header-bar { z-index: 300; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 310;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: min(360px, 100%);
    height: 100dvh;
    height: 100vh;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--navy-900) 0%, #1e3a5f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }
  .mobile-nav__logo {
    height: 36px;
    width: auto;
  }
  .mobile-nav__close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.125rem;
    cursor: pointer;
    transition: background var(--transition);
  }
  .mobile-nav__close:hover { background: rgba(255, 255, 255, 0.16); }

  .site-nav > nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav > li {
    border-bottom: 1px solid var(--gray-100);
  }

  .main-nav > li > a,
  .nav-item-row > a {
    padding: 1.05rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 0;
    border-bottom: none;
  }
  .main-nav > li > a.active,
  .nav-item-row > a.active {
    color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: inset 3px 0 0 var(--blue-600);
  }

  .nav-item-row {
    display: flex;
    align-items: stretch;
  }
  .nav-item-row > a {
    flex: 1;
  }

  .nav-expand {
    display: grid;
    place-items: center;
    width: 52px;
    flex-shrink: 0;
    border: none;
    border-left: 1px solid var(--gray-100);
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
  }
  .nav-expand i {
    font-size: 0.875rem;
    transition: transform 0.25s ease;
  }
  .has-dropdown.is-open .nav-expand {
    background: var(--blue-50);
    color: var(--blue-600);
  }
  .has-dropdown.is-open .nav-expand i { transform: rotate(180deg); }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-100);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--gray-50);
  }
  .has-dropdown.is-open .dropdown {
    max-height: 520px;
  }
  .dropdown a {
    padding: 0.875rem 1.25rem 0.875rem 2rem;
    font-size: 0.9375rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .dropdown li:last-child a { border-bottom: none; }
  .dropdown a:hover,
  .dropdown a:active {
    background: var(--white);
    color: var(--blue-600);
  }

  .mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
  }
  .mobile-nav__cta {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }
  .mobile-nav__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
  }
  .mobile-nav__email:hover { color: var(--blue-600); }

  .card-grid, .gallery-grid, .values-grid, .stats, .team-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 520px; }
  .detail__gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { width: min(var(--container), 100% - 1.5rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
