/* CommonDo_It — static site (draft) */
:root {
  --green-dark: #1B5E20;
  --green-mid: #2E7D32;
  --green-light: #E8F5E9;
  --text: #212121;
  --text-muted: #555;
  --bg: #f5f5f5;
  --white: #fff;
  --radius: 12px;
  --max: 720px;
  --max-wide: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Prevent the logo link from stretching full-width when the row wraps (avoids stacked icon/text) */
.site-header__inner > .site-logo {
  flex: 0 0 auto;
}

.site-logo {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}

.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.site-logo__name {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

.site-logo__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  color: var(--green-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--green-dark) 0%, #0d3b13 100%);
  color: var(--white);
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}

.hero__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  margin-left: 0.5rem;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .btn--ghost {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero .btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Sections */
.section {
  padding: 2.5rem 1.25rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.section--card {
  background: var(--white);
  margin: -2rem auto 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: calc(var(--max-wide) - 2rem);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--green-dark);
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

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

.card-mini {
  background: var(--green-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 94, 32, 0.15);
}

.card-mini h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--green-dark);
}

.card-mini p {
  margin: 0;
  font-size: 0.9rem;
}

/* Legal pages */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  background: var(--white);
  min-height: 60vh;
}

.legal h1 {
  font-size: 1.75rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.legal .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .notice {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #5d4037;
}

/* Footer */
.site-footer {
  background: #263238;
  color: #b0bec5;
  padding: 2rem 1.25rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer a {
  color: #cfd8dc;
}

.site-footer a:hover {
  color: var(--white);
}

/* Contact */
.contact-box {
  background: var(--green-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.contact-box code {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
