/* =========================================================
   RESPONSIVE — mobile-first (phones first, then up)
   No horizontal overflow. Touch-friendly. Intentional layouts.
   ========================================================= */

/* ---- Global mobile safety ---- */
html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.wrap,
.nav-inner,
.top-rail-inner,
.hero-media-content {
  max-width: 100%;
  min-width: 0;
}

.wrap {
  width: min(100% - 1.25rem, var(--max));
}

/* ---- Top rail ---- */
.top-rail {
  padding: 0.5rem 0;
}

.top-rail-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: min(100% - 1rem, var(--max));
}

.top-rail-left {
  gap: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  min-width: 0;
  flex: 1 1 auto;
}

.top-rail-msg {
  min-width: 0;
}

.top-rail-extra {
  display: none;
}

.top-rail a {
  font-size: 0.62rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.call-full {
  display: none;
}

.call-short {
  display: inline;
}

/* ---- Navigation ---- */
.site-nav {
  height: 60px;
}

.nav-inner {
  width: min(100% - 1rem, var(--max));
  gap: 0.5rem;
}

.logo {
  max-width: min(55vw, 150px);
}

.logo img {
  height: 32px;
}

.nav-actions .btn {
  display: none;
}

.burger {
  width: 42px;
  height: 42px;
  gap: 5px;
}

.burger span {
  width: 20px;
}

.drawer {
  top: 0;
  padding: 5rem 1.15rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer a {
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  padding-bottom: 0.6rem;
  line-height: 1.1;
}

/* ---- Buttons & type ---- */
.btn {
  padding: 0.85rem 1.1rem;
  font-size: 0.68rem;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
}

.btn-row .btn {
  flex: none;
  width: 100%;
  min-width: 0;
  text-align: center;
  justify-content: center;
}

.headline {
  font-size: clamp(1.85rem, 9vw, 3.2rem);
  max-width: 100%;
  overflow-wrap: break-word;
}

.lede {
  font-size: 0.95rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.section {
  padding: clamp(2.75rem, 10vw, 4.5rem) 0;
  overflow-x: clip;
}

.page-banner {
  padding: 2.5rem 0 1.5rem;
}

.page-banner h1 {
  font-size: clamp(2rem, 11vw, 3.8rem);
  max-width: 100%;
  overflow-wrap: break-word;
}

.kicker {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

/* ---- Hero (critical) ---- */
.hero-media {
  min-height: auto;
  overflow: hidden;
}

.hero-media-content {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  padding: 1.75rem 0 2rem;
  gap: 1.35rem;
  align-content: start;
  width: min(100% - 1.25rem, var(--max));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.hero-media .kicker {
  margin-bottom: 0.75rem;
}

.hero-media h1 {
  font-size: clamp(2.35rem, 11.5vw, 3.4rem);
  max-width: 100%;
  width: 100%;
  line-height: 0.92;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero-media .lede {
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 100%;
}

.hero-media .btn-row {
  width: 100%;
}

.hero-float-card {
  max-width: 100%;
  width: 100%;
  padding: 1rem;
  justify-self: stretch;
}

.hero-float-card img {
  height: 130px;
}

.hero-float-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---- About collage ---- */
.about-stage {
  gap: 1.5rem;
  min-width: 0;
}

.about-collage {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px 120px;
  min-height: 0;
  gap: 0.5rem;
  width: 100%;
}

.about-collage figure:first-child {
  grid-row: 1 / 3;
}

.about-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  min-width: 0;
}

.about-metrics {
  gap: 0.5rem;
}

.metric {
  padding: 0.85rem;
  min-width: 0;
}

.metric b {
  font-size: clamp(1.35rem, 7vw, 1.85rem);
}

/* ---- Products / cards ---- */
.home-products,
.product-grid-cards {
  gap: 1rem;
}

.prod-card {
  min-width: 0;
}

.prod-card-body {
  padding: 1rem;
}

.prod-actions {
  flex-direction: column;
  align-items: stretch;
}

.prod-actions .btn {
  width: 100%;
  justify-content: center;
}

.search-bar {
  flex-direction: column;
}

.search-bar input {
  width: 100%;
  font-size: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  max-width: 100%;
}

.filter-row .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  font-size: 0.65rem;
}

.band-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.band-title .btn-row {
  width: 100%;
}

/* ---- Services ---- */
.service-item {
  grid-template-columns: 2.5rem 1fr;
  gap: 0.7rem;
  padding-block: 1.1rem;
  min-width: 0;
}

.service-item strong {
  font-size: clamp(1.05rem, 5vw, 1.4rem);
}

.service-item:hover {
  padding-left: 0.25rem;
}

/* ---- Reviews ---- */
.rating-score {
  font-size: clamp(3rem, 18vw, 5rem);
}

.rating-hero {
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.review-card {
  padding: 1.15rem 1rem;
  min-width: 0;
}

.review-card blockquote {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  overflow-wrap: break-word;
}

/* ---- Contact ---- */
.contact-layout {
  gap: 1.35rem;
  min-width: 0;
}

.contact-map,
.contact-map img {
  min-height: 200px;
  max-width: 100%;
}

.contact-end-card {
  padding: 0.95rem 1rem;
  min-width: 0;
}

.contact-end-card p,
.contact-end-card a {
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.social-row {
  flex-wrap: wrap;
}

.social-icon {
  width: 46px;
  height: 46px;
}

/* ---- WA float ---- */
.wa-float {
  right: 0.75rem;
  width: 52px;
  height: 52px;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.sticky-enquire {
  position: sticky;
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
}

.sticky-enquire .btn-row {
  width: 100%;
}

body:has(.sticky-enquire) .wa-float {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* ---- Footer ---- */
.foot-grid {
  gap: 1.5rem;
  padding: 2.5rem 0 1.75rem;
  min-width: 0;
}

.foot-mega {
  font-size: clamp(2rem, 11vw, 3.2rem);
  max-width: 100%;
}

.foot-col {
  min-width: 0;
}

.foot-bar {
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.78rem;
}

/* ---- Gallery ---- */
.gallery-board {
  columns: 1;
  column-gap: 0.75rem;
}

.gallery-board figure {
  margin-bottom: 0.75rem;
  max-width: 100%;
}

/* ---- Logo marquee ---- */
.logo-marquee {
  padding: 0.9rem 0;
  max-width: 100%;
}

.logo-marquee-track {
  gap: 2rem;
}

.logo-marquee-track img {
  height: 32px;
  max-width: 100px;
}

/* ---- SEO areas ---- */
.seo-area-list {
  gap: 0.5rem;
}

.seo-area-list li {
  font-size: 0.7rem;
  padding: 0.45rem 0.7rem;
}

/* =========================================================
   TABLET (640px+)
   ========================================================= */
@media (min-width: 640px) {
  .wrap {
    width: min(100% - 2rem, var(--max));
  }

  .top-rail-extra {
    display: inline;
  }

  .top-rail-left {
    font-size: 0.66rem;
  }

  .call-full {
    display: inline;
  }

  .call-short {
    display: none;
  }

  .top-rail a {
    font-size: 0.66rem;
  }

  .nav-actions .btn {
    display: inline-flex;
    padding: 0.65rem 0.9rem;
    font-size: 0.65rem;
  }

  .logo {
    max-width: 180px;
  }

  .logo img {
    height: 36px;
  }

  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .btn-row .btn {
    width: auto;
    flex: 0 1 auto;
  }

  .hero-media .btn-row {
    flex-direction: row;
    width: auto;
    max-width: 100%;
  }

  .hero-media .btn-row .btn {
    width: auto;
  }

  .hero-media h1 {
    font-size: clamp(3rem, 9vw, 4.5rem);
  }

  .hero-media-content {
    width: min(100% - 2rem, var(--max));
    padding: 2.5rem 0 3rem;
  }

  .about-collage {
    grid-template-rows: 200px 150px;
  }

  .prod-actions {
    flex-direction: row;
    align-items: center;
  }

  .prod-actions .btn {
    width: auto;
  }

  .filter-row {
    flex-wrap: wrap;
    overflow: visible;
  }

  .gallery-board {
    columns: 2;
  }

  .hero-float-card img {
    height: 150px;
  }

  .sticky-enquire {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  body:has(.sticky-enquire) .wa-float {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   LARGE TABLET / SMALL DESKTOP (800px+)
   ========================================================= */
@media (min-width: 800px) {
  .site-nav {
    height: var(--nav-h);
  }

  .logo img {
    height: 40px;
  }

  .nav-links {
    display: flex;
  }

  .burger {
    display: none;
  }

  .drawer {
    display: none !important;
  }

  .top-rail-left {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .service-slab {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .foot-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-media h1 {
    font-size: clamp(3.6rem, 8vw, 6.5rem);
  }
}

/* =========================================================
   DESKTOP (960px+)
   ========================================================= */
@media (min-width: 960px) {
  .wrap {
    width: min(100% - 2.5rem, var(--max));
  }

  .hero-media-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    min-height: calc(100svh - var(--nav-h) - 42px);
  }

  .hero-float-card {
    max-width: 340px;
    justify-self: end;
  }

  .hero-float-card .btn {
    width: auto;
  }

  .about-stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .about-collage {
    min-height: 420px;
    grid-template-rows: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .gallery-board {
    columns: 3;
  }

  .band-title {
    flex-direction: row;
    align-items: end;
  }

  .band-title .btn-row {
    width: auto;
  }
}

/* =========================================================
   Very small phones (≤380px)
   ========================================================= */
@media (max-width: 380px) {
  .hero-media h1 {
    font-size: 2.15rem;
  }

  .page-banner h1 {
    font-size: 1.9rem;
  }

  .logo {
    max-width: min(52vw, 130px);
  }

  .logo img {
    height: 28px;
  }

  .about-collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .about-collage figure:first-child {
    grid-row: auto;
    min-height: 200px;
  }

  .about-collage figure {
    min-height: 150px;
  }

  .top-rail-inner {
    gap: 0.4rem;
  }
}

/* Touch: larger tap targets, less hover-only dependency */
@media (hover: none) {
  .prod-card:hover,
  .catalogue-card:hover,
  .review-card:hover,
  .metric:hover,
  .contact-map:hover,
  .contact-info-stack .contact-end-card:hover,
  .hero-float-card:hover {
    transform: none;
  }

  .prod-card:active,
  .catalogue-card:active,
  .review-card:active {
    transform: scale(0.99);
  }
}
