:root {
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-on-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-soft: #333336;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --pearl: #fafafc;
  --tile: #272729;
  --tile-2: #2a2a2c;
  --black: #000000;
  --content: min(100% - 48px, 1240px);
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --arabic: "Noto Sans Arabic", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; overflow-x: hidden; }
body[dir="rtl"] { font-family: var(--arabic); }
::selection { color: #fff; background: var(--blue); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.page-glow { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 52px; margin: 0; padding: 8px max(24px, calc((100vw - 1240px) / 2)); color: #fff; background: var(--black); border: 0; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--black); background: #fff; border-radius: 8px; font-family: var(--display); font-size: 19px; letter-spacing: -0.08em; }
.brand small { display: block; margin-top: 4px; color: #a1a1a6; font-size: 9px; font-weight: 600; letter-spacing: 0.16em; }
.main-nav { display: flex; justify-content: center; gap: clamp(15px, 2vw, 29px); min-width: 0; font-size: 12px; letter-spacing: -0.01em; }
.main-nav a { color: #d2d2d7; transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-select { min-height: 32px; max-width: 105px; padding: 5px 28px 5px 10px; color: #fff; background-color: var(--ink); border: 0; border-radius: 8px; font-size: 12px; cursor: pointer; }
.language-select:focus-visible, .button:focus-visible, .text-link:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 3px; }
.menu-toggle { display: none; }

main { margin: 0; padding: 0; background: var(--tile); }
.hero { position: relative; display: block; min-height: calc(100dvh - 52px); margin: 0; padding: 0; overflow: hidden; color: #fff; background: var(--tile); border: 0; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: calc(100dvh - 52px); max-width: 510px; margin-left: max(32px, calc((100vw - 1440px) / 2)); padding: 84px 0 108px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #d2d2d7; font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.eyebrow span:first-child { width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; font-family: var(--display); font-weight: 600; }
h1 { max-width: 11ch; margin-bottom: 24px; font-size: clamp(46px, 5.1vw, 73px); line-height: 1.07; letter-spacing: -0.055em; }
h1 em, h2 em { font-style: italic; }
.hero-text { max-width: 31rem; margin-bottom: 31px; color: #d2d2d7; font-size: 19px; line-height: 1.5; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 22px; color: #fff; background: var(--blue); border: 0; border-radius: 999px; font-size: 16px; font-weight: 400; line-height: 1; cursor: pointer; transition: transform 180ms ease, background-color 180ms ease; }
.button:hover { background: var(--blue-focus); }
.button:active { transform: scale(0.95); }
.button b, .text-link b { margin-inline-start: 7px; font-size: 1.1em; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-on-dark); font-size: 16px; transition: opacity 180ms ease, transform 180ms ease; }
.text-link:hover { opacity: 0.76; }
.text-link:active { transform: scale(0.97); }
.hero-visual { position: absolute; inset: 0; z-index: 0; width: 100%; min-height: 0; margin: 0; }
.hero-image { position: absolute; inset: 0; background: url("assets/wellmax-family-sapling-hero.png") right center / cover no-repeat; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tile) 0%, var(--tile) 25%, rgb(39 39 41 / .70) 42%, rgb(39 39 41 / .18) 59%, transparent 72%); }
.hero-orbit { display: none; }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #1d1d1f; background: rgb(245 245 247 / 0.92); border: 1px solid rgb(255 255 255 / 0.25); border-radius: 11px; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); font-size: 12px; line-height: 1.25; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-weight: 600; }
.floating-note small { margin-top: 3px; color: #6e6e73; }
.note-top { top: 14%; right: 9%; }
.note-bottom { bottom: 13%; left: 9%; }
.note-icon, .route-line { color: var(--blue); font-size: 20px; line-height: 1; }
.scroll-cue { display: none; }

.section { padding: 112px 0; }
.section > * { width: var(--content); margin-inline: auto; }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.section-label span { display: none; }
.section-label p { margin: 0; }
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(170px, 0.58fr) minmax(0, 1.42fr); gap: clamp(40px, 9vw, 150px); align-items: start; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 14px; color: #fff; background: var(--tile); }
.stats-strip > div { padding: 0 18px; border-left: 1px solid rgb(255 255 255 / .28); }
.stats-strip > div:first-child { padding-left: 0; border-left: 0; }
.stats-strip strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.stats-strip strong { color: #fff; }
.stats-strip span { display: block; margin-top: 9px; color: #d2d2d7; font-size: 13px; line-height: 1.35; }
.about-content h2, .services-heading h2, .process-intro h2, .catalog-heading h2, .advantages-grid > div:first-child h2, .contact-top h2 { margin-bottom: 22px; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.1; letter-spacing: -0.045em; }
.about-content > p { max-width: 640px; margin-bottom: 28px; color: var(--ink-soft); font-size: 19px; }
.dark-link { color: var(--blue); }

.services { color: #fff; background: var(--tile); }
.services .section-label, .services-heading > p { color: #ccc; }
.services-heading { max-width: 750px; margin-bottom: 52px; }
.services-heading h2 { margin-bottom: 18px; }
.services-heading > p { max-width: 610px; margin-bottom: 0; font-size: 19px; }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: rgb(255 255 255 / 0.2); }
.service-card { min-height: 300px; padding: 30px; color: #fff; background: var(--tile); }
.service-card:nth-child(1), .service-card:nth-child(4) { grid-column: span 5; }
.service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 7; background: var(--tile-2); }
.service-number { margin-bottom: 48px; color: #a1a1a6; font-size: 13px; }
.service-icon { margin-bottom: 36px; color: var(--blue-on-dark); font-size: 31px; line-height: 1; }
.service-card h3 { margin-bottom: 12px; font-size: 21px; font-weight: 600; line-height: 1.2; }
.service-card p { max-width: 34rem; margin-bottom: 0; color: #ccc; font-size: 15px; }

.process { background: var(--mist); }
.process-intro { max-width: 720px; margin-bottom: 58px; }
.process-intro p { max-width: 610px; margin-bottom: 0; color: var(--ink-soft); font-size: 19px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-steps article { position: relative; padding-top: 44px; }
.process-steps article::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.process-steps article > span { position: absolute; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 11px; }
.process-steps h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.25; }
.process-steps p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.catalogs { background: var(--paper); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.catalog-heading h2 { margin-bottom: 14px; }
.catalog-heading p { max-width: 630px; margin-bottom: 0; color: var(--ink-soft); font-size: 18px; }
.catalog-language { flex: 0 0 auto; padding-bottom: 8px; color: var(--muted); font-size: 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 34px; }
.catalog-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 280px; padding: 30px; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 18px; font: inherit; text-align: left; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.catalog-card:hover { background: var(--pearl); border-color: var(--line); transform: translateY(-2px); }
.catalog-card.selected { color: #fff; background: var(--tile); border: 2px solid var(--blue-focus); }
.catalog-card-number { display: block; margin-bottom: 55px; color: var(--muted); font-size: 13px; }
.catalog-card-icon { display: block; margin-bottom: 31px; color: var(--blue); font-size: 33px; line-height: 1; }
.catalog-card strong { display: block; max-width: 13ch; margin-bottom: 10px; font-family: var(--display); font-size: 31px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.catalog-card small { display: block; max-width: 28rem; color: var(--muted); font-size: 15px; }
.catalog-card .catalog-select { display: inline-flex; align-items: center; min-height: 38px; width: auto; margin-top: auto; padding: 8px 14px; color: var(--blue); background: transparent; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; }
.catalog-card.selected .catalog-card-number, .catalog-card.selected small { color: #ccc; }
.catalog-card.selected .catalog-select { color: #fff; background: var(--blue); border-color: var(--blue); }
.catalog-form { display: grid; grid-template-areas: "email send" "email help"; grid-template-columns: minmax(0, 7fr) minmax(210px, 3fr); gap: 12px 18px; align-items: end; padding: 28px; background: var(--mist); border-radius: 18px; }
.catalog-form label { display: block; }
.catalog-form > label:not(.honeypot) { grid-area: email; min-width: 0; width: 100%; }
.catalog-form > .button { grid-area: send; min-width: 0; }
.catalog-form label span, .contact label span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.catalog-form .button { width: 100%; min-height: 48px; white-space: nowrap; }
.catalog-status { grid-area: help; min-width: 0; min-height: 22px; margin: 0; color: var(--muted); font-size: 13px; }
.catalog-status[data-state="success"], .form-note[data-state="success"] { color: #176a3a; }
.catalog-status[data-state="error"], .form-note[data-state="error"] { color: #bd1d1d; }
input, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; outline: 0; transition: border-color 180ms ease, box-shadow 180ms ease; }
input { min-height: 48px; padding: 10px 16px; }
textarea { min-height: 144px; padding: 14px 16px; border-radius: 11px; resize: vertical; }
input:focus, textarea:focus, .catalog-select:focus { border-color: var(--blue-focus); box-shadow: 0 0 0 3px rgb(0 113 227 / 0.16); }
.honeypot { display: none !important; }

.quote-band { position: relative; padding: 112px max(24px, calc((100vw - 800px) / 2)); color: #fff; background: var(--tile-2); text-align: center; }
.quote-symbol { margin-bottom: 18px; color: var(--blue-on-dark); font-family: var(--display); font-size: 54px; line-height: 0.7; }
blockquote { max-width: 730px; margin: 0 auto; font-family: var(--display); font-size: clamp(29px, 3.2vw, 45px); font-weight: 600; line-height: 1.16; letter-spacing: -0.035em; }
.advantages { background: var(--mist); }
.advantages-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(330px, 1.2fr); gap: clamp(48px, 10vw, 150px); align-items: center; }
.advantages-grid > div:first-child h2 { max-width: 10ch; }
.advantages-image { position: relative; min-height: 470px; overflow: hidden; background: #d8d8dc; border-radius: 18px; }
.advantages-image::before { content: ""; position: absolute; inset: 0; background: url("assets/wellmax-global-partnership-hands.png") center / cover no-repeat; filter: contrast(.96) brightness(1.03) saturate(.94); }
.advantages-image::after { content: ""; position: absolute; inset: 0; background: rgb(245 245 247 / .06); }
.advantage-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.advantage-list article { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 27px 0; border-top: 1px solid var(--line); }
.advantage-list article:last-child { border-bottom: 1px solid var(--line); }
.advantage-list article > span { color: var(--blue); font-size: 20px; }
.advantage-list h3 { margin-bottom: 7px; font-size: 20px; line-height: 1.2; }
.advantage-list p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.contact { color: #fff; background: var(--tile); }
.contact .section-label, .contact-top > p, .contact-details > p { color: #ccc; }
.contact-top { max-width: 700px; margin-bottom: 52px; }
.contact-top h2 { margin-bottom: 20px; }
.contact-top > p { max-width: 620px; margin-bottom: 0; font-size: 19px; }
.contact-grid { display: grid; grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr); gap: clamp(48px, 10vw, 160px); align-items: start; }
.contact-details { padding-top: 6px; }
.contact-email { margin-bottom: 20px !important; color: #fff !important; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.contact-details a { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--blue-on-dark); }
.contact-details a span { font-size: 18px; }
.contact-details p:last-child { margin-bottom: 0; font-size: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact label { display: block; margin-bottom: 17px; }
.contact input, .contact textarea { color: #fff; background: #1d1d1f; border-color: #515156; }
.contact input::placeholder, .contact textarea::placeholder { color: #a1a1a6; }
.contact .button { min-width: 160px; }
.form-note { min-height: 24px; margin: 14px 0 0; color: #ccc; font-size: 14px; }
footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 32px max(24px, calc((100vw - 1240px) / 2)); color: #6e6e73; background: var(--mist); font-size: 12px; }
footer .brand { color: var(--ink); }
footer p { margin: 0; text-align: center; }
.back-top { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: transform 180ms ease, color 180ms ease, border-color 180ms ease; }
.back-top:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

@media (max-width: 1040px) {
  .site-header { gap: 18px; }
  .main-nav { gap: 13px; }
  .hero-copy { max-width: 470px; margin-left: 32px; }
  .section { padding: 88px 0; }
  .service-card:nth-child(n) { grid-column: span 6; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
}

@media (max-width: 840px) {
  :root { --content: min(100% - 40px, 1240px); }
  .site-header { grid-template-columns: auto 1fr auto; min-height: 58px; }
  .menu-toggle { display: grid; place-content: center; gap: 5px; width: 34px; height: 34px; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; justify-content: stretch; gap: 0; max-height: 0; overflow: hidden; background: #111; opacity: 0; transition: max-height 220ms ease, opacity 220ms ease; }
  .main-nav a { padding: 15px 24px; border-top: 1px solid #292929; }
  .main-nav.open { max-height: 430px; opacity: 1; }
  .header-actions { justify-self: end; }
  .hero { display: grid; grid-template-columns: 1fr; min-height: auto; padding: 0; }
  .hero-copy { min-height: 570px; width: var(--content); padding: 72px 0 86px; margin: 0 auto; }
  .hero-visual { position: relative; inset: auto; width: auto; min-height: 430px; margin: 0; }
  .hero-image::after { background: linear-gradient(90deg, rgb(39 39 41 / 0.15), transparent 65%); }
  .floating-note { display: none; }
  .about-grid, .advantages-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .stats-strip { max-width: 530px; }
  .advantages-image { order: -1; min-height: 340px; }
  .catalog-form { grid-template-columns: minmax(0, 7fr) minmax(180px, 3fr); }
}

@media (max-width: 620px) {
  :root { --content: min(100% - 32px, 1240px); }
  body { font-size: 16px; }
  .site-header { padding-inline: 16px; gap: 12px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 25px; height: 25px; }
  .header-actions .button-small { display: none; }
  .language-select { max-width: 88px; padding-right: 20px; }
  .hero-copy { min-height: 512px; padding: 55px 0 64px; }
  h1 { max-width: 10ch; margin-bottom: 20px; font-size: clamp(39px, 12vw, 54px); }
  .hero-text { margin-bottom: 26px; font-size: 17px; }
  .hero-visual { min-height: 315px; }
  .section { padding: 68px 0; }
  .about-content h2, .services-heading h2, .process-intro h2, .catalog-heading h2, .advantages-grid > div:first-child h2, .contact-top h2 { font-size: 39px; }
  .stats-strip { grid-template-columns: 1fr; gap: 22px; }
  .stats-strip > div, .stats-strip > div:first-child { padding: 0 0 0 17px; border-left: 1px solid var(--line); }
  .services-heading { margin-bottom: 35px; }
  .services-heading > p, .process-intro p, .catalog-heading p, .contact-top > p, .about-content > p { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { grid-column: auto; min-height: 0; padding: 27px 24px; }
  .service-number { margin-bottom: 35px; }
  .service-icon { margin-bottom: 28px; }
  .process-steps { grid-template-columns: 1fr; gap: 34px; }
  .catalog-heading { display: block; margin-bottom: 30px; }
  .catalog-language { display: block; margin-top: 16px; padding: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 250px; }
  .catalog-form { grid-template-areas: "email" "send" "help"; grid-template-columns: 1fr; padding: 20px; border-radius: 11px; }
  .quote-band { padding: 80px 24px; }
  blockquote { font-size: 30px; }
  .advantages-image { min-height: 280px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  footer { grid-template-columns: 1fr auto; padding: 28px 16px; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  body[dir="rtl"] footer p { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
