/* ============================================
   Khushpal Singh Pawar — Campaign Website
   ============================================ */

:root {
  --teal: #205364;
  --teal-dark: #163c48;
  --gold: #a67d45;
  --off-white: #f1fbfc;
  --white: #ffffff;
  --text-on-teal: #eaf4f6;
  --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--teal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  margin: 0;
  line-height: 1.15;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--teal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  white-space: nowrap;
}

.logo .gold {
  color: var(--gold);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--teal);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--off-white);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  max-width: none;
}

.hero-photo-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.hero-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  gap: 1.25rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--teal);
  max-width: 640px;
}

.hero-text p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--teal);
  max-width: 480px;
  margin: 0;
}

@media (min-width: 901px) {
  .hero .container {
    min-height: clamp(460px, 42vw, 660px);
    max-width: 1360px;
    padding: 0 clamp(2rem, 5vw, 4.5rem);
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

/* ---------- About ---------- */

.about {
  background: var(--teal);
  color: var(--text-on-teal);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.about p {
  margin: 0 0 1rem 0;
  font-size: 1.02rem;
}

.about p:last-child {
  margin-bottom: 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 11 / 10;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 24px;
}

/* ---------- Priorities ---------- */

.priorities {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: var(--white);
}

.priorities h2 {
  text-align: center;
  color: var(--teal);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.priority-card {
  background: var(--teal);
  border-radius: 22px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.75rem);
  color: var(--white);
}

.priority-card img {
  width: clamp(56px, 6vw, 74px);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.priority-card h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
}

.priority-card p {
  font-style: italic;
  font-size: 0.98rem;
  margin: 0;
  color: var(--text-on-teal);
}

/* ---------- Pledge / Form ---------- */

.pledge {
  background: var(--teal);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.pledge .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pledge-intro h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.pledge-intro p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text-on-teal);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 420px;
  margin: 0;
}

.pledge-form {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #cfe1e6;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--teal);
  background: #fbfdfe;
  transition: border-color 0.2s ease;
}

.form-row input:focus {
  outline: none;
  border-color: var(--teal);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
}

.radio-option input,
.checkbox-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4eef0;
}

.submit-btn {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: #8f6a39;
}

.submit-btn:active {
  transform: scale(0.99);
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  color: #1c7a3f;
}

.form-status.error {
  display: block;
  color: #b3261e;
}

.required {
  color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--off-white);
  padding: 1.75rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer .logo {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.4rem);
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-copy {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--teal);
}

/* ============================================
   Responsive breakpoints
   ============================================ */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 3px solid var(--teal);
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    width: 100%;
    border-top: 1px solid #eef4f5;
  }

  .nav-toggle {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-text {
    order: -1;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
  }

  .hero-text p {
    margin: 0 auto;
  }

  .hero-photo-wrap {
    min-height: 320px;
    padding-top: 0;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .pledge .container {
    grid-template-columns: 1fr;
  }

  .pledge-intro {
    text-align: center;
  }

  .pledge-intro p {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .priority-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.priority-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.priority-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.priority-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
