/* ============================================================
   POERIO INC. — Brand Style System v2
   Premium GC aesthetic: generous spacing, sharp edges,
   editorial typography, full-bleed sections, architectural feel
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --red: #D3112E;
  --red-hover: #b80e27;
  --purple: #49274A;
  --blue: #226BE0;
  --dark: #232126;
  --dark-90: rgba(35,33,38,0.9);
  --lavender: #EAE9F4;
  --cream: #F7F4F0;
  --white: #ffffff;
  --grey-100: #f5f5f5;
  --grey-200: #e8e8e8;
  --grey-400: #9e9e9e;
  --grey-600: #666;
  --grey-800: #333;
  --font-headline: "Inter", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-accent: "Barlow Condensed", sans-serif;
  --section-pad: clamp(6rem, 10vw, 10rem);
  --section-pad-sm: clamp(4rem, 7vw, 6rem);
  --container: 1340px;
  --container-narrow: 900px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--grey-600);
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--grey-600);
}

/* Accent label — thin red bar + uppercase */
.accent-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.accent-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* Section header spacing */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header h2 {
  margin-top: 0.5rem;
  color: var(--dark);
}
.section-header p {
  margin-top: 1rem;
  max-width: 600px;
}

/* On dark backgrounds */
.section--dark .section-header h2,
.section--dark h2 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.6); }
.section--dark .accent-label { color: var(--red); }
.section--dark .accent-label::before { background: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--sm { padding: var(--section-pad-sm) 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--cream { background: var(--cream); }
.section--lavender { background: var(--lavender); }
.section--purple { background: var(--purple); color: var(--white); }
.section--grey { background: var(--grey-100); }

/* Thin separator line between sections */
.section--border-top { border-top: 1px solid var(--grey-200); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(35, 33, 38, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar--scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.navbar__logo svg {
  height: 36px;
  width: auto;
  fill: var(--white);
  transition: opacity 0.3s var(--ease);
}
.navbar__logo:hover svg { opacity: 0.8; }

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 0.25rem 0;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--white); }

.navbar__links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.35s var(--ease);
}
.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }

.navbar__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.6rem !important;
  font-family: var(--font-accent) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  transition: background 0.3s var(--ease) !important;
}
.navbar__cta:hover { background: var(--red-hover) !important; }
.navbar__cta::after { display: none !important; }

/* -- Dropdown menus -- */
.navbar__dropdown {
  position: relative;
}
.navbar__dropdown-toggle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.navbar__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.25s var(--ease);
}
.navbar__dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-bottom: -1px;
}
.navbar__dropdown-toggle:hover,
.navbar__dropdown-toggle[data-active="true"] {
  color: var(--white);
}
.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(35, 33, 38, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  list-style: none;
  padding: 0.6rem 0;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  z-index: 100;
}
.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  height: 18px;
}
.navbar__dropdown.open .navbar__dropdown-menu {
  display: block;
  animation: dropIn 0.2s var(--ease) both;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.navbar__dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.navbar__dropdown-menu a:hover,
.navbar__dropdown-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.navbar__toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
}
.navbar__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all 0.3s var(--ease);
  border-radius: 0;
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding: 0 0 8rem;
}

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__bg svg {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 65%; height: auto;
  fill: var(--white);
  opacity: 0.08;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__content .accent-label {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.hero__content .accent-label::before { background: var(--red); }

.hero__content h1 {
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero__content h1 span { color: var(--red); }

.hero__content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 14rem 0 6rem;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute; inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.page-hero__bg svg {
  position: absolute;
  right: -5%; top: 50%;
  transform: translateY(-50%);
  width: 45%; height: auto;
  fill: var(--white);
}
.page-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}
.page-hero--has-img .page-hero__bg {
  opacity: 1;
}

.page-hero .accent-label {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.page-hero .accent-label::before { background: var(--red); }

.page-hero h1 {
  position: relative; z-index: 2;
}

.page-hero p {
  position: relative; z-index: 2;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  max-width: 580px;
  margin-top: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 1rem 2.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  /* No border-radius — sharp, architectural */
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211,17,46,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--sm {
  padding: 0.7rem 1.6rem;
  font-size: 0.75rem;
}

/* ---------- Stats Strip ---------- */
.stats {
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
/* Vertical divider between stats */
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--grey-200);
}
.section--dark .stat + .stat::before { background: rgba(255,255,255,0.1); }

.stat__number,
.stat__value {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-400);
}
.section--dark .stat__label { color: rgba(255,255,255,0.4); }

/* Clickable stat */
a.stat--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.25s var(--ease);
}
a.stat--link:hover {
  background: var(--grey-100);
}
a.stat--link:hover .stat__label {
  color: var(--red);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--grey-200);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(35,33,38,0.1);
}

.card__img {
  width: 100%;
  height: 240px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  overflow: hidden;
  position: relative;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  padding: 2rem;
}
.card__body h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.card__body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--grey-600);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--grey-200);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
/* Left accent bar on hover */
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  box-shadow: 0 15px 40px rgba(35,33,38,0.08);
  transform: translateY(-2px);
}

/* Clickable service cards */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.service-card .btn {
  display: inline-block;
  margin-top: 1rem;
  pointer-events: none;
}

/* Clickable process steps */
a.process__step {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
a.process__step:hover {
  transform: translateY(-3px);
}
a.process__step .btn {
  display: inline-block;
  margin-top: 0.75rem;
  pointer-events: none;
}

.service-card__icon {
  width: 52px; height: 52px;
  margin-bottom: 1.5rem;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg {
  width: 24px; height: 24px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--grey-600);
}

/* ---------- Process / Timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}

/* Connecting line — horizontal for desktop */
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--grey-200), var(--grey-300), var(--grey-200));
}
.section--dark .process::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.process__step {
  position: relative;
  padding: 0 1.5rem;
  text-align: center;
  counter-increment: step;
}

/* Numbered circle */
.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--dark);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--grey-200);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process__step:hover::before {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--red);
}
.section--dark .process__step::before {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--dark), 0 0 0 6px rgba(255,255,255,0.1);
}
.section--dark .process__step:hover::before {
  box-shadow: 0 0 0 4px var(--dark), 0 0 0 6px var(--red);
}

.process__step h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.process__step p {
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-member { text-align: center; }

.team-member__photo {
  width: 140px; height: 140px;
  margin: 0 auto 1.25rem;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--dark);
  /* Square with a subtle cut corner look */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.team-member h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.team-member__role {
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--red);
}
.team-member p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--grey-600);
}

/* ---------- Tables ---------- */
.poerio-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.poerio-table thead th {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
}
.poerio-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--grey-200);
  color: var(--grey-600);
}
.poerio-table tbody tr:hover { background: var(--grey-100); }
.poerio-table tbody td:first-child {
  font-weight: 600;
  color: var(--dark);
}
/* Mobile-friendly table wrapper — horizontal scroll on narrow screens */
.table-wrap,
div.poerio-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* When poerio-table is directly on a <table>, wrap it in a scrollable container */
table.poerio-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Two Columns ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col--wide-left { grid-template-columns: 1.3fr 1fr; }
.two-col--wide-right { grid-template-columns: 1fr 1.3fr; }

.two-col__visual {
  background: var(--grey-100);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.two-col__visual--stacked {
  background: none;
  aspect-ratio: auto;
  display: block;
  overflow: visible;
}
.two-col__visual svg {
  width: 40%; height: auto;
  fill: var(--dark);
  opacity: 0.08;
}
.two-col__img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Content column spacing */
.two-col__content h2 { margin-bottom: 1.5rem; }
.two-col__content .accent-label { margin-bottom: 1rem; }

/* ---------- Features List ---------- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}
.features-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
}
.features-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6rem;
  width: 8px; height: 2px;
  background: var(--red);
}

/* ---------- Contact Form ---------- */
.contact-form { max-width: 580px; }

.form-group { margin-bottom: 1.75rem; }

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--grey-200);
  font-family: var(--font-body);
  font-size: 1rem; /* >= 16px prevents iOS Safari auto-zoom on focus */
  color: var(--dark);
  transition: border-color 0.3s var(--ease);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--dark);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Contact Sidebar Boxes ---------- */
.contact-box {
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.contact-box--light { background: var(--cream); }
.contact-box--dark { background: var(--dark); color: var(--white); }
.contact-box h3 { margin-bottom: 1.5rem; }
.contact-box__group { margin-bottom: 1.75rem; }
.contact-box__group:last-child { margin-bottom: 0; }
.contact-box__group .accent-label { font-size: 0.75rem; }
.contact-box__group p { margin-top: 0.4rem; margin-bottom: 0; }
.contact-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-box__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
}
.contact-box__list li:last-child { border-bottom: none; }
.contact-box__check {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.5rem;
}
@media (max-width: 480px) {
  .contact-box { padding: 1.5rem; }
}

.flash {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.flash--success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #2e7d32;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: var(--section-pad-sm) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-banner h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  flex-shrink: 0;
}
.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
  max-width: 400px;
}
.cta-banner .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand svg {
  height: 40px; width: auto;
  fill: var(--white);
  margin-bottom: 1.25rem;
}
.footer__brand p {
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer__col h4 {
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.65rem; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s var(--ease);
}
.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.fade-up-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-up-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.fade-up-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.fade-up-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.fade-up-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.fade-up-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.fade-up-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-center .section-header { display: flex; flex-direction: column; align-items: center; }
.text-center .section-header .accent-label { justify-content: center; }
.text-center .section-header p { text-align: center; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Utility Bar ---------- */
.utility-bar {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 36px;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.utility-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.utility-bar__phone:hover { color: var(--red); }
.utility-bar__phone svg { stroke: var(--red); flex-shrink: 0; }
.utility-bar__links {
  display: flex;
  gap: 1.5rem;
}
.utility-bar__links a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.utility-bar__links a:hover { color: var(--white); }

/* Push navbar down to account for utility bar */
.navbar { top: 36px; }

/* ---------- Leader Cards ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.leader-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 2rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.leader-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.leader-card:hover::before { transform: scaleY(1); }
.leader-card:hover {
  box-shadow: 0 15px 40px rgba(35,33,38,0.08);
  transform: translateY(-2px);
}

.leader-card__photo {
  flex-shrink: 0;
  width: 140px; height: 170px;
  background: var(--cream);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.leader-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.leader-card__info { flex: 1; min-width: 0; }
.leader-card__info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.leader-card__title {
  display: block;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.leader-card__info p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--grey-600);
}

/* --- Condensed Leader Grid --- */
.leader-grid--condensed {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

a.leader-card--compact {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.leader-card--compact .leader-card__photo {
  width: 100%;
  height: 240px;
  clip-path: none;
}
a.leader-card--compact .leader-card__info {
  padding: 1.25rem 1.5rem 1.5rem;
}
a.leader-card--compact .leader-card__info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.leader-card__link {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--red);
  transition: color 0.25s var(--ease);
}
a.leader-card--compact:hover .leader-card__link {
  color: var(--red-hover);
}

/* --- Leader Detail Profile --- */
.leader-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.leader-profile__photo-wrap {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: var(--cream);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
  margin-bottom: 1.5rem;
}
.leader-profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-profile__meta {
  margin-bottom: 2rem;
}
.leader-profile__name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.leader-profile__title {
  display: block;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.leader-profile__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--grey-600);
}
.leader-profile__detail svg {
  flex-shrink: 0;
  color: var(--red);
}
.leader-profile__section {
  border-top: 1px solid var(--grey-200);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.leader-profile__section h4 {
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--grey-400);
  margin-bottom: 0.5rem;
}
.leader-profile__section p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--grey-600);
}
.leader-profile__edu-item {
  margin-bottom: 0.35rem;
}
.leader-profile__content h3 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.leader-profile__content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--red);
}
.leader-profile__content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--grey-600);
  margin-bottom: 1.25rem;
}
.leader-profile__back {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

/* ---------- Newsletter Signup ---------- */
.newsletter {
  background: var(--dark);
  padding: 4rem 0;
  position: relative;
}
.newsletter::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.newsletter__text .accent-label {
  color: var(--red);
}
.newsletter__text h2 {
  color: var(--white);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.newsletter__text p {
  color: rgba(255,255,255,0.5);
  max-width: 340px;
  margin-bottom: 0;
}
.newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter__name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.newsletter__email-row {
  display: flex;
  gap: 0.75rem;
}
.newsletter__form input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease);
  flex: 1;
  min-width: 0;
}
.newsletter__form input::placeholder {
  color: rgba(255,255,255,0.35);
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.1);
}
.newsletter__btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.newsletter__disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.newsletter__message {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--red);
}
.newsletter__message--success {
  background: rgba(46, 125, 50, 0.15);
  color: #a5d6a7;
  border-left-color: #4caf50;
}
.newsletter__message--error {
  background: rgba(211, 17, 46, 0.15);
  color: #ef9a9a;
  border-left-color: var(--red);
}

/* ---------- Footer Contact Form ---------- */
.footer-form {
  background: var(--cream);
  padding: var(--section-pad) 0;
  border-top: 3px solid var(--red);
}
.footer-form__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.footer-form__text h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.footer-form__text p {
  max-width: 340px;
}
.footer-form__form .form-group {
  margin-bottom: 1.25rem;
}
.footer-form__form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
}
.footer-form__form input,
.footer-form__form textarea,
.footer-form__form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--grey-200);
  font-family: var(--font-body);
  font-size: 1rem; /* >= 16px prevents iOS Safari auto-zoom on focus */
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s var(--ease);
}
.footer-form__form input:focus,
.footer-form__form textarea:focus,
.footer-form__form select:focus {
  outline: none;
  border-color: var(--dark);
}
.footer-form__form textarea { min-height: 100px; resize: vertical; }
.footer-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: 1fr; }
  .leader-grid--condensed { grid-template-columns: repeat(2, 1fr); }
  .leader-profile { grid-template-columns: 250px 1fr; gap: 2.5rem; }
}

@media (max-width: 992px) {
  .container { padding: 0 1.5rem; }
  .two-col, .two-col--wide-left, .two-col--wide-right {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .newsletter__text p { max-width: 100%; margin: 0 auto; }
  .newsletter__email-row { flex-direction: column; }
  .newsletter__name-row { grid-template-columns: 1fr; }
  .footer-form__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-form__row { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .cta-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .cta-banner p { max-width: 100%; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 0 50%; }
  .stat + .stat::before { display: none; }
}

@media (max-width: 768px) {
  .utility-bar { display: none; }
  .navbar { top: 0; }
  .leader-card { flex-direction: column; gap: 1.25rem; }
  .leader-card__photo { width: 100px; height: 120px; }
  .leader-grid--condensed { grid-template-columns: 1fr; }
  a.leader-card--compact .leader-card__photo { height: 200px; }
  .leader-profile { grid-template-columns: 1fr; gap: 2rem; }
  .leader-profile__sidebar { max-width: 300px; }
  .navbar__inner { height: 72px; }
  .navbar__links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1.5rem 2.5rem 2rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .navbar__links.open {
    display: flex;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px); /* dynamic viewport for mobile browsers */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar__links li { width: 100%; }
  .navbar__links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
  }
  .navbar__links a::after { display: none; }
  .navbar__toggle { display: block; }

  /* Hamburger → X animation */
  .navbar__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile dropdown overrides */
  .navbar__dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .navbar__dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -3px;
  }
  .navbar__dropdown-menu {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .navbar__dropdown-menu::before { display: none; }
  .navbar__dropdown.open .navbar__dropdown-menu {
    animation: none;
  }
  .navbar__dropdown-menu a {
    padding: 0.65rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .navbar__dropdown-menu a:hover,
  .navbar__dropdown-menu a.active {
    background: none;
  }

  .hero { min-height: 85vh; padding-bottom: 5rem; }
  .page-hero { padding: 9rem 0 4rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .card-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .process__step::before {
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--grey-200);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .process { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; gap: 0.35rem; }
  .pagination__btn { padding: 0.5rem 0.8rem; font-size: 0.7rem; }
  .pagination__page { width: 34px; height: 34px; font-size: 0.78rem; }
  .stats { flex-direction: column; }
  .stat { padding: 1.5rem 1rem; }
  .team-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}

/* ---------- Logo Slider ---------- */
.logo-slider-section {
  padding-bottom: var(--section-pad);
}

.logo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.logo-slider__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logo-slider__logo {
  flex-shrink: 0;
  height: 32px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.logo-slider__logo:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover for accessibility */
.logo-slider:hover .logo-slider__track {
  animation-play-state: paused;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-slider__track {
    animation-play-state: paused;
  }
}

@media (max-width: 768px) {
  .logo-slider__track {
    gap: 3rem;
    animation-duration: 33s;
  }
  .logo-slider__logo {
    height: 26px;
  }
}

@media (max-width: 480px) {
  .logo-slider__track {
    gap: 2.5rem;
    animation-duration: 27s;
  }
  .logo-slider__logo {
    height: 22px;
  }
}

/* ---------- Certification / Membership Slider ---------- */
.cert-slider-section {
  padding-bottom: var(--section-pad);
}

.cert-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.cert-slider__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: cert-scroll 35s linear infinite;
}

.cert-slider__logo {
  flex-shrink: 0;
  height: 42px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.cert-slider__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes cert-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover for accessibility */
.cert-slider:hover .cert-slider__track {
  animation-play-state: paused;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cert-slider__track {
    animation-play-state: paused;
  }
}

@media (max-width: 768px) {
  .cert-slider__track {
    gap: 2.5rem;
    animation-duration: 26s;
  }
  .cert-slider__logo {
    height: 34px;
  }
}

@media (max-width: 480px) {
  .cert-slider__track {
    gap: 2rem;
    animation-duration: 20s;
  }
  .cert-slider__logo {
    height: 28px;
  }
}

/* ---------- Where We Work — License Search ---------- */
.license-search {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.license-search__input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--grey-200);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.license-search__input:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 4px 16px rgba(35,33,38,0.08);
}
.license-search__input::placeholder {
  color: var(--grey-400);
}

.license-search__filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.license-filter {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-600);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.license-filter:hover {
  border-color: var(--dark);
  color: var(--dark);
}
.license-filter.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ---------- State Cards Grid ---------- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.state-card {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--grey-200);
  transition: all 0.3s var(--ease);
  position: relative;
}
.state-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  transition: background 0.3s var(--ease);
}
.state-card[data-status="licensed"]::before { background: var(--red); }
.state-card[data-status="registered"]::before { background: var(--blue); }
.state-card[data-status="pending"]::before { background: var(--grey-400); }

.state-card:hover {
  box-shadow: 0 8px 24px rgba(35,33,38,0.08);
  transform: translateY(-1px);
}

.state-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.state-card__name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.state-card__badge {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.state-card__badge--active {
  background: rgba(211, 17, 46, 0.08);
  color: var(--red);
}
.state-card__badge--pending {
  background: rgba(158, 158, 158, 0.12);
  color: var(--grey-600);
}

.state-card__detail {
  font-size: 0.88rem;
  color: var(--grey-600);
  margin-bottom: 0;
  line-height: 1.6;
}

.state-card__license {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--grey-200);
}

/* ---------- License Legend ---------- */
.license-legend {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
  flex-wrap: wrap;
}

.license-legend__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--grey-600);
}

.license-legend__dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.license-legend__dot--licensed { background: #1a5632; }
.license-legend__dot--pending { background: #f0c94b; }

/* ---------- State Grid Empty ---------- */
.state-grid__empty {
  text-align: center;
  padding: 4rem 2rem;
}
.state-grid__empty p {
  color: var(--grey-400);
  font-size: 1rem;
}

/* ---------- Office Cards ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.office-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
  border: 1px solid var(--grey-200);
}
.office-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.office-card__badge {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.office-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.office-card p {
  font-size: 0.92rem;
  color: var(--grey-600);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.office-card__contact a {
  color: var(--dark);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.office-card__contact a:hover {
  color: var(--red);
}

/* ---------- Where We Work Responsive ---------- */
@media (max-width: 1100px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .state-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .license-legend {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .license-search__filters { gap: 0.35rem; }
  .license-filter { padding: 0.4rem 0.8rem; font-size: 0.65rem; }
}

/* ---------- Subcontractors Page Responsive ---------- */
.sub-trades-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sub-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sub-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

@media (max-width: 992px) {
  .sub-trades-grid { grid-template-columns: repeat(3, 1fr); }
  .sub-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-process-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sub-trades-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-steps-grid { grid-template-columns: 1fr 1fr; }
  .sub-process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sub-trades-grid { grid-template-columns: 1fr; }
  .sub-steps-grid { grid-template-columns: 1fr; }
}

/* Subcontractor Resources Process Grid (5-column) */
.sub-resources-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 992px) {
  .sub-resources-process { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sub-resources-process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sub-resources-process { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG / NEWS SECTION
   ============================================================ */

/* ---------- Blog Filters ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 1.5rem;
}
.blog-filter {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.2rem;
  color: var(--grey-400);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.blog-filter:hover {
  color: var(--dark);
}
.blog-filter--active {
  color: var(--dark);
  border-color: var(--dark);
  background: var(--grey-100);
}

/* ---------- Featured Post ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.blog-featured:hover .blog-card__read-more {
  color: var(--red);
}
.blog-featured:hover .blog-card__read-more::after {
  width: 100%;
}
.blog-featured__img {
  background: var(--grey-100);
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-featured:hover .blog-featured__img img {
  transform: scale(1.03);
}
.blog-featured__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.blog-featured__placeholder svg {
  fill: var(--grey-200);
}
.blog-featured__content h2 {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.blog-featured__content p {
  margin-bottom: 1.5rem;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card__img {
  background: var(--grey-100);
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.04);
}
.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.blog-card__placeholder svg {
  fill: var(--grey-200);
}
.blog-card__body h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.blog-card__body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Meta */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.blog-card__category {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  background: var(--grey-100);
  color: var(--grey-600);
}
.blog-card__category--press-release { background: #fce4ec; color: #c62828; }
.blog-card__category--news { background: #e3f2fd; color: #1565c0; }
.blog-card__category--project-update { background: #e8f5e9; color: #2e7d32; }
.blog-card__category--insight { background: #f3e5f5; color: #6a1b9a; }

.blog-card__date {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--grey-400);
  letter-spacing: 0.02em;
}

.blog-card__read-more {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
  position: relative;
  display: inline-block;
  transition: color 0.25s var(--ease);
}
.blog-card__read-more::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.35s var(--ease);
}
.blog-card:hover .blog-card__read-more {
  color: var(--red);
}
.blog-card:hover .blog-card__read-more::after {
  width: 100%;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-200);
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  border: 1px solid var(--grey-200);
}
.pagination__btn:hover:not(.pagination__btn--disabled) {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.pagination__btn--disabled {
  color: var(--grey-300);
  cursor: default;
  border-color: var(--grey-100);
}
.pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.5rem;
}
.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--grey-400);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.pagination__page:hover:not(.pagination__page--active) {
  color: var(--dark);
  background: var(--grey-100);
}
.pagination__page--active {
  color: var(--white);
  background: var(--dark);
}
.pagination__ellipsis {
  width: 32px;
  text-align: center;
  color: var(--grey-300);
  font-size: 1rem;
}

/* ---------- Blog Article (detail page) ---------- */
.blog-article {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--grey-800);
}
.blog-article p {
  margin-bottom: 1.75rem;
  color: var(--grey-600);
}
.blog-article h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-article strong {
  color: var(--dark);
}
.blog-article img {
  margin: 2rem 0;
  width: 100%;
}
.blog-article__footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-200);
}

/* Blog Author on Cards */
.blog-card__author {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-400);
  font-family: var(--font-accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

/* Author filter row */
.blog-filters--author {
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.blog-filters__label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  margin-right: 0.25rem;
}
.blog-filter--author {
  font-size: 0.82rem;
  padding: 0.3rem 0.9rem;
}

/* Blog Detail Author */
.blog-detail__meta {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.blog-detail__author-sep {
  margin: 0 0.4rem;
}
.blog-detail__author {
  font-weight: 500;
}

/* Blog Header Image (full-width below hero) */
.blog-header-image {
  padding: 0;
  margin-top: -2rem;
  margin-bottom: 2rem;
}
.blog-header-image__img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Blog Square Image (sidebar/inline) */
.blog-article__square-image {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 280px;
}
.blog-article__square-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .blog-article__square-image {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
  }
}

/* ---------- Admin Styles ---------- */
.admin-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--grey-200);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: var(--grey-100);
}
.admin-table__title {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s var(--ease);
}
.admin-table__title:hover {
  color: var(--red);
}

.admin-status {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
}
.admin-status--published { background: #e8f5e9; color: #2e7d32; }
.admin-status--scheduled { background: #e3f2fd; color: #1565c0; }
.admin-status--draft { background: #fff3e0; color: #e65100; }

.admin-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.admin-badge--success { background: #e8f5e9; color: #2e7d32; }
.admin-badge--warning { background: #fff3e0; color: #e65100; }
.admin-badge--danger { background: #fce4ec; color: #c62828; }
.admin-badge--muted { background: #f5f5f5; color: #9e9e9e; }

.admin-actions {
  display: flex;
  gap: 0.5rem;
}
.admin-btn {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border: 1px solid;
  background: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.admin-btn--edit {
  color: var(--blue);
  border-color: var(--blue);
}
.admin-btn--edit:hover {
  background: var(--blue);
  color: var(--white);
}
.admin-btn--delete {
  color: var(--red);
  border-color: var(--red);
}
.admin-btn--delete:hover {
  background: var(--red);
  color: var(--white);
}

.admin-form {
  max-width: 100%;
}
.admin-form .form-group textarea {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}
.admin-form__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.flash--error {
  background: #fce4ec;
  color: #c62828;
  border-left: 3px solid #c62828;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Admin Navigation Bar ---------- */
.admin-nav {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border-radius: 10px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.admin-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0.75rem;
  gap: 0.2rem;
}
.admin-nav__link {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  text-decoration: none;
}
.admin-nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.admin-nav__link--active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.admin-nav__link--site {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.admin-nav__link--site svg {
  opacity: 0.5;
}
.admin-nav__divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.2rem;
  flex-shrink: 0;
}
.admin-nav__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-nav__name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.admin-nav__logout {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.admin-nav__logout:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

/* ---------- Role Badges ---------- */
.admin-role {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  display: inline-block;
}
.admin-role--writer { background: #e3f2fd; color: #1565c0; }
.admin-role--editor { background: #f3e5f5; color: #6a1b9a; }
.admin-role--admin { background: #fce4ec; color: #c62828; }

/* ---------- Role Reference (User Management) ---------- */
.role-reference {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--grey-200);
}
.role-reference__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.role-reference__card {
  padding: 1.5rem;
  background: var(--grey-100);
}
.role-reference__card .admin-role {
  margin-bottom: 0.75rem;
}
.role-reference__card p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* ---------- Blog & Admin Responsive ---------- */
@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .role-reference__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .admin-table { font-size: 0.82rem; }
  .admin-table th, .admin-table td { padding: 0.7rem 0.5rem; }
  .admin-nav__links { justify-content: center; padding: 0.5rem; }
  .admin-nav__link { font-size: 0.68rem; padding: 0.4rem 0.6rem; }
  .admin-nav__divider { display: none; }
  .admin-nav__user { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .blog-filters { gap: 0.35rem; }
  .blog-filter { padding: 0.4rem 0.8rem; font-size: 0.7rem; }
}

/* ============================================================
   CAREERS PAGE — Job Listings & Benefits
   ============================================================ */

/* ---------- Benefits Grid ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--grey-200);
  transition: all 0.35s var(--ease);
}
.benefit-item:hover {
  box-shadow: 0 10px 30px rgba(35,33,38,0.06);
  transform: translateY(-2px);
}
.benefit-item > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.benefit-item h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.benefit-item p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ---------- Job Listings ---------- */
.job-listings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 2.5rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.job-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.job-card:hover::before { transform: scaleY(1); }
.job-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.job-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.job-card__header h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0;
}
.job-card__tag {
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  padding: 0.3rem 0.8rem;
  background: rgba(211,17,46,0.15);
  color: var(--red);
  border: 1px solid rgba(211,17,46,0.3);
}
.job-card__tag--urgent {
  background: rgba(211,17,46,0.2);
  color: #ff6b6b;
  border-color: rgba(211,17,46,0.4);
}
.job-card__details {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.job-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
}
.job-card__detail svg {
  opacity: 0.4;
}
.job-card__cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--red);
  transition: all 0.3s var(--ease);
}
.job-card:hover .job-card__cta {
  letter-spacing: 0.2em;
}

/* ---------- Careers Responsive ---------- */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .job-card { padding: 1.5rem; }
  .job-card__details { gap: 1rem; }
  .job-card__header h3 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .job-card__details { flex-direction: column; gap: 0.5rem; }
}

/* ---------- Role Explorer Grid ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.role-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.role-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.role-box:hover::before { transform: scaleY(1); }
.role-box:hover {
  box-shadow: 0 15px 40px rgba(35,33,38,0.08);
  transform: translateY(-3px);
}
.role-box__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-box__icon svg {
  width: 22px; height: 22px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-box__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.role-box__dept {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-400);
  margin-bottom: 1rem;
}
.role-box__cta {
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--red);
  transition: letter-spacing 0.3s var(--ease);
  margin-top: auto;
}
.role-box:hover .role-box__cta {
  letter-spacing: 0.2em;
}
@media (max-width: 1024px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-box { padding: 1.5rem 1.25rem; }
}

/* ---------- Career Detail Page ---------- */
.career-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.career-detail__list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-800);
  border-bottom: 1px solid var(--grey-200);
}
.career-detail__list li:last-child {
  border-bottom: none;
}
.career-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--red);
}
.career-detail__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.career-detail__benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--grey-200);
}
.career-detail__benefit svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.career-detail__benefit span {
  font-family: var(--font-headline);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
}
@media (max-width: 768px) {
  .career-detail__benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .career-detail__benefits { grid-template-columns: 1fr; }
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
  margin-left: 1rem;
}
.faq-item[open] .faq-item__question::after {
  content: "−";
  background: var(--red);
  color: #fff;
}
.faq-item__question:hover { color: var(--red); }
.faq-item__answer {
  padding: 0 0 1.5rem 0;
  color: #555;
  line-height: 1.7;
  max-width: 48rem;
}
.faq-item__answer p { margin: 0; }

/* ===================================================================
   SITEMAP LIST
   =================================================================== */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-list li {
  padding: 0.35rem 0;
}
.sitemap-list a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.sitemap-list a:hover {
  color: var(--red);
}

/* ===================================================================
   LEGAL / PROSE PAGES
   =================================================================== */
.container--narrow h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.container--narrow h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.container--narrow p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #444;
}
.container--narrow a {
  color: var(--red);
  text-decoration: underline;
}
.container--narrow a:hover {
  color: var(--dark);
}

/* ===================================================================
   PROJECT DETAIL — CARD LINK
   =================================================================== */
.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* ===================================================================
   PROJECT FILTERS
   =================================================================== */
.project-filters-section {
  padding-top: 2rem;
  padding-bottom: 0;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.5rem 2rem;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}
.project-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 180px;
  min-width: 160px;
}
.project-filters__group label {
  font-family: var(--font-accent, sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: #666;
}
.project-filters__group select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.project-filters__actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding-bottom: 1px;
}
.project-filters__count {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Small button variant */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.pagination__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--red, #c41e3a);
  border-radius: 4px;
  color: var(--red, #c41e3a);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.pagination__link:hover {
  background: var(--red, #c41e3a);
  color: #fff;
}
.pagination__link--disabled {
  border-color: #ccc;
  color: #aaa;
  pointer-events: none;
  cursor: default;
}
.pagination__link--disabled:hover {
  background: transparent;
  color: #aaa;
}
.pagination__info {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* ===================================================================
   CARD META (service type / cost on project cards)
   =================================================================== */
.card__meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #888;
}
.card__meta span {
  display: inline-flex;
  align-items: center;
}
.card__meta span + span::before {
  content: "\00b7";
  margin-right: 0.75rem;
  color: #ccc;
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}
.empty-state h3 {
  margin-bottom: 0.75rem;
  color: #333;
}
.empty-state a {
  color: var(--red, #c41e3a);
}

/* Responsive filters */
@media (max-width: 768px) {
  .project-filters {
    flex-direction: column;
    gap: 0.75rem;
  }
  .project-filters__group {
    flex: 1 1 100%;
  }
  .project-filters__actions {
    flex-direction: row;
    width: 100%;
  }
  .project-filters__actions .btn {
    flex: 1;
  }
  .pagination {
    gap: 0.5rem;
  }
  .pagination__link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ===================================================================
   MASONRY GALLERY
   =================================================================== */
.masonry-gallery {
  columns: 3;
  column-gap: 1rem;
}

.masonry-gallery__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.masonry-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.masonry-gallery__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease);
}

.masonry-gallery__item:hover .masonry-gallery__img {
  transform: scale(1.03);
}

.masonry-gallery__caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: var(--grey-600);
  font-family: var(--font-body);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .masonry-gallery { columns: 2; }
}

@media (max-width: 600px) {
  .masonry-gallery { columns: 1; }
}

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 2;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  text-align: center;
  max-width: 600px;
  font-family: var(--font-body);
}

.lightbox__counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .lightbox__prev,
  .lightbox__next {
    font-size: 1.8rem;
    padding: 0.4rem 0.7rem;
  }
  .lightbox__close { font-size: 2rem; }
}
