/* Shared styles for every page: colours, type, nav, buttons, footer. */

:root {
  --nav-h: 92px;
  --navy: #1C3553;
  --navy-deep: #142840;
  --red: #9B2C2C;
  --red-light: #B83535;
  --red-tint: rgba(155, 44, 44, 0.1);
  --red-dark: #7E2323;
  --navy-light: #26466C;
  --cream: #F6F3EE;
  --white: #FFFFFF;
  --offwhite: #F7F8FA;
  --gray-100: #EEF0F3;
  --gray-500: #4F5B6B;
  --gray-800: #2D3748;
  --gold: #FBBC05;
  --green: #2F8A57;
  --green-tint: #F1FAF4;
  /* Three corner sizes, plus the pill (buttons) and the circle */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --radius: var(--r-lg);
  --pill: 999px;
  /* One size for every page title (the home headline keeps its own) */
  --title-size: clamp(2.3rem, 4.6vw, 3.6rem);
  --shadow: 0 22px 50px rgba(28, 53, 83, 0.12);
  --display: 'Montserrat', sans-serif;
  --body: 'Be Vietnam Pro', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  -webkit-tap-highlight-color: rgba(155, 44, 44, 0.12);
  font-family: var(--body);
  color: var(--gray-800);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* On navy backgrounds the ring flips to white so it stays visible */
.hero :focus-visible,
.reviews :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Text for screen readers and search engines only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type helpers ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Page titles: one size and style, centred, on every page except the home headline */
main h1:not(.hero-title) {
  text-align: center;
  font-family: var(--display);
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
}

/* No single word left alone on the last line of a heading or button */
h1,
h2,
h3,
.btn {
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--pill);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 40, 64, 0.18);
}

/* Pressed: the button sinks back and darkens a little */
.btn:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: 0.05s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-light);
}

.btn-red:active {
  background: var(--red-dark);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-navy:active {
  background: var(--navy-deep);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover,
.btn-outline:active {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--cream);
}

.btn-light:active {
  background: var(--gray-100);
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 243, 238, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 53, 83, 0.1);
}

/* Everything in the top bar (logo, menu, buttons) scales together by --ns, set by screen width below */
.nav {
  --ns: 1.25;
  height: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 24px;
}

/* Logo far left, menu in the middle, Call and Book now on the right */
.nav > .nav-links {
  justify-self: center;
  gap: var(--nav-gap, 34px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: var(--display);
  font-size: var(--nav-font, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn {
  padding: calc(12px * var(--ns)) calc(20px * var(--ns));
  font-size: calc(0.9rem * var(--ns));
  white-space: nowrap;
}

.nav-actions .btn svg {
  width: calc(16px * var(--ns));
  height: calc(16px * var(--ns));
}

/* Logo images sit in <picture> for WebP; the wrapper must not affect layout */
.brand picture,
.footer-inner > picture {
  display: contents;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-wordmark {
  height: calc(44px * var(--ns, 1));
  width: auto;
}

.brand-plumbing {
  width: calc(104px * var(--ns, 1));
  height: auto;
  margin-top: 4px;
  align-self: flex-end;
  margin-right: 2px;
}

.brand-dog {
  height: calc(62px * var(--ns, 1));
  width: auto;
  margin-left: 0;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1259px) {
  :root {
    --nav-h: 76px;
  }

  .nav {
    grid-template-columns: auto 1fr;
    padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }

  .nav > .nav-links,
  .nav-actions {
    display: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-wordmark {
    height: 34px;
  }

  .brand-plumbing {
    width: 80px;
  }

  .brand-dog {
    height: 48px;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(360px, 86vw);
    overflow-y: auto;
    background: var(--cream);
    border-left: 1px solid rgba(28, 53, 83, 0.1);
    box-shadow: -24px 0 50px rgba(20, 40, 64, 0.18);
    padding: 16px 22px calc(28px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
  }

  .mobile-menu.open {
    transform: none;
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .menu-scrim {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 99;
    background: rgba(20, 40, 64, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .menu-scrim.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
  }

  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .mobile-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .mobile-menu .nav-links a {
    display: block;
    padding: 16px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(28, 53, 83, 0.08);
  }

  .mobile-menu .btn {
    width: 100%;
    margin-top: 12px;
  }

  .mobile-menu .nav-links + .btn {
    margin-top: 20px;
  }
}

/* While the phone menu or the photo viewer is open, the page behind stays put (every width) */
html.menu-lock,
html.menu-lock body {
  overflow: hidden;
}

html.menu-lock {
  scrollbar-gutter: stable;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--white);
  border-top: 1px solid rgba(28, 53, 83, 0.12);
  padding: 88px 32px 36px;
}

.footer-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-dog {
  position: absolute;
  bottom: calc(100% + 84px);
  right: clamp(0px, 4vw, 60px);
  width: clamp(92px, 9vw, 124px);
  height: auto;
  pointer-events: none;
  transform-origin: bottom center;
}

.footer-dog.in {
  animation: dogHop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes dogHop {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Like the original site: "Call Rowland's", the number, a line and both buttons on the left;
   the menu in two columns on the right, with the address, hours and directions under it */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "main nav" "main info";
  gap: 32px 64px;
  align-items: start;
}

.footer-main {
  grid-area: main;
}

.footer-phone {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.footer-nav {
  grid-area: nav;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: end;
  gap: 14px 64px;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-call {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

/* "Rowland's" in the real van lettering, in the logo red */
.footer-call .brand-script {
  display: inline-block;
  height: 1.3em;
  aspect-ratio: 900 / 266;
  margin-left: -0.08em;
  vertical-align: -0.34em;
  background: var(--red);
  -webkit-mask: url("images/wordmark-script.png") left center / contain no-repeat;
  mask: url("images/wordmark-script.png") left center / contain no-repeat;
}

.footer-call .tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0 18px 4px;
  border-radius: var(--r-sm);
  transform: rotate(-2deg);
}

.footer-sub {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer-info {
  grid-area: info;
  justify-self: end;
  text-align: right;
  font-style: normal;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 53, 83, 0.1);
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-footer {
    padding: 64px 18px 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "nav" "info";
  }

  .footer-nav {
    justify-content: start;
    gap: 4px 40px;
  }

  .footer-nav a {
    display: inline-block;
    padding: 10px 0;
  }

  .footer-info {
    justify-self: start;
    text-align: left;
  }

  .footer-dog {
    bottom: calc(100% + 60px);
    width: 84px;
  }

  /* Footer links: full 44 px tap targets on phones and tablets */
  .footer-info a,
  .footer-legal a {
    display: inline-block;
    padding: 12px 0;
  }
}

/* Fees · Get a free quote · Contact · About us · Membership Terms · Privacy Policy */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 1.05rem;
}

.footer-legal a {
  color: var(--gray-500);
}

.footer-legal a:hover {
  color: var(--red);
}

/* ---------- Good to know (booking and Memberships pages): heading, then a list with red checkmarks ---------- */
.good-to-know h2 {
  text-align: center;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--gray-800);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B2C2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-list strong {
  color: var(--navy);
}

/* ---------- Book now · Get a free quote · Trip fee calculator (booking and trip fee pages) ---------- */
/* Big and centred, with the form right under it */
.book-switch {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(28, 53, 83, 0.12);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
}

/* The short tab names show only on phones (see the 760 px rule below) */
.book-switch .tab-short {
  display: none;
}

@media (max-width: 760px) {
  .book-switch .tab-long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .book-switch .tab-short {
    display: inline;
  }
}

.book-switch[hidden] {
  display: none;
}

.book-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--pill);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.book-switch a:hover {
  background: rgba(28, 53, 83, 0.06);
}

.legal .book-switch a:not(.btn) {
  font-weight: 700;
}

.book-switch a[aria-current="page"],
.legal .book-switch a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 760px) {
  /* Phones and small tablets: three equal tabs; a long name may take two lines */
  .book-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 400px;
    padding: 5px;
    gap: 4px;
    margin-bottom: 20px;
  }

  /* Small pills with short names on one line: Book now · Free quote · Trip fees */
  .book-switch a {
    justify-content: center;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* ---------- About us: photo beside a few short paragraphs ---------- */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 24px 96px;
}

.about-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

/* Stand-in until Brayden's photo arrives */
.about-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(28, 53, 83, 0.25);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--gray-500);
  font-family: var(--display);
  font-weight: 600;
}

.about-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.about-copy p + p {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .about-page {
    padding: calc(var(--nav-h) + 40px) 18px 64px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------- Contact us: office, mobile or text, email, then the store ---------- */
.contact-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 24px 96px;
  text-align: center;
}

.contact-title {
  margin-bottom: 40px;
}

.contact-list {
  display: grid;
  gap: 28px;
}

.contact-list dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.contact-list dd {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray-800);
}

.contact-list dd a,
.contact-value {
  display: inline-block;
  padding: 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a[href^="mailto:"] {
  color: var(--navy);
}

.contact-visit {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(28, 53, 83, 0.15);
  font-size: 1.1rem;
  color: var(--gray-800);
}

.contact-visit-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-visit .btn {
  margin-top: 20px;
}

@media (max-width: 860px) {
  .contact-page {
    padding: calc(var(--nav-h) + 40px) 18px 64px;
  }
}

/* Narrow phones: the email address fits on one line */
@media (max-width: 360px) {
  .contact-list a[href^="mailto:"] {
    font-size: 1.05rem;
  }
}

.nowrap {
  white-space: nowrap;
}

/* A phone number never splits across lines, wherever it appears. */
a[href^="tel:"] {
  white-space: nowrap;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 24px 96px;
}

.legal h1 {
  margin-bottom: 10px;
}

.legal-updated {
  color: var(--gray-500);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--gray-800);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 10px 0;
}

.legal li + li {
  margin-top: 6px;
}

.legal-toc {
  margin: 24px 0 8px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid rgba(28, 53, 83, 0.1);
}

.legal-toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(28, 53, 83, 0.1);
  text-align: left;
  vertical-align: top;
}

.legal-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
}

@media (max-width: 560px) {
  .legal-toc ol {
    columns: 1;
  }
}

.legal-note {
  margin: 18px 0 8px;
}

/* Phone numbers written in text are always red (buttons keep their own colours) */
main a[href^="tel:"]:not(.btn) { color: var(--red); }
.legal a:not(.btn) {
  color: var(--navy);
  font-weight: 600;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.legal .legal-links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.legal .legal-links li {
  margin: 0;
}

.legal .legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-contact {
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(28, 53, 83, 0.1);
  line-height: 1.8;
}

/* ---------- Mobile call / book bar ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  /* Keep focused items clear of the call bar */
  html {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 98;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 243, 238, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(28, 53, 83, 0.12);
    box-shadow: 0 -10px 30px rgba(28, 53, 83, 0.1);
  }

  .mobile-cta .btn {
    gap: 8px;
    padding: 15px 10px;
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Emergency page: one full-width Call button with the hours under the number */
  .mobile-cta-call {
    grid-template-columns: 1fr;
  }

  .mobile-cta-call .btn {
    padding: 9px 12px;
  }

  .cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
  }

  .cta-stack small {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
  }
}

@media (max-width: 860px) {
  /* Home page: the bar waits until the hero's own Call button has scrolled away (see site.js) */
  .js .cta-after-hero .mobile-cta {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  }

  .js.cta-on .cta-after-hero .mobile-cta {
    transform: none;
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }
}

/* The full "Call (403) 742-8311" fits the bar from 375 px wide; narrower phones show "Call" */
@media (max-width: 374px) {
  .cta-num {
    display: none;
  }

  .mobile-cta {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta-call {
    grid-template-columns: 1fr;
  }
}

/* Phone held sideways: slimmer header and call bar, so more of the page shows */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1259px) {
  :root {
    --nav-h: 56px;
  }

  .brand-wordmark {
    height: 26px;
  }

  .brand-plumbing {
    width: 62px;
    margin-top: 2px;
  }

  .brand-dog {
    height: 36px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    padding: 6px max(14px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .mobile-cta .btn {
    padding: 10px 12px;
  }

  .mobile-cta-call .btn {
    padding: 6px 12px;
  }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .mobile-menu,
  .mobile-menu.open,
  .menu-scrim,
  .menu-scrim.open,
  .js .cta-after-hero .mobile-cta,
  .js.cta-on .cta-after-hero .mobile-cta {
    transition: none;
  }

  .btn:active {
    transform: none;
  }

  .footer-dog.in {
    animation: none;
  }
}

/* ---------- Phones: tighter type, lighter effects ---------- */
@media (max-width: 560px) {
  :root {
    --title-size: 2.1rem;
  }

  body {
    font-size: 15px;
  }

  .btn {
    padding: 14px 22px;
    font-size: 0.95rem;
  }

  .footer-call {
    font-size: 2rem;
  }

  .footer-call .tag {
    padding: 0 12px 3px;
    border-radius: var(--r-sm);
  }

  .footer-sub {
    font-size: 0.98rem;
  }

  .footer-bottom {
    margin-top: 40px;
    font-size: 0.82rem;
  }

  .legal {
    padding: calc(var(--nav-h) + 36px) 18px 64px;
  }

  .legal h2 {
    font-size: 1.12rem;
    margin-top: 30px;
  }

  .legal p,
  .legal li {
    font-size: 0.96rem;
  }
}

/* Blur behind fixed bars is expensive on phones and causes scroll stutter */
@media (max-width: 860px) {
  .site-header,
  .mobile-cta {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header {
    background: var(--cream);
  }

  .mobile-cta {
    background: var(--cream);
  }

  .js .reveal {
    transform: translateY(10px);
    transition-duration: 0.35s;
  }

  .js .reveal.in {
    transform: none;
  }
}

/* Touch screens: no sticky hover lifts after a tap */
@media (hover: none) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Call bar steps aside while the keyboard is open (see site.js), and while the
   photo viewer is open (gallery.js sets html.viewer-open) */
.is-typing .mobile-cta,
.viewer-open .mobile-cta {
  display: none !important;
}

/* Top bar sizes by screen width: --ns sizes the logo and the two buttons; the menu words get their own
   size (--nav-font) and spacing (--nav-gap), so the menu reads lighter with more air between items */
@media (min-width: 1600px) {
  :root {
    --nav-h: 104px;
  }

  .nav {
    --ns: 1.12;
    --nav-font: 1.15rem;
    --nav-gap: 40px;
  }
}

@media (min-width: 1440px) and (max-width: 1599px) {
  :root {
    --nav-h: 96px;
  }

  .nav {
    --ns: 1;
    --nav-font: 1.05rem;
    --nav-gap: 32px;
    padding: 0 24px;
  }
}

@media (min-width: 1300px) and (max-width: 1439px) {
  .nav {
    --ns: 0.92;
    --nav-font: 0.95rem;
    --nav-gap: 26px;
    padding: 0 24px;
  }
}

@media (min-width: 1260px) and (max-width: 1299px) {
  .nav {
    --ns: 0.92;
    --nav-font: 0.92rem;
    --nav-gap: 16px;
    padding: 0 24px;
  }
}

/* ---------- Plan cards (Memberships page and the sign-up step) ---------- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid rgba(28, 53, 83, 0.12);
  box-shadow: 0 1px 2px rgba(28, 53, 83, 0.04);
}

/* Plan name and price: big and centred at the top of each card */
.plan-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  text-align: center;
}

.plan-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
}

.plan-price strong {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.plan-price span {
  font-size: 1rem;
  color: var(--gray-500);
}

.plan-perks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 53, 83, 0.1);
}

.plan-perks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--gray-800);
}

.plan-perks svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--navy);
}

.plan-card .btn {
  margin-top: auto;
  width: 100%;
}

.plan-note {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-500);
}

.plan-note a {
  color: var(--navy);
  font-weight: 600;
}

.plan-biz {
  margin-top: 6px;
}

/* Selectable version on the sign-up step */
.plan-pick {
  cursor: pointer;
  padding: 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.plan-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* The form column is narrow, so the two plans stack and each lists its perks in two columns */
.bk-step .plan-cards {
  grid-template-columns: 1fr;
  gap: 12px;
}

.plan-pick .plan-perks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding-top: 16px;
}

@media (max-width: 480px) {
  .plan-pick .plan-perks {
    grid-template-columns: 1fr;
  }
}

.plan-radio {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(28, 53, 83, 0.25);
  display: grid;
  place-items: center;
  color: transparent;
}

.plan-radio svg {
  width: 14px;
  height: 14px;
}

.plan-pick:has(input:checked) {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), 0 12px 28px rgba(28, 53, 83, 0.12);
}

.plan-pick:has(input:checked) .plan-radio {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.plan-pick:has(input:focus-visible) {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

@media (hover: hover) {
  .plan-pick:hover {
    border-color: rgba(28, 53, 83, 0.4);
  }
}

@media (max-width: 640px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }
}

/* Phones and tablets: stacked contents links get a 44 px tap height. Links inside sentences keep the
   line's own height: a taller tap area would reach over the link on the next line. */
@media (max-width: 860px) {
  .legal-toc a {
    display: block;
    padding: 10px 0;
  }
}

/* Place suggestions under a text box (trip fee calculator and booking form) */
.suggest {
  position: relative;
  display: block;
  max-width: 100%;
}

.suggest > input {
  width: 100%;
  max-width: none;
}

.suggest .suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  background: var(--navy);
  border-radius: var(--r-md);
  box-shadow: 0 10px 24px rgba(28, 53, 83, 0.25);
}

.suggest .suggest-list li {
  margin: 0;
  padding: 11px 16px;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.suggest .suggest-list li:hover,
.suggest .suggest-list li[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.16);
}

/* Phone numbers can be selected and copied, even on buttons: dragging selects the text instead of the link. */
a[href^="tel:"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-user-drag: none;
}

/* Right-click menu on phone numbers */
.phone-menu {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  overflow-wrap: anywhere;
  padding: 6px 0;
  background: var(--navy);
  border-radius: var(--r-md);
  box-shadow: 0 10px 24px rgba(28, 53, 83, 0.3);
}

.phone-menu[hidden] {
  display: none;
}

.phone-menu button,
.phone-menu a {
  display: block;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: var(--white);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.phone-menu button:hover,
.phone-menu a:hover,
.phone-menu :focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

/* Keyboard focus: a clear white ring inside the navy menu */
.phone-menu :focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

/* Less motion, last so it also wins over the phone-size reveal above */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
