/* ============================================
   Green Jurisdiction Database — Use Cases
   Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #3aafa9;
  --color-primary-light: #5cbdb8;
  --color-primary-dark: #2b7a78;
  --color-accent: #def2f1;
  --color-dark: #17252a;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #17252a;
  --color-text-secondary: #546e7a;
  --color-border: #def2f1;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Top Nav ---- */

.top-nav {
  background: var(--color-dark);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.top-nav .nav-brand img {
  height: 40px;
  width: auto;
}

.top-nav .nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.top-nav .nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.top-nav .nav-links a:hover {
  color: #fff;
}

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

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/home_forest2.png');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 37, 42, 0.55) 0%,
    rgba(23, 37, 42, 0.45) 60%,
    rgba(23, 37, 42, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem;
  max-width: 750px;
}

.hero-content h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  background: rgba(58, 175, 169, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Tool Cards Grid ---- */

.tools-section {
  padding: 4rem 0;
}

.tools-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tools-section .subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.tool-card .badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.badge--active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.badge--soon {
  background: #fff3e0;
  color: #e65100;
}

/* Tool card as link */
.tool-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tool-card--link:hover {
  color: inherit;
}

.tool-card--soon {
  opacity: 0.85;
}

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

.site-footer {
  margin-top: auto;
  padding: 2.5rem 1.5rem;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.footer-inner a {
  color: var(--color-primary);
}

.footer-inner a:hover {
  color: var(--color-primary-light);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .top-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

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