:root {
  --ink: #101820;
  --muted: #536270;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #f4f8f9;
  --deep: #08343b;
  --teal: #0d6b72;
  --mint: #d9f2ed;
  --red: #d53b3b;
  --red-dark: #a8292d;
  --gold: #f4b947;
  --shadow: 0 24px 70px rgba(9, 36, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 234, 0.8);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: 100%;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: min(255px, 46vw);
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.72rem 0.9rem;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep);
  background: var(--soft);
}

.nav-links .nav-cta {
  margin-left: 0.35rem;
  color: var(--paper);
  background: var(--deep);
}

.nav-links .nav-cta:hover {
  color: var(--paper);
  background: var(--teal);
}

.lang-toggle {
  min-width: 46px;
  height: 36px;
  margin-left: 0.25rem;
  padding: 0 0.auto;
  margin-right: 1m;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  background: var(--soft);
  border-color: #c2d0dc;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  color: var(--paper);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 29, 35, 0.94) 0%, rgba(5, 29, 35, 0.82) 42%, rgba(5, 29, 35, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 29, 35, 0.18), rgba(5, 29, 35, 0.55));
}

.hero-grid {
  position: relative;
  min-height: 710px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.55rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
}

.hero-lede,
.page-hero p,
.section-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.13rem;
}

.section-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: var(--paper);
  background: var(--red);
  box-shadow: 0 15px 30px rgba(213, 59, 59, 0.24);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.booking-panel,
.service-card,
.team-card,
.contact-panel,
.hours-card,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: 1.35rem;
  color: var(--ink);
}

.booking-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.booking-form {
  display: grid;
  gap: 0.9rem;
}

.booking-form label {
  display: grid;
  min-width: 0;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.72rem 0.78rem;
  color: var(--ink);
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.booking-form input[type="date"],
.booking-form select[data-time-select] {
  max-inline-size: 100%;
  min-inline-size: 0;
  color-scheme: light;
  accent-color: var(--teal);
  cursor: pointer;
}

.booking-form input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.booking-form input[type="date"]::-webkit-datetime-edit,
.booking-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  max-width: 100%;
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0.32rem;
  border-radius: 999px;
  background-color: var(--mint);
  cursor: pointer;
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(13, 107, 114, 0.18);
}

.booking-form input::selection,
.booking-form textarea::selection {
  color: var(--paper);
  background: var(--teal);
}

.booking-form textarea {
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 107, 114, 0.16);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.form-note.is-success,
.form-note.is-error {
  padding: 0.72rem 0.85rem;
  font-weight: 700;
}

.form-note.is-success {
  color: #0f5132;
  background: #dff5e7;
  border: 1px solid #9fd8b8;
}

.form-note.is-error {
  color: var(--red-dark);
  background: #fff1f1;
  border: 1px solid #f0b8b8;
}

.client-quilt {
  padding: 1.35rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.client-quilt-inner {
  overflow: hidden;
}

.client-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-logo-track {
  display: flex;
  width: max-content;
  gap: 0.8rem;
  animation: client-marquee 24s linear infinite;
}

.client-logo-card {
  display: grid;
  width: clamp(220px, 26vw, 320px);
  height: 98px;
  place-items: center;
  padding: 0.9rem 1rem;
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.client-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

.client-logo-card .client-logo-dhr {
  max-height: 54px;
}

.client-logo-card .client-logo-davita {
  max-height: 50px;
}

.client-logo-card .client-logo-building-blocks {
  max-height: 48px;
}

.client-logo-card .client-logo-idea {
  max-height: 56px;
  transform: translateY(-6px);
}

.client-logo-card .client-logo-us-renal {
  max-height: 58px;
}

.client-logo-card .client-logo-south-texas {
  max-height: 64px;
}

.client-logo-card .client-logo-tropical-texas {
  max-height: 58px;
}

@keyframes client-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.4rem));
  }
}

.trust-bar {
  background: var(--deep);
  color: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid div {
  padding: 1.35rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 5rem 0;
}

.tinted {
  background: var(--soft);
}

.split-layout,
.steps-layout,
.values-grid,
.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (min-width: 921px) {
  .split-layout>.section-copy {
    margin-top: 2.4rem;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card,
.team-card {
  padding: 1.35rem;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--paper);
  background: var(--teal);
  border-radius: var(--radius);
  font-weight: 800;
}

.service-card p,
.team-card p,
.value-list span,
.steps span,
.hours-card span {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  border-radius: var(--radius);
  content: counter(step);
  counter-increment: step;
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.final-cta {
  padding-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  color: var(--paper);
  background: var(--deep);
  border-color: rgba(255, 255, 255, 0.14);
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.page-hero {
  padding: 6rem 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(5, 29, 35, 0.9), rgba(5, 29, 35, 0.62)),
    url("../assets/img/bg-mobile-fallback.jpg") center / cover;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4.6vw, 4.45rem);
  line-height: 1;
}

.team-hero {
  background:
    linear-gradient(90deg, rgba(5, 29, 35, 0.9), rgba(5, 29, 35, 0.56)),
    url("../assets/img/team-hero.png") center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(5, 29, 35, 0.88), rgba(5, 29, 35, 0.52)),
    url("../assets/img/training-room.png") center / cover;
  background-position: center;
}

.narrow {
  max-width: 900px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.team-section .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-top: 2.75rem;
}

.avatar {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius);
  font-weight: 800;
}

.role {
  margin-bottom: 0.35rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.team-photo-danny img {
  transform: scale(1.08);
  transform-origin: center top;
}

.team-photo-danny {
  padding-top: 0.35rem;
}

.team-photo-yvonne {
  padding-top: 1.25rem;
}

.team-card-body {
  padding: 1.15rem;
}

.value-list {
  display: grid;
  gap: 1rem;
}

.value-list div {
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value-list strong,
.value-list span {
  display: block;
}

.contact-section {
  scroll-margin-top: 90px;
}

.contact-grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.contact-panel {
  padding: 1.35rem;
  box-shadow: none;
}

.contact-panel h2 {
  font-size: 2rem;
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.contact-methods a,
.contact-method,
.hours-card {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-methods span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.copy-email-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
}

.copy-email-button:hover,
.copy-email-button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 107, 114, 0.12);
  outline: none;
}

.copy-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-icon-check {
  display: none;
}

.copy-email-button.is-copied {
  border-color: #9fd8b8;
  background: #dff5e7;
}

.copy-email-button.is-copied .copy-icon-copy {
  display: none;
}

.copy-email-button.is-copied .copy-icon-check {
  display: block;
  stroke: #0f5132;
}

.copy-status {
  min-height: 1.2em;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-booking {
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.76);
  background: #081b20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  color: var(--paper);
}

.footer-brand .brand-logo {
  width: min(270px, 100%);
  height: auto;
}

.footer-brand .footer-logo {
  width: min(180px, 100%);
  max-height: 110px;
  object-fit: contain;
}

.site-footer p {
  max-width: 420px;
  margin: 1rem 0 0;
}

.site-footer strong,
.site-footer a {
  display: block;
}

.site-footer strong {
  margin-bottom: 0.7rem;
  color: var(--paper);
}

.site-footer a {
  margin-bottom: 0.4rem;
}

.footer-contact-text {
  display: block;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer .footer-copyright {
  width: min(1160px, calc(100% - 32px));
  max-width: none;
  margin: 2rem auto 0;
  padding-top: 1.35rem;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 1rem;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .lang-toggle {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid,
  .split-layout,
  .steps-layout,
  .values-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 4rem 0;
  }

  .card-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-section .team-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .cta-band,
  .footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }
}

@media (max-width: 620px) {

  .nav-shell,
  .section-inner {
    width: min(100% - 24px, 1160px);
  }

  .brand-logo {
    width: min(220px, 58vw);
    height: 46px;
  }

  .hero-grid,
  .section {
    padding: 3rem 0;
  }

  .page-hero {
    padding: 4rem 0;
  }

  .team-hero {
    background-position: 72% center;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .form-row,
  .card-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .booking-form input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    font-size: 14px;
    inline-size: 100%;
  }

  .booking-panel,
  .contact-panel,
  .service-card,
  .team-card,
  .cta-band {
    padding: 1rem;
  }

  .client-logo-card {
    width: 240px;
    height: 90px;
    padding: 0.75rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .client-logo-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    animation: none;
  }

  .client-logo-card[aria-hidden="true"] {
    display: none;
  }
}
