/* ========== BASE LAYOUT ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

section {
  padding: 3rem 0;
}

h1,
h2,
h3 {
  margin-bottom: 0.75rem;
  color: #002c4b; /* PMI navy */
}

.subtitle {
  font-size: 1.02rem;
  color: #4b5563;
  max-width: 780px;
}

/* ========== HEADER (PMI GUJARAT STYLE) ========== */

.site-header {
  background: #ffffff;
}

/* Top white strip with logo + buttons */
.header-top {
  border-bottom: 1px solid #e5e7eb;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 45px;
  width: auto;
  display: block;
}

.brand-text {
  line-height: 1.15;
}

.brand-title {
  font-weight: 700;
  font-size: 1.02rem;
}

.brand-subtitle {
  font-weight: 500;
  font-size: 0.88rem;
}

/* Top-right pill buttons */
.header-cta {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #5a1da0;
  color: #5a1da0;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  background: #5a1da0;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

/* Purple menu bar */
.main-nav {
  background: #5c2ca9; /* close to live site purple */
}

.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.nav-link:hover::after {
  background: #ffffff;
}

.nav-link-active::after {
  background: #ffffff;
}

/* White title area under nav */
.header-intro {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-intro .container {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.hero-text h1 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.hero-text .subtitle {
  margin-top: 0.25rem;
}

/* Slightly tinted variant for admin page */
.site-header.admin-header .header-intro {
  background: #f8fafc;
}

/* ========== SDG SECTION ========== */

.hero-sdg {
  background: linear-gradient(135deg, #002c4b, #0076a8);
  color: #e5e7eb;
}

.hero-sdg h2 {
  color: #ffffff;
}

/* Only intro paragraph just under h2 should be light */
.hero-sdg > .container > p {
  color: #e5e7eb;
}

.hero-sdg .sdg-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.sdg-card {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  color: #111827;
}

.sdg-card h3 {
  color: #002c4b;
  margin-top: 0;
}

/* Fix: text inside SDG cards should be dark */
.hero-sdg .sdg-card p,
.hero-sdg .sdg-card strong {
  color: #111827;
}

/* ========== INCENTIVES SECTION ========== */

.incentives {
  background: #ffffff;
}

.incentives .incentives-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.incentives article {
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.incentives h3 {
  margin-top: 0;
  color: #0076a8;
}

/* ========== SCORING SECTION ========== */

.scoring {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.scoring h2 {
  margin-bottom: 0.6rem;
}

.scoring h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.45rem;
}

.formula {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin: 0.7rem 0 1rem;
}

.scoring-example {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
}

.scoring-example li {
  margin-bottom: 0.15rem;
}

.scoring-note {
  margin-top: 0.6rem;
}

.scoring-list {
  padding-left: 1.2rem;
}

.scoring-list li {
  margin-bottom: 0.35rem;
}

/* ========== IMPACT DASHBOARD ========== */

.impact-dashboard {
  background: #f9fafb;
}

.impact-dashboard .kpi-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 2rem;
}

.kpi-card {
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid #f68b1f;
  border-radius: 10px 10px 0 0;
}

.kpi-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: #4b5563;
  position: relative;
  z-index: 1;
}

.kpi-card .kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #002c4b;
  position: relative;
  z-index: 1;
}

.dashboard-block {
  margin-top: 2rem;
}

/* ========== TABLES ========== */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background: #e5f3fb;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 0.7rem;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #002c4b;
}

.table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* ========== FORMS ========== */

form {
  max-width: 720px;
  background: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.form-row,
fieldset.form-row {
  margin-bottom: 1rem;
}

.form-row label,
fieldset.form-row legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1f2937;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #ffffff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #0076a8;
  box-shadow: 0 0 0 1px rgba(0, 118, 168, 0.3);
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox-group label,
fieldset.form-row label {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.35rem;
}

.checkbox-group input,
fieldset.form-row input[type="radio"],
fieldset.form-row input[type="checkbox"] {
  margin-right: 0.35rem;
}

.form-row button,
form button[type="submit"] {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: #f68b1f;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.form-row button:hover,
form button[type="submit"]:hover {
  background: #d97706;
  box-shadow: 0 3px 5px rgba(15, 23, 42, 0.18);
}

.form-row button:active,
form button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

/* Small helpers */
.optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: #64748b;
}

.note {
  font-size: 0.8rem;
  color: #64748b;
}

/* ========== FOOTER (PMI-STYLE) ========== */

.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 55px;
  width: auto;
  display: block;
}

.footer-center {
  text-align: center;
  flex: 1;
}

.footer-link {
  font-size: 0.85rem;
  color: #4b5563;
  text-decoration: none;
  margin-left: 0.75rem;
}

.footer-link-main {
  color: #5a1da0;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
  font-size: 0.83rem;
  color: #4b5563;
}

.footer-links {
  margin-bottom: 0.4rem;
}

.footer-social {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #ffffff;
  color: #374151;
  font-size: 0.8rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  text-decoration: none;
}

/* Cookie badge bottom-right */
.cookie-badge {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  border: none;
  background: #003b5c;
  color: #ffffff;
  font-size: 0.85rem;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

/* ========== RESPONSIVE TWEAKS ========== */

@media (max-width: 720px) {
  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    justify-content: flex-start;
  }

  .main-nav-inner {
    flex-wrap: wrap;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }

  .cookie-badge {
    right: 1rem;
    bottom: 1rem;
  }
}
