/* ============================================================
   NATIONAL REELS & SHORT FILM COMPETITION 2026 (NRSFC 2026)
   Canonical Brand & Design System (Task B)
   Tokens: Royal Blue (#0B4FD8), Teal (#14A3A8), Orange-Gold (#F5A623)
   Typography: Plus Jakarta Sans / Outfit (800), Inter, Noto Sans Devanagari
   WCAG AA Contrast Compliant | Mobile-First | 8px Grid System
   ============================================================ */

:root {
  /* Core Brand Tokens — Regal Teal & Trophy Gold */
  --bg: #FFFFFF;
  --bg-pearl: #F8FAFC;
  --surface-tint: #F0FDFA;
  --surface-teal: #CCFBF1;
  --surface-red: #FEF3C7;
  
  --primary: #075E63;
  --primary-hover: #044E52;
  --primary-tint: rgba(7, 94, 99, 0.08);
  --primary-glow: rgba(7, 94, 99, 0.2);

  --teal: #0F766E;
  --teal-hover: #115E59;
  --teal-dark: #075E63; /* WCAG AA 4.5:1 compliant on white surfaces */
  --teal-tint: rgba(15, 118, 110, 0.08);
  --teal-surface: #F0FDFA;

  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-tint: rgba(217, 119, 6, 0.12);

  --ink: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --border-focus: #0F766E;

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Noto Sans Devanagari', sans-serif;
  --font-fallback: 'Noto Sans Devanagari', sans-serif;

  /* Card Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 18px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-subtle: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 8px 24px rgba(7, 94, 99, 0.06);
  --shadow-hover: 0 14px 34px rgba(7, 94, 99, 0.12);
  --shadow-float: 0 20px 48px rgba(7, 94, 99, 0.16);

  /* Layout & Grid (8px grid) */
  --container-max: 1200px;
  --section-pad-desktop: 112px;
  --section-pad-mobile: 64px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

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

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility Focus Indicator */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--ink);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-hover);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Section Wrappers */
.section {
  padding-top: var(--section-pad-mobile);
  padding-bottom: var(--section-pad-mobile);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--section-pad-desktop);
    padding-bottom: var(--section-pad-desktop);
  }
}

.section-pearl {
  background-color: var(--bg-pearl);
}

.section-tint {
  background-color: var(--surface-tint);
}

.section-teal {
  background-color: var(--surface-teal);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h1-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .h1-title {
    font-size: 56px;
  }
}

@media (min-width: 1024px) {
  .h1-title {
    font-size: 72px;
  }
}

.h2-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .h2-title {
    font-size: 44px;
  }
}

/* Two-Tone Headline Pattern */
.headline-primary {
  color: var(--primary);
}

.headline-teal {
  color: var(--teal);
}

/* Large sizes can use --teal; smaller heading text uses darkened teal for WCAG AA */
.text-teal {
  color: var(--teal);
}

.text-teal-dark {
  color: var(--teal-dark);
}

.text-accent {
  color: var(--accent);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.eyebrow-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  color: var(--primary);
  border: 1px solid rgba(11, 79, 216, 0.15);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px auto;
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 64px;
  }
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px auto 0 auto;
}

@media (min-width: 1024px) {
  .section-desc {
    font-size: 18px;
  }
}

/* ============================================================
   PILL BUTTONS (Fully Rounded)
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px; /* 48px+ touch target */
}

.btn-pill-primary {
  background-color: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(11, 79, 216, 0.3);
  border: 1.5px solid transparent;
}

.btn-pill-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 79, 216, 0.4);
}

.btn-pill-primary:active {
  transform: translateY(0);
}

.btn-pill-secondary {
  background-color: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}

.btn-pill-secondary:hover {
  background-color: var(--primary-tint);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-pill-secondary:active {
  transform: translateY(0);
}

.btn-pill-teal {
  background-color: var(--teal);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(20, 163, 168, 0.3);
}

.btn-pill-teal:hover {
  background-color: var(--teal-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* ============================================================
   CIRCULAR SOFT-TINT ICON BADGES & NUMBERED BADGES
   ============================================================ */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--surface-tint);
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.icon-badge-teal {
  background-color: var(--surface-teal);
  color: var(--teal-dark);
}

.icon-badge-accent {
  background-color: var(--accent-tint);
  color: var(--accent);
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--surface-tint);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid rgba(11, 79, 216, 0.2);
}

/* ============================================================
   CARDS (16-20px Radius, 1px Border, Soft Shadow)
   ============================================================ */
.brand-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.brand-card:hover {
  border-color: rgba(11, 79, 216, 0.3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.brand-card-pearl {
  background-color: var(--bg-pearl);
}

.brand-card-tint {
  background-color: var(--surface-tint);
  border-color: rgba(11, 79, 216, 0.15);
}

.brand-card-teal {
  background-color: var(--surface-teal);
  border-color: rgba(20, 163, 168, 0.2);
}

/* ============================================================
   LANGUAGE CHIPS
   ============================================================ */
.lang-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
}

.lang-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-tint);
  transform: translateY(-2px);
}

/* ============================================================
   TIMELINE (3 Nodes with Icons)
   ============================================================ */
.timeline-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .timeline-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .timeline-track::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 50%, var(--accent) 100%);
    z-index: 1;
  }
}

.timeline-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.timeline-node:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.timeline-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 79, 216, 0.15);
}

/* ============================================================
   ACCORDION FAQ WITH NUMBER BADGES
   ============================================================ */
.faq-brand-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-brand-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-brand-item[open] {
  border-color: rgba(11, 79, 216, 0.3);
  box-shadow: var(--shadow-card);
}

.faq-brand-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-brand-summary::-webkit-details-marker {
  display: none;
}

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.faq-brand-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.faq-brand-chevron {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-brand-item[open] .faq-brand-chevron {
  transform: rotate(180deg);
}

.faq-brand-content {
  padding: 0 24px 22px 64px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .faq-brand-content {
    padding-left: 24px;
  }
}

/* ============================================================
   TOP ANNOUNCEMENT BAR COMPONENT
   ============================================================ */
.announcement-bar {
  background: linear-gradient(90deg, #075E63 0%, #0F766E 50%, #0D9488 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  letter-spacing: 0.01em;
}

.announcement-bar .badge-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.announcement-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
}

@media (max-width: 600px) {
  .announcement-bar {
    font-size: 11.5px;
    padding: 7px 10px;
    gap: 6px;
    line-height: 1.35;
  }
  .announcement-bar .badge-pill {
    font-size: 10px;
    padding: 2px 7px;
  }
  .announcement-timer {
    font-size: 11px;
    padding: 2px 7px;
  }
}

/* ============================================================
   HEADER COMPONENT
   logo | The Movement · Themes · How It Works · Prizes | Log In | "Get Entry Pass"
   ============================================================ */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.header-nav-list {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .header-nav-list {
    display: flex;
  }
}

.header-nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav-link:hover {
  color: var(--primary);
}

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

.header-login-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.header-login-link:hover {
  color: var(--primary);
}

.header-cta-btn {
  padding: 10px 22px;
  font-size: 14.5px;
}

.header-cta-text-mobile {
  display: none;
}

.header-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-pearl);
  border: 1px solid var(--border);
  cursor: pointer;
}

@media (min-width: 992px) {
  .header-hamburger-btn {
    display: none;
  }
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .brand-header {
    height: 64px;
  }
  .brand-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-logo-img {
    height: 32px;
    max-width: 130px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-login-link {
    font-size: 13px;
    padding: 6px 8px;
  }
  .header-cta-btn {
    padding: 8px 13px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .header-cta-text-full {
    display: none;
  }
  .header-cta-text-mobile {
    display: inline;
  }
  .header-hamburger-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .brand-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-logo-img {
    height: 30px;
    max-width: 120px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-login-link {
    font-size: 12.5px;
    padding: 6px 4px;
  }
  .header-cta-btn {
    padding: 7px 11px;
    font-size: 12px;
  }
  .header-cta-text-full {
    display: none;
  }
  .header-cta-text-mobile {
    display: inline;
  }
  .header-hamburger-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .header-logo-img {
    height: 28px;
    max-width: 110px;
  }
  .header-login-link {
    display: none;
  }
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Single Accessible Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 61, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(14, 27, 61, 0.15);
  z-index: 2001;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
}

/* ============================================================
   FOOTER COMPONENT
   ============================================================ */
.brand-footer {
  background-color: var(--bg-pearl);
  border-top: 1px solid var(--border);
  padding-top: 72px;
  padding-bottom: 40px;
}

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

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand-col p {
  color: var(--muted);
  font-size: 15px;
  margin: 14px 0 20px 0;
  max-width: 280px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 18px;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   STICKY MOBILE BOTTOM BAR
   ============================================================ */
.mobile-sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(14, 27, 61, 0.08);
  transform: translateY(110%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-cta-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-sticky-cta-bar {
    display: none !important;
  }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
