/* Taxpayer Janata Party — static site styles */

:root {
  --navy: #0c1f3d;
  --navy-mid: #152d52;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --cream: #f6f3eb;
  --white: #ffffff;
  --text: #1a2744;
  --text-muted: #5a6b85;
  --border: rgba(12, 31, 61, 0.12);
  --shadow: 0 4px 24px rgba(12, 31, 61, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 31, 61, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  z-index: 200;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-img {
  width: 112px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.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-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

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

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(201, 162, 39, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(12, 31, 61, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #ebe6d8 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding-bottom: 3rem;
}

.hero-logo {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(12, 31, 61, 0.12));
}

.hero-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 100px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-lead strong {
  color: var(--navy);
}

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

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: var(--navy);
  color: var(--cream);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1.2;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.85;
  max-width: 16rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  color: var(--gold-light);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin-inline: auto;
}

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.section-desc {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

/* Vision */
.vision-grid {
  display: grid;
  gap: 2rem;
}

.vision-quote {
  margin: 0;
  padding: 2rem 2.25rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vision-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--navy);
}

.vision-points {
  display: grid;
  gap: 1rem;
}

.vision-card {
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.vision-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.35);
}

.vision-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.vision-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

@media (min-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .vision-points {
    grid-template-columns: 1fr;
  }
}

/* Pillars */
.pillars {
  background: var(--white);
}

.pillar {
  margin-bottom: 2rem;
  padding: 2rem 2rem 2.25rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pillar:last-child {
  margin-bottom: 0;
}

.pillar-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pillar-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.9;
}

.pillar-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
}

.pillar-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.policy-list li {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(201, 162, 39, 0.5);
}

.policy-list strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.policy-list span {
  color: var(--text-muted);
  font-size: 0.9875rem;
}

.policy-list em {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-mid);
}

@media (min-width: 768px) {
  .pillar {
    padding: 2.5rem 2.75rem;
  }
}

/* CTA / Join */
.cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--cream);
}

.cta-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.cta .section-label {
  color: var(--gold-light);
}

.cta h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--white);
}

.cta-content p {
  margin: 0;
  opacity: 0.9;
  max-width: 32rem;
}

.contact-email {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-email-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-email a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.join-form {
  display: grid;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.join-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.join-form input,
.join-form textarea {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.join-form textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.join-form input:focus,
.join-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.65;
}

.join-form .form-note a {
  color: var(--gold-light);
  text-decoration: underline;
}

.join-form .form-note a:hover {
  color: var(--white);
}

.form-note.success {
  opacity: 1;
  color: var(--gold-light);
}

@media (min-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* Visitor stats */
.visitor-stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.visitor-stats-grid {
  display: grid;
  gap: 1.25rem;
}

.visitor-card {
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.visitor-stat-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.visitor-stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.2;
}

.visitor-you {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.visitor-countries,
.visitor-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.visitor-countries li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.visitor-country-label {
  grid-column: 1;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.visitor-country-count {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gold);
}

.visitor-country-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 39, 0.35) 100%);
  border-radius: 2px;
  max-width: 100%;
}

.visitor-recent li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.visitor-recent li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.visitor-recent-place {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.visitor-recent-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.visitor-empty {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.visitor-privacy {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .visitor-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visitor-card-total,
  .visitor-card-you {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .visitor-stats-grid {
    grid-template-columns: 1fr 1fr 1.2fr 1.2fr;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: #081528;
  color: rgba(246, 243, 235, 0.75);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  background: transparent;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.footer-contact {
  margin-top: 0.75rem !important;
}

.footer-contact a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.6;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
  }

  .footer-logo {
    margin: 0 0 0.75rem;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}
