/* ============================================================
   Gertor Hospitalar – Landing Page CSS
   ============================================================ */

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

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --green-500:#22c55e;
  --green-600:#16a34a;
  --purple-500:#a855f7;
  --orange-500:#f97316;
  --teal-500:  #14b8a6;
  --red-500:   #ef4444;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;
  --radius:    12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}
.logo__img { width: 36px; height: 36px; }
.logo__text { font-size: 1.1rem; font-weight: 500; letter-spacing: -.3px; }
.logo__text strong { font-weight: 700; color: var(--blue-600); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: .2s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.btn--primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn--outline:hover { background: var(--blue-50); }
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover { background: rgba(255,255,255,.25); }
.btn--white {
  background: #fff;
  color: var(--blue-700);
  border-color: #fff;
}
.btn--white:hover { background: var(--blue-50); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn--full { width: 100%; justify-content: center; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge--dark {
  background: var(--gray-800);
  color: #fff;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content { color: #fff; }
.hero__content .badge {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.highlight {
  background: linear-gradient(90deg, #93c5fd, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; align-items: center; gap: 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.stat span { font-size: .8rem; color: rgba(255,255,255,.65); }
.stat__divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* Dashboard Preview */
.hero__visual { display: flex; justify-content: center; }
.dashboard-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }
.preview__url {
  flex: 1;
  font-size: .72rem;
  color: var(--gray-400);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  margin-left: 4px;
}
.preview__body { display: flex; height: 280px; }
.preview__sidebar {
  width: 56px;
  background: var(--gray-900);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.preview__logo-sm {
  width: 32px; height: 32px;
  background: var(--blue-600);
  border-radius: 8px;
  margin-bottom: 8px;
}
.preview__menu-item {
  width: 32px; height: 8px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
}
.preview__menu-item.active { background: var(--blue-500); }
.preview__main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.preview__cards { display: flex; gap: 8px; }
.preview__card {
  flex: 1;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card--blue   { background: var(--blue-50); }
.card--green  { background: #f0fdf4; }
.card--purple { background: #faf5ff; }
.card__icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.1); flex-shrink: 0; }
.card__lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.line { height: 6px; border-radius: 3px; background: rgba(0,0,0,.1); }
.line--short { width: 50%; }
.line--long  { width: 80%; }
.preview__chart { flex: 1; background: var(--gray-50); border-radius: 8px; padding: 10px; }
.chart__bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.bar { flex: 1; background: var(--blue-200); border-radius: 3px 3px 0 0; min-height: 8px; }
.preview__table { background: var(--gray-50); border-radius: 8px; overflow: hidden; }
.table__row { display: flex; gap: 6px; padding: 5px 8px; }
.table__row--header { background: var(--gray-200); }
.cell { flex: 1; height: 7px; background: rgba(0,0,0,.08); border-radius: 3px; }

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero__wave svg { display: block; width: 100%; height: 80px; }

/* ── FEATURES ── */
.features { padding: 100px 0; background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .badge { margin-bottom: 16px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--gray-900); margin-bottom: 14px; letter-spacing: -.3px; }
.section-desc { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon--blue   { background: var(--blue-50);   color: var(--blue-600); }
.icon--green  { background: #f0fdf4;           color: var(--green-600); }
.icon--purple { background: #faf5ff;           color: var(--purple-500); }
.icon--orange { background: #fff7ed;           color: var(--orange-500); }
.icon--teal   { background: #f0fdfa;           color: var(--teal-500); }
.icon--red    { background: #fef2f2;           color: var(--red-500); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.feature-card p  { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }

/* ── ABOUT ── */
.about { padding: 100px 0; background: #fff; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__content .badge { margin-bottom: 16px; }
.about__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.about__content p { color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }
.about__list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--gray-700);
}
.about__list svg { color: var(--green-600); flex-shrink: 0; }
.about__card-stack { position: relative; height: 320px; }
.about__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  min-width: 260px;
}
.about__card--1 { top: 0; left: 0; }
.about__card--2 { top: 100px; left: 60px; }
.about__card--3 { top: 200px; left: 20px; }
.about__card-icon { font-size: 2rem; }
.about__card strong { display: block; font-size: .95rem; color: var(--gray-900); }
.about__card span  { font-size: .82rem; color: var(--gray-500); }

/* ── CTA ── */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  text-align: center;
}
.cta__inner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta__inner p  { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 1.05rem; }

/* ── CONTACT ── */
.contact { padding: 100px 0; background: var(--gray-50); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--gray-700);
}
.contact__item svg { color: var(--blue-600); flex-shrink: 0; }
.contact__form { display: flex; flex-direction: column; gap: 14px; }
.form-group { width: 100%; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── FOOTER ── */
.footer { padding: 40px 0; background: var(--gray-900); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer__brand .logo__text { color: #fff; }
.footer__brand p { font-size: .85rem; color: var(--gray-400); margin-top: 4px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: .85rem; color: var(--gray-400); text-decoration: none; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .8rem; color: var(--gray-500); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__image { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav__toggle { display: flex; }
}
