/* ============================================
   WCF 2026 - Shared Styles
   The 2nd Health Forum for Wound Care 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  --black: #080808;
  --deep: #0f0f0f;
  --surface: #161616;
  --card: #1c1c1c;
  --border: rgba(184, 151, 62, 0.2);
  --gold: #B8973E;
  --gold-light: #d4af6a;
  --gold-dim: rgba(184, 151, 62, 0.15);
  --green: #1D7A4A;
  --green-light: #2a9e62;
  --white: #f5f0e8;
  --gray: #888880;
  --gray-light: #aaa;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --font-arabic: 'Noto Naskh Arabic', serif;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ar {
  direction: rtl;
  font-family: var(--font-arabic), var(--font-body);
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ——— SELECTION ——— */
::selection { background: var(--gold); color: var(--black); }

/* ——— LOADER ——— */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.loader-logo {
  width: 100px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 1px;
  animation: loaderFill 2s var(--ease-smooth) forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loaderFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ——— HEADER / NAV ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-logo {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img { height: 44px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.header-nav a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
  background: var(--gold-dim);
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ——— REGISTER BUTTON ——— */
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 4px;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}

.btn-register:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,151,62,0.4);
}

.btn-register:hover::before {
  left: 100%;
}

/* Mobile register link in nav */
.mobile-nav-register {
  display: inline-flex !important;
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 14px 40px !important;
  border-radius: 4px !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ——— MOBILE NAV ——— */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ——— SECTION BASICS ——— */
section { padding: 100px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ——— GOLD LINE DIVIDER ——— */
.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0 32px;
}

.ar .gold-line {
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 151, 62, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 122, 74, 0.3);
}

/* ——— CARDS ——— */
.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 151, 62, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* ——— SCROLL ANIMATIONS ——— */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
}

.fade-in.visible { opacity: 1; }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ——— FOOTER ——— */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

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

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ——— PAGE HERO (inner pages) ——— */
.page-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(29, 122, 74, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(184, 151, 62, 0.1), transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .site-header { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .site-header { padding: 0 20px; }
  section { padding: 70px 0; }

  .header-nav { display: none; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ——— ARABIC OVERRIDES ——— */
.ar .section-title,
.ar .page-hero h1,
.ar h1, .ar h2, .ar h3 {
  font-family: var(--font-arabic), serif;
}

.ar .section-label,
.ar .page-hero-label {
  letter-spacing: 0;
}

.ar .btn {
  letter-spacing: 0;
}

.ar .header-nav { flex-direction: row-reverse; }