/* ===================================================
   Pilegårdens Grundejerforening — Shared Stylesheet
   =================================================== */

:root {
  --primary:         #1e5631;
  --primary-light:   #4a8c5c;
  --primary-lighter: #7ec8a4;
  --primary-bg:      #e8f4ed;
  --bg:              #f5f7f5;
  --surface:         #ffffff;
  --text:            #1a2a1a;
  --text-muted:      #556655;
  --border:          #d4e6d4;
  --shadow:          0 2px 8px rgba(0,0,0,0.07);
  --shadow-lg:       0 6px 24px rgba(0,0,0,0.11);
  --radius:          8px;
  --radius-lg:       12px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Navigation --- */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0;
  text-decoration: none;
  flex-shrink: 0;
}
.site-title .name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.site-title .tagline {
  color: var(--primary-lighter);
  font-size: 0.78rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem;
}
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.2s;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.6rem 0.75rem; }
}

/* --- Hero (home page only) --- */
.hero {
  background: linear-gradient(140deg, #1a4d2b 0%, #2d7a4a 60%, #3a9e62 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn-white   { background: #fff; color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }

/* --- Page header (inner pages) --- */
.page-header {
  background: linear-gradient(140deg, #1a4d2b 0%, #2d7a4a 100%);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* --- Containers --- */
main { flex: 1; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* --- Quick-link cards (home page) --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
}
.quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.quick-link .ql-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.quick-link .ql-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.quick-link .ql-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section labels */
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- Board member cards --- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}
.member-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.member-card .mc-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.member-card .mc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.member-card .mc-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.member-card a {
  color: var(--primary-light);
  text-decoration: none;
}
.member-card a:hover { text-decoration: underline; }

.reviewer-section {
  margin-top: 2rem;
}
.reviewer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.reviewer-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.reviewer-item .ri-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.reviewer-item .ri-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.reviewer-item .ri-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* --- Statute articles (vedtægter) --- */
.statute-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.statute {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.statute-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}
.statute p { color: var(--text); margin-bottom: 0.6rem; }
.statute p:last-child { margin-bottom: 0; }
.statute ol {
  margin: 0.6rem 0 0 1.4rem;
}
.statute ol li { margin-bottom: 0.25rem; font-size: 0.95rem; }

/* --- Download list (generalforsamlinger) --- */
.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  transition: border-color 0.15s;
}
.download-item:hover { border-color: var(--primary-lighter); }
.download-item .dl-year { font-weight: 600; font-size: 0.95rem; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.download-btn:hover { background: var(--primary); color: #fff; }
.download-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Notice box --- */
.notice {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #78350f;
}
.notice strong { color: #92400e; }

/* --- Equipment sections --- */
.equipment-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.equipment-block:last-child { margin-bottom: 0; }
.equipment-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.equipment-block p { color: var(--text); margin-bottom: 0.6rem; }
.equipment-block p:last-child { margin-bottom: 0; }

/* --- Content prose --- */
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* --- News (Seneste nyt) --- */
.news-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.news-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  border-top: 1px solid var(--border);
}
.news-item:first-child {
  border-top: none;
}
.news-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.news-summary::-webkit-details-marker { display: none; }
.news-summary::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-top: -3px;
}
details[open] > .news-summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  white-space: nowrap;
  background: var(--primary-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.news-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.news-summary:hover .news-title {
  color: var(--primary);
}
.news-body {
  padding: 0 1.5rem 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.news-body p { margin-bottom: 0.75rem; }
.news-body p:last-child { margin-bottom: 0; }
.news-body ol {
  margin: 0.5rem 0 0.75rem 1.4rem;
}
.news-body ol li { margin-bottom: 0.2rem; }

/* --- Contact card --- */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  max-width: 460px;
}
.contact-card .cc-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.contact-card .cc-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-card .cc-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  align-items: baseline;
}
.contact-card .cc-label {
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}
.contact-card a {
  color: var(--primary-light);
  text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }

.contact-note {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  margin-top: auto;
}
.site-footer a {
  color: var(--primary-lighter);
  text-decoration: none;
}
