/* ClariaMed — white-first, global layout */

:root {
  --color-bg: #ffffff;
  --color-muted: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-soft: #5c5c5c;
  --color-accent: #1e5a8a;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --header-h: 4.5rem;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius-pill: 999px;
  --max-w: 1200px;
  --pad-section: clamp(3rem, 8vw, 5.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----- Header ----- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.25rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header--solid .site-header__links a {
  color: var(--color-text);
}

.site-header--solid .site-header__menu-toggle span {
  background: var(--color-text);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.site-header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background 0.2s;
}

.site-header__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: flex-end;
}

.site-header__links a {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header__links a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.site-header--solid .site-header__links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

@media (max-width: 900px) {
  .site-header__menu-toggle {
    display: flex;
  }

  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__links {
    flex-direction: column;
    gap: 0;
  }

  .site-header__links a {
    color: var(--color-text) !important;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .site-header:not(.site-header--solid) .site-header__menu-toggle span {
    background: #fff;
  }

  .site-header--solid .site-header__menu-toggle span {
    background: var(--color-text);
  }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
  background: #222 center / cover no-repeat;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

/* ----- Section shell ----- */

.section {
  padding: var(--pad-section) 1.25rem;
}

.section--muted {
  background: var(--color-muted);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 2rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0;
  max-width: 52rem;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.section__head--left .section__title,
.section__head--left .section__lead {
  text-align: left;
}

.section__head--center .section__title,
.section__head--center .section__lead {
  text-align: center;
}

.section__lead--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

/* Utility: secondary pages */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: #fff;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  border: 1px solid #e8e8e8;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.text-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: none;
}

.text-link-more:hover {
  text-decoration: underline;
}

/* Company / intro split */

.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .intro-split {
    grid-template-columns: 1fr;
  }
}

.intro-split__figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.intro-split__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.intro-split__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.intro-split__text {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.intro-split__text:last-of-type {
  margin-bottom: 1.25rem;
}

/* List modules A / B */

.list-module .section__head {
  margin-bottom: 2.25rem;
}

.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-list__item {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.content-list__item:first-child {
  padding-top: 0;
}

.content-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.content-list--news .content-list__item {
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
}

@media (min-width: 701px) {
  .content-list--news .content-list__item--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem);
  }

  .content-list--news .content-list__item--reverse .content-list__media {
    order: 2;
  }

  .content-list--news .content-list__item--reverse .content-list__body {
    order: 1;
  }
}

@media (max-width: 700px) {
  .content-list__item,
  .content-list--news .content-list__item {
    grid-template-columns: 1fr;
  }

  .content-list__item--reverse .content-list__media {
    order: -1;
  }
}

.content-list__media {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: var(--shadow-card);
}

.content-list__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-list__body {
  min-width: 0;
}

.content-list__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.content-list__title a {
  color: var(--color-text);
  text-decoration: none;
}

.content-list__title a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.content-list__meta {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: #888;
}

.content-list__excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.content-list__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-list__more:hover {
  color: #154a72;
}

/* Featured: two columns */

.featured-section .section__head {
  margin-bottom: 2.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 840px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaeaea;
}

.featured-card__image-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-card__image-link:hover img {
  transform: scale(1.03);
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-card__title-link {
  color: inherit;
  text-decoration: none;
}

.featured-card__title-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.featured-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.featured-card__text {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact form */

.contact-section .section__head {
  margin-bottom: 2rem;
}

.contact-layout {
  max-width: 36rem;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .contact-form__row--half {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 90, 138, 0.12);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.9rem 2.25rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-text);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-form__submit:hover {
  background: #333;
}

.contact-form__submit:active {
  transform: scale(0.98);
}

.contact-form__note {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  background: rgba(30, 90, 138, 0.06);
  border-radius: 4px;
}

/* Contact page (contact.html) */

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 820px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

.contact-page__info-title {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-page__list li {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #e5e5e5;
}

.contact-page__list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-page__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.contact-page__value {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.contact-page__value a {
  color: var(--color-accent);
}

.contact-page__form-wrap .contact-layout {
  max-width: none;
  margin: 0;
}

.contact-page-section .section__head {
  margin-bottom: 2.5rem;
}

/* About: related list with imagery */

.related-section .section__head {
  margin-bottom: 2.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section--muted .related-card {
  background: #fff;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.related-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e5e5;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.related-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* About: extra highlight row */

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.about-pillar {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
}

.about-pillar__label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.about-pillar__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.about-pillar__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* About: leadership & team */

.team-section .section__head {
  margin-bottom: 2.5rem;
}

.team-feature {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  max-width: 56rem;
  margin: 0 auto 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 800px) {
  .team-feature {
    grid-template-columns: 1fr;
  }
}

.team-feature__figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #e8e8e8;
}

.team-feature__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-feature__name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
}

.team-feature__role {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.team-feature__bio p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.team-feature__quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(30, 90, 138, 0.06);
  border-radius: 0 6px 6px 0;
}

.team-feature__quote p {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
}

.team-feature__quote footer {
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-section.section--muted .team-card {
  background: #fff;
}

.team-card__figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
}

.team-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.team-card__role {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.team-card__bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  flex: 1;
}

/* Footer */

.site-footer {
  background: #6b6b6b;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 3rem 1.25rem 2rem;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 2rem 2.5rem;
  text-align: left;
  align-items: start;
}

.site-footer__col--brand {
  max-width: 18rem;
}

.site-footer__logo-link {
  display: inline-block;
}

.site-footer__logo-link img {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

.site-footer__tagline {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.45rem;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__fineprint {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__contact-line {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__contact-line:last-child {
  margin-bottom: 0;
}

.site-footer__contact-label-inline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__contact-line a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.site-footer__contact-line a:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 520px) {
  .site-footer__grid {
    text-align: center;
  }

  .site-footer__col--brand {
    max-width: none;
  }

  .site-footer__logo-link {
    display: block;
  }
}

/* Legal pages */

.legal-page__inner {
  max-width: 42rem;
}

.legal-page__updated {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.legal-section p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: #333;
}

.legal-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-page__back {
  margin: 2.5rem 0 0;
}

/* Cookie consent banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  padding: 1rem 1.25rem;
  background: rgba(34, 34, 34, 0.97);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  margin: 0;
  max-width: 48rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.cookie-banner__accept {
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-banner__accept:hover {
  background: #f0f0f0;
}

body.cookie-banner-visible .back-to-top {
  bottom: 7.5rem;
}

@media (min-width: 720px) {
  body.cookie-banner-visible .back-to-top {
    bottom: 5.5rem;
  }
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--color-text);
  color: #fff;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #333;
}

.back-to-top svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Side dock */

.side-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #2a2a2a;
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

.side-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}

.side-dock a:hover {
  background: #444;
  text-decoration: none;
}

@media (max-width: 600px) {
  .side-dock {
    top: auto;
    bottom: 5rem;
    transform: none;
    border-radius: 6px 0 0 6px;
  }

  .back-to-top {
    bottom: 5rem;
    right: 0.75rem;
  }
}

/* ----- Product detail (products.html) ----- */

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-mount {
  min-height: 12rem;
}

.product-series-note {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.product-series-note a {
  font-weight: 600;
}

.product-page-section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery__stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #eee;
  box-shadow: var(--shadow-card);
}

.product-gallery__stage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.product-gallery__zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.product-gallery__thumb img {
  width: 5rem;
  height: 3.75rem;
  object-fit: cover;
  display: block;
}

.product-detail__lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-text);
}

.product-detail__body {
  margin-bottom: 1.75rem;
}

.product-detail__body p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.product-specs th,
.product-specs td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

.product-specs th {
  width: 38%;
  font-weight: 600;
  color: var(--color-text-soft);
}

.product-detail__cta {
  margin: 1.75rem 0 0;
}

.btn-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-text);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-inquiry:hover {
  background: #333;
}

.inquiry-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 6.5rem;
  z-index: 920;
  padding: 0.9rem 1.35rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(30, 90, 138, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.inquiry-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 90, 138, 0.45);
}

@media (max-width: 600px) {
  .inquiry-fab {
    bottom: 5.5rem;
    right: 0.75rem;
  }
}

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.inquiry-modal[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .inquiry-modal {
    align-items: center;
  }
}

.inquiry-modal__panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: min(92vh, 40rem);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.inquiry-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.inquiry-modal__close:hover {
  color: var(--color-text);
}

.inquiry-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding-right: 2rem;
}

.inquiry-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

.inquiry-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.inquiry-form label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 90, 138, 0.12);
}

.inquiry-form__note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--color-accent);
  background: rgba(30, 90, 138, 0.06);
  border-radius: 4px;
}

.inquiry-form__submit {
  width: 100%;
  padding: 0.85rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-text);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.inquiry-form__submit:hover {
  background: #333;
}

.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.zoom-modal[hidden] {
  display: none;
}

.zoom-modal__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1910;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.zoom-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.zoom-modal__img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  pointer-events: none;
}

/* ----- News article pages ----- */

.hero__title--article {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.article-toolbar {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 1.25rem;
}

.article-toolbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-soft);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: #ccc;
  font-weight: 400;
}

.breadcrumb__item a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: var(--color-text);
  font-weight: 600;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb__item--current::after {
  display: none;
}

.article-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-back-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-text);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-back-page:hover {
  background: #333;
  text-decoration: none;
  color: #fff;
}

.btn-back-page--ghost {
  background: #fff;
  color: var(--color-text);
  border: 1px solid #ddd;
}

.btn-back-page--ghost:hover {
  background: var(--color-muted);
  color: var(--color-text);
}

.article-shell {
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 4rem;
  background: #fff;
}

.article-shell__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 960px) {
  .article-shell__inner {
    grid-template-columns: 1fr;
  }
}

.article-main__meta {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.article-main__body p {
  margin: 0 0 1.15rem;
  color: var(--color-text-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-lead {
  font-size: 1.12rem !important;
  font-weight: 500;
  color: var(--color-text) !important;
  line-height: 1.65 !important;
}

.sidebar-block {
  margin-bottom: 2rem;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-block__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-block__desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.related-articles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-articles li {
  border-bottom: 1px solid #eee;
}

.related-articles li:last-child {
  border-bottom: 0;
}

.related-articles__link {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.related-articles__link:hover {
  text-decoration: none;
}

.related-articles__link:hover .related-articles__title {
  color: var(--color-accent);
  text-decoration: underline;
}

.related-articles__cat {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.25rem;
}

.related-articles__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.related-articles__date {
  font-size: 0.75rem;
  color: #999;
}

.contact-drawer {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: var(--color-muted);
  overflow: hidden;
}

.contact-drawer__summary {
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-drawer__summary::-webkit-details-marker {
  display: none;
}

.contact-drawer__summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
}

.contact-drawer[open] .contact-drawer__summary::after {
  content: "−";
}

.contact-drawer__body {
  padding: 0 1rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  border-top: 1px solid #e8e8e8;
  padding-top: 0.85rem;
}

.contact-drawer__body p {
  margin: 0 0 0.75rem;
}

.contact-drawer__body p:last-child {
  margin-bottom: 0;
}

.contact-drawer__body a {
  color: var(--color-accent);
}

.contact-drawer__note {
  font-size: 0.78rem !important;
  color: #777 !important;
}

@media (min-width: 961px) {
  .article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}
