/* Shared navigation and responsive safeguards for every page. */
html {
  overflow-x: clip;
}

body {
  min-width: 0;
  overflow-x: clip;
}

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

input,
select,
textarea,
button {
  max-width: 100%;
}

.container,
main,
main > *,
.site-header,
.site-header * {
  min-width: 0;
}

/* The home-page navbar is the single visual/navigation pattern site-wide. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 246, 235, .96);
  border-bottom: 1px solid rgba(151, 0, 46, .12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header .nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.site-header .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.site-header .brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header .brand strong {
  display: block;
  color: var(--wine, #97002e);
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.site-header .brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #6f675f);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header #mainNav {
  display: block;
  min-width: 0;
}

.site-header #mainNav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  white-space: nowrap;
}

.site-header .menu-toggle {
  display: none;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid rgba(216, 179, 95, .55);
  border-radius: 12px;
  background: var(--paper, #fffdf7);
  color: var(--wine, #97002e);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-header .nav-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header .nav-cta {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-header .nav {
    min-height: 74px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-header #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1001;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 10px 18px 16px;
    border: 1px solid rgba(216, 179, 95, .42);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: var(--paper, #fffdf7);
    box-shadow: 0 24px 60px rgba(24, 20, 16, .16);
  }

  .site-header #mainNav.open {
    display: block;
  }

  .site-header #mainNav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 15px;
    white-space: normal;
  }

  .site-header #mainNav a {
    display: block;
    min-height: 44px;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(216, 179, 95, .22);
  }

  .site-header #mainNav li:last-child a {
    border-bottom: 0;
  }

  /* Some older page styles target every nav element on mobile. */
  main nav:not(#mainNav),
  footer nav:not(#mainNav),
  .rt-breadcrumb {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-inner,
  .hero-content,
  .contact-layout,
  .proof-layout,
  .area-grid,
  .intro-grid,
  .overview-grid,
  .timeline-wrap,
  .quality-grid,
  .spec-grid,
  .process-grid,
  .final-grid,
  .about-grid,
  .conversion-grid,
  .faq-grid,
  .detail-row,
  .rt-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar .container {
    justify-content: center;
    gap: 4px;
    padding-block: 7px;
    text-align: center;
  }

  .topbar .container > span {
    width: 100%;
  }

  .site-header .nav {
    min-height: 68px;
    gap: 10px;
  }

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .site-header .brand strong {
    font-size: 19px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header #mainNav {
    max-height: calc(100vh - 68px);
  }

  h1,
  h2,
  h3,
  p,
  a,
  span,
  li {
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .trust-grid,
  .strip-grid,
  .stats-grid,
  .services-grid,
  .service-grid,
  .materials-grid,
  .material-grid,
  .gallery-grid,
  .feature-grid,
  .featured-grid,
  .project-grid,
  .room-grid,
  .ready-grid,
  .why-grid,
  .why-list,
  .proof-grid,
  .visit-grid,
  .signal-grid,
  .palette-grid,
  .contact-grid,
  .contact-box,
  .contact-strip,
  .footer-grid,
  .rt-district-cards,
  .rt-location-links,
  .rt-location-links-large,
  .rt-service-grid,
  .rt-process-grid,
  .rt-preview-districts,
  .rt-full-location-links,
  .rt-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits,
  .capabilities,
  .principles,
  .tick-list,
  .mini-grid,
  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .timeline-item,
  .step,
  .process-step,
  .check-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .site-header .brand strong {
    font-size: 17px;
  }

  .site-header .menu-toggle {
    min-width: 44px;
    padding-inline: 9px;
    font-size: 13px;
  }
}


.hero h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 4vw, 40px); }