/*
 * David's Custom Metalworks — demo site
 * Design: dark industrial / spec-sheet
 * Palette: near-black bg, off-white text, accent red (#d94f38) from the red rack photo
 * Type: Bebas Neue (display) + IBM Plex Mono (labels/specs) + IBM Plex Sans (body)
 * Layout: left-aligned hero split, gallery grid, plain contact column
 */

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #111214;
  --surface:   #1c1e22;
  --surface2:  #242629;
  --border:    #2e3138;
  --text:      #e8e8e6;
  --muted:     #7a7d84;
  --accent:    #d94f38;
  --accent-dim:#8c2e22;
  --mono:      'IBM Plex Mono', monospace;
  --sans:      'IBM Plex Sans', sans-serif;
  --display:   'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Utility ──────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.topbar-brand span {
  color: var(--accent);
}

.topbar-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.topbar-meta a:hover { color: var(--text); }

.topbar-phone {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2.5rem;
  border-right: 1px solid var(--border);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border: 1px solid var(--border);
  width: fit-content;
}

.hero-spec {
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--border);
}

.hero-spec:last-child { border-right: none; }

.hero-spec-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hero-spec-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
}

.hero-spec-value a:hover { color: var(--accent); }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.6s ease;
}

.hero-right:hover img { transform: scale(1.02); }

.hero-img-label {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,232,230,0.7);
  background: rgba(17,18,20,0.7);
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(232,232,230,0.15);
}

/* ── Section chrome ───────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* ── Gallery ──────────────────────────────────────────────────────── */
.gallery-section {
  padding: 4rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

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

.gallery-item {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.gallery-item:hover img {
  filter: brightness(1) contrast(1.05);
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(transparent, rgba(17,18,20,0.88));
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,232,230,0.75);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Services strip ───────────────────────────────────────────────── */
.services-section {
  padding: 4rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.service-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.service-item:last-child { border-right: none; }

.service-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.service-name {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── About strip ──────────────────────────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.about-left {
  padding: 4rem 2.5rem;
  border-right: 1px solid var(--border);
}

.about-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
}

.about-body strong {
  color: var(--text);
  font-weight: 500;
}

.about-quote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.65;
}

.about-right {
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-stat-num {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}

.about-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.contact-left {
  padding: 4rem 2.5rem;
  border-right: 1px solid var(--border);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 6rem;
}

.contact-row-value {
  font-size: 0.9rem;
  color: var(--text);
}

.contact-row-value a:hover { color: var(--accent); }

.contact-right {
  padding: 0;
  overflow: hidden;
}

.contact-right iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  filter: grayscale(1) invert(0.88) contrast(0.9);
  display: block;
}

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right {
    height: 55vw;
    min-height: 260px;
    border-right: none;
  }
  .hero-left {
    border-right: none;
    padding: 3rem 1.5rem 2rem;
  }
  .hero-specs {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-spec { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-spec:last-child { border-bottom: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.featured {
    grid-column: span 2;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
  .service-item:last-child { border-bottom: none; }

  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .about-left,
  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.5rem;
  }
  .about-right { padding: 2rem 1.5rem; }
  .contact-right iframe { min-height: 280px; }

  .gallery-section,
  .services-section {
    padding: 3rem 1.5rem;
  }

  .topbar-meta { display: none; }
  .topbar { padding: 0.75rem 1.5rem; }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }
  .footer-meta { text-align: center; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; aspect-ratio: 4/3; }
  .hero-headline { font-size: 3rem; }
}
