/*
Theme Name: HealEdge
Theme URI: https://healedge.ae
Author: HealEdge Medical Supplies LLC
Description: Official HealEdge Medical Supplies website theme
Version: 1.0.0
License: Proprietary
Text Domain: healedge
*/

/* ── Galano Grotesque ────────────────────────────── */
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque";
  src: url("fonts/GalanoGrotesque-ExtraBold.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Galano Grotesque Heavy";
  src: url("fonts/GalanoGrotesque-Heavy.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Design Tokens ───────────────────────────────── */
:root {
  --color-pink:         #e5295a;
  --color-pink-dark:    #c41e4c;
  --color-black:        #0a0a0a;
  --color-ink:          #111113;
  --color-gray-300:     #bcbcbc;
  --color-gray-400:     #8a8a8a;
  --color-gray-500:     #5a5a5a;
  --color-gray-600:     #3a3a3a;
  --surface-mission:    #e5295a;
  --surface-vision:     #5e5e60;
  --surface-principles: #c4c4c4;
  --font:               "Galano Grotesque", system-ui, -apple-system, sans-serif;
  --corner-cut:         48px;
  --header-h:           72px;
  --ease-out:           cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--color-ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; }
ul   { list-style: none; }
a    { text-decoration: none; }

/* ── Typography helpers ──────────────────────────── */
.section-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: .35rem;
}
.section-sub {
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 1.4rem;
}
.section-body {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--color-gray-500);
  margin-bottom: .9rem;
}

/* ── Layout helpers ──────────────────────────────── */
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 4px solid var(--color-pink);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; object-fit: contain; }

#main-nav ul { display: flex; align-items: center; gap: 0; }
#main-nav ul li { position: relative; }
#main-nav ul li:not(:last-child)::after {
  content: '|';
  color: var(--color-gray-300);
  font-size: .75rem;
  padding: 0 6px;
  font-weight: 300;
}
#main-nav ul li a {
  font-family: var(--font);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
  transition: color .16s var(--ease-out);
  padding-block: 6px;
}
#main-nav ul li a:hover { color: var(--color-pink); }
#main-nav ul li.nav-accent a {
  color: var(--color-pink);
  font-weight: 700;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .82rem;
}
#main-nav ul li.nav-accent a:hover { color: var(--color-pink-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-ink); transition: .3s; }

#main-nav.open {
  display: flex !important;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 199;
}
#main-nav.open ul { flex-direction: column; align-items: center; gap: 24px; }
#main-nav.open ul li::after { display: none; }
#main-nav.open ul li a { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  margin-top: var(--header-h);
  background: var(--color-black);
  overflow: hidden;
}
.slider { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background: var(--color-black) center/cover no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: flex-end;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(10,10,10,.45) 0%,rgba(10,10,10,.2) 40%,rgba(10,10,10,.82) 100%);
}
.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem);
}
.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-pink);
  margin-bottom: 1.25rem;
}
.slide-eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--color-pink);
  flex-shrink: 0;
}
.slide-headline {
  font-family: var(--font);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}
.slide-sub {
  font-family: var(--font);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
}
.slider-dots {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}
.dot.active { background: var(--color-pink); transform: scale(1.35); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(10,10,10,.45);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--color-pink); border-color: var(--color-pink); }
.slider-prev { left: clamp(1rem, 3vw, 2rem); }
.slider-next { right: clamp(1rem, 3vw, 2rem); }

/* ═══════════════════════════════════════════════════
   ANGULAR IMAGE CONTAINERS
   ═══════════════════════════════════════════════════ */
.ang-img {
  width: 100%;
  height: 400px;
  background: var(--color-black) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.ang-tl { clip-path: polygon(var(--corner-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--corner-cut)); }
.ang-tr { clip-path: polygon(0 0, calc(100% - var(--corner-cut)) 0, 100% var(--corner-cut), 100% 100%, 0 100%); }

/* ═══════════════════════════════════════════════════
   FOUNDATION
   ═══════════════════════════════════════════════════ */
#foundation { background: #fff; padding: 100px 0 0; }
.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: 80px;
}
.region-banner { background: var(--color-black); padding: 28px 0; }
.region-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.region-banner span {
  font-family: var(--font);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   WHO WE ARE
   ═══════════════════════════════════════════════════ */
#whoweare { background: #fff; padding: 100px 0; }
.whoweare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

/* ═══════════════════════════════════════════════════
   MISSION
   ═══════════════════════════════════════════════════ */
#mission {
  background: var(--surface-mission);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  clip-path: polygon(56px 0,100% 0,100% calc(100% - 56px),calc(100% - 56px) 100%,0 100%,0 56px);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
#mission .section-title { color: #fff; font-size: 1.375rem; font-weight: 800; letter-spacing: .04em; margin-bottom: .5rem; }
#mission .section-body  { color: rgba(255,255,255,.92); font-size: .92rem; max-width: 38ch; }
.mission-pillars { display: contents; }
.pillar {
  border-left: 1px solid rgba(255,255,255,.35);
  padding-left: clamp(.75rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
}
.pillar p {
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.45;
  white-space: pre-line;
}

/* ═══════════════════════════════════════════════════
   VISION
   ═══════════════════════════════════════════════════ */
#vision { background: var(--surface-vision); padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.vision-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.vision-label {
  font-family: var(--font);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.vision-text {
  font-family: var(--font);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
  max-width: 90ch;
}

/* ═══════════════════════════════════════════════════
   GUIDING PRINCIPLES
   ═══════════════════════════════════════════════════ */
#principles { background: var(--surface-principles); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.principles-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.principles-heading {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--color-pink);
  line-height: 0.95;
  white-space: pre-line;
  max-width: 9ch;
}
.principles-list { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2rem); padding-top: 6px; }
.principle { display: grid; grid-template-columns: 32px 1fr; gap: 1rem; align-items: start; }
.plus { font-family: var(--font); font-size: 1.6rem; font-weight: 800; color: var(--color-pink); line-height: 1; }
.principle h3 {
  font-family: var(--font);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 4px;
}
.principle p {
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--color-gray-600);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   PARTNERS
   ═══════════════════════════════════════════════════ */
#partners { background: #fff; padding: 80px 0; }
.partners-heading { text-align: center; margin-bottom: 50px; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 60px; }
.partner-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.partner-item img { max-height: 56px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.partner-item img:hover { filter: none; opacity: 1; }
.partner-item span { font-family: var(--font); font-size: .6rem; letter-spacing: .12em; color: var(--color-gray-400); text-transform: uppercase; }

/* ═══════════════════════════════════════════════════
   POPMÈTRE
   ═══════════════════════════════════════════════════ */
#popmetre { background: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.popmetre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.popmetre-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: -.01em;
  line-height: 0.95;
  margin-bottom: .3rem;
}
#popmetre .section-sub { color: var(--color-ink); font-weight: 700; letter-spacing: .2em; }
#popmetre .section-body { color: var(--color-gray-600); }
#popmetre-img {
  clip-path: none;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
#popmetre-img video {
  width: 100%; height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.pdf-link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s;
}
.pdf-link:hover { color: var(--color-pink); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  background: #1a1a1c;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.footer-nav ul li a {
  font-family: var(--font);
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  transition: color .16s var(--ease-out);
}
.footer-nav ul li a:hover { color: var(--color-pink); }
.copyright {
  font-family: var(--font);
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  text-align: right;
  width: 100%;
  padding-top: 20px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 980px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .pillar:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .foundation-grid, .whoweare-grid, .popmetre-grid { grid-template-columns: 1fr; }
  .whoweare-img-wrap { order: -1; }
  .mission-grid { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-left: 0; padding-top: 1rem; }
  .pillar:first-child { border-top: 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 30px; }
  .principles-heading { white-space: normal; }
  .ang-img { height: 280px; }
  #foundation { padding-top: 60px; }
  #whoweare, #popmetre { padding: 60px 0; }
  #vision { padding: clamp(2rem, 4vw, 3rem) 0; }
  #principles { padding: 60px 0; }
  .vision-inner { grid-template-columns: 1fr; gap: 1rem; }
  .vision-label { white-space: normal; }
}
@media (max-width: 560px) {
  #mission { clip-path: none; }
  .slider-arrow { display: none; }
  .slide-headline { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .ang-img { height: 220px; }
  .principles-heading { font-size: 2.25rem; }
  .popmetre-title { font-size: 1.75rem; }
  .copyright { text-align: center; }
  .footer-inner { align-items: center; }
  .footer-nav ul { align-items: center; }
}
