/* ============================================
   SAN DIEGO GLASS WALLS — DESIGN SYSTEM
   Color: charcoal ink / glass white / tempered teal / frame silver / sand
   Type: Archivo (display, condensed structural feel) + Inter (body) + IBM Plex Mono (specs/labels)
   Signature: frosted "glass panel" surfaces + mullion-style dividers
   ============================================ */

:root {
  /* Color tokens */
  --ink: #11161C;
  --ink-soft: #1B232C;
  --glass: #F7F8F6;
  --glass-dim: #ECEEEA;
  --teal: #2D6E7E;
  --teal-bright: #3D8CA0;
  --silver: #C7CDD1;
  --sand: #E8E2D3;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --max-width: 1280px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--glass);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

p { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Mullion dividers (signature structural device) ---------- */

.mullion-top {
  border-top: 1px solid var(--silver);
}

.mullion-divider {
  width: 100%;
  height: 1px;
  background: var(--silver);
  border: none;
  margin: 0;
}

.mullion-grid {
  position: relative;
}
.mullion-grid::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: var(--silver);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after { width: 100%; }

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

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.3rem 0;
}

.dropdown-trigger .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-trigger .caret,
.nav-item-dropdown:focus-within .dropdown-trigger .caret {
  transform: rotate(225deg) translateY(2px);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--silver);
  min-width: 260px;
  padding: 0.5rem;
  padding-top: calc(0.5rem + 10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 50;
}

/* Invisible bridge covers the gap between trigger and panel
   so the mouse can move diagonally without closing the dropdown */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  display: block;
}

.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
}

.dropdown-panel a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.dropdown-panel a:not(.btn)::after { display: none; }

.dropdown-panel a:hover { background: var(--glass-dim); }

.dropdown-panel a .dd-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.dropdown-panel a .dd-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--glass);
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--glass); }

.btn-light {
  border: 1px solid rgba(247,248,246,0.4);
  color: var(--glass);
}
.btn-light:hover { background: var(--glass); color: var(--ink); }

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

.hero {
  position: relative;
  background: var(--ink);
  color: var(--glass);
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-3);
}
.hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--teal-bright);
}

.hero h1 { color: var(--glass); margin-bottom: var(--space-3); }
.hero h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero p {
  color: var(--silver);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: var(--space-4);
}

.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-visual-panel {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  background: rgba(17, 22, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(247,248,246,0.18);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.hero-visual-stat .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-visual-stat .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Ambient glass-pane backdrop shapes */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(61, 140, 160, 0.25);
  border-radius: var(--radius);
}
.hero::before {
  width: 420px; height: 420px;
  top: -120px; right: -100px;
  transform: rotate(8deg);
}
.hero::after {
  width: 260px; height: 600px;
  bottom: -300px; right: 18%;
  transform: rotate(-6deg);
}

/* ---------- Section base ---------- */

section { padding: var(--space-6) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.section-head h2 { max-width: 600px; }

/* ---------- What we do / intro ---------- */

.intro-section { background: var(--glass); }

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.intro-lead p { font-size: 1.2rem; color: var(--ink); }

/* ---------- Type grid (glass wall types) ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--silver);
  border: 1px solid var(--silver);
}

.type-card {
  background: var(--glass);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.type-card-img {
  height: 220px;
  overflow: hidden;
}

.type-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.type-card:hover .type-card-img img { transform: scale(1.03); }

.type-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.type-card:hover { background: var(--white); }

.type-card .index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
}

.type-card h3 { margin-top: var(--space-1); }

.type-card .more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  padding-top: var(--space-2);
}

.type-card .more svg { transition: transform 0.2s ease; }
.type-card:hover .more svg { transform: translateX(4px); }

/* ---------- Use case strip ---------- */

.usecase-section { background: var(--ink); color: var(--glass); }
.usecase-section .eyebrow { color: var(--teal-bright); }
.usecase-section .eyebrow::before { background: var(--teal-bright); }
.usecase-section h2 { color: var(--glass); }

.usecase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.usecase-item {
  border-top: 1px solid rgba(247,248,246,0.2);
  padding-top: var(--space-3);
}

.usecase-item .spec-label { color: var(--silver); }
.usecase-item h4 { color: var(--glass); margin: var(--space-1) 0; font-size: 1.15rem; }
.usecase-item p { color: var(--silver); font-size: 0.95rem; }

/* ---------- Manufacturer strip ---------- */

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

.manufacturer-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.manufacturer-card {
  background: var(--white);
  border: 1px solid var(--silver);
  padding: var(--space-3);
}

.manufacturer-card .spec-label { color: var(--teal); margin-bottom: var(--space-1); display: block; }
.manufacturer-card h4 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.manufacturer-card p { font-size: 0.92rem; }

/* ---------- Quote / pull section ---------- */

.pull-section {
  background: var(--glass);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 880px;
  color: var(--ink);
}

.pull-quote .accent { color: var(--teal); }

.pull-attribution {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-section { background: var(--white); }

.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid var(--silver);
  padding: var(--space-3) 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.2s ease;
  margin-left: var(--space-2);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin-top: var(--space-2); font-size: 1rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--teal);
  color: var(--glass);
}

.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cta-band h2 { color: var(--white); max-width: 560px; }
.cta-band p { color: rgba(247,248,246,0.85); }

.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); }

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

.site-footer {
  background: var(--ink);
  color: var(--silver);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--glass);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-grid p { color: var(--silver); font-size: 0.92rem; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: var(--space-2);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--silver); }
.footer-col a:hover { color: var(--glass); }

.footer-bottom {
  border-top: 1px solid rgba(247,248,246,0.15);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
}

/* ---------- Service page specific ---------- */

.page-hero {
  background: var(--ink);
  color: var(--glass);
  padding: var(--space-5) 0 var(--space-4);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
  margin-bottom: var(--space-3);
  display: flex;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--silver); }
.breadcrumb a:hover { color: var(--glass); }

.page-hero h1 { color: var(--glass); max-width: 760px; }
.page-hero .lede { color: var(--silver); font-size: 1.15rem; max-width: 640px; margin-top: var(--space-2); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}

.page-hero-visual {
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(247,248,246,0.15);
}
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
}

.prose h2 { margin: var(--space-4) 0 var(--space-2); font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: none; margin-bottom: var(--space-2); color: var(--ink-soft); }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--silver);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  position: sticky;
  top: 100px;
}

.sidebar-card h4 { margin-bottom: var(--space-2); }

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--glass-dim);
  font-size: 0.92rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--ink-soft); }
.spec-row span:last-child { font-family: var(--font-mono); font-size: 0.85rem; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0 var(--space-4);
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--silver);
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.alt-callout {
  background: var(--sand);
  border-left: 3px solid var(--teal);
  padding: var(--space-3);
  margin: var(--space-4) 0;
}
.alt-callout h4 { margin-bottom: var(--space-1); font-size: 1.05rem; }
.alt-callout p { margin: 0; }

/* ---------- Location page specific ---------- */

.location-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.location-stat {
  border-top: 1px solid var(--silver);
  padding-top: var(--space-2);
}
.location-stat .spec-label { color: var(--teal); }
.location-stat p { font-size: 0.95rem; margin-top: 0.3rem; }

.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-2);
}
.nearby-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--silver);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
}
.nearby-links a:hover { border-color: var(--teal); color: var(--teal); }

@media (max-width: 640px) {
  .location-stats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-visual { height: 220px; }
  .intro-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .usecase-strip { grid-template-columns: repeat(2, 1fr); }
  .manufacturer-strip { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .dropdown-panel { position: static; transform: none; opacity: 1; visibility: visible; display: none; border: none; padding: 0; margin-top: 0.5rem; }
  .nav-item-dropdown.open .dropdown-panel { display: flex; flex-direction: column; }
  .usecase-strip { grid-template-columns: 1fr; }
  .manufacturer-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-visual-panel { flex-direction: column; gap: var(--space-2); }
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--silver);
  display: flex;
  flex-direction: column;
}

.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.blog-card-body .spec-label { color: var(--teal); margin-bottom: 0.5rem; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.blog-card-body p { font-size: 0.92rem; flex: 1; }
.blog-card-body .more { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); }

.blog-post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: var(--space-2);
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Manufacturer cards with photos ---------- */

.manufacturer-card {
  background: var(--white);
  border: 1px solid var(--silver);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.manufacturer-card-img {
  height: 180px;
  overflow: hidden;
}

.manufacturer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.manufacturer-card:hover .manufacturer-card-img img { transform: scale(1.03); }

.manufacturer-card-body {
  padding: var(--space-3);
}

.manufacturer-card-body .spec-label { color: var(--teal); margin-bottom: var(--space-1); display: block; }
.manufacturer-card-body h4 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.manufacturer-card-body p { font-size: 0.92rem; }

/* ---------- Photo grid (inline on service pages) ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.photo-grid img, .photo-grid-2 img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.photo-grid img:hover, .photo-grid-2 img:hover { opacity: 0.88; }

/* ---------- Gallery page ---------- */

.gallery-masonry {
  columns: 3;
  column-gap: var(--space-2);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-2);
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(17,22,28,0.75));
  padding: var(--space-2) var(--space-2) var(--space-1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-caption { opacity: 1; }

.gallery-item-caption span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--silver);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery-masonry { columns: 1; }
  .photo-grid { grid-template-columns: 1fr; }
}
