/* ============================================================
   BASE STYLES — Reset, Typography, Utilities
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--gp-neutral-900);
  background-color: var(--gp-neutral-50);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gp-teal-600); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gp-green-700); }

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: var(--weight-semibold); }

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-snug);
  font-weight: var(--weight-bold);
  color: var(--gp-neutral-900);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gp-green-800); color: var(--gp-white);
  padding: 0.5rem 1rem; border-radius: var(--radius-md);
  font-weight: var(--weight-semibold); z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* === SECTION TITLE === */
.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-title .label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  color: var(--gp-teal-600);
  background: var(--gp-teal-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}
.section-title h2 {
  font-size: var(--text-3xl);
  color: var(--gp-green-900);
  margin-bottom: var(--space-4);
}
.section-title p {
  font-size: var(--text-lg);
  color: var(--gp-neutral-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* === DIVIDER ACCENT === */
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gp-green-500), var(--gp-saffron-500));
  border-radius: var(--radius-full);
  margin: var(--space-5) auto 0;
}

/* === PAGE TITLE BANNER === */
.page-banner {
  background: linear-gradient(135deg, var(--gp-green-800) 0%, var(--gp-green-700) 60%, var(--gp-teal-700) 100%);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-banner h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--gp-white);
  margin-bottom: var(--space-3);
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
}

/* Breadcrumb */
.breadcrumb-nav ol {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  font-size: var(--text-sm); margin-top: var(--space-3);
}
.breadcrumb-nav a { color: rgba(255,255,255,0.75); }
.breadcrumb-nav a:hover { color: var(--gp-white); }
.breadcrumb-nav li:not(:last-child)::after { content: '›'; margin-left: var(--space-2); color: rgba(255,255,255,0.5); }
.breadcrumb-nav li.current { color: var(--gp-saffron-400); font-weight: var(--weight-medium); }

/* === BADGE / TAG === */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}
.badge-green  { background: var(--gp-green-100);  color: var(--gp-green-700); }
.badge-teal   { background: var(--gp-teal-100);   color: var(--gp-teal-700); }
.badge-saffron{ background: var(--gp-saffron-100); color: var(--gp-saffron-700); }
.badge-demo   { background: #fef3cd; color: #856404; }

/* === BUTTON SYSTEM === */
.btn-gp {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-primary); font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  min-height: 44px;
}
.btn-gp-primary {
  background: var(--gp-green-800); color: var(--gp-white);
  border-color: var(--gp-green-800);
}
.btn-gp-primary:hover {
  background: var(--gp-green-700); border-color: var(--gp-green-700);
  color: var(--gp-white); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-gp-outline {
  background: transparent; color: var(--gp-green-800);
  border-color: var(--gp-green-800);
}
.btn-gp-outline:hover {
  background: var(--gp-green-800); color: var(--gp-white);
}
.btn-gp-saffron {
  background: var(--gp-saffron-500); color: var(--gp-green-900);
  border-color: var(--gp-saffron-500);
}
.btn-gp-saffron:hover {
  background: var(--gp-saffron-400); border-color: var(--gp-saffron-400);
  color: var(--gp-green-900); transform: translateY(-1px);
}

/* === CARD SHELL === */
.gp-card {
  background: var(--gp-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.gp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* === DEMO NOTICE === */
.demo-notice {
  background: #fff3cd; border-left: 4px solid var(--gp-saffron-500);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: #664d03; margin-bottom: var(--space-6);
}
.demo-notice strong { font-weight: var(--weight-semibold); }

/* === RELATED GOVT LINKS === */
.govt-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}
.govt-link-card {
  background: var(--gp-green-800);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.govt-link-card:hover {
  background: var(--gp-green-700); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.govt-link-card img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: white; padding: 4px; }
.govt-link-card span { font-size: var(--text-xs); color: var(--gp-white); font-weight: var(--weight-medium); line-height: 1.3; }

/* === IMAGE PLACEHOLDER === */
.img-placeholder {
  background: linear-gradient(135deg, var(--gp-green-100), var(--gp-teal-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--gp-green-500); font-size: 2rem;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gp-neutral-100); }
::-webkit-scrollbar-thumb { background: var(--gp-green-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gp-green-500); }

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 3px solid var(--gp-saffron-500);
  outline-offset: 2px;
  border-radius: 2px;
}
