/* ==========================================================================
   BrB Restrooms — Design Tokens
   Blue-and-white palette matched to the brand logo, with a deep navy
   for dark sections. Display serif for the plaque feel of fixture
   engraving, clean sans for everything you actually read.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #0B1E3D;
  --porcelain: #FFFFFF;
  --porcelain-dim: #EEF3FC;
  --brass: #1447E6;
  --brass-light: #4C7CFF;
  --tile: #10275C;
  --tile-light: #1B3B82;
  --slate: #55607A;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'IBM Plex Mono', monospace;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Plaque label — the recurring signature ----------
   Every section is introduced the way a fixture is labelled on a
   door or a valve: a small brass-bordered plate, letter-spaced,
   uppercase. It's signage vocabulary, not decoration. */
.plaque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 5px 12px;
  border-radius: var(--radius);
}

.plaque::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(11, 30, 61, 0.1);
}

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

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.brand .logo-img {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}
footer.site .brand .logo-img {
  height: 84px;
}

.navlinks {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.navlinks a {
  text-decoration: none;
  color: var(--slate);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.navlinks a:hover, .navlinks a.active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav-cta {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--tile);
  color: var(--porcelain);
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: background .15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid rgba(28,35,33,0.08);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  margin: 20px 0 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--tile);
}
.hero p.lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 46ch;
  margin-bottom: 32px;
}

.button-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--tile-light); color: #FFFFFF; }
.btn-primary:hover { background: var(--tile); }
.btn-secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover { background: var(--ink); color: var(--porcelain); }

/* Door-plaque graphic used in hero / as decorative anchor */
.plate {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--tile);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plate::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246,243,236,0.35);
}
.plate .plate-mark {
  font-family: var(--font-display);
  font-size: 15vw;
  color: rgba(246,243,236,0.9);
}
.plate .plate-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,243,236,0.75);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 16px 0 12px;
}
.section-head p {
  color: var(--slate);
  font-size: 17px;
}

.alt-bg { background: var(--porcelain-dim); }
.dark-bg { background: var(--ink); color: var(--porcelain); }
.dark-bg .plaque { color: var(--brass-light, var(--brass)); border-color: var(--brass-light, var(--brass)); }
.dark-bg .section-head p { color: rgba(246,243,236,0.7); }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--porcelain);
  border: 1px solid rgba(28,35,33,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.dark-bg .card {
  background: rgba(246,243,236,0.05);
  border-color: rgba(246,243,236,0.15);
}

.card .num {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 12px 0 10px;
}
.card p { color: var(--slate); font-size: 15px; margin: 0; }
.dark-bg .card p { color: rgba(246,243,236,0.65); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--tile-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246,243,236,0.6);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.gallery-item:nth-child(3n+2) { background: var(--brass); color: var(--ink); }
.gallery-item:nth-child(3n) { background: var(--ink); color: rgba(246,243,236,0.7); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat { text-align: center; }
.stat .value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--brass);
}
.stat .label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}

/* ---------- Form ---------- */
form.quote {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(28,35,33,0.25);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 110px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(28,35,33,0.12);
  padding: 24px 0;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 10px;
}
.faq-item p { color: var(--slate); margin: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(246,243,236,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site .brand { color: var(--porcelain); }
footer.site h4 {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 16px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 10px; }
footer.site a { text-decoration: none; color: inherit; }
footer.site a:hover { color: var(--porcelain); }
.footer-bottom {
  border-top: 1px solid rgba(246,243,236,0.15);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navlinks { display: none; }
}
