/* ATS Hammond authentic-photo polish. Mirrors the Allen's B&W treatment. */

/* ===== HERO COVER — real ATS storefront ===== */
#hero.hero-cover {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  padding: 0 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background: #0a0a0a;
}
.hero-cover-media,
.hero-cover-media img,
.hero-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-cover-media { z-index: -3; }
.hero-cover-media img { object-fit: cover; object-position: center; }
.hero-cover-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8,8,8,.62) 0%, rgba(8,8,8,.42) 40%, rgba(8,8,8,.78) 100%);
}
.hero-cover-inner {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 88px 0 74px;
  position: relative;
}
#hero.hero-cover .hero-badge {
  background: rgba(10,10,10,.55);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
#hero.hero-cover h1 {
  color: #fff;
  text-shadow: 0 3px 20px rgba(0,0,0,.55);
}
#hero.hero-cover h1 span { color: #d6d6d6; }
#hero.hero-cover p {
  color: #ececec;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
#hero.hero-cover .btn-primary {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
#hero.hero-cover .btn-primary:hover { background: #f0f0f0; color: #000; }
#hero.hero-cover .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(10,10,10,.28);
  backdrop-filter: blur(5px);
}
#hero.hero-cover .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.14); }
#hero.hero-cover .hero-stat .num { color: #ffffff; }
#hero.hero-cover .hero-stat .label { color: #dcdcdc; }

@media (max-width: 700px) {
  #hero.hero-cover { min-height: 780px; align-items: flex-end; }
  .hero-cover-media { height: 52%; }
  .hero-cover-media img { object-position: center top; }
  .hero-cover-shade {
    background:
      linear-gradient(0deg, #0a0a0a 0%, #0a0a0a 44%, rgba(10,10,10,.94) 54%, rgba(10,10,10,.32) 72%, rgba(10,10,10,.05) 100%);
  }
  .hero-cover-inner { padding: 320px 0 42px; text-align: center; }
  #hero.hero-cover h1 { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  #hero.hero-cover .hero-stats { gap: 22px; }
}

/* ===== ABOUT — replace navy icon panel with real storefront photo ===== */
.about-visual.about-visual-photo {
  padding: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.about-visual.about-visual-photo::before { display: none; }
.about-visual.about-visual-photo picture,
.about-visual.about-visual-photo img {
  width: 100%;
  height: 100%;
  display: block;
}
.about-visual.about-visual-photo img { object-fit: cover; object-position: center; }
.about-visual.about-visual-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 22px 20px 14px;
  text-transform: uppercase;
}
.about-visual.about-visual-photo { position: relative; }

/* ===== REAL WORK gallery ===== */
#shop-gallery {
  background: #ffffff;
  padding: 60px 20px 70px;
}
#shop-gallery .container { max-width: 1200px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 24px rgba(20,20,20,.12);
}
.gallery-grid picture,
.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
}
.gallery-grid img { object-fit: cover; object-position: center; }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

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

/* ===== MOBILE OVERFLOW GUARD (2026-08-22) ===== */
html, body { max-width: 100%; overflow-x: hidden; }
body { width: 100%; }
img, picture, video, iframe { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding-left: 16px; padding-right: 16px; }

/* Header top strip: allow wrap on narrow screens, no whitespace:nowrap ghosts */
.header-top {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding: 8px 14px;
}
.header-top-sep { color: rgba(255,255,255,.55); padding: 0 4px; }

@media (max-width: 500px) {
  .header-top { font-size: 0.78rem; padding: 8px 12px; }
  .header-top-sep { display: inline-block; }
}
@media (max-width: 380px) {
  .header-top-sep { display: none; }
  .header-top a { display: inline-block; }
}

/* About visual image must respect container on mobile */
.about-visual.about-visual-photo { max-width: 100%; width: 100%; }
.about-visual.about-visual-photo img { max-width: 100%; width: 100%; height: 100%; display: block; }

/* Belt-and-suspenders for any wide grids */
section, header, footer, nav { max-width: 100%; box-sizing: border-box; }

/* ===== Header mobile Book Appointment (always visible next to hamburger) ===== */
.nav-book-mobile {
  display: none;
  background: #c8102e;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font: 800 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(200,16,46,0.35);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav-book-mobile:hover { filter: brightness(1.08); }
@media (max-width: 900px) {
  .nav-book-mobile { display: inline-flex; align-items: center; gap: 7px; }
  /* Logo sized for visibility while leaving room for CTA + hamburger */
  header nav .logo img { height: 110px !important; max-width: 260px !important; }
}
@media (max-width: 480px) {
  .nav-book-mobile { padding: 10px 12px; font-size: 13px; }
  header nav .logo img { height: 96px !important; max-width: 220px !important; }
}
@media (max-width: 380px) {
  .nav-book-mobile { padding: 9px 10px; font-size: 12px; gap: 5px; }
  header nav .logo img { height: 78px !important; max-width: 180px !important; }
}
/* Desktop bump — header is 90px tall, keep logo inside */
@media (min-width: 901px) {
  header nav .logo img { height: 140px !important; max-width: 400px !important; }
}
