{% load static %} /* Only if you want to use static tags inside CSS - usually not needed */

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

:root {
  --blue: #4DAAE0;
  --yellow: #FFC814;
  --sky: #B6E0F3;
  --gold: #FFDA68;
  --gray: #666666;
  --light-yellow: #FFE08A;
  --off-white: #F7F8FA;
  --dark-text: #1A2332;
  --mid-text: #4A5568;
  --border: #E2E8F0;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg { width: 20px; height: 20px; }

.nav-logo-text {
  /* font-family: 'DM Serif Display', serif; */
  font-size: 1.25rem;
  color: var(--dark-text);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--light-yellow) !important;
  color: #6b4800 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #ffd96a !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(160deg, #f0f9ff 0%, #fffdf0 60%, #f7f8fa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,170,224,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,20,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(77,170,224,0.12);
  color: #2a7aaa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(77,170,224,0.25);
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.hero-title em {
  font-style: italic;
  color: var(--yellow);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--mid-text);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-tagline strong {
  color: var(--dark-text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-yellow);
  color: #6b4800;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(255,224,138,0.45);
}

.btn-primary:hover { background: #ffd96a; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #3a96cc; }

/* Hero visual panel */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  animation: slideUp 0.6s ease both;
}

.alert-card:nth-child(2) { animation-delay: 0.15s; }
.alert-card:nth-child(3) { animation-delay: 0.3s; margin-left: 1.5rem; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.priority-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.priority-critical {
  background: #FFF1F0;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.priority-urgent {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid var(--gold);
}

.alert-time { font-size: 0.75rem; color: var(--gray); }

.alert-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}

.alert-meta-item { font-size: 0.82rem; color: var(--mid-text); }
.alert-meta-item strong { color: var(--dark-text); font-weight: 600; display: block; font-size: 0.78rem; }

.alert-presentation {
  font-size: 0.88rem;
  color: var(--dark-text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.alert-footer {
  display: flex;
  gap: 8px;
}

.btn-attend {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--light-yellow);
  color: #6b4800;
  transition: background 0.2s;
}

.btn-ignore {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  color: var(--gray);
  transition: border-color 0.2s;
}

.attending-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(77,170,224,0.1);
  color: #2a7aaa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.attending-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── SECTION COMMON ── */
section { padding: 6rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── FEATURE ROWS ── */
.features { background: var(--white); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-row.visible { opacity: 1; transform: translateY(0); }

.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-image { order: 1; }

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a7aaa;
  margin-bottom: 0.75rem;
  background: rgba(77,170,224,0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.feature-body {
  font-size: 1rem;
  color: var(--mid-text);
  line-height: 1.8;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* Illustrated feature panels */
.panel {
  border-radius: 20px;
  padding: 2rem;
  min-height: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.panel-1 {
  background: linear-gradient(135deg, #EBF6FD 0%, #D6EEF9 100%);
  border: 1px solid rgba(77,170,224,0.2);
}

.panel-2 {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF3CC 100%);
  border: 1px solid rgba(255,200,20,0.3);
}

.panel-3 {
  background: linear-gradient(135deg, #F0FAF6 0%, #D9F2E8 100%);
  border: 1px solid rgba(30,180,110,0.2);
}

.panel-4 {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  border: 1px solid rgba(139,92,246,0.2);
}

/* Mini UI elements in panels */
.mini-card {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 0.82rem;
}

.mini-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mini-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
}

.route-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.route-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-label {
  font-size: 0.8rem;
  color: var(--mid-text);
  flex: 1;
}

.route-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.doc-avatar-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.doc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #F0F0F0;
}

.audit-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.audit-text {
  font-size: 0.78rem;
  color: var(--dark-text);
  flex: 1;
}

.audit-time {
  font-size: 0.7rem;
  color: var(--gray);
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--dark-text);
  padding: 4rem 2rem;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ── CONTACT ── */
.contact {
  background: var(--off-white);
  padding: 6rem 2rem;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a7aaa;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.section-sub {
  font-size: 1rem;
  color: var(--mid-text);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark-text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--light-yellow);
  color: #6b4800;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: #ffd96a; }


/* ====================== LOGO SCALING ====================== */
.logo-image {
    width: 80px;           /* Default size for tablets & large screens */
    height: auto;
    display: block;
    object-fit: contain;    /* Maintains aspect ratio */
    transition: width 0.3s ease;
}

/* Larger screens */
@media (min-width: 1024px) {
    .logo-image {
        width: 80px;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1023px) and (min-width: 768px) {
    .logo-image {
        width: 70px;
    }
}

/* Mobile phones */
@media (max-width: 767px) {
    .logo-image {
        width: 70px;       /* Smaller on mobile */
    }
}

/* Optional: Extra small phones */
@media (max-width: 480px) {
    .logo-image {
        width: 70px;
    }
}



/* ====================== CONTENT IMAGE SCALING ====================== */
.content-image {
    height: 600px;           /* Default size for tablets & large screens */
    width: auto;
    display: block;
    object-fit: contain;    /* Maintains aspect ratio */
    transition: width 0.3s ease;
}

/* Larger screens */
@media (min-height: 1024px) {
    .content-image {
        height: 500px;
    }
}

/* Medium screens (tablets) */
@media (max-height: 1023px) and (min-height: 768px) {
    .content-image {
        height: 500px;
    }
}

/* Mobile phones */
@media (max-height: 767px) {
    .content-image {
        height: 500px;       /* Smaller on mobile */
    }
}

/* Optional: Extra small phones */
@media (max-height: 480px) {
    .content-image {
        height: 280px;
    }
}



/* ====================== HAMBURGER MENU ====================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--dark-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 1rem 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    color: var(--mid-text);
    text-decoration: none;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .hamburger { display: flex; }
}

/* ── FOOTER ── */
footer {
  background: var(--dark-text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-brand .nav-logo-text { color: white; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--yellow); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-image { order: 2; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
}

/* Floating notification */
.floaty {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--yellow);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b4800;
  box-shadow: 0 4px 16px rgba(255,200,20,0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}