/* ==========================================================================
   Express Dental Ceramic Studio — Landing Page
   ========================================================================== */

:root {
  /* Colors (sampled from Figma export + design.md) */
  --color-primary: #448cbb;
  --color-primary-dark: #336a94;
  --color-accent: #0883e2;
  --color-navy: #0f0326;
  --color-navy-soft: #1d1132;
  --color-bg-blue-start: #ddeef7;
  --color-bg-blue-end: #a9cfe0;
  --color-white: #ffffff;
  --color-off-white: #f7f9fc;
  --color-ice: #eef5f8;
  --color-mint: #ddf5f2;
  --color-border: #e2e8f0;
  --color-heading: #1a202c;
  --color-body: #4a5568;
  --color-muted: #8896a6;

  --font-heading: "Inter", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --container-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 12px 32px rgba(15, 3, 38, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
  scroll-margin-top: 100px;
}

.services-head,
.site-footer {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 16px;
  color: var(--color-body);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

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

.btn-outline:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

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

.btn-sm {
  padding: 12px 22px;
  font-size: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.link-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.arrow-nav {
  display: flex;
  gap: 10px;
}

.arrow-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.arrow-nav button:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* -------------------------------------------------------------------------
   Placeholders (images & icons — swap with real assets later)
   ------------------------------------------------------------------------- */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(
    135deg,
    #eef2f6,
    #eef2f6 10px,
    #e3e9f0 10px,
    #e3e9f0 20px
  );
  border: 1px dashed #b9c4d0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8896a6;
  text-align: center;
  overflow: hidden;
}

.img-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.6;
}

.img-placeholder span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 16px;
  text-transform: uppercase;
  opacity: 0.75;
}

.icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px dashed #a9c3d6;
  background: rgba(68, 140, 187, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.icon-placeholder svg {
  width: 22px;
  height: 22px;
}

.icon-placeholder.round {
  border-radius: 50%;
}

.tech-logo {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tech-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.partner-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  pointer-events: none;
}

.site-header.scrolled {
  border-bottom-color: rgba(15, 3, 38, 0.06);
}

.site-header.scrolled .header-bg {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-heading);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-heading);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--color-white);
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .header-actions .btn-primary.btn-sm {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  /* How far the hero photo may bleed past the container's left edge:
     grows from 0 (no room to spare) up to 182px (20% of 910px) as the
     viewport widens past 1440px, and is capped once there's enough
     outer margin to show the full breakout without clipping anything. */
  --hero-breakout: clamp(0px, calc((100vw - 1440px) / 2), 182px);
  position: relative;
  padding-top: 152px;
  padding-bottom: 96px;
  background-color: var(--color-bg-blue-end);
  background-image: url("../assets/hero-background.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.hero .container {
  max-width: 1440px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, calc(910px - var(--hero-breakout))) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(100px, 14vw, 260px);
}

.hero-visual-wrap {
  position: relative;
  width: 910px;
  max-width: none;
  /* Shifts left by exactly --hero-breakout, which is always sized so the
     wrap's right edge stays flush with its grid column's right edge. */
  transform: translateX(calc(-1 * var(--hero-breakout)));
}

.hero-visual {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.hero-visual .hero-photo {
  aspect-ratio: 91 / 50;
  height: auto;
}

.hero-headline {
  position: absolute;
  left: 6%;
  top: 58%;
  z-index: 2;
  width: max-content;
  max-width: 90%;
  font-size: clamp(34px, 5.4vw, 88px);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  padding-top: 24px;
}

.hero-copy p {
  font-size: 17px;
  color: #2c3e50;
}

.hero-visual-sm {
  margin-top: 28px;
  width: 100%;
  max-width: 590px;
  aspect-ratio: 59 / 41;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Below this, the fixed 910px visual column plus its 48px gap (958px)
   leaves the copy column too little space inside a shrinking container —
   e.g. at a 1024px viewport (iPad Pro portrait) it's squeezed to ~18px.
   1280px matches the container's own max-width, where that math stops
   getting worse, so it's the natural point to stack instead. */
@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .hero-visual-wrap {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero-visual-sm {
    max-width: 100%;
  }

  .hero-headline {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: none;
    color: var(--color-heading);
    text-shadow: none;
    margin-top: 20px;
  }
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 88px;
  margin-bottom: 40px;
}

.services-head .heading-block h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 8px;
}

.services-viewport {
  overflow: hidden;
  /* Bleed the viewport out to the page's right edge, regardless of how
     much outer margin the centered 1440px container currently has. */
  margin-right: calc(-24px - max(0px, (100vw - 1440px) / 2));
}

.services-track {
  display: flex;
  gap: 24px;
  padding-bottom: 8px;
  will-change: transform;
}

.service-card {
  flex: 0 0 340px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s ease;
}

.service-card:hover .link-arrow {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  transform-origin: center bottom;
}

.service-card h3 {
  font-size: 19px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--color-body);
  flex-grow: 1;
  line-height: 1.6;
}

.services-footer {
  margin-top: 40px;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Marquee ticker
   ------------------------------------------------------------------------- */
.ticker {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 26px 0;
  overflow: hidden;
  background: var(--color-white);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  text-transform: uppercase;
  color: var(--color-navy);
  padding-right: 20px;
  white-space: nowrap;
}

.ticker-track span::after {
  content: attr(data-sep);
  color: var(--color-primary);
  font-weight: 400;
}

.ticker-reverse .ticker-track {
  animation-direction: reverse;
  animation-duration: 32s;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------------------
   Why Choose Us
   ------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.why-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 420px;
}

.why-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.why-content h2,
.story-content h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 20px;
}

.why-content p + p,
.story-content p + p {
  margin-top: 16px;
}

.why-content .btn,
.story-content .btn {
  margin-top: 28px;
}

.why-content .lead-statement,
.story-content .lead-statement {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  border-left: 3px solid var(--color-primary);
  padding-left: 18px;
  margin-top: 24px;
}

.stat-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.stat-item {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--color-heading);
}

.stat-item .stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-body);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-visual {
    min-height: 280px;
  }
}

/* -------------------------------------------------------------------------
   Technology
   ------------------------------------------------------------------------- */
.tech-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
}

.tech-card {
  padding: 32px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-card:last-child {
  border-right: none;
}

.tech-card h3 {
  font-size: 17px;
  margin-top: 6px;
}

.tech-card p {
  font-size: 14px;
  color: var(--color-body);
  flex-grow: 1;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    border-right: none;
  }
}

/* -------------------------------------------------------------------------
   CTA banner cards
   ------------------------------------------------------------------------- */
.cta-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.cta-banner-content .btn {
  align-self: flex-start;
}

.cta-banner-content .eyebrow {
  color: var(--color-navy);
  opacity: 0.7;
}

.cta-banner-content h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 22px;
  max-width: 320px;
}

@media (max-width: 760px) {
  .cta-banners {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   How We Work
   ------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
}

.work-intro h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 18px;
}

.work-intro .btn {
  margin-top: 28px;
}

.work-steps {
  display: flex;
  flex-direction: column;
}

.work-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 22px;
}

.work-step .step-line {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(68, 140, 187, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon img,
.step-icon svg {
  width: 22px;
  height: 22px;
}

.work-step .step-line::after {
  content: "";
  flex-grow: 1;
  width: 1px;
  min-height: 40px;
  background: var(--color-border);
  margin: 8px 0;
}

.work-step:last-child .step-line::after {
  display: none;
}

.work-step-content {
  padding-bottom: 36px;
}

.work-step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.work-step-content p {
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Design Expertise
   ------------------------------------------------------------------------- */
.expertise-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.expertise-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 645px;
  width: 645px;
  height: 580px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.expertise-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expertise-card {
  position: relative;
  z-index: 2;
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  padding: 50px;
  box-shadow: var(--shadow-card);
}

.expertise-card.light {
  margin-top: 259px;
  margin-right: -56px;
  background: #f8fafd;
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.expertise-card.dark {
  margin-top: 75px;
  margin-left: -56px;
  background: var(--color-primary);
  color: var(--color-white);
}

.expertise-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.expertise-card.dark h3 {
  color: var(--color-white);
}

.expertise-card p {
  font-size: 14.5px;
}

.expertise-card.dark p {
  color: rgba(255, 255, 255, 0.85);
}

.expertise-card .btn {
  margin-top: 20px;
  align-self: flex-start;
}

@media (max-width: 1300px) {
  .expertise-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .expertise-visual {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 645 / 580;
    flex-basis: auto;
  }

  .expertise-card.light,
  .expertise-card.dark {
    width: 100%;
    flex-basis: auto;
    min-height: 0;
    margin: 0;
  }

  .expertise-card.light {
    order: 2;
    margin-top: -40px;
    margin-right: 0;
    max-width: 400px;
  }

  .expertise-card.dark {
    order: 3;
    margin-top: 24px;
    margin-left: 0;
    max-width: 400px;
    align-self: flex-end;
  }
}

@media (max-width: 560px) {
  .expertise-card.light,
  .expertise-card.dark {
    max-width: none;
  }
}

/* -------------------------------------------------------------------------
   Technology Partners (materials)
   ------------------------------------------------------------------------- */
.partners-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.partners-head h2 {
  font-size: clamp(26px, 3vw, 32px);
}

.partners-head-start {
  align-items: start;
}

.partners-head p + p {
  margin-top: 14px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .partners-head {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testimonial-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
  align-items: center;
}

.testimonial-visual {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.testimonial-visual .img-placeholder {
  border-radius: var(--radius-md);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
}

.testimonial-author {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .icon-placeholder {
  width: 52px;
  height: 52px;
}

.testimonial-author strong {
  display: block;
  color: var(--color-heading);
  font-size: 15px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--color-muted);
}

.testimonial-nav {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .testimonial-wrap {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------------- */
.trust-strip {
  border-top: 1px solid var(--color-border);
  padding-top: 56px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 56px;
  height: 56px;
}

.trust-item h3 {
  font-size: 17px;
}

.trust-item p {
  font-size: 14px;
  max-width: 280px;
}

@media (max-width: 760px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 15px;
  margin-bottom: 22px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-logo img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social li {
  margin-bottom: 0;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary-dark);
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-map-col {
  display: flex;
}

.footer-map {
  width: 100%;
  min-height: 280px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===========================================================================
   About Page
   =========================================================================== */

/* ---- Hero (Section 1 — centered) ---- */
.about-hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 96px;
  background-color: var(--color-bg-blue-end);
  background-image: url("../assets/about-hero-banner.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  text-align: center;
}

.about-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.about-hero-inner .eyebrow {
  color: var(--color-navy);
}

.about-hero-inner h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-hero-inner p {
  font-size: 17px;
  color: #2c3e50;
}

@media (max-width: 600px) {
  .about-hero {
    padding-top: 140px;
  }
}

/* ---- Our Story (Section 3 — mirrored image-right variant of .why-grid) ---- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: stretch;
}

.story-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 420px;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-grid .story-visual {
    order: -1;
    min-height: 280px;
  }
}

/* ---- Mission & Vision (Section 4 — 2 columns) ---- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 44px;
}

.mv-card .icon-placeholder {
  margin-bottom: 20px;
}

.mv-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.mv-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.mv-card p {
  color: var(--color-body);
  font-size: 15px;
}

@media (max-width: 700px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Icon placeholder size variant (matches real .service-icon at 72px) ---- */
.icon-placeholder.lg {
  width: 70px;
  height: 70px;
  border-radius: 18px;
}

.icon-placeholder.lg svg {
  width: 32px;
  height: 32px;
}

/* Recalibrate the shared carousel's edge-bleed for a standard 1280px
   container (the home page hero uses a wider 1440px container, so its
   bleed math targets that width instead). */
.about-values .services-viewport {
  margin-right: calc(-24px - max(0px, (100vw - 1280px) / 2));
}

.about-values .service-icon {
  width: 70px;
  height: 70px;
}

/* ---- Why Partner checklist (Section 6) ---- */
.checklist-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15.5px;
  color: var(--color-heading);
  font-weight: 500;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.checklist-item .icon-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.checklist-item .icon-placeholder svg {
  width: 14px;
  height: 14px;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.checklist-closing {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
  font-family: var(--font-heading);
  text-align: center;
}

@media (max-width: 700px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Laboratory & Team highlights (Section 7) ---- */
.highlights-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.highlight-number {
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
}

.highlight-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 20px 0 16px;
}

.highlight-label {
  font-size: 14.5px;
  color: var(--color-body);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 560px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Our Promise (Section 8 — centered) ---- */
.promise-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-blue-start) 0%, var(--color-white) 65%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 96px 40px;
  text-align: center;
}

.promise-quote-bg {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 340px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.promise-block {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(68, 140, 187, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.promise-block h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 22px;
}

.promise-block p {
  font-size: 17px;
  color: var(--color-body);
}

.promise-block p + p {
  margin-top: 16px;
}

.promise-block .promise-closing {
  margin-top: 32px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 700px) {
  .promise-card {
    padding: 72px 24px;
  }

  .promise-quote-bg {
    font-size: 220px;
    top: -30px;
  }
}

/* ---- Final CTA band (Section 9) ---- */
.final-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 88px 40px;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 3, 38, 0.55), rgba(15, 3, 38, 0.75));
  z-index: 1;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-content h2 {
  color: var(--color-white);
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 16px;
}

.final-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Fallback background for .final-cta when no photo asset has been supplied
   yet — fills the same absolute box .final-cta-bg would occupy. */
.final-cta > .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

/* ===========================================================================
   Services Page
   =========================================================================== */

/* ---- Our Services (Section 3 — alternating detail blocks) ---- */
.service-block {
  margin-bottom: 72px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-list-label {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.service-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--color-body);
  line-height: 1.4;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-primary);
}

@media (max-width: 560px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Why Our Services Stand Out (Section 4) ---- */
.standout-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.standout-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.standout-icon {
  width: 56px;
  height: 56px;
}

.standout-item h3 {
  font-size: 17px;
}

.standout-item p {
  font-size: 14.5px;
  color: var(--color-body);
}

@media (max-width: 900px) {
  .standout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .standout-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQs (Section 6 — accordion) ---- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--color-white);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-off-white);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-toggle svg {
  width: 14px;
  height: 14px;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer p {
  padding: 0 26px 22px;
  color: var(--color-body);
  font-size: 15px;
}

/* ===========================================================================
   Case Submission & Contact Pages
   =========================================================================== */

/* ---- What You Can Submit — 3-column category cards (reuses .mv-card look) ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--color-body);
}

.category-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-primary);
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Forms (Case Submission form + Contact inquiry form) ---- */
.form-section {
  margin-bottom: 40px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-label {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: normal;
  color: var(--color-heading);
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  transition: border-color 0.2s ease;
}

/* Safari (and other WebKit browsers) ignore most custom styling on a
   native <select> unless its default appearance is reset first — without
   this it renders with the OS's own chunkier control instead of matching
   the inputs around it. */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238896a6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

/* ---- File upload — custom trigger + removable chip list ---- */
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.file-upload-trigger:hover {
  background: rgba(68, 140, 187, 0.08);
  border-color: var(--color-primary);
}

.file-list:empty {
  display: none;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
}

.file-chip-name {
  font-size: 13px;
  color: var(--color-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip-remove {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.file-chip-remove:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.app-form > .btn {
  margin-top: 8px;
}

.g-recaptcha {
  margin-top: 8px;
  margin-bottom: 8px;
}

.recaptcha-error {
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #dc2626;
  display: none;
}

.recaptcha-error.is-visible {
  display: block;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  font-style: italic;
  color: var(--color-muted);
}

.form-success {
  margin-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-primary);
  display: none;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  margin-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #dc2626;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.app-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact page: info + form 2-column layout ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item .step-icon {
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 14.5px;
  color: var(--color-body);
}

.contact-map {
  margin-top: 32px;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.contact-form-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg-blue-start) 0%, var(--color-white) 55%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 44px;
}

.contact-form-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 140, 187, 0.16), transparent 70%);
  pointer-events: none;
}

.contact-form-card > * {
  position: relative;
  z-index: 1;
}

.contact-form-card > .eyebrow {
  display: block;
}

.contact-form-card > h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 14px;
}

.contact-form-card > p {
  color: var(--color-body);
  font-size: 14.5px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 28px;
  }
}

