/* GF Teglgården 2022 - fælles stylesheet */

:root {
  --teal-dark: #0b4f5c;
  --teal: #12707e;
  --teal-light: #4fa3ab;
  --sand: #f3ead9;
  --sand-dark: #e4d5b7;
  --coral: #c9694a;
  --text: #1f2d2f;
  --muted: #5a6b6d;
  --white: #ffffff;
  --shadow: 0 4px 18px rgba(11, 79, 92, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-dark);
}

.brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--teal-light), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand .logo-img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--teal-dark);
  border-bottom-color: var(--coral);
  text-decoration: none;
}

.social-link {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-image: url('https://images.pexels.com/photos/32156521/pexels-photo-32156521.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,40,48,0.05) 0%, rgba(8,32,38,0.55) 78%, rgba(6,26,31,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px 40px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand);
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin: 8px 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-content p {
  max-width: 620px;
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.page-hero {
  min-height: 30vh;
  align-items: center;
}

.page-hero .hero-content {
  padding: 40px 24px;
}

/* Main content */
main {
  background: var(--sand);
  padding: 48px 0 64px;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

h2 {
  color: var(--teal-dark);
  font-size: 1.5rem;
  margin-top: 0;
}

h3 { color: var(--teal-dark); }

.lede {
  font-size: 1.08rem;
  color: var(--muted);
}

.streets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.streets li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

.streets li.street-note {
  white-space: normal;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}

.streets li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.info-grid .stat {
  background: var(--sand);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.info-grid .stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--teal-dark);
}

/* Bestyrelse */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.board-member {
  text-align: center;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(160deg, var(--teal-light), var(--teal-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.board-member h4 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  color: var(--text);
}

.board-member span {
  color: var(--muted);
  font-size: 0.9rem;
}

.board-member .note {
  color: var(--teal-light);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 3px;
}

.contact-box {
  background: var(--teal-dark);
  color: var(--sand);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 28px;
}

.contact-box a { color: var(--white); font-weight: 700; }

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  margin-top: 12px;
  text-decoration: none !important;
}

.btn:hover { background: #b1573b; }

/* Nyheder */
.news-item {
  border-bottom: 1px solid var(--sand-dark);
  padding: 20px 0;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-item h3 { margin: 4px 0 8px; }

/* Arkiv */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.doc-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--sand-dark);
}

.doc-list li:last-child { border-bottom: none; }

.doc-list a::before {
  content: "📄 ";
}

/* Links page */
.link-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.link-list li {
  padding: 14px 16px;
  background: var(--sand);
  border-radius: 10px;
  margin-bottom: 10px;
}

.link-list a { font-weight: 700; }
.link-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

/* Footer */
footer {
  background: var(--teal-dark);
  color: var(--sand);
  padding: 26px 0;
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  nav.main-nav ul { gap: 14px; }
}
