/* ============================================================
   Lebanese Society for Health Informatics — Prototype Stylesheet
   ============================================================ */

:root {
  --color-primary: #0d3b4f;      /* deep navy teal */
  --color-primary-light: #14586f;
  --color-accent: #2a9d8f;       /* teal accent */
  --color-accent-light: #e8f5f3;
  --color-gold: #d4a24c;         /* warm accent for CTAs */
  --color-ink: #1f2937;
  --color-ink-soft: #4b5563;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fa;
  --color-border: #e5eaec;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(13, 59, 79, 0.08);
  --max-width: 1120px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 5;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s 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); }

.mobile-cta { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.site-footer .brand-logo {
  height: 38px;
}

.about-logo-section {
  text-align: center;
}

.about-logo-section img {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.brand:hover { text-decoration: none; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(42,157,143,0.28);
}

.btn-primary:hover { background: #24897c; }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover { background: var(--color-primary); color: #fff; }

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

/* ---------------- Hero ---------------- */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, #1c7a8c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10) 0, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(212,162,76,0.18) 0, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 90px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  max-width: 680px;
  font-size: 2.9rem;
}

.hero p.lead {
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1c7a8c 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: left;
}

.page-hero .container { max-width: var(--max-width); }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0; }

/* ---------------- Sections ---------------- */

section { padding: 80px 0; }
section.alt { background: var(--color-bg-alt); }
section.tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 46px 0;
}

.stat-strip .stat { text-align: center; }
.stat-strip .stat .num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-strip .stat .label {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.divider-graphic {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-accent-light), #fff);
  border: 1px solid var(--color-border);
  padding: 40px;
}

/* people / board */
.person-card { text-align: center; }
.person-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}
.person-role {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* list rows (events, news) */
.list-row {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.list-row:last-child { border-bottom: none; }

.date-chip {
  flex: 0 0 84px;
  height: 84px;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}
.date-chip .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.date-chip .mon { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), #1c7a8c);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 26px; }

/* Forms */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Honeypot spam-trap field: present in the DOM for bots to fill in,
   invisible and unreachable for real visitors and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Inline submit status message (AJAX form feedback) */
.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--color-accent); }
.form-status.is-error { color: #b3413a; }

/* Note directing applicants to email documents separately (no file-upload support) */
.form-note {
  margin: -6px 0 0;
  padding: 12px 16px;
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.form-note a { font-weight: 600; }

/* Membership conditions list (nested, custom markers) */
.conditions-list,
.conditions-list ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.conditions-list > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}
.conditions-list > li:last-child { margin-bottom: 0; }
.conditions-list > li::before {
  content: "o";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 700;
  color: var(--color-primary);
}
.conditions-list ul {
  margin: 10px 0 0;
}
.conditions-list ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.conditions-list ul li:last-child { margin-bottom: 0; }
.conditions-list ul li::before {
  content: "\00A7";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
  color: var(--color-accent);
}

/* table (membership tiers) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
th { font-family: var(--font-heading); color: var(--color-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #0a2c3a;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.footer-grid a { color: rgba(255,255,255,0.72); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Notice banner (prototype only) ---------------- */
.proto-banner {
  background: var(--color-gold);
  color: #3a2b0d;
  text-align: center;
  font-size: 0.85rem;
  padding: 9px 16px;
  font-weight: 600;
}
.proto-banner strong { text-decoration: underline; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .header-actions .btn-primary { display: none; }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 480px; }

  .main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-cta {
    display: block;
    color: #fff;
    background: var(--color-gold);
    font-weight: 700;
    text-align: center;
    border-bottom: none;
  }

  .hero h1 { font-size: 2.1rem; }
  .two-col { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
