:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-tint: #eef3ef;
  --ink: #10241c;
  --text: #1c332a;
  --muted: #55695f;
  --line: #dde4de;
  --line-strong: #c8d3ca;
  --primary: #0e6a4c;
  --primary-deep: #0a4f38;
  --primary-soft: #e3efe8;
  --accent: #b98a44;
  --dark: #0d2b21;
  --dark-2: #123a2c;
  --on-dark: #e9f2ec;
  --on-dark-muted: #a9c0b3;
  --shadow-sm: 0 1px 2px rgba(16, 36, 28, 0.06), 0 4px 12px rgba(16, 36, 28, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 36, 28, 0.06), 0 16px 40px rgba(16, 36, 28, 0.1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --max-width: 1180px;
  --font-display: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

img {
  display: block;
}

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

:focus-visible {
  outline: 3px solid rgba(14, 106, 76, 0.4);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

/* ============ ACCESSIBILITY ============ */

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-deep);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 245, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(16, 36, 28, 0.06);
}

.home .site-header {
  position: fixed;
  width: 100%;
}

.home .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(4, 20, 15, 0.72), transparent);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home .site-header:not(.is-scrolled) .site-nav a {
  color: #ffffff;
}

.home .site-header:not(.is-scrolled) .site-nav a:hover,
.home .site-header:not(.is-scrolled) .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: clamp(10.5rem, 14vw, 12.5rem);
  height: auto;
  border-radius: 0.45rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

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

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

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

/* ============ BUTTONS ============ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-compact {
  min-height: 2.7rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}

.button-primary {
  color: #f4faf6;
  background: linear-gradient(150deg, var(--primary), var(--primary-deep));
  box-shadow: 0 10px 24px rgba(14, 106, 76, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 30px rgba(14, 106, 76, 0.34);
}

.button-secondary {
  color: var(--primary-deep);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-tint);
  border-color: var(--primary);
}

.button-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.button-glass:hover,
.button-glass:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.button-light {
  color: var(--primary-deep);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button-outline-light {
  color: var(--on-dark);
  border-color: rgba(233, 242, 236, 0.35);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  border-color: rgba(233, 242, 236, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

/* ============ TYPO HELPERS ============ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow-light {
  color: #9fdcbf;
}

h1 {
  max-width: 17ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  max-width: 24ch;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.hero-lead,
.section-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.8;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ PHOTO HERO ============ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 46rem);
  padding: 6rem 0 4.5rem;
  color: #ffffff;
  overflow: hidden;
}

.home .hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 8.5rem;
  padding-bottom: 7rem;
}

.hero-slim {
  min-height: min(62vh, 34rem);
  padding: 5rem 0 3.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media video {
  display: block;
  filter: saturate(0.9) contrast(1.04);
  transform: none;
}

.home .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(151, 219, 191, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 219, 191, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 30, 23, 0.92) 0%, rgba(9, 30, 23, 0.72) 45%, rgba(9, 30, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(9, 30, 23, 0.35), rgba(9, 30, 23, 0.05) 40%);
}

.home .hero-media::after {
  z-index: 2;
  background:
    radial-gradient(circle at 78% 45%, rgba(14, 106, 76, 0.08), rgba(5, 20, 15, 0.52) 78%),
    linear-gradient(90deg, rgba(4, 21, 15, 0.96) 0%, rgba(4, 21, 15, 0.76) 46%, rgba(4, 21, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(4, 21, 15, 0.72), transparent 42%);
}

.home .hero-content {
  position: relative;
  z-index: 3;
}

.home .hero-content h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6.3vw, 5.4rem);
  line-height: 0.98;
}

.home .hero-content .hero-lead {
  max-width: 36rem;
}

.hero-motion-control,
.hero-scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-motion-control {
  right: max(1.25rem, calc((100vw - var(--max-width)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 21, 15, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.hero-motion-control:hover,
.hero-motion-control:focus-visible {
  color: #ffffff;
  background: rgba(4, 21, 15, 0.7);
  border-color: rgba(255, 255, 255, 0.55);
}

.motion-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}

.hero-motion-control[aria-pressed="true"] .motion-icon-pause {
  display: none;
}

.hero-motion-control[aria-pressed="true"] .motion-icon-play {
  display: block;
}

.hero-scroll-cue {
  left: max(1.25rem, calc((100vw - var(--max-width)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-cue svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

.hero-content h1 {
  color: #ffffff;
}

.hero-content .hero-lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.9rem 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-width: 34rem;
}

.hero-stats > div {
  padding: 1.1rem 2.2rem 0 0;
}

.hero-stats > div + div {
  padding-left: 2.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

/* ============ SECTIONS ============ */

.section {
  padding: 5rem 0;
}

.section-tint {
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-head .section-lead {
  margin-bottom: 0;
}

/* ============ PHOTO CARDS (SERVICES) ============ */

.photo-grid {
  display: grid;
  gap: 1.1rem;
}

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

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.photo-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.photo-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}

.service-strip li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.service-strip li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ============ ABOUT (DARK) ============ */

.section-dark {
  background:
    radial-gradient(50rem 26rem at 110% 0%, rgba(14, 106, 76, 0.35), transparent 55%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
}

.section-dark h2 {
  color: #ffffff;
}

.section-dark p {
  color: var(--on-dark-muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.about-copy {
  max-width: 52rem;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: rgba(143, 212, 184, 0.18);
  color: #8fd4b8;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ============ CATEGORY TILES ============ */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.tile-product {
  background: linear-gradient(145deg, #f8fbf9 0%, #e6efe9 100%);
}

.tile-product > img {
  object-fit: contain;
  object-position: center 38%;
  padding: 0.7rem 1rem 3.2rem;
  filter: drop-shadow(0 12px 18px rgba(9, 30, 23, 0.14));
}

.tile:hover > img {
  transform: scale(1.05);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  background: linear-gradient(0deg, rgba(9, 30, 23, 0.88) 0%, rgba(9, 30, 23, 0.35) 45%, rgba(9, 30, 23, 0.05) 70%);
}

.tile-overlay h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.22rem;
}

.tile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tile-active .tile-status {
  color: #8fd4b8;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2ec48c;
  box-shadow: 0 0 0 4px rgba(46, 196, 140, 0.25);
}

.tile-link {
  margin-top: 0.55rem;
  color: #9fdcbf;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}

a.tile {
  outline-offset: -3px;
}

/* ============ PROCESS STRIP ============ */

.section-tint:has(.process-strip) {
  padding: 2.4rem 0;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-strip li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.process-strip strong {
  color: var(--ink);
  font-family: var(--font-display);
  display: block;
}

.process-strip span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

/* ============ WHO WE SERVE ============ */

.serve-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.serve-media {
  margin: 0;
}

.serve-media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.serve-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.serve-list li {
  display: grid;
  gap: 0.1rem;
  padding: 1rem 0;
}

.serve-list li + li {
  border-top: 1px solid var(--line);
}

.serve-list strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
}

.serve-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============ CONTACT ============ */

.section-contact {
  padding-bottom: 6rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(46rem 24rem at 100% 0%, rgba(14, 106, 76, 0.4), transparent 55%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}

.contact-shell h2 {
  color: #ffffff;
}

.contact-shell-form {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.contact-copy p {
  color: var(--on-dark-muted);
  max-width: 34rem;
}

.contact-copy .contact-location {
  margin-top: 2rem;
  color: var(--on-dark);
}

.contact-form {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(2, 20, 14, 0.24);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.form-field label span,
.form-required-note span {
  color: var(--primary-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 106, 76, 0.13);
}

.form-helper {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-required-note,
.form-status {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-required-note {
  color: var(--muted);
}

.form-status:not(:empty) {
  max-width: 32rem;
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  border-radius: 0.3rem;
  color: var(--ink);
  background: #f7f1e7;
}

.form-status.is-success {
  border-left-color: var(--primary) !important;
  background: #e6f4ed !important;
  color: var(--primary-deep) !important;
  font-weight: 500;
}

.form-status.is-error {
  border-left-color: #d93838 !important;
  background: #fde8e8 !important;
  color: #901c1c !important;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.contact-shell-slim {
  grid-template-columns: minmax(0, 1.3fr) auto;
}

.contact-shell-slim .contact-actions {
  margin-top: 0;
}

.contact-shell-slim h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.contact-shell-slim .contact-copy p {
  margin-bottom: 0;
}

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

.contact-details > div {
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(233, 242, 236, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.contact-details dt {
  color: var(--on-dark-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0.2rem 0 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
}

.contact-details dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* ============ PRODUCT CARDS ============ */

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.product-card-featured {
  border-color: rgba(14, 106, 76, 0.3);
}

.product-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1.75rem;
  background: linear-gradient(180deg, #f4f7f4 0%, #eaf1ec 100%);
  border-bottom: 1px solid var(--line);
}

.product-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(16, 36, 28, 0.14));
}

.product-photo-wrap {
  padding: 0;
  overflow: hidden;
}

.product-photo-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: none;
  transition: transform 300ms ease;
}

.product-card:hover .product-photo-wrap img {
  transform: scale(1.035);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}

.product-card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.product-card-note {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.catalog-hero .hero-media {
  background: linear-gradient(115deg, #0b2a20 0%, #164c3b 52%, #edf3ef 100%);
}

.catalog-hero .hero-media img {
  object-fit: contain;
  object-position: 82% center;
  padding: 2.5rem 5%;
}

.featured-kicker {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-points {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-points li + li {
  margin-top: 0.45rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}

.inline-link::after {
  content: "↗";
}

.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-inquiry::after {
  content: "→";
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumb a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.42);
}

/* ============ IVF PRODUCT DETAILS ============ */

.product-detail-hero {
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(circle at 82% 24%, rgba(53, 164, 123, 0.13), transparent 32%),
    linear-gradient(145deg, #f7faf8 0%, #e9f2ed 100%);
  border-bottom: 1px solid var(--line);
}

.product-breadcrumb {
  margin-bottom: 2rem;
  color: var(--muted);
}

.product-breadcrumb a {
  color: var(--primary-deep);
  text-decoration-color: rgba(14, 106, 76, 0.35);
}

.product-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.product-detail-intro h1 {
  max-width: 13ch;
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.product-detail-lead {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.product-detail-visual {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
}

.product-detail-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(16, 36, 28, 0.12));
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.product-detail-copy h2 {
  max-width: 17ch;
}

.product-detail-copy h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
}

.product-detail-overview {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.product-feature-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-feature-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.65;
}

.product-feature-list li::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 1.2rem;
  width: 0.75rem;
  height: 0.38rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.product-spec-panel {
  position: sticky;
  top: 7rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  box-shadow: var(--shadow-sm);
}

.product-spec-panel h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.product-spec-list {
  margin: 0;
}

.product-spec-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.product-spec-list dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.5;
}

.product-spec-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-detail-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-detail-pagination a {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-detail-pagination a:last-child {
  text-align: right;
}

.product-detail-pagination a:hover,
.product-detail-pagination a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.product-detail-pagination span {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-pagination strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 20rem;
}

.footer-brand .brand-logo {
  width: min(13rem, 100%);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
}

.footer-muted {
  margin: 0;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(233, 242, 236, 0.12);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

/* ============ REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .product-detail-hero-grid,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-intro h1 {
    max-width: 18ch;
  }

  .product-detail-visual {
    max-width: 46rem;
  }

  .product-spec-panel {
    position: static;
  }

  .about-layout,
  .serve-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .serve-media img {
    aspect-ratio: 16 / 9;
  }

  .photo-grid-3,
  .tile-grid,
  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-shell,
  .contact-shell-slim {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .contact-shell-form {
    padding: 1.25rem;
  }

  .product-detail-hero {
    padding: 7rem 0 3.5rem;
  }

  .product-detail-pagination {
    grid-template-columns: 1fr;
  }

  .product-detail-pagination a:last-child {
    text-align: left;
  }

  .product-spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .button-compact {
    display: none;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }

  .home .site-header:not(.is-scrolled) .site-nav {
    margin-inline: -1.25rem;
    width: calc(100% + 2.5rem);
    padding: 0.75rem 1.25rem;
    border-top-color: rgba(255, 255, 255, 0.16);
    background: rgba(4, 21, 15, 0.94);
  }

  .home .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
  }

  .home .site-header:not(.is-scrolled) .nav-toggle span {
    background: #ffffff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0.6rem;
  }

  .hero {
    min-height: 0;
    padding: 4.5rem 0 3.5rem;
  }

  .home .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 7.5rem 0 7rem;
  }

  .home .hero-content h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .home .hero-stats > div:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }

  .hero-motion-control span,
  .hero-scroll-cue span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-motion-control {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-stats > div {
    padding-right: 1.4rem;
  }

  .hero-stats > div + div {
    padding-left: 1.4rem;
  }

  .photo-grid-3,
  .tile-grid,
  .product-gallery,
  .featured-products,
  .process-strip {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .reveal,
  .reveal-delay,
  .button,
  .site-nav a,
  .skip-link,
  .photo-card,
  .product-card,
  .tile > img {
    transition: none;
  }

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

  .hero-scroll-cue svg {
    animation: none;
  }
}
