/* ========================================
   BASE RESET
   Replaces the normalize.css v8 CDN link so the build has no
   third-party CSS dependency. Same rules, only the ones this page uses.
   ======================================== */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

figure {
  margin: 0;
}

a {
  background-color: transparent;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

textarea {
  overflow: auto;
}

/* ========================================
   恆康醫療科技 - Landing Page Styles
   ======================================== */

/* ---- Design Tokens ---- */
:root {
  --sage: #7A8F74;
  --sage-light: #9AAD95;
  --sage-muted: #B8C4B4;
  --dark: #2D2D2D;
  --cream: #F5F2EC;
  --warm-white: #FDFCFA;
  --mist: #E8E4DE;
  --pure-white: #FFFFFF;
  --light-sage-bg: #EDF0EB;
  --error-red: #C75050;
  --error-bg: #FDF2F2;

  --font-serif: 'Noto Serif TC', 'SimSun', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;

  --nav-height: 70px;
  --container-max: 1200px;
  --section-pad: 100px;
  --gap: 30px;
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--cream);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Typography ---- */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--sage);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
  letter-spacing: 0.05em;
  margin: 0 0 60px;
}

.section-heading--light {
  color: var(--pure-white);
}

/* ---- Buttons ---- */
.pill-btn {
  display: inline-block;
  border-radius: 40px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.pill-btn--primary {
  background: var(--sage);
  color: var(--pure-white);
  border: 1px solid var(--sage);
}

.pill-btn--primary:hover {
  background: var(--sage-light);
  border-color: var(--sage-light);
}

.pill-btn--secondary {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}

.pill-btn--secondary:hover {
  background: var(--sage);
  color: var(--pure-white);
}

.pill-btn--full {
  width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(245, 242, 236, 0.9);
  border-bottom: 1px solid var(--sage-muted);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo img {
  width: 40px;
  height: 40px;
}

.navbar__brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.05em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar__link:hover::after {
  transform: scaleX(1);
}

.navbar__link:hover {
  color: var(--sage);
}

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

.navbar__lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  padding: 6px 12px;
  border: 1px solid var(--sage-muted);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navbar__lang:hover {
  background: var(--sage);
  color: var(--pure-white);
  border-color: var(--sage);
}

/* Hamburger Menu Button */
.navbar__menu-btn {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.navbar__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--warm-white);
  z-index: 9999;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu__close span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  position: absolute;
}

.mobile-menu__close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--mist);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--sage);
}

/* Overlay for mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.6);
  transform: scale(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.7);
  z-index: 1;
}

.hero__gallery {
  position: relative;
  z-index: 2;
  width: 600px;
  height: 400px;
  margin: 0 auto;
}

.hero__gallery .gallery3d {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.gallery3d__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.gallery3d__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 260px;
  margin: -130px 0 0 -190px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(45, 45, 45, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.gallery3d__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single static panel if JavaScript is unavailable */
html:not(.js) .gallery3d__ring {
  position: static;
  width: 100%;
  height: 100%;
}

html:not(.js) .gallery3d__panel {
  position: static;
  width: 100%;
  height: 100%;
  margin: 0;
}

html:not(.js) .gallery3d__panel + .gallery3d__panel {
  display: none;
}

.hero__content {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 400;
  color: var(--pure-white);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  margin: 0;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.about__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__body {
  margin-bottom: 32px;
}

.about__body p {
  font-weight: 300;
  color: rgba(45, 45, 45, 0.8);
  margin: 0 0 20px;
  line-height: 1.7;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__image-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.about__image {
  width: 100%;
  /* Taller than the wrapper by the parallax travel distance, so shifting it
     up never exposes a gap at the bottom. */
  height: calc(100% + 60px);
  object-fit: cover;
  will-change: transform;
}

/* ========================================
   EQUIPMENT SHOWCASE
   ======================================== */
.equipment {
  background: var(--light-sage-bg);
  padding: 80px 0;
}

.equipment__header {
  max-width: var(--container-max);
  margin: 0 auto 60px;
  padding: 0 24px;
  text-align: center;
}

.equipment__header .section-heading {
  margin-bottom: 16px;
}

.equipment__desc {
  font-size: 18px;
  font-weight: 300;
  color: rgba(45, 45, 45, 0.7);
  margin: 0;
}

.equipment__spacer {
  position: relative;
}

.equipment__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
}

.equipment__scroll-wrapper {
  position: relative;
  overflow: hidden;
  /* breathing room so the card hover lift + shadow are not clipped */
  padding: 24px 0;
  margin: -24px 0;
}

.equipment__cards {
  display: flex;
  gap: var(--gap);
  padding: 0 24px;
  will-change: transform;
}

/* Product Card */
.product-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--pure-white);
  border-radius: 12px;
  border: 1px solid var(--mist);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__content {
  padding: 28px;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin: 0 0 12px;
}

.product-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(45, 45, 45, 0.7);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.03em;
}

/* ========================================
   PRODUCT HIGHLIGHTS
   ======================================== */
.highlights {
  background: var(--dark);
  padding: var(--section-pad) 0;
}

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

.highlights__header {
  text-align: center;
  margin-bottom: 60px;
}

.highlights__gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.highlights__image-area {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
}

.highlights__images {
  position: relative;
  width: 100%;
  height: 100%;
}

.highlights__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.highlights__img.active {
  opacity: 1;
  transform: translateY(0);
}

.highlights__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlights__slides {
  position: relative;
  min-height: 280px;
  margin-bottom: 40px;
}

.highlights__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.highlights__slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.highlights__brand {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.highlights__product {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--pure-white);
  margin: 0 0 16px;
  line-height: 1.3;
}

.highlights__desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 24px;
}

.highlights__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
  cursor: pointer;
}

.highlights__cta:hover {
  color: var(--sage-light);
}

.highlights__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.highlights__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.highlights__arrow:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.highlights__counter {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 60px;
  text-align: center;
}

.highlights__progress {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  margin: 0 auto;
  overflow: hidden;
}

.highlights__progress-bar {
  width: 100%;
  height: 100%;
  background: var(--sage);
  transform-origin: left;
  transform: scaleX(0);
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

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

.why__header {
  text-align: center;
  margin-bottom: 60px;
}

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

/* Service Card */
.service-card {
  background: var(--pure-white);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--mist);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--sage);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.service-card__icon {
  margin-bottom: 24px;
}

.service-card__icon img {
  margin: 0 auto;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin: 0 0 12px;
}

.service-card__tagline {
  font-size: 14px;
  font-weight: 300;
  color: rgba(45, 45, 45, 0.6);
  margin: 0;
  line-height: 1.5;
}

.service-card__expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.15s;
}

.service-card:hover .service-card__expand {
  max-height: 300px;
  opacity: 1;
}

.service-card__desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(45, 45, 45, 0.8);
  line-height: 1.7;
  margin: 24px 0 0;
  text-align: left;
}

.service-card__cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage);
  margin-top: 20px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--light-sage-bg);
  padding: var(--section-pad) 0;
}

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

.contact__header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact__header .section-heading {
  margin-bottom: 0;
}

.contact__info {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(45, 45, 45, 0.7);
  margin-bottom: 6px;
}

.form-input {
  background: var(--pure-white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(45, 45, 45, 0.4);
}

.form-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 143, 116, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D2D2D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.info-card {
  background: var(--pure-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.info-card__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mist);
}

.info-card__item:first-child {
  padding-top: 0;
}

.info-card__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card__text {
  display: flex;
  flex-direction: column;
}

.info-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-card__value {
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
}

.contact__map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
}

.contact__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  padding: 60px 0 30px;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0 0 24px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--pure-white);
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--pure-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__legal-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--pure-white);
}

.footer__divider {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   TOAST
   ======================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--pure-white);
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 400;
  z-index: 10000;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .section-heading {
    font-size: 32px;
  }

  .hero__gallery {
    width: 480px;
    height: 320px;
  }

  .hero__tagline {
    font-size: 36px;
  }

  .about__container {
    gap: 40px;
  }

  .highlights__gallery {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .highlights__image-area {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .highlights__info {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .section-heading {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__menu-btn {
    display: flex;
  }

  .hero {
    min-height: 500px;
  }

  .hero__gallery {
    width: 320px;
    height: 220px;
  }

  .hero__tagline {
    font-size: 26px;
  }

  .hero__content {
    bottom: 60px;
  }

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

  .about__image-wrapper {
    order: -1;
    max-height: 400px;
  }

  .product-card {
    width: 300px;
  }

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

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

  .contact__map {
    min-height: 220px;
  }

  .contact__header {
    margin-bottom: 32px;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__tagline {
    font-size: 22px;
  }

  .product-card {
    width: 260px;
  }

  .highlights__product {
    font-size: 22px;
  }

  .info-card {
    padding: 24px;
  }
}

/* ========================================
   SCROLL REVEAL
   Replaces GSAP ScrollTrigger fromTo() tweens. The "from" state lives in
   CSS (so there is no flash of un-animated content), IntersectionObserver
   adds .is-visible, and main.js strips the data-anim attribute once the
   transition finishes so hover transforms are not outranked.
   ======================================== */
[data-anim] {
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.js [data-anim] {
  opacity: 0;
}

html.js [data-anim="up"]     { transform: translate3d(0, 40px, 0); }
html.js [data-anim="up-sm"]  { transform: translate3d(0, 30px, 0); }
html.js [data-anim="up-lg"]  { transform: translate3d(0, 60px, 0); }
html.js [data-anim="left"]   { transform: translate3d(-40px, 0, 0); }
html.js [data-anim="right"]  { transform: translate3d(40px, 0, 0); }
html.js [data-anim="scale"]  { transform: scale(1.05); }
html.js [data-anim="zoom"]   { transform: scale(0.95); }
html.js [data-anim="fade"]   { transform: none; }

html.js [data-anim].is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   FOCUS VISIBILITY
   ======================================== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.form-input:focus-visible {
  outline: none;
}

/* Service cards expand on keyboard focus, not only on hover */
.service-card:focus-within {
  border-color: var(--sage);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-card:focus-within .service-card__expand {
  max-height: 300px;
  opacity: 1;
}

/* ========================================
   EQUIPMENT — TOUCH / SMALL SCREEN
   Below 768px the sticky pin is dropped in favour of native horizontal
   swiping, which is far better on touch than a hijacked vertical scroll.
   ======================================== */
@media (max-width: 768px) {
  .equipment__spacer {
    height: auto !important;
  }

  .equipment__pin {
    position: static;
    min-height: 0;
    padding-top: 0;
  }

  .equipment__scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .equipment__scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .equipment__cards {
    transform: none !important;
  }

  .product-card {
    scroll-snap-align: center;
  }
}

/* ========================================
   CONTENT PAGES (about / contact / terms / privacy)
   Container matches .navbar__container width so the body
   lines up edge-to-edge with the header.
   ======================================== */
.page {
  padding: calc(var(--nav-height) + 70px) 0 var(--section-pad);
  background: var(--warm-white);
  min-height: 100vh;
}

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

.page__header {
  padding-bottom: 40px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--mist);
}

.page__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-top: 10px;
}

.page__lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--sage);
  margin-top: 18px;
  max-width: 70ch;
}

.page__updated {
  font-size: 14px;
  color: var(--sage-light);
  margin-top: 20px;
}

/* Prose column — capped for readable line length inside the
   header-width container. */
.page__body {
  max-width: 78ch;
}

.page__body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin: 48px 0 18px;
}

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

.page__body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin: 30px 0 12px;
}

.page__body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--dark);
  margin-bottom: 18px;
}

.page__body ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.page__body li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 10px;
}

.page__body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-muted);
}

.page__body a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.page__body strong {
  font-weight: 500;
}

/* Two-column layout for the about + contact pages */
.page__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.page__split .page__body {
  max-width: none;
}

.page__aside-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page__back {
  display: inline-block;
  margin-top: 50px;
  font-size: 15px;
  color: var(--sage);
}

.page__back:hover {
  color: var(--dark);
}

@media (max-width: 900px) {
  .page {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .page__split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  html.js [data-anim] {
    opacity: 1;
    transform: none;
  }

  [data-anim],
  .highlights__img,
  .highlights__slide,
  .highlights__progress-bar {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .gallery3d__ring,
  .gallery3d__panel {
    transition: none !important;
  }
}
