/* ==========================================================================
   Udora Safety — static site stylesheet
   Plain CSS, no framework, no build step.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --orange: #f15a27;
  --orange-dark: #d34a1c;
  --orange-tint: #fdf1ec;
  --ink: #212121;
  --ink-strong: #171923;
  --body: #555555;
  --muted: #4a5568;
  --line: #e2e8f0;
  --line-strong: #cbd5e0;
  --soft: #f5f5f5;
  --white: #ffffff;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.12);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 92px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
}
h4 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--orange-dark);
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

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

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

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

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Section heading with the brand's orange/dark rule */
.sec-title {
  position: relative;
  margin-bottom: 34px;
  padding-bottom: 22px;
}

.sec-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  font-weight: 600;
}

.sec-title::before,
.sec-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
}

.sec-title::before {
  left: 0;
  width: 42px;
  background: var(--orange);
}

.sec-title::after {
  left: 52px;
  width: 10px;
  background: var(--ink);
}

.sec-title--center {
  text-align: center;
}

.sec-title--center::before {
  left: 50%;
  transform: translateX(-50%);
}

.sec-title--center::after {
  left: calc(50% + 52px);
}

.sec-title--center h2 {
  margin-inline: auto;
}

.sec-title--light h2 {
  color: #fff;
}

.sec-title--light::after {
  background: #fff;
}

.lead {
  font-size: 1.0625rem;
  color: var(--body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}

.btn--outline:hover {
  background: var(--orange);
  color: #fff;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--pill {
  border-radius: 999px;
  padding-inline: 30px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--sm {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 0.9375rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 4. Top bar ---------- */
.topbar {
  background: var(--orange);
  color: #fff;
  font-size: 0.8125rem;
}

.topbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 42px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  opacity: 0.95;
}

.topbar__item svg {
  flex: none;
  opacity: 0.9;
}

a.topbar__item:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  padding-inline: 34px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar__phone:hover {
  background: #000;
  color: #fff;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  flex: none;
  display: block;
  width: 132px;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list > li {
  position: relative;
  margin: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 10px;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--ease);
}

.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 258px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu li {
  margin: 0;
}

.nav__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__menu a:hover,
.nav__menu a[aria-current="page"] {
  background: var(--orange-tint);
  color: var(--orange);
}

.header__cta {
  flex: none;
  margin-left: 8px;
}

/* Same action, shown inside the menu on small screens */
.nav__cta {
  display: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle__bars::before {
  top: -6px;
}
.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

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

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

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__slides {
  position: relative;
  min-height: clamp(440px, 62vh, 640px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px 0 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.5) 55%,
    rgba(10, 10, 10, 0.68) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
  color: #fff;
}

.hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__text {
  margin: 0 auto 30px;
  max-width: 640px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.hero__dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.hero__dot[aria-selected="true"] {
  background: #fff;
}

/* ---------- 7. Intro / about block ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

/* Solid orange panel behind the photo, offset up and to the right, exactly
   like the original design. The photo is full size and covers most of it, so
   only a strip shows along the top and right edges. */
.framed {
  position: relative;
  padding: 20px 20px 0 0;
}

.framed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 0;
  bottom: 20px;
  background: var(--orange);
}

.framed img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step) ".";
  color: var(--orange);
  font-weight: 700;
}

/* Numbered steps used as a vertical list (contact page) */
.steps--stacked {
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 0;
}

.steps--stacked li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 400;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.steps--stacked li::before {
  font-weight: 700;
}

.callout {
  margin-bottom: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.callout__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.callout__phone {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 8. Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  font-weight: 600;
}

.card__title a {
  color: var(--ink);
}

.card__title a:hover {
  color: var(--orange);
}

.card__text {
  margin: 0 0 18px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--orange);
  font-size: 0.9375rem;
  font-weight: 600;
}

.card__link svg {
  transition: transform 0.2s var(--ease);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* Whole-card click target */
.card__stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- 9. Case study feature ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.feature__tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
}

.feature__title {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
}

.feature__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.feature__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- 10. CTA band ---------- */
.cta-band {
  padding-block: clamp(40px, 5vw, 60px);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 4vw, 48px) clamp(26px, 4vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.cta-band__inner > div {
  flex: 1 1 420px;
}

.cta-band__title {
  margin: 0;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 600;
}

/* ---------- 11. Dark estimate band ---------- */
.estimate {
  position: relative;
  overflow: hidden;
  background: #1c1c1c;
  color: #fff;
  isolation: isolate;
}

.estimate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/page-banner.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}

.estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.estimate h2 {
  color: var(--orange);
  font-weight: 400;
}

.estimate .sec-title::after {
  background: #fff;
}

.estimate__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feat;
}

.estimate__features li {
  display: flex;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.estimate__features li::before {
  counter-increment: feat;
  content: "0" counter(feat) ".";
  flex: none;
  color: var(--orange);
  font-weight: 700;
}

.estimate__contact {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.estimate__contact h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 18px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--orange);
}

.contact-list a {
  color: #fff;
}

.contact-list a:hover {
  color: var(--orange);
}

/* ---------- 12. Page banner ---------- */
.page-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 96px 0;
  background-image: url("../img/page-banner.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  isolation: isolate;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.78);
}

.page-banner h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--orange);
}

/* ---------- 13. Inner page layout ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.side-nav li {
  margin: 0;
}

.side-nav a {
  display: block;
  padding: 15px 22px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: #444;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.side-nav li:last-child a {
  border-bottom: 0;
}

.side-nav a:hover {
  background: #fff;
  color: var(--orange);
}

.side-nav a[aria-current="page"] {
  background: var(--orange);
  border-left-color: var(--orange-dark);
  color: #fff;
}

.side-nav a[aria-current="page"]:hover {
  color: #fff;
}

.prose {
  max-width: 72ch;
}

.prose h1,
.prose .service-heading {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 600;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--body);
}

.prose ul {
  padding-left: 1.1em;
}

.prose ul li::marker {
  color: var(--orange);
}

.prose .tagline {
  color: var(--orange);
  font-weight: 700;
}

.service-hero-img {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
}

.service-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 14. About page ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.about-intro h1,
.about-intro__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 64px);
}

.about-cols h2 {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 16px;
  font-size: 1.5rem;
}

.about-cols h2::before,
.about-cols h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
}

.about-cols h2::before {
  left: 0;
  width: 34px;
  background: var(--orange);
}

.about-cols h2::after {
  left: 44px;
  width: 8px;
  background: var(--ink);
}

.values {
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}

.values li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ---------- 15. Contact page ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-card--accent {
  border-color: transparent;
  background: var(--orange);
  color: #fff;
}

.contact-card--accent h2,
.contact-card--accent p {
  color: #fff;
}

.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.contact-card__logo {
  width: 132px;
  margin-bottom: 26px;
}

.contact-card__label {
  display: block;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.contact-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.contact-card__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--orange);
}

.contact-card__list a {
  color: var(--body);
}

.contact-card__list a:hover {
  color: var(--orange);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-hero__panel {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list li:last-child {
  border-bottom: 0;
}

.detail-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--orange);
}

.detail-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9375rem;
}

.detail-list span,
.detail-list a {
  color: var(--body);
  font-size: 0.9375rem;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq__body {
  padding-bottom: 24px;
  max-width: 70ch;
}

.faq .faq__body p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- 16. Case study page ---------- */
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 30px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft);
}

.case-meta div {
  margin: 0;
}

.case-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

/* Wide banner photo on the case study page. No orange panel: it sits on the
   page as a plain rounded image, matching the gallery thumbnails below. */
.case-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.quote {
  margin: 32px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.0625rem;
  font-style: italic;
}

.quote footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
}

.work-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.work-type {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.work-type h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.work-type p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 76px);
  background: #fff;
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(760px, 70%);
  height: 100%;
  z-index: -1;
  background-image: url("../img/footer-texture.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__brand img {
  width: 140px;
  margin-bottom: 20px;
}

.footer__brand p {
  max-width: 34ch;
  font-size: 0.9375rem;
}

.footer__col h2 {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 14px;
  font-size: 1.0625rem;
  font-weight: 500;
}

.footer__col h2::before,
.footer__col h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
}

.footer__col h2::before {
  left: 0;
  width: 26px;
  background: var(--orange);
}

.footer__col h2::after {
  left: 34px;
  width: 7px;
  background: var(--ink);
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links li {
  margin: 0 0 12px;
}

.footer__links a {
  color: var(--body);
  font-size: 0.9375rem;
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--body);
  font-size: 0.9375rem;
}

.footer__contact svg {
  flex: none;
  margin-top: 3px;
  color: var(--orange);
}

.footer__contact a {
  color: var(--body);
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__bottom {
  padding: 22px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.875rem;
}

.footer__bottom p {
  margin: 0;
}

/* ---------- 18. Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s, background 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange);
}

/* ---------- 19. Reveal on scroll ---------- */
/* Content is visible by default; only hidden once JS confirms it can animate. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  :root {
    --header-h: 80px;
  }

  .nav__list {
    gap: 24px;
  }

  .page-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .header__cta {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
  }

  .nav {
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
  }

  /* Only collapse the menu when JS is available to reopen it. Without JS the
     links stay visible so the site is still navigable. */
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 12px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.1);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
    font-size: 1.0625rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 10px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item--has-menu.is-expanded .nav__menu {
    display: block;
  }

  .nav__item--has-menu.is-expanded .nav__caret {
    transform: rotate(180deg);
  }

  .nav__menu a {
    padding: 11px 0;
  }

  .nav__menu a:hover {
    background: transparent;
  }

  .intro__grid,
  .feature,
  .estimate__grid,
  .about-intro,
  .contact-hero,
  .case-hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    border: 0;
    gap: 8px;
  }

  .side-nav li {
    flex: 0 0 auto;
  }

  .side-nav a {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-left-width: 1px;
    font-size: 0.9375rem;
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .topbar__inner {
    justify-content: center;
    padding-inline: 0;
  }

  .topbar__left {
    display: none;
  }

  .topbar__phone {
    padding-block: 12px;
    padding-inline: 20px;
    width: 100%;
    justify-content: center;
  }

  .about-cols,
  .contact-cards,
  .case-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Keep the case-study thumbnails in two columns — one column made the
     case study page needlessly long on a phone. */
  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-band__inner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 22px;
    text-align: center;
  }

  /* In a column, flex-basis applies to height, so the desktop 420px basis
     was stretching the card. Let the content size it instead. */
  .cta-band__inner > div {
    flex: 0 0 auto;
  }

  .cta-band__inner > .btn {
    width: 100%;
  }

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

  .framed {
    padding: 14px 14px 0 0;
  }

  .framed::before {
    left: 14px;
    bottom: 14px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__links a,
  .footer__contact li {
    font-size: 0.875rem;
  }

  .footer__contact li {
    gap: 8px;
  }

  /* Let the email break only at the @ rather than mid-word */
  .footer__contact a {
    overflow-wrap: normal;
  }

  /* Keep the fixed back-to-top button clear of the copyright line */
  .footer__bottom {
    padding: 22px 0 72px;
  }

  .page-banner {
    min-height: 220px;
    padding: 64px 0;
  }

  .hero__slides {
    min-height: 520px;
  }

  .hero__slide {
    padding: 64px 0 88px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

/* ---------- 21. Print ---------- */
@media print {
  .topbar,
  .site-header,
  .hero__dots,
  .to-top,
  .site-footer::before {
    display: none !important;
  }

  body {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
