/* ============================================================
   SALES MEDİKAL — paylaşılan UI bileşenleri  →  window
   ============================================================ */
const { useState, useEffect, useRef } = React;

/* ---------- Brand mark (geometric, lacivert) ---------- */
function Mark({ size = 34, color = 'var(--navy)', mono }) {
  return (
    <svg width={size} height={size} viewBox="0 0 48 48" fill="none" aria-hidden="true">
      <path d="M24 4 L42 14 V20 L24 10 L6 20 V14 Z" fill={color} />
      <path d="M24 17 L42 27 V33 L24 23 L6 33 V27 Z" fill={color} opacity={mono ? 1 : .72} />
      <path d="M24 30 L42 40 V44 L24 34 L6 44 V40 Z" fill={color} opacity={mono ? 1 : .46} />
    </svg>
  );
}

function Logo({ light, onClick, compact }) {
  const mark = light ? '#fff' : '#1790d5';
  const word = light ? '#fff' : 'var(--navy)';
  const h = compact ? 30 : 34;
  return (
    <a href="#/" onClick={onClick} aria-label="Sales Medical ana sayfa"
       style={{ display: 'inline-flex', alignItems: 'center' }}>
      <svg height={h} viewBox="0 0 193.71 51.99" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Sales Medical">
        <g fill={mark}>
          <polygon points="0 22 0 51.99 9.05 51.99 9.05 25.59 0 22"></polygon>
          <polygon points="16.61 28.59 16.61 51.99 25.65 51.99 25.65 32.19 16.61 28.59"></polygon>
          <polygon points="33.21 35.19 33.21 51.99 42.26 51.99 42.26 38.78 33.21 35.19"></polygon>
          <polygon points="42.26 25.95 9.05 12.77 9.05 9.05 33.21 9.05 33.21 15.43 42.26 15.43 42.26 0 0 0 0 18.91 42.26 35.69 42.26 25.95"></polygon>
          <rect x="31.41" y="14.82" width="12.66" height="2.16"></rect>
        </g>
        <g fill={word}>
          <path d="M84.02,26.64c0,5.24-4.55,10.03-12.6,10.03-5.93,0-11.54-2.3-12.97-8.28l7.27-2.25c.41,1.84,2.11,3.82,5.61,3.82,2.71,0,4.74-1.06,4.74-3.17,0-2.39-3.17-2.76-6.81-3.68-6.44-1.56-9.34-4.55-9.34-9.93,0-6.16,5.11-9.84,11.82-9.84,5.52,0,10.21,2.94,11.45,8.05l-7.27,1.79c-.41-1.56-1.75-3.13-4.55-3.13-2.3,0-3.82,1.24-3.82,3.08,0,2.53,3.82,3.13,6.3,3.82,7.86,2.21,10.16,4.69,10.16,9.7"></path>
          <path d="M107.75,30.09h-12.19l-1.89,5.98h-8.28L96.99,3.88h9.29l11.59,32.19h-8.23l-1.89-5.98ZM105.86,24.11l-4.23-13.38-4.23,13.38h8.46Z"></path>
          <polygon points="141 28.66 141 36.07 121.09 36.07 121.09 3.88 129 3.88 129 28.66 141 28.66"></polygon>
          <polygon points="165.38 28.66 165.38 36.07 145.14 36.07 145.14 3.88 164.96 3.88 164.96 11.33 153.01 11.33 153.01 16.29 163.49 16.29 163.49 23.33 153.01 23.33 153.01 28.66 165.38 28.66"></polygon>
          <path d="M193.71,26.64c0,5.24-4.55,10.03-12.6,10.03-5.93,0-11.54-2.3-12.97-8.28l7.27-2.25c.41,1.84,2.12,3.82,5.61,3.82,2.71,0,4.74-1.06,4.74-3.17,0-2.39-3.17-2.76-6.81-3.68-6.44-1.56-9.33-4.55-9.33-9.93,0-6.16,5.1-9.84,11.82-9.84,5.52,0,10.21,2.94,11.45,8.05l-7.27,1.79c-.41-1.56-1.75-3.13-4.55-3.13-2.3,0-3.82,1.24-3.82,3.08,0,2.53,3.82,3.13,6.3,3.82,7.86,2.21,10.16,4.69,10.16,9.7"></path>
          <polygon points="86.74 40.94 86.74 48.67 84.84 48.67 84.84 44.07 82.83 47.4 82.13 47.4 80.11 44.07 80.11 48.67 78.22 48.67 78.22 40.94 80.21 40.94 82.48 44.68 84.74 40.94 86.74 40.94"></polygon>
          <polygon points="101.1 46.89 101.1 48.67 96.24 48.67 96.24 40.94 101 40.94 101 42.73 98.13 42.73 98.13 43.92 100.64 43.92 100.64 45.61 98.13 45.61 98.13 46.89 101.1 46.89"></polygon>
          <path d="M117.19,44.8c0,2.36-1.52,3.86-4.11,3.86h-2.7v-7.73h2.7c2.58,0,4.11,1.51,4.11,3.86M115.3,44.8c0-1.37-.95-2.08-2.22-2.08h-.81v4.16h.81c1.27,0,2.22-.72,2.22-2.09"></path>
          <path d="M128.3,48.67h-1.89v-7.73h1.89v7.73ZM128.21,39.3c0,.48-.39.86-.86.86s-.86-.39-.86-.86.39-.86.86-.86.86.39.86.86"></path>
          <polygon points="142.14 48.67 139.69 45.13 139.69 48.67 137.8 48.67 137.8 40.94 139.69 40.94 139.69 44.37 142.05 40.94 144.16 40.94 141.49 44.68 144.35 48.67 142.14 48.67"></polygon>
          <path d="M158.11,47.23h-2.93l-.45,1.43h-1.99l2.78-7.73h2.23l2.78,7.73h-1.98l-.45-1.43ZM157.66,45.8l-1.02-3.21-1.02,3.21h2.03Z"></path>
          <polygon points="174.27 46.89 174.27 48.67 169.49 48.67 169.49 40.94 171.38 40.94 171.38 46.89 174.27 46.89"></polygon>
          <rect x="50.4" y="0" width=".68" height="51.99"></rect>
        </g>
      </svg>
    </a>
  );
}

/* ---------- Crown (altın taç) ---------- */
function Crown({ w = 34, color = 'var(--gold)' }) {
  return (
    <svg width={w} height={w * 0.62} viewBox="0 0 50 31" fill="none" aria-hidden="true">
      <path d="M4 28 L2 9 L13 17 L25 3 L37 17 L48 9 L46 28 Z" fill={color} />
      <circle cx="19" cy="22" r="1.7" fill="#fff" opacity=".9" />
      <circle cx="31" cy="22" r="1.7" fill="#fff" opacity=".9" />
    </svg>
  );
}

/* ---------- Icon set (line) ---------- */
function Icon({ name, s = 26, c = 'currentColor', sw = 1.6 }) {
  const p = {
    adhesive: <><rect x="4" y="8" width="16" height="8" rx="3" transform="rotate(-12 12 12)"/><path d="M8 12h8"/></>,
    hydro: <><path d="M12 3c4 5 6 8 6 11a6 6 0 1 1-12 0c0-3 2-6 6-11Z"/><path d="M9.5 14a2.5 2.5 0 0 0 2.5 2.5"/></>,
    cpap: <><path d="M7 9a5 5 0 0 1 10 0v2a5 5 0 0 1-10 0Z"/><path d="M9.5 13.5c.8.7 4.2.7 5 0"/><path d="M7 10H4M20 10h-3"/></>,
    latex: <><circle cx="12" cy="12" r="8.5"/><path d="M6 6l12 12"/></>,
    shield: <><path d="M12 3l7 3v5c0 4.2-2.9 7.6-7 9-4.1-1.4-7-4.8-7-9V6Z"/><path d="M9 12l2 2 4-4"/></>,
    baby: <><circle cx="12" cy="8" r="3.2"/><path d="M5 20c0-3.6 3.1-6 7-6s7 2.4 7 6"/><path d="M10 8h.01M14 8h.01"/></>,
    leaf: <><path d="M5 19c8 1 14-4 14-13-8-1-14 4-14 13Z"/><path d="M5 19c3-5 6-7 10-8"/></>,
    award: <><circle cx="12" cy="9" r="5.5"/><path d="M9 13.5L7.5 21l4.5-2.5L16.5 21 15 13.5"/></>,
    pin: <><path d="M12 21s7-5.5 7-11a7 7 0 0 0-14 0c0 5.5 7 11 7 11Z"/><circle cx="12" cy="10" r="2.6"/></>,
    mail: <><rect x="3.5" y="5.5" width="17" height="13" rx="2.5"/><path d="M4 7l8 6 8-6"/></>,
    phone: <><path d="M5 4h3l2 5-2.5 1.5a11 11 0 0 0 5 5L16 14l5 2v3a2 2 0 0 1-2.2 2A16 16 0 0 1 4 6.2 2 2 0 0 1 5 4Z"/></>,
    web: <><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c2.5 2.6 2.5 14.4 0 17M12 3.5c-2.5 2.6-2.5 14.4 0 17"/></>,
    clock: <><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></>,
    check: <><path d="M5 12.5l4.5 4.5L19 7"/></>,
    arrow: <><path d="M5 12h14M13 6l6 6-6 6"/></>,
    plus: <><path d="M12 6v12M6 12h12"/></>,
    ruler: <><rect x="3" y="8" width="18" height="8" rx="2"/><path d="M7 8v3M11 8v4M15 8v3M19 8v4"/></>,
    sparkle: <><path d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8Z"/></>,
  }[name];
  return (
    <svg width={s} height={s} viewBox="0 0 24 24" fill="none" stroke={c}
         strokeWidth={sw} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">{p}</svg>
  );
}

/* ---------- Reveal on scroll ---------- */
function Reveal({ children, delay = 0, as = 'div', className = '', style }) {
  const ref = useRef(null);
  useEffect(() => {
    const el = ref.current;
    if (!el) return;
    const show = () => el.classList.add('in');
    const vh = window.innerHeight || 800;
    // already in (or above) the viewport → reveal right away
    if (el.getBoundingClientRect().top < vh * 0.92) { show(); return; }
    const io = new IntersectionObserver((es) => {
      es.forEach((e) => { if (e.isIntersecting) { show(); io.unobserve(el); } });
    }, { threshold: 0.12, rootMargin: '0px 0px -8% 0px' });
    io.observe(el);
    // safety net if IO never reports (offscreen iframe / capture contexts)
    const tid = setTimeout(show, 1400);
    return () => { io.disconnect(); clearTimeout(tid); };
  }, []);
  const Tag = as;
  return <Tag ref={ref} className={`reveal ${className}`} style={{ transitionDelay: delay + 'ms', ...style }}>{children}</Tag>;
}

/* ---------- Cert strip ---------- */
function CertStrip({ dark }) {
  const items = window.SM.CERTS;
  return (
    <div style={{
      display: 'flex', flexWrap: 'wrap', gap: 14, justifyContent: 'center', alignItems: 'center',
    }}>
      {items.map((it, i) => (
        <div key={i} style={{
          display: 'inline-flex', alignItems: 'center', gap: 10,
          padding: '11px 20px', borderRadius: 100,
          background: dark ? 'rgba(255,255,255,.06)' : '#fff',
          border: `1px solid ${dark ? 'rgba(255,255,255,.14)' : 'var(--line)'}`,
        }}>
          <span style={{
            fontWeight: 700, fontSize: 12.5, letterSpacing: '.06em',
            color: dark ? 'var(--gold-soft)' : 'var(--navy)',
            border: `1.5px solid ${dark ? 'rgba(231,214,168,.5)' : 'var(--gold)'}`,
            borderRadius: 6, padding: '2px 7px', lineHeight: 1.3,
          }}>{it.tag}</span>
          <span style={{ fontSize: 13.5, fontWeight: 500, color: dark ? 'rgba(255,255,255,.78)' : 'var(--body)' }}>{it.label}</span>
        </div>
      ))}
    </div>
  );
}

/* ---------- Header (3 switchable designs) ---------- */
const HEADER_LINKS = [
  ['home', 'Ana Sayfa'],
  ['products', 'Ürünler'],
  ['catalog', 'Katalog', 'katalog.pdf'],
  ['about', 'Hakkımızda'],
  ['contact', 'İletişim'],
];

function NavLinks({ route, go, underline }) {
  return (
    <nav className="nav-desk" style={{ display: 'flex', alignItems: 'center', gap: underline ? 26 : 4, fontFamily: 'var(--font-nav)' }}>
      {HEADER_LINKS.map(([p, label, href]) => {
        const active = route === p;
        if (href) {
          return (
            <a key={p} href={R(href)} target="_blank" rel="noopener" className={underline ? 'navu' : ''}
               style={{ position: 'relative', padding: underline ? '6px 2px' : '9px 15px', borderRadius: underline ? 0 : 100,
                 fontSize: 14.5, fontWeight: 500, color: 'var(--body)', display: 'inline-flex', alignItems: 'center', gap: 6 }}>
              {label} <Icon name="arrow" s={14} c="var(--muted)" sw={1.8} />
              {underline && <span style={{ position: 'absolute', left: 0, right: 18, bottom: -2, height: 2, borderRadius: 2, background: 'var(--gold)', transform: 'scaleX(0)', transformOrigin: 'left', transition: 'transform .3s var(--ease)' }} />}
            </a>
          );
        }
        if (underline) {
          return (
            <a key={p} href={'#/' + p} onClick={(e) => go(e, p)} className="navu"
               style={{ position: 'relative', padding: '6px 2px', fontSize: 14.5, fontWeight: 500,
                 color: active ? 'var(--navy)' : 'var(--body)' }}>
              {label}
              <span style={{ position: 'absolute', left: 0, right: 0, bottom: -2, height: 2, borderRadius: 2,
                background: 'var(--gold)', transform: active ? 'scaleX(1)' : 'scaleX(0)', transformOrigin: 'left',
                transition: 'transform .3s var(--ease)' }} />
            </a>
          );
        }
        return (
          <a key={p} href={'#/' + p} onClick={(e) => go(e, p)}
             style={{ padding: '9px 15px', borderRadius: 100, fontSize: 14.5, fontWeight: 500,
               color: active ? 'var(--navy)' : 'var(--body)',
               background: active ? 'rgba(21,36,60,.06)' : 'transparent',
               transition: 'color .2s, background .2s' }}>{label}</a>
        );
      })}
    </nav>
  );
}

function Burger({ open, setOpen, color = 'var(--navy)' }) {
  return (
    <button className="nav-burger" aria-label="Menü" onClick={() => setOpen(!open)}
      style={{ display: 'none', background: 'transparent', border: 'none', padding: 8, color }}>
      <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round">
        {open ? <path d="M6 6l12 12M18 6L6 18"/> : <path d="M4 7h16M4 12h16M4 17h16"/>}
      </svg>
    </button>
  );
}

function Header({ route, nav, variant = 'island' }) {
  const [open, setOpen] = useState(false);
  const [solid, setSolid] = useState(false);
  useEffect(() => {
    const onScroll = () => setSolid(window.scrollY > 24);
    onScroll();
    window.addEventListener('scroll', onScroll, { passive: true });
    return () => window.removeEventListener('scroll', onScroll);
  }, []);
  useEffect(() => { setOpen(false); }, [route]);
  const go = (e, page) => { e.preventDefault(); nav(page); };
  const C = window.SM.COMPANY;

  const Cta = ({ small }) => (
    <a href="#/contact" onClick={(e) => go(e, 'contact')} className="btn btn-primary nav-desk"
       style={{ padding: small ? '10px 20px' : '11px 22px', fontSize: 14, fontFamily: 'var(--font-nav)' }}>
      Bilgi Al <Icon name="arrow" s={16} c="#fff" sw={1.8} />
    </a>
  );

  const mobileMenu = (
    <div className="mobile-menu" style={{
      maxHeight: open ? 460 : 0, overflow: 'hidden', transition: 'max-height .45s var(--ease)',
      background: 'rgba(251,250,247,.98)', backdropFilter: 'blur(14px)',
      borderBottom: open ? '1px solid var(--line)' : 'none', fontFamily: 'var(--font-nav)',
    }}>
      <div className="wrap" style={{ padding: '12px 20px 22px', display: 'flex', flexDirection: 'column', gap: 2 }}>
        {HEADER_LINKS.map(([p, label, href]) => (
          href ? (
            <a key={p} href={R(href)} target="_blank" rel="noopener"
               style={{ padding: '14px 12px', borderRadius: 12, fontSize: 17, fontWeight: 500, color: 'var(--body)',
                 display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
              {label} <Icon name="arrow" s={17} c="var(--muted)" /></a>
          ) : (
            <a key={p} href={'#/' + p} onClick={(e) => go(e, p)}
               style={{ padding: '14px 12px', borderRadius: 12, fontSize: 17, fontWeight: 500,
                 color: route === p ? 'var(--navy)' : 'var(--body)',
                 background: route === p ? 'rgba(21,36,60,.05)' : 'transparent',
                 display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
              {label} <Icon name="arrow" s={17} c="var(--muted)" /></a>
          )
        ))}
        <a href="#/contact" onClick={(e) => go(e, 'contact')} className="btn btn-primary" style={{ marginTop: 10, justifyContent: 'center' }}>Bilgi Al</a>
      </div>
    </div>
  );

  /* ---- ISLAND: floating glass pill ---- */
  if (variant === 'island') {
    return (
      <header style={{ position: 'sticky', top: 0, zIndex: 70 }}>
        <div className="wrap" style={{ padding: '14px 28px 0' }}>
          <div style={{
            display: 'flex', alignItems: 'center', justifyContent: 'space-between',
            padding: '10px 12px 10px 22px', borderRadius: 100,
            background: 'rgba(255,255,255,.72)', backdropFilter: 'saturate(180%) blur(16px)', WebkitBackdropFilter: 'saturate(180%) blur(16px)',
            border: '1px solid rgba(255,255,255,.7)',
            boxShadow: solid ? '0 14px 40px rgba(21,36,60,.14)' : '0 8px 26px rgba(21,36,60,.08)',
            transition: 'box-shadow .35s',
          }}>
            <Logo onClick={(e) => go(e, 'home')} compact />
            <NavLinks route={route} go={go} underline />
            <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
              <Cta small />
              <Burger open={open} setOpen={setOpen} />
            </div>
          </div>
        </div>
        {mobileMenu}
      </header>
    );
  }

  /* ---- TOPBAR: two-tier corporate ---- */
  if (variant === 'topbar') {
    return (
      <header style={{ position: 'sticky', top: 0, zIndex: 70 }}>
        <div className="topbar-utility" style={{
          background: 'var(--navy)', color: 'rgba(255,255,255,.78)', fontFamily: 'var(--font-nav)',
          maxHeight: solid ? 0 : 46, overflow: 'hidden', transition: 'max-height .4s var(--ease)',
        }}>
          <div className="wrap" style={{ height: 46, display: 'flex', alignItems: 'center', justifyContent: 'space-between', fontSize: 13 }}>
            <span style={{ display: 'inline-flex', alignItems: 'center', gap: 8 }}>
              <Icon name="pin" s={15} c="var(--gold-soft)" sw={1.7} /> Çukurova / Adana
            </span>
            <span style={{ display: 'flex', alignItems: 'center', gap: 22 }}>
              <a href={'mailto:' + C.email} style={{ display: 'inline-flex', alignItems: 'center', gap: 7, color: 'rgba(255,255,255,.82)' }}>
                <Icon name="mail" s={15} c="var(--gold-soft)" sw={1.7} /> {C.email}</a>
              <span style={{ display: 'inline-flex', alignItems: 'center', gap: 7 }}>
                <Icon name="award" s={15} c="var(--gold-soft)" sw={1.7} /> CE · MD Tıbbi Cihaz</span>
            </span>
          </div>
        </div>
        <div style={{
          background: 'rgba(251,250,247,.9)', backdropFilter: 'saturate(180%) blur(14px)', WebkitBackdropFilter: 'saturate(180%) blur(14px)',
          borderBottom: '1px solid var(--line)', transition: 'box-shadow .35s', boxShadow: solid ? '0 6px 20px rgba(21,36,60,.06)' : 'none',
        }}>
          <div className="wrap" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: 72 }}>
            <Logo onClick={(e) => go(e, 'home')} compact />
            <NavLinks route={route} go={go} underline />
            <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
              <Cta />
              <Burger open={open} setOpen={setOpen} />
            </div>
          </div>
        </div>
        {mobileMenu}
      </header>
    );
  }

  /* ---- CLASSIC ---- */
  return (
    <header style={{
      position: 'sticky', top: 0, zIndex: 70, transition: 'background .35s, border-color .35s',
      background: solid ? 'rgba(251,250,247,.86)' : 'transparent',
      backdropFilter: solid ? 'saturate(180%) blur(14px)' : 'none', WebkitBackdropFilter: solid ? 'saturate(180%) blur(14px)' : 'none',
      borderBottom: `1px solid ${solid ? 'var(--line)' : 'transparent'}`,
    }}>
      <div className="wrap" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: 76 }}>
        <Logo onClick={(e) => go(e, 'home')} compact />
        <NavLinks route={route} go={go} />
        <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
          <Cta />
          <Burger open={open} setOpen={setOpen} />
        </div>
      </div>
      {mobileMenu}
    </header>
  );
}

/* ---------- Footer ---------- */
function Footer({ nav }) {
  const C = window.SM.COMPANY;
  const go = (e, page) => { e.preventDefault(); nav(page); };
  return (
    <footer style={{ background: 'var(--navy)', color: 'rgba(255,255,255,.7)', paddingTop: 72 }}>
      <div className="wrap">
        <div className="foot-grid" style={{ display: 'grid', gridTemplateColumns: '1.6fr 1fr 1fr 1.4fr', gap: 40, paddingBottom: 56 }}>
          <div>
            <Logo light onClick={(e) => go(e, 'home')} />
            <p style={{ marginTop: 20, fontSize: 14.5, maxWidth: 300, lineHeight: 1.7 }}>
              Hassas ciltler için hidrokolloid burun koruma çözümleri. Bebeklerin nazik bakımı için tasarlanmış tıbbi cihazlar.
            </p>
            <div style={{ marginTop: 22 }}><Crown w={30} color="var(--gold)" /></div>
          </div>
          <div>
            <h4 style={{ color: '#fff', fontSize: 13, letterSpacing: '.14em', textTransform: 'uppercase', marginBottom: 18 }}>Menü</h4>
            {[['home', 'Ana Sayfa'], ['products', 'Ürünler'], ['about', 'Hakkımızda']].map(([p, l]) => (
              <a key={p} href={'#/' + p} onClick={(e) => go(e, p)} className="foot-link"
                 style={{ display: 'block', fontSize: 14.5, padding: '6px 0', color: 'rgba(255,255,255,.7)' }}>{l}</a>
            ))}
            <a href={R("katalog.pdf")} target="_blank" rel="noopener" className="foot-link"
               style={{ display: 'block', fontSize: 14.5, padding: '6px 0', color: 'rgba(255,255,255,.7)' }}>Katalog (PDF)</a>
          </div>
          <div>
            <h4 style={{ color: '#fff', fontSize: 13, letterSpacing: '.14em', textTransform: 'uppercase', marginBottom: 18 }}>Seri</h4>
            {window.SM.SIZES.map((s) => (
              <a key={s.ref} href="#/detail" onClick={(e) => go(e, 'detail')} className="foot-link"
                 style={{ display: 'block', fontSize: 14.5, padding: '6px 0', color: 'rgba(255,255,255,.7)' }}>{s.name}</a>
            ))}
          </div>
          <div>
            <h4 style={{ color: '#fff', fontSize: 13, letterSpacing: '.14em', textTransform: 'uppercase', marginBottom: 18 }}>İletişim</h4>
            <p style={{ fontSize: 14.5, lineHeight: 1.7, marginBottom: 14 }}>{C.address}</p>
            <a href={'mailto:' + C.email} className="foot-link" style={{ display: 'block', fontSize: 14.5, padding: '4px 0', color: 'var(--gold-soft)' }}>{C.email}</a>
            <a href={'https://' + C.web} className="foot-link" style={{ display: 'block', fontSize: 14.5, padding: '4px 0', color: 'rgba(255,255,255,.7)' }}>{C.web}</a>
          </div>
        </div>
        <div style={{
          borderTop: '1px solid rgba(255,255,255,.12)', padding: '26px 0 34px',
          display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 16, flexWrap: 'wrap',
          fontSize: 13, color: 'rgba(255,255,255,.5)',
        }}>
          <span>© {new Date().getFullYear()} {C.legal}. Tüm hakları saklıdır.</span>
          <span style={{ display: 'flex', gap: 18 }}>
            <span>CE · MD Tıbbi Cihaz</span>
            <span>Lateks İçermez</span>
          </span>
        </div>
      </div>
    </footer>
  );
}

Object.assign(window, { Mark, Logo, Crown, Icon, Reveal, CertStrip, Header, Footer });
