/* ZDX Industries — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --navy: #0f1f38;
  --navy-mid: #1b2f4f;
  --gold: #c9a84c;
  --gold-light: #e0bc6a;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --text: #1a1a2e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}
.top-bar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.top-bar a:hover { color: var(--gold); }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.logo img { height: 84px; width: auto; padding: 8px 0; }

nav { display: flex; align-items: center; gap: 36px; }
nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--gold); }
nav a.active::after { width: 100%; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38);
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,31,56,0.7) 40%, transparent);
}
.hero-content {
  position: relative;
  padding: 0 80px;
  max-width: 780px;
  animation: fadeUp 1s ease 0.3s both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── STATS ── */
.stats {
  background: var(--navy);
  padding: 56px 80px;
  display: flex;
  justify-content: center;
  gap: 0;
}
.stat {
  text-align: center;
  padding: 24px 48px;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-width: 220px;
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── SECTION BASICS ── */
.section { padding: 96px 80px; }
.section-sm { padding: 64px 80px; }
.section-dark { background: var(--navy); color: var(--white); }
.section-off { background: var(--off-white); }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 20px;
}
.section-dark .section-title { color: var(--white); }
.section-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  max-width: 640px;
}
.section-dark .section-body { color: rgba(255,255,255,0.7); }

/* ── SPLIT SECTION ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-img { width: 100%; height: 480px; object-fit: cover; }
.split.reverse .split-img { order: -1; }

/* ── PHOTO BREAK ── */
.photo-break {
  height: 420px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
}
.photo-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,31,56,0.82) 35%, rgba(15,31,56,0.3));
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.photo-break-text { max-width: 540px; }
.photo-break-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.photo-break-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── SERVICES GRID ── */
.services-header-wrap { background: var(--off-white); padding: 80px 80px 0; }
.services-grid-wrap { margin: 0 80px; padding-bottom: 80px; background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--light-gray);
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: all 0.3s;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  flex: 0 0 calc(25% - 2px);
  min-width: 220px;
}
.service-card:hover {
  background: var(--navy);
  border-bottom-color: var(--gold);
  transform: translateY(-2px);
}
.service-card:hover .service-title { color: var(--white); }
.service-card:hover .service-desc { color: rgba(255,255,255,0.7); }
.service-card:hover .service-icon { color: var(--gold); }
.service-icon {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
  transition: color 0.3s;
}
.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.service-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray);
  transition: color 0.3s;
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: var(--navy-mid);
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  opacity: 0.85;
}
.project-card:hover img { transform: scale(1.06); opacity: 0.6; }
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(15,31,56,0.95) 60%, transparent);
  transform: translateY(8px);
  transition: transform 0.3s;
}
.project-card:hover .project-info { transform: translateY(0); }
.project-city {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s 0.05s;
}
.project-card:hover .project-desc { opacity: 1; transform: translateY(0); }

/* ── WHY ZDX ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.why-item { text-align: center; }
.why-icon {
  width: 64px; height: 64px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold);
}
.why-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 40px;
  border-left: 4px solid var(--gold);
}
.testimonial-headline { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.2; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--gray); margin-bottom: 24px; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; }
.google-verify {
  text-align: center;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.google-verify a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--light-gray);
  padding: 10px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.google-verify a:hover {
  border-color: #4285F4;
  box-shadow: 0 2px 8px rgba(66,133,244,0.15);
}
.google-verify a svg { flex-shrink: 0; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light-gray);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-block { padding: 48px; background: var(--navy); color: var(--white); }
.contact-info-block h3 { font-size: 1.8rem; color: var(--white); margin-bottom: 32px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-detail-icon { color: var(--gold); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-detail-text { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.contact-detail-text strong { color: var(--white); display: block; margin-bottom: 2px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── PAGE HERO ── */
.page-hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 80px 56px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,31,56,0.9) 40%, rgba(15,31,56,0.4));
}
.page-hero-content { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); }
.page-hero .breadcrumb { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ── FOOTER ── */
footer {
  background: #080f1d;
  color: rgba(255,255,255,0.6);
  padding: 64px 80px 32px;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo img { height: 84px; margin-bottom: 20px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }
.license { color: var(--gold); font-weight: 600; }

/* ── MOBILE MENU ── */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: transparent; border: none; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: all 0.3s; display: block; }

/* ── PAGE-SPECIFIC ── */
.services-page-list { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.service-row:nth-child(even) .service-row-img { order: -1; }
.service-row-img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.service-row-content { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.service-row-content .section-label { margin-bottom: 8px; }
.service-row-content h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 16px; }
.service-row-content p { font-size: 1rem; line-height: 1.8; color: var(--gray); margin-bottom: 28px; }
.service-row:nth-child(even) { background: var(--off-white); }

/* NDC / Soft-Story pages */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 48px 0; }
.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--light-gray);
}
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  z-index: 1;
}
.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}
.step-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }

.faq { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-q {
  padding: 20px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 1.4rem; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 0 20px; font-size: 0.95rem; line-height: 1.7; color: var(--gray); }
.faq-a.open { display: block; }

.case-study {
  background: var(--navy);
  color: var(--white);
  padding: 56px;
  margin-top: 64px;
  border-left: 4px solid var(--gold);
}
.case-study h3 { font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.case-study .case-loc { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.case-study p { color: rgba(255,255,255,0.8); line-height: 1.8; }

/* Portfolio page */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 360px;
  background: var(--navy-mid);
  cursor: pointer;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: all 0.5s; }
.portfolio-card:hover img { transform: scale(1.06); opacity: 0.55; }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,31,56,0.95) 50%, rgba(15,31,56,0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.4s;
}
.portfolio-card:hover .portfolio-overlay { background: linear-gradient(to top, rgba(15,31,56,0.98) 60%, rgba(15,31,56,0.3)); }
.portfolio-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s;
  margin-top: 0;
}
.portfolio-card:hover .portfolio-card-desc { max-height: 100px; margin-top: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section, .section-sm { padding: 64px 40px; }
  .stats { padding: 40px; }
  .hero-content { padding: 0 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 20px; border-top: 1px solid var(--light-gray); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero-content { padding: 0 24px; }
  .photo-break-overlay { padding: 0 24px; }
  .section, .section-sm { padding: 48px 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-img { order: unset; }
  .split-img { height: 260px; }
  .projects-grid, .portfolio-grid, .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { padding: 0 24px 40px; height: 260px; }
  .photo-break { height: 320px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-content { padding: 40px 24px; }
  .service-row-img { height: 260px; min-height: unset; object-position: center center; }
  .service-row:nth-child(even) .service-row-img { order: unset; }
  .services-header-wrap { padding: 48px 24px 0; }
  .services-grid-wrap { margin: 0; padding: 0 24px 48px; }
  .process-steps { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .top-bar { padding: 8px 20px; font-size: 0.75rem; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .case-study { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════
   MOBILE FIXES — all inside media queries,
   zero impact on desktop layouts
   ═══════════════════════════════════════════════ */

/* ── Small tablet / large phone (max 640px) ── */
@media (max-width: 640px) {

  /* Stats: stack to 2 columns, remove overflow */
  .stat {
    min-width: 0;
    flex: 0 0 calc(50% - 2px);
    padding: 24px 16px;
  }
  .stat:nth-child(2) { border-right: none; }

  /* Service cards: full width on small phones */
  .service-card {
    flex: 0 0 100%;
  }

  /* NDC / soft-story gallery grids: 2 columns */
  .ndc-gallery,
  .ss-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Portfolio lightbox header: stack on small screens */
  .lb-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .lb-tabs { flex-wrap: wrap; }
  .lb-close { position: absolute; top: 12px; right: 12px; }

  /* Lightbox arrows: smaller, closer to edges */
  .lb-nav,
  .ndc-lb-arrow,
  .ss-lightbox [onclick^="ssNav"],
  .ss-lightbox [onclick^="fqNav"] {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
  }
  .lb-prev { left: 4px !important; }
  .lb-next { right: 4px !important; }
  .ndc-lb-prev { left: 4px !important; }
  .ndc-lb-next { right: 4px !important; }

  /* Lightbox image area: reduce side padding so image has more room */
  .lb-img-wrap,
  .ndc-lb-main,
  #ss-lightbox > div:nth-child(2) {
    padding: 12px 48px !important;
  }

  /* Lightbox footer: stack caption and counter */
  .lb-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 16px;
  }

  /* Portfolio grid: already 1 col at 580px, keep */

  /* Hero: less padding */
  .hero-content { padding: 0 20px !important; }

  /* Page hero title */
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

  /* Insights form: already stacks, just tighten */
  .insights-form input[type="email"],
  .insights-form button { font-size: 0.9rem; }

  /* Preview cards: full width */
  .preview-cards { grid-template-columns: 1fr !important; }

  /* Case study padding */
  .case-study { padding: 28px 20px; }

  /* Process steps already 1 col — ensure text doesn't overflow */
  .step { padding: 20px; }

  /* FAQ */
  .faq-q { font-size: 0.95rem; }

  /* Top bar: hide on very small if needed, or just tighten */
  .top-bar { font-size: 0.7rem; gap: 12px; }

  /* Footer logo size */
  .footer-logo img { height: 60px; }

  /* Section labels */
  .section-label { font-size: 0.7rem; }
}

/* ── Tiny phones (max 400px) ── */
@media (max-width: 400px) {

  /* Stats: full width stack */
  .stat {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stat:last-child { border-bottom: none; }

  /* NDC / soft-story gallery: single column */
  .ndc-gallery,
  .ss-gallery {
    grid-template-columns: 1fr !important;
  }

  /* Hero number */
  .stat-number { font-size: 2.4rem; }

  /* Insights title */
  .insights-title { font-size: clamp(3rem, 15vw, 4rem); }

  /* Buttons */
  .btn { padding: 12px 20px; font-size: 0.85rem; }

  /* Section padding */
  .section, .section-sm { padding: 40px 16px; }
}

/* ── Touch target improvements (all mobile) ── */
@media (max-width: 768px) {

  /* Nav links: bigger tap targets */
  nav a { padding: 12px 8px; font-size: 1rem; }

  /* Hamburger: easier to tap */
  .menu-toggle { padding: 8px; }

  /* Portfolio cards: always show overlay text on touch */
  .portfolio-card .portfolio-overlay { opacity: 1; }
  .portfolio-card img { filter: brightness(0.75); }

  /* Gallery items: bigger tap area */
  .ndc-gallery-item,
  .ss-gallery-item { min-height: 120px; }

  /* FAQ: bigger tap target */
  .faq-q { padding: 18px 20px; }

  /* Lightbox: swipe hint */
  .lb-img-wrap img,
  #ndc-lb-img,
  #ss-lb-img,
  #fq-lb-img { touch-action: pan-y; }

  /* Header logo: slightly smaller on mobile */
  .logo img { height: 64px; }

  /* Stat min-width: remove to prevent overflow */
  .stat { min-width: 0; }

  /* Service card: full width */
  .service-card { flex: 0 0 100%; }

  /* Insights preview cards */
  .preview-cards { grid-template-columns: 1fr; }

  /* Insights form max-width */
  .insights-form { max-width: 100%; }

  /* NDC/soft-story gallery: 2 columns at tablet */
  .ndc-gallery { grid-template-columns: repeat(2, 1fr) !important; }
  .ss-gallery  { grid-template-columns: repeat(2, 1fr) !important; }
}
