/* ==========================================================================
   IQVISTA SOLUTIONS — Design system (CSS variables)
   ========================================================================== */
:root {
  --charcoal: #14171A;   /* hero, footer, dark sections */
  --graphite: #1F2429;   /* secondary dark bands, cards on dark */
  --brass: #C8A45C;      /* accent, buttons, labels */
  --brass-deep: #786237; /* hover states, and small brass text on light
                             backgrounds. Darkened from the original #A8843F —
                             that value only reached ~3.3:1 on ivory/white,
                             short of the 4.5:1 AA requires for text. This
                             shade clears 4.5:1+ on ivory, white and sand. */
  --ivory: #FAF7F2;      /* page background */
  --sand: #F1ECE4;       /* alternating light section background */
  --ink: #16181A;        /* body text and headings on light backgrounds */
  --muted: #6B655E;      /* secondary text */
  --white: #FFFFFF;

  --whatsapp-green: #25D366;      /* WhatsApp brand green — solid buttons/icons */
  --whatsapp-green-deep: #167F3D; /* darkened for text/border on white — the
                                      brand green itself is only ~2:1 on white */
  --error: #B00020;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 12px;
  --shadow-soft: 0 10px 30px rgba(20, 23, 26, 0.12);
  --shadow-header: 0 4px 20px rgba(20, 23, 26, 0.25);

  --header-height: 72px;
  --container-width: 1200px;

  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Matches the hero/footer charcoal so the rubber-band bounce past the top
     or bottom of the page on real phones shows charcoal instead of a white
     flash */
  background: var(--charcoal);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

/* All sections that will hold content later line up under the sticky header */
section[id] {
  scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-brass:hover {
  background: var(--brass-deep);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--charcoal);
  z-index: 900;
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 901;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.main-nav.is-open {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-list a:hover {
  color: var(--brass);
}

.nav-list a[aria-current="page"] {
  color: var(--brass);
  position: relative;
}

.header-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  position: relative;
  padding: calc(var(--header-height) + 2rem) 1.5rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 164, 92, 0.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(200, 164, 92, 0.06), transparent 45%),
    linear-gradient(135deg, var(--charcoal) 0%, var(--graphite) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brass);
}

.hero-services {
  color: var(--white);
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-sub {
  color: var(--white);
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.hero-phones {
  margin-top: 1.5rem;
  color: var(--white);
  opacity: 0.7;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-phones a {
  color: var(--white);
}

.hero-phones a:hover {
  color: var(--brass);
}

.hero-phones-divider {
  opacity: 0.5;
}

.scroll-arrow {
  position: relative;
  color: var(--white);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.scroll-arrow:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { animation: none; }
}

/* ==========================================================================
   Placeholder sections (content added in later steps)
   ========================================================================== */
.section {
  min-height: 1px;
}

/* ==========================================================================
   Shared content-section helpers
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: block;
  color: var(--brass-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: 1.75rem;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Intro strip
   ========================================================================== */
.intro-strip {
  padding: 4.5rem 0 3.5rem;
}

.intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.intro-inner h2 {
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
}

.intro-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.intro-text + .intro-text {
  margin-top: 1rem;
}

/* ==========================================================================
   Our Solutions
   ========================================================================== */
.solutions {
  padding: 1.5rem 0 5rem;
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.solution-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.solution-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-media::after {
  /* Subtle warm overlay so the photos sit in the charcoal/brass palette
     rather than reading as a cold, disconnected stock photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 26, 0.06), rgba(20, 23, 26, 0.22));
  box-shadow: inset 0 0 40px rgba(20, 23, 26, 0.25);
  pointer-events: none;
}

.solution-icon {
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.solution-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.solution-promise {
  color: var(--brass-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.solution-desc {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.solution-offerings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.25rem;
}

.solution-offerings li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.solution-offerings li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.solution-subgroups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.solution-subgroup h4 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.solution-subgroup p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.solution-closing {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.solution-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.solution-gallery-link {
  color: var(--brass-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

.solution-gallery-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Why IQVISTA SOLUTIONS
   ========================================================================== */
.why-us {
  background: var(--sand);
  padding: 5rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 1.75rem 1.75rem;
  overflow: hidden;
}

.why-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--ink);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Our Process
   ========================================================================== */
.process {
  background: var(--charcoal);
  padding: 5rem 0 0;
}

.process .section-heading h2,
.process .section-subtitle {
  color: var(--white);
}

.process .section-subtitle {
  opacity: 0.75;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  position: relative;
  text-align: center;
  padding-left: 0;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.process-step h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Vision band
   ========================================================================== */
.vision-band {
  background: var(--graphite);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4.5rem;
  padding: 4rem 0;
}

.vision-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.vision-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.vision-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.vision-closing {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

/* ==========================================================================
   Contact / enquiry form
   ========================================================================== */
.contact {
  background: var(--sand);
  padding: 5rem 0;
}

.contact-intro {
  max-width: 560px;
  margin: -1.75rem auto 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.contact-layout {
  max-width: 640px;
  margin: 0 auto 3rem;
}

.contact-address {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-address .address-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-address address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.form-field label,
.service-fieldset legend {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(20, 23, 26, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.25);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.service-fieldset.has-error .checkbox-group {
  outline: 2px solid var(--error);
  outline-offset: 8px;
  border-radius: var(--radius);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
}

.field-error:empty {
  display: none;
}

.service-fieldset {
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--brass);
  flex-shrink: 0;
}

.botcheck-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-actions .btn {
  flex: 1;
}

.btn-whatsapp-outline {
  background: var(--white);
  color: var(--whatsapp-green-deep);
  border-color: var(--whatsapp-green-deep);
}

.btn-whatsapp-outline:hover {
  background: var(--whatsapp-green-deep);
  color: var(--white);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.form-status.is-error {
  color: var(--error);
}

.form-status:empty {
  display: none;
}

.form-confirmation {
  text-align: center;
  padding: 1rem 0;
}

.form-confirmation h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.form-confirmation p {
  color: var(--muted);
  line-height: 1.6;
}

.form-confirmation a {
  color: var(--brass-deep);
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 4rem 1.5rem 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.9rem; }

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.footer-tagline {
  color: var(--brass);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-address {
  font-style: normal;
  line-height: 1.5;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-list a,
.footer-list li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-list a:hover {
  color: var(--brass);
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-footer {
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--charcoal);
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Floating action buttons
   ========================================================================== */
.floating-buttons {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 800;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.fab:hover {
  transform: translateY(-3px);
}

.fab-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
}

.fab-call {
  background: var(--brass);
  color: var(--ink);
}

/* Call FAB only shown on mobile — desktop already has clear call CTAs */
@media (min-width: 768px) {
  .fab-call {
    display: none;
  }
}

/* ==========================================================================
   Scroll-reveal (fade-up) — only active once JS confirms it can run it.
   Fast and subtle: a normal scroll speed should never see a blank or
   half-faded section. script.js triggers this well before the element
   reaches the viewport (generous IntersectionObserver rootMargin), and each
   section fades in as a single unit rather than staggering its children.
   ========================================================================== */
.js .fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.js .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Page hero (compact — used on secondary pages like Our Projects)
   ========================================================================== */
.page-hero {
  background: var(--charcoal);
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 2.5rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Sticky sub-navigation (project category pills)
   ========================================================================== */
.sub-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 500;
  background: var(--ivory);
  border-bottom: 1px solid rgba(20, 23, 26, 0.08);
}

.sub-nav-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.9rem 1.25rem;
  max-width: var(--container-width);
  margin: 0 auto;
  scrollbar-width: none;
}

.sub-nav-list::-webkit-scrollbar {
  display: none;
}

.sub-nav-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.sub-nav-pill:hover,
.sub-nav-pill.is-active {
  background: var(--brass);
  color: var(--ink);
}

/* ==========================================================================
   Project gallery sections
   ========================================================================== */
.project-section {
  background: var(--ivory);
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 64px);
}

.project-section--alt {
  background: var(--sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition);
  font-family: inherit;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-info {
  display: block;
  padding: 1.1rem 1.25rem 1.35rem;
}

.project-card-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.project-card-location {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   CTA band (end of Our Projects page)
   ========================================================================== */
.cta-band {
  background: var(--charcoal);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 1.75rem;
}

.cta-band .hero-buttons {
  margin-top: 0;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 1rem;
}

.lightbox-caption .project-card-title,
.lightbox-caption .project-card-location {
  color: var(--white);
}

.lightbox-caption .project-card-location {
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--brass);
  color: var(--ink);
}

/* ==========================================================================
   Tablet — 768px and up
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .hamburger {
    display: none;
  }

  .main-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    transform: none;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-list a {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .hero-services {
    font-size: 1.05rem;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }

  .footer-actions {
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .intro-inner h2 {
    font-size: 2.25rem;
  }

  .solution-block {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .solution-block:nth-child(even) {
    flex-direction: row-reverse;
  }

  .solution-media,
  .solution-content {
    flex: 1 1 0;
    min-width: 0;
  }

  .solution-offerings {
    grid-template-columns: 1fr 1fr;
  }

  .solution-subgroups {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
  }

  .process-steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
  }

  .process-step {
    flex: 1;
    position: relative;
  }

  .contact-form-wrap {
    padding: 3rem 3.5rem;
  }

  .checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .checkbox-option {
    flex: 1 1 45%;
  }

  .form-actions {
    flex-direction: row;
  }

  .map-wrap iframe {
    height: 340px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band h2 {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Desktop — 1440px and up
   ========================================================================== */
@media (min-width: 1440px) {
  .hero {
    gap: 2.25rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .hero-services {
    font-size: 1.15rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .footer-inner {
    gap: 3rem;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solutions-list {
    gap: 5.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
