:root {
  --bg:        #080d1a;
  --bg-card:   #0d1525;
  --bg-lift:   #111d33;
  --navy:      #1a2744;
  --silver:    #c8cdd6;
  --silver-hi: #e8ecf4;
  --silver-lo: #8a9099;
  --white:     #f0f3f7;
  --text:      #e8ecf2;
  --text-muted:#8a9099;
  --border:    rgba(200,205,214,0.1);
  --border-hi: rgba(200,205,214,0.25);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(8,13,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 28px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--silver-hi);
}

.nav-cta {
  border: 1px solid var(--border-hi);
  padding: 9px 18px;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--silver);
  color: var(--bg);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animate hamburger → X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px; /* shift group slightly above true center */
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--navy) 0%, var(--bg) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-logo {
  width: 320px;
  max-width: 72vw;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-subline {
  font-weight: 400;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--silver-hi);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid var(--border-hi);
  padding: 12px 28px;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  color: var(--white);
  border-color: var(--silver);
  background: rgba(200,205,214,0.06);
}

/* Desktop only: bigger logo, smaller headline — matches the logo-to-headline
   proportion the mobile layout already has (mobile's fixed 40px min headline
   size keeps the logo looking proportionally larger there). */
@media (min-width: 901px) {
  .hero-logo {
    width: 460px;
    max-width: 50vw;
  }

  .hero-headline {
    font-size: clamp(48px, 4.6vw, 64px);
  }
}

/* ---------- Section shared ---------- */

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ---------- Services ---------- */

.services {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

/* Vertical stack of full-width, expandable rows */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-row {
  border-bottom: 1px solid var(--border);
}

/* Header is the tappable/clickable trigger — always visible */
.service-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 30px 4px;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.service-row-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--silver-hi);
  transition: color 0.3s ease;
}

.service-row-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.service-row-cue {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-lo);
  opacity: 0.6;
  white-space: nowrap;
}

.service-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  font-size: 16px;
  color: var(--silver-lo);
  flex-shrink: 0;
  transition: transform 0.35s ease, color 0.3s ease;
}

.service-row.open .service-row-icon {
  transform: rotate(45deg);
  color: var(--silver-hi);
}

/* Desktop-only hover preview: summary sentence + row highlight, no full expansion */
.service-row-preview {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.service-row-preview p {
  padding: 0 4px 26px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
}

@media (hover: hover) and (pointer: fine) {
  .service-row:not(.open):hover .service-row-header {
    background: var(--bg-lift);
  }

  .service-row:not(.open):hover .service-row-name {
    color: var(--white);
  }

  .service-row:not(.open):hover .service-row-preview {
    max-height: 120px;
    opacity: 1;
  }
}

/* Expanded panel — summary, bullets, gallery. Height set via JS (scrollHeight) for a smooth, non-jumpy reveal. */
.service-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.service-panel-inner {
  padding: 8px 4px 64px;
}

.service-panel-summary {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  max-width: 680px;
}

.service-panel-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin-top: 28px;
}

.service-panel-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--silver);
  font-style: italic;
}

.service-panel-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--silver-lo);
  opacity: 0.5;
}

.service-panel-close {
  display: inline-block;
  margin-top: 28px;
  background: none;
  border: none;
  color: var(--silver-lo);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-panel-close:hover {
  color: var(--silver-hi);
}

/* Gallery — click-through, works with one image (arrows/dots hidden) or many */
.service-gallery {
  position: relative;
  margin-top: 28px;
  max-width: 640px;
}

.service-gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Welding photo is a tall portrait shot — a 16:9 box crops most of the joint
   out of frame. A square box crops far less, and cover fills it edge to
   edge with no letterbox bars. */
.service-gallery--square .service-gallery-viewport {
  aspect-ratio: 1 / 1;
}

.service-gallery-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,26,0.1) 0%, rgba(8,13,26,0.45) 100%);
  pointer-events: none;
}

.service-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.gallery-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.88);
}

.gallery-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8,13,26,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(200,205,214,0.35);
  color: var(--silver);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.gallery-arrow:hover {
  background: rgba(8,13,26,0.8);
  border-color: var(--silver-hi);
  color: var(--silver-hi);
  opacity: 1;
}

.service-gallery.has-multiple .gallery-arrow {
  display: flex;
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
  display: none;
  gap: 8px;
  margin-top: 14px;
}

.service-gallery.has-multiple .gallery-dots {
  display: flex;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-hi);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-dot.active {
  background: var(--silver-hi);
}

/* Desktop: gallery on the right, summary/bullets/close on the left.
   Keeps the open panel's overall height close to the gallery's height
   instead of stacking everything, so the section stays close to a
   fixed footprint rather than growing tall when a row expands. */
@media (min-width: 901px) {
  .service-panel-inner {
    display: grid;
    grid-template-columns: 1fr 560px;
    column-gap: 72px;
    align-items: start;
  }

  .service-panel-summary {
    grid-column: 1;
    grid-row: 1;
  }

  .service-panel-bullets {
    grid-column: 1;
    grid-row: 2;
  }

  .service-panel-close {
    grid-column: 1;
    grid-row: 3;
  }

  .service-gallery {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    max-width: none;
  }
}

/* ---------- Case Studies ---------- */
/* HIDDEN UNTIL CONTENT READY — no real case studies yet. Remove the
   display:none line below to bring this section back (also re-add the
   "Case Studies" nav links in index.html — header #nav-links and footer-nav). */

.case-studies {
  display: none; /* hidden until content ready */
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.cs-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Feature card spans full width */
.cs-card--feature {
  grid-column: 1 / -1;
  flex-direction: row;
}

.cs-card--feature .cs-img-wrap {
  flex: 0 0 55%;
  aspect-ratio: auto;
  min-height: 380px;
}

.cs-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.cs-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-lift);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-img-placeholder::after {
  content: 'Photo coming soon';
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-lo);
  opacity: 0.5;
}

.cs-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.cs-card--feature .cs-body {
  border-top: none;
  border-left: 1px solid var(--border);
}

.cs-meta {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-bottom: 14px;
}

.cs-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cs-blurb {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.cs-link-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s ease;
}

.cs-card:hover .cs-link-label {
  color: var(--white);
}

.cs-card:hover .cs-img-placeholder {
  background: var(--navy);
}

/* ---------- Partners / Testimonials ---------- */

.partners {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.partner-logo-box {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logos come in very different native sizes/aspect ratios (wide wordmarks vs
   square marks) — cap them to the same box so every logo reads at a similar
   visual scale regardless of source file. */
.partner-logo-box img {
  max-width: 75%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* HIDDEN UNTIL CONTENT READY — no real testimonials yet. Remove the
   display:none line below to bring this back. Partner logos above are
   unaffected — only this quotes sub-section is hidden. */
.testimonials-area {
  display: none; /* hidden until content ready */
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.testimonials-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-bottom: 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.testimonial-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 32px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-empty {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-lo);
  opacity: 0.4;
}

/* ---------- About ---------- */

.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas:
    "heading image"
    "body    image";
  column-gap: 80px;
  row-gap: 24px;
  align-items: start;
}

.about-heading-group {
  grid-area: heading;
}

.about-body {
  grid-area: body;
}

.about-image {
  grid-area: image;
}

.about-para {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-details {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
}

.about-detail-row dt {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-lo);
}

.about-detail-row dd {
  font-size: 15px;
  color: var(--text);
}

.about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,26,0.1) 0%, rgba(8,13,26,0.45) 100%);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.88);
}

/* ---------- Contact ---------- */

.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-lo);
}

.contact-value {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: var(--silver-hi);
}

/* Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-lo);
}

.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--silver-lo);
  opacity: 0.6;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--silver);
  background: var(--bg-lift);
}

.contact-file-note {
  font-size: 13px;
  color: var(--silver-lo);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.form-success,
.form-error {
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.form-success {
  background: rgba(200,205,214,0.08);
  border: 1px solid var(--border-hi);
  color: var(--silver-hi);
}

.form-error {
  background: rgba(180,60,60,0.1);
  border: 1px solid rgba(180,60,60,0.35);
  color: #e8a0a0;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--silver);
  border: none;
  padding: 16px 36px;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.form-submit:hover:not(:disabled) {
  background: var(--silver-hi);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 24px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-lo);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--silver-hi);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-line {
  font-size: 13px;
  color: var(--silver-lo);
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--silver-lo);
}

.footer-contact a {
  color: var(--silver-lo);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--silver-hi);
}

/* Responsive: tablet 2-col, mobile 1-col */
@media (max-width: 900px) {
  .cs-card--feature {
    flex-direction: column;
  }

  .cs-card--feature .cs-img-wrap {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .cs-card--feature .cs-body {
    border-left: none;
    border-top: 1px solid var(--border);
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "body";
    gap: 24px;
  }

  .about-image {
    aspect-ratio: 16 / 9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  /* ---- Mobile nav ---- */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    /* Hidden off-screen by default; slides in when .open is toggled */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8,13,26,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 16px 0 24px;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 28px;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Request a Quote pill loses its border box on mobile — treated same as other links */
  .nav-cta {
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    color: var(--silver);
  }

  .nav-cta:hover {
    background: none;
    color: var(--silver-hi);
  }

  /* ---- Service rows (mobile only): name + a compact "click to expand" cue ---- */
  .service-row-header {
    padding: 20px 4px;
    gap: 12px;
  }

  .service-row-name {
    font-size: 19px;
  }

  .service-row-meta {
    gap: 10px;
  }

  .service-row-cue {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .service-row-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .service-row-preview {
    display: none; /* no hover on touch — tap goes straight to the full panel */
  }

  .service-panel-inner {
    padding: 0 4px 36px;
  }

  .service-panel-summary,
  .service-panel-bullets,
  .service-gallery {
    max-width: none;
  }

  .service-panel-summary {
    font-size: 17px;
  }

  .service-panel-bullets li {
    font-size: 17px;
  }

  .section-inner {
    padding: 0 20px;
  }

  .services,
  .case-studies,
  .partners,
  .about,
  .contact {
    padding: 80px 0;
  }

  /* Partners row only needs to be recognizable, not a full section — keep
     it compact so it doesn't read as a half-empty block on a phone. */
  .partners {
    padding: 28px 0 20px;
  }

  .partners .section-eyebrow {
    margin-bottom: 6px;
  }

  .partners .section-heading {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .partners .section-intro {
    display: none;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-card--feature .cs-img-wrap {
    aspect-ratio: 16 / 9;
  }

  /* Compact 2-col grid — all 5 logos visible at once, no scrolling. The
     5th logo spans both columns and centers itself so the odd row reads
     as intentional rather than a missing 6th logo. */
  .partners-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    gap: 6px 16px;
  }

  .partner-logo-box {
    width: 100%;
    max-width: 84px;
    aspect-ratio: 3 / 2;
  }

  .partner-logo-box:nth-child(5) {
    grid-column: 1 / -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== smaller mobile ===== */
@media (max-width: 400px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 0 20px;
  }
}
