/*
Theme Name: Road Association
Theme URI: https://example.com/road-association
Author: Road Association
Author URI: https://example.com
Description: Modern theme for a road association site.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: road-association-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #f4f6f2;
  --ink: #101614;
  --muted: #5b6763;
  --brand: #2f6b4f;
  --brand-2: #0d3b2c;
  --accent: #d5a021;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 40px rgba(12, 25, 19, 0.12);
  --grid-max: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #dbe7e0 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 10%, #e7efe7 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(100% - 2.5rem, var(--grid-max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(244, 246, 242, 0.8);
  border-bottom: 1px solid rgba(16, 22, 20, 0.08);
  z-index: 10;
}

.site-header .topbar {
  background: var(--brand-2);
  color: #f9f7ef;
  font-size: 0.9rem;
}

.site-header .topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.brand-text h1,
.brand-text p {
  margin: 0;
}

.brand-text h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-text p {
  font-size: 0.9rem;
  color: var(--muted);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.main-navigation a:hover {
  background: rgba(47, 107, 79, 0.12);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(47, 107, 79, 0.1);
  right: -60px;
  top: -80px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 79, 0.25);
}

.button.secondary {
  border-color: rgba(16, 22, 20, 0.2);
  color: var(--ink);
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(16, 22, 20, 0.08);
}

.card h3 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-family: "Sora", sans-serif;
}

.notice {
  background: linear-gradient(140deg, rgba(213, 160, 33, 0.12), rgba(47, 107, 79, 0.1));
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.notice p {
  margin: 0;
}

footer.site-footer {
  background: #101614;
  color: #dfe7e2;
  padding: 2.5rem 0 3rem;
}

footer .footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer a {
  color: #dfe7e2;
}

.footer-meta {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #9aa5a0;
}

@media (max-width: 800px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-navigation ul {
    flex-wrap: wrap;
  }

  .site-header .topbar .container span:first-child {
    display: none;
  }
}

.page-intro {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.docs-list {
  display: grid;
  gap: 1.5rem;
}

.doc-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(16, 22, 20, 0.08);
  box-shadow: 0 6px 18px rgba(12, 25, 19, 0.06);
}

.doc-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(47, 107, 79, 0.12);
  color: var(--brand-2);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
}

.doc-body h3 {
  margin: 0 0 0.35rem;
  font-family: "Sora", sans-serif;
}

.doc-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .doc-card {
    grid-template-columns: 1fr;
  }
}

.doc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.doc-card {
  grid-template-columns: 80px 1fr;
}

.doc-icon span {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
