/* Attendo design system — design/design.json */
:root {
  --primary: #4E2A84;
  --primary-hover: #3D2168;
  --secondary: #B84D7A;
  --secondary-hover: #9A4066;
  --accent: #D9468C;
  --bg: #FAF9FC;
  --surface: #FFFFFF;
  --border: #E8E4ED;
  --text-primary: #2D2942;
  --text-secondary: #5C5468;
  --text-muted: #8C8594;
  --gradient: linear-gradient(180deg, #4E2A84 0%, #B84D7A 50%, #D9468C 100%);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--text-primary); }
.wrap { position: relative; }
/* Reserve space for absolute navbar on non-hero pages */
main.container-fluid { padding-top: var(--navbar-height); }

.navbar-logo {
  width: 120px;
  height: 32px;
  min-width: 120px;
  max-height: 32px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
/* Navbar (#w0) — visible overlay so header is distinct from hero (top=0, left=0, full width, 78px) */
nav.attendo-navbar,
#w0.attendo-navbar,
.navbar.attendo-navbar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 78px !important;
  z-index: 100;
  /* Semi-transparent overlay: hero background visible through header, still distinct */
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(250,249,252,0.5) 50%, rgba(255,255,255,0.4) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 2px 8px rgba(45,41,66,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  isolation: isolate;
}
/* Light tint so header reads as a layer but hero shows through */
.attendo-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 78px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
  z-index: 0;
}
.attendo-navbar .navbar-brand,
.attendo-navbar .navbar-collapse,
.attendo-navbar .navbar-nav { position: relative; z-index: 1; }
/* Edge band under navbar */
.attendo-navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: linear-gradient(to bottom, rgba(45,41,66,0.12) 0%, transparent 100%);
  pointer-events: none;
  transform: translateY(100%);
  z-index: 0;
}
.attendo-navbar.scrolled,
nav.attendo-navbar.scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 12px rgba(45,41,66,0.12);
  border-bottom-color: var(--border);
}
.attendo-navbar.scrolled::before { opacity: 0; }
.attendo-navbar.scrolled::after { opacity: 0; }
.attendo-navbar .navbar-brand {
  margin-left: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
}
.attendo-navbar .navbar-brand img { flex-shrink: 0; }
.attendo-navbar .navbar-nav .nav-link {
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.08);
}
.attendo-navbar .nav-cta .nav-link { background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 16px !important; text-shadow: none; }

/* Navbar height — matches nav#w0 (78px), space reserved so hero content sits below nav */
:root { --navbar-height: 78px; }

/* Landing hero — starts at top of page, background fills behind navbar */
.landing-hero {
  height: 650px;
  min-height: 650px;
  box-sizing: border-box;
  background-color: #4E2A84;
  background: var(--gradient);
  background-image: url('/Graphics/Attendo-hero-bg1-web-optimized.png?v=3');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  align-items: stretch;
  padding-top: var(--navbar-height);
  padding-right: 24px;
  padding-bottom: 48px;
  padding-left: 24px;
  position: relative;
  overflow: hidden;
  /* Full viewport width; pull up so hero starts at top (cancel main padding) */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--navbar-height));
}
/* Left-to-right overlay for text readability */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(78,42,132,0.75) 0%, rgba(78,42,132,0.3) 45%, transparent 70%);
  pointer-events: none;
}
/* Top fade: soft vignette under header so header and hero read as two layers */
.landing-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, transparent 100%);
  pointer-events: none;
}
.landing-hero .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.landing-hero .container .row { flex-shrink: 0; }
.landing-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.landing-hero .lead {
  color: rgba(255,255,255,0.98);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 480px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.landing-hero .col-lg-6 > a.btn + a.btn { margin-left: 12px; }
.landing-hero .hero-btns {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
/* Same styling for both hero buttons (Sign up + Login) */
.landing-hero .btn,
.landing-hero a.btn {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 24px !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  text-decoration: none;
  vertical-align: middle;
}
.landing-hero .btn-cta,
.landing-hero a.btn-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
}
.landing-hero .btn-cta:hover,
.landing-hero a.btn-cta:hover {
  background: var(--secondary-hover) !important;
  color: #fff !important;
}
.landing-hero .btn-outline-light,
.landing-hero a.btn-outline-light {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.95) !important;
}
.landing-hero .btn-outline-light:hover,
.landing-hero a.btn-outline-light:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Sections */
.landing-section { padding: 48px 24px; background: var(--bg); }
.landing-section.surface { background: var(--surface); }
.landing-section.dark { background: var(--primary); color: #fff; padding: 48px 24px; }
.landing-section h2 { color: var(--text-primary); font-size: 24px; font-weight: 700; }
.landing-section.dark h2 { color: #fff; }
.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* Stats */
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 28px; font-weight: 700; color: #fff; }
.stat-item .stat-label { font-size: 12px; color: rgba(255,255,255,0.9); }

/* Contact form */
.contact-form .form-control { border-radius: 8px; border-color: var(--border); }
.contact-form .btn-primary { background: var(--primary); border: none; border-radius: 8px; }
.contact-form .btn-primary:hover { background: var(--primary-hover); }

.footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--text-secondary); }
