/*
Theme Name: Højgaardsparken Divi Child
Theme URI: https://hojgaardsparken.dk/
Description: Tilpasset child theme til Grundejerforeningen Højgårdsparken.
Author: Højgårdsparken
Template: Divi
Version: 1.3.0
Text Domain: hojgaardsparken
*/

:root {
  --hgp-forest: #173f34;
  --hgp-forest-2: #245c49;
  --hgp-sage: #dce8df;
  --hgp-sand: #f6f2e9;
  --hgp-gold: #c89337;
  --hgp-ink: #1f2b27;
  --hgp-muted: #5e6c66;
  --hgp-white: #ffffff;
  --hgp-border: #d8e0dc;
  --hgp-shadow: 0 18px 48px rgba(20, 55, 44, .10);
  --hgp-radius: 18px;
  --hgp-shell: 1180px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--hgp-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hgp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.18;
}

a { color: var(--hgp-forest-2); }
a:hover { color: var(--hgp-forest); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--hgp-gold);
  outline-offset: 3px;
}

#main-header {
  box-shadow: 0 1px 0 rgba(23, 63, 52, .12);
}
#logo { width: auto; max-width: min(320px, 52vw); max-height: 66%; }
#main-header.et-fixed-header #logo {
  width: auto !important;
  height: 42px !important;
  max-height: 42px !important;
}
#top-menu a { color: var(--hgp-ink); font-weight: 650; }
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-parent > a,
#top-menu a:hover { color: var(--hgp-forest-2) !important; opacity: 1; }
.nav li ul { border-top-color: var(--hgp-gold) !important; }
.et_mobile_menu li.current-menu-item > a,
.et_mobile_menu li.current_page_item > a,
.et_mobile_menu li.current-menu-ancestor > a {
  color: var(--hgp-forest-2) !important;
  background-color: var(--hgp-sage);
}
.hgp-menu-facebook { margin-left: 2px; padding-right: 0 !important; }
#top-menu .hgp-menu-facebook > a.icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 50%;
  background: var(--hgp-sage);
  color: var(--hgp-forest-2);
  font-size: 19px;
}
#top-menu .hgp-menu-facebook > a.icon:hover { background: var(--hgp-forest-2); color: var(--hgp-white); }
.hgp-menu-facebook__label { display: none; }
.mobile_menu_bar::before { color: var(--hgp-forest-2); }
.et_mobile_menu { border-top-color: var(--hgp-gold); }

.page #main-content .container,
.single-post #main-content .container {
  width: 100%;
  max-width: none;
  padding-top: 0;
}
.page #left-area,
.single-post #left-area { width: 100%; padding: 0 !important; }
.page #main-content .container::before,
.single-post #main-content .container::before,
.page .entry-title.main_title,
.single-post .entry-title,
.single-post .post-meta { display: none; }
.page article.page,
.single-post article.post { margin-bottom: 0; }

.hgp-page { overflow: hidden; }
.hgp-shell { width: min(calc(100% - 40px), var(--hgp-shell)); margin-inline: auto; }
.hgp-section { padding: 88px 0; }
.hgp-section--soft { background: var(--hgp-sand); }
.hgp-section--sage { background: var(--hgp-sage); }
.hgp-section--dark { background: var(--hgp-forest); color: var(--hgp-white); }
.hgp-section--dark h2, .hgp-section--dark h3 { color: var(--hgp-white); }
.hgp-section--compact { padding: 56px 0; }

.hgp-hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--hgp-forest);
}
.hgp-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("assets/hojgaardsparken-hero-fullwidth-desktop.webp?v=125") center / cover no-repeat;
}
.hgp-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 37, 31, .30) 0%, rgba(9, 37, 31, .03) 16%, rgba(9, 37, 31, .03) 82%, rgba(9, 37, 31, .36) 100%),
    linear-gradient(90deg, rgba(9, 37, 31, .94) 0%, rgba(9, 37, 31, .86) 30%, rgba(9, 37, 31, .57) 48%, rgba(9, 37, 31, .18) 67%, rgba(9, 37, 31, .14) 84%, rgba(9, 37, 31, .30) 100%);
}
.hgp-hero > .hgp-shell {
  position: relative;
  z-index: 2;
  padding: 82px 0;
}
.hgp-hero__content { min-width: 0; max-width: 520px; padding: 0; color: var(--hgp-white); }
.hgp-hero__visual {
  display: none;
  pointer-events: none;
}
.hgp-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid rgba(238, 166, 71, .74);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.hgp-hero h1 {
  color: var(--hgp-white);
  font-size: clamp(2.7rem, 3.6vw, 4rem);
  margin: 0 0 20px;
}
.hgp-hero__title-line { display: block; white-space: nowrap; }
.hgp-hero p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 610px; }
.hgp-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--hgp-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hgp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hgp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--hgp-forest);
  border-radius: 999px;
  background: var(--hgp-forest);
  color: var(--hgp-white) !important;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.hgp-button:hover { transform: translateY(-1px); background: var(--hgp-forest-2); }
.hgp-button--light { background: var(--hgp-white); border-color: var(--hgp-white); color: var(--hgp-forest) !important; }
.hgp-button--outline { background: transparent; border-color: currentColor; color: inherit !important; }

.hgp-heading { max-width: 760px; margin-bottom: 38px; }
.hgp-heading h1 { font-size: clamp(2.35rem, 5vw, 4.2rem); margin-bottom: 16px; }
.hgp-heading h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); margin-bottom: 14px; }
.hgp-heading p { color: var(--hgp-muted); font-size: 1.08rem; }
.hgp-section--dark .hgp-heading p { color: rgba(255,255,255,.78); }

.hgp-grid { display: grid; gap: 22px; }
.hgp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hgp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hgp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hgp-card {
  padding: 28px;
  border: 1px solid var(--hgp-border);
  border-radius: var(--hgp-radius);
  background: var(--hgp-white);
  box-shadow: 0 8px 28px rgba(20, 55, 44, .06);
}
.hgp-card h2, .hgp-card h3 { margin-top: 0; }
.hgp-card p:last-child { margin-bottom: 0; }
.hgp-feature-card { display: flex; flex-direction: column; min-height: 300px; }
.hgp-feature-card .hgp-card__link { margin-top: auto; }
.hgp-card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  margin-bottom: 18px; border-radius: 14px;
  background: var(--hgp-sage); color: var(--hgp-forest); font-size: 1.35rem;
}
.hgp-link-card { display: block; color: inherit; text-decoration: none; }
.hgp-link-card:hover { border-color: var(--hgp-forest-2); box-shadow: var(--hgp-shadow); }
.hgp-link-card span { color: var(--hgp-forest-2); font-weight: 750; }
.hgp-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--hgp-forest-2);
  font-weight: 780;
  text-decoration: none;
}
.hgp-card__link::after { content: "→"; transition: transform .18s ease; }
.hgp-card__link:hover::after { transform: translateX(3px); }

.hgp-media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.hgp-media { margin: 0; }
.hgp-media img,
.hgp-area-figure img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--hgp-shadow);
}
.hgp-media figcaption,
.hgp-area-figure figcaption,
.hgp-photo-card figcaption {
  margin-top: 12px;
  color: var(--hgp-muted);
  font-size: .9rem;
}
.hgp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.hgp-photo-card { margin: 0; }
.hgp-photo-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 55, 44, .08);
}
.hgp-area-figure { max-width: 1100px; margin: 0 auto; }
.hgp-area-figure img { height: auto; aspect-ratio: auto; object-fit: contain; }
.hgp-area-figure picture { display: block; }
.hgp-stack-top { margin-top: 32px; }
.hgp-query-wrap { margin-top: 32px; }

.hgp-facebook-section {
  background: linear-gradient(135deg, var(--hgp-forest) 0%, #1d4d3f 100%);
  color: var(--hgp-white);
}
.hgp-facebook-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 980px;
}
.hgp-facebook-copy { grid-column: 1 / -1; }
.hgp-facebook-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.hgp-facebook-panel h2 { margin: 0 0 18px; color: var(--hgp-white); font-size: clamp(1.9rem, 3.4vw, 3rem); }
.hgp-facebook-panel p { max-width: 820px; margin: 0 0 12px; color: rgba(255,255,255,.82); }
.hgp-facebook-panel p:last-child { margin-bottom: 0; }
.hgp-facebook-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.hgp-facebook-mark a.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--hgp-white);
  font-size: 38px;
  text-decoration: none;
}
.hgp-facebook-panel .hgp-eyebrow { margin-bottom: 10px; }
.hgp-facebook-action {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 2px;
}

.hgp-cta-section { padding: 42px 0; background: var(--hgp-forest); color: var(--hgp-white); }
.hgp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hgp-cta h2 { margin: 0 0 8px; color: var(--hgp-white); font-size: clamp(1.6rem, 3vw, 2.35rem); }
.hgp-cta p { margin: 0; color: rgba(255,255,255,.78); }
.hgp-cta .hgp-eyebrow { margin-bottom: 10px; color: var(--hgp-gold); }
.hgp-cta .hgp-button { flex: 0 0 auto; margin: 0; }

.hgp-page-hero { padding: 92px 0 64px; background: linear-gradient(135deg, var(--hgp-sand), var(--hgp-sage)); }
.hgp-page-hero .hgp-heading { margin-bottom: 0; }
.hgp-breadcrumb { margin-bottom: 22px; color: var(--hgp-muted); font-size: .92rem; }

.hgp-notice { padding: 22px 24px; border-left: 5px solid var(--hgp-gold); border-radius: 8px; background: #fff9e9; }
.hgp-notice--green { border-left-color: var(--hgp-forest-2); background: var(--hgp-sage); }
.hgp-list { padding-left: 1.2rem; }
.hgp-list li { margin-bottom: .55rem; }
.hgp-meta { color: var(--hgp-muted); font-size: .92rem; }
.hgp-kicker { color: var(--hgp-forest-2); font-weight: 750; }
.hgp-divider { border: 0; border-top: 1px solid var(--hgp-border); margin: 38px 0; }

.hgp-doc-list { list-style: none; margin: 0; padding: 0; }
.hgp-doc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--hgp-border);
}
.hgp-doc-list li:last-child { border-bottom: 0; }
.hgp-tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--hgp-sage); color: var(--hgp-forest); font-size: .78rem; font-weight: 800; }

.hgp-doc-archive { display: grid; gap: 54px; }
.hgp-doc-section { display: grid; gap: 22px; }
.hgp-doc-section__heading { max-width: 760px; }
.hgp-doc-section__heading h2 { margin: 0 0 8px; }
.hgp-doc-section__heading p { margin: 0; color: var(--hgp-muted); }
.hgp-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.hgp-doc-grid > .hgp-doc-card:only-child { grid-column: 1 / -1; }
.hgp-doc-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--hgp-border);
  border-radius: var(--hgp-radius);
  background: var(--hgp-white);
  box-shadow: 0 12px 34px rgba(20, 55, 44, .07);
}
.hgp-doc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.hgp-doc-card__date { color: var(--hgp-muted); font-size: .88rem; font-weight: 700; }
.hgp-doc-card h3 { margin: 0 0 12px; font-size: clamp(1.28rem, 2vw, 1.6rem); }
.hgp-doc-card > p { margin: 0 0 22px; color: var(--hgp-muted); }
.hgp-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.hgp-doc-actions .hgp-button { padding: 11px 18px; }
.hgp-button--outline {
  border: 1px solid var(--hgp-forest-2);
  background: transparent;
  color: var(--hgp-forest-2) !important;
}
.hgp-button--outline:hover { background: var(--hgp-sage); color: var(--hgp-forest) !important; }
.hgp-doc-reader {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hgp-border);
}
.hgp-doc-reader summary {
  cursor: pointer;
  color: var(--hgp-forest-2);
  font-weight: 800;
}
.hgp-doc-reader summary::marker { color: var(--hgp-gold); }
.hgp-doc-reader[open] summary { margin-bottom: 16px; }
.hgp-doc-frame {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  border: 1px solid var(--hgp-border);
  border-radius: 10px;
  background: var(--hgp-sand);
}
.hgp-doc-fallback { margin: 12px 0 0; font-size: .9rem; }

.hgp-accordion details { border-top: 1px solid var(--hgp-border); }
.hgp-accordion details:last-child { border-bottom: 1px solid var(--hgp-border); }
.hgp-accordion summary { cursor: pointer; padding: 20px 0; color: var(--hgp-ink); font-weight: 750; }
.hgp-accordion details > div { padding: 0 0 22px; }

.hgp-contact-box { padding: clamp(28px, 5vw, 54px); border-radius: 24px; background: var(--hgp-forest); color: var(--hgp-white); }
.hgp-contact-box h2 { color: var(--hgp-white); }
.hgp-contact-box a { color: var(--hgp-white); }

.hgp-query .wp-block-post-template { gap: 22px; }
.hgp-query .wp-block-post { padding: 26px; border: 1px solid var(--hgp-border); border-radius: var(--hgp-radius); background: #fff; }
.hgp-query .wp-block-post-title { font-size: 1.35rem; }
.hgp-query .wp-block-post-title a { color: var(--hgp-ink); text-decoration: none; }
.hgp-query .wp-block-post-date { color: var(--hgp-muted); font-size: .9rem; }

#main-footer { background: var(--hgp-forest); }
#footer-bottom { background: #0f2e26; }
#footer-info {
  float: none;
  width: 100%;
  padding-bottom: 10px;
  text-align: center;
}
#footer-info, #footer-info a { color: rgba(255,255,255,.78); }
.hgp-footer-cookie { display: none; }
.hgp-footer-social { display: inline-flex; margin: 0 5px; vertical-align: -3px; }
.hgp-footer-social a.icon { color: rgba(255,255,255,.86) !important; font-size: 20px; text-decoration: none; }
.hgp-footer-social a.icon:hover { color: var(--hgp-white) !important; }

@media (max-width: 980px) {
  .hgp-grid--4, .hgp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgp-hero { min-height: auto; }
  .hgp-hero::before {
    inset: -30px;
    background: url("assets/hojgaardsparken-omraade-fokus-desktop.webp?v=125") center / cover no-repeat;
    filter: blur(12px);
    opacity: .26;
    transform: scale(1.04);
  }
  .hgp-hero > .hgp-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 0 46px;
  }
  .hgp-hero__content { max-width: 700px; padding: 0; }
  .hgp-hero__visual {
    display: block;
    width: min(100%, 760px);
    justify-self: center;
    margin: 0;
  }
  .hgp-hero__visual img { width: 100%; height: auto; }
  .hgp-media-split { grid-template-columns: 1fr; }
  .hgp-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgp-photo-card:last-child { grid-column: 1 / -1; }
  .hgp-photo-card:last-child img { height: 360px; }
  .hgp-facebook-panel { grid-template-columns: minmax(0, 1fr) auto; }
  .hgp-doc-grid { grid-template-columns: 1fr; }
  .et_mobile_menu .hgp-menu-facebook > a.icon { display: flex; align-items: center; gap: 10px; color: var(--hgp-forest-2); }
  .et_mobile_menu .hgp-menu-facebook__label { display: inline !important; }
}

@media (max-width: 680px) {
  #logo { max-width: min(275px, 70vw); max-height: 72%; }
  #main-header.et-fixed-header #logo {
    width: auto !important;
    height: 40px !important;
    max-height: 40px !important;
  }
  .hgp-shell { width: min(calc(100% - 28px), var(--hgp-shell)); }
  .hgp-section { padding: 64px 0; }
  .hgp-grid--4, .hgp-grid--3, .hgp-grid--2 { grid-template-columns: 1fr; }
  .hgp-hero {
    min-height: auto;
    align-items: stretch;
  }
  .hgp-hero::after { background: rgba(9, 37, 31, .88); }
  .hgp-hero > .hgp-shell { gap: 28px; padding: 52px 0 30px; }
  .hgp-hero__content { max-width: none; padding: 0; }
  .hgp-hero__visual {
    width: 100%;
    margin: 0;
  }
  .hgp-hero__visual img { border-radius: 16px; }
  .hgp-hero h1 { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  .hgp-doc-list li { align-items: flex-start; flex-direction: column; }
  .hgp-doc-archive { gap: 42px; }
  .hgp-doc-card { padding: 22px 18px; }
  .hgp-doc-card__meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .hgp-doc-actions { align-items: stretch; flex-direction: column; }
  .hgp-doc-actions .hgp-button { justify-content: center; text-align: center; }
  .hgp-doc-frame { height: 68vh; min-height: 480px; }
  .hgp-feature-card { min-height: 0; }
  .hgp-photo-grid { grid-template-columns: 1fr; }
  .hgp-photo-card:last-child { grid-column: auto; }
  .hgp-photo-card img,
  .hgp-photo-card:last-child img { height: 280px; }
  .hgp-cta { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hgp-facebook-panel { grid-template-columns: 1fr; text-align: left; }
  .hgp-facebook-heading-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 16px; }
  .hgp-facebook-mark { width: 56px; height: 56px; }
  .hgp-facebook-mark a.icon { width: 36px; height: 36px; font-size: 32px; }
  .hgp-facebook-action { grid-column: 1; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
