@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Cormorant+Garamond:wght@600&display=swap');

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 10% 8%, #f6f1e7 0%, transparent 40%),
    radial-gradient(circle at 92% 12%, #ece7df 0%, transparent 35%),
    #efebe5;
  color: #2b251f;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

#header {
  background: rgba(251, 248, 243, 0.96);
  border-bottom: 1px solid rgba(31, 42, 58, 0.14);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 76px !important;
}

#header .container {
  max-width: 1180px;
  height: 76px !important;
}

#header .navbar,
#header .navbar-section {
  height: 76px !important;
  display: flex;
  align-items: center;
}

#header .navbar {
  justify-content: space-between;
}

#header .logo {
  min-width: 210px;
}

#header .logo .navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 0 !important;
}

#header .logo img,
#header .logo svg {
  max-height: 52px;
  width: auto;
}

#header .navbar-section.desktop-menu {
  margin-left: auto;
  margin-right: 0 !important;
}

#header .dropmenu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .dropmenu > ul > li {
  margin: 0;
}

#header .dropmenu > ul > li > a {
  color: #233246 !important;
  font-size: 1rem !important;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  padding: 0.35rem 0.15rem 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#header .dropmenu > ul > li > a:hover,
#header .dropmenu > ul > li > a.active {
  color: #1d4d7a !important;
  border-bottom-color: #c79d5d;
}

#header .dropmenu ul li a:before {
  display: none !important;
}

.header-fixed #body-wrapper,
.header-fixed .hero + #start > #body-wrapper {
  padding-top: 84px !important;
}

body.header-fixed.header-animated #header.scrolled,
body.header-fixed.header-animated #header.scrolled .navbar,
body.header-fixed.header-animated #header.scrolled .navbar-section,
body.header-fixed.header-animated #header.scrolled .container {
  height: 76px !important;
}

body.header-fixed.header-animated #header.scrolled .logo svg,
body.header-fixed.header-animated #header.scrolled .logo img {
  height: auto !important;
  max-height: 52px !important;
}

#body-wrapper > .container {
  max-width: 1280px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 26, 35, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 26, 35, 0.1);
  padding: 2rem 2.8rem;
}

.btn,
.button {
  background: #c7a36b;
  border-color: #b28c55;
  color: #17130f;
}

.btn:hover,
.button:hover {
  background: #d7b684;
  border-color: #b28c55;
}

.card-image {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.gallery-fallback-grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  #header {
    height: 70px !important;
  }

  #header .container,
  #header .navbar,
  #header .navbar-section {
    height: 70px !important;
  }

  #header .logo {
    min-width: 150px;
  }

  #header .logo img,
  #header .logo svg {
    max-height: 42px;
  }

  #body-wrapper > .container {
    padding: 1.2rem 1rem;
  }
}

/* Joost brand polish */
:root {
  --joost-ink: #1f2a3a;
  --joost-gold: #d2b07a;
  --joost-gold-strong: #f0cf98;
  --joost-paper: #f8f5ef;
}

body {
  font-size: 18px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  color: var(--joost-ink);
}

h1 {
  font-size: clamp(3rem, 7vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

p {
  color: #2f2c28;
  max-width: 82ch;
}

a {
  color: #3b5f87;
}

a:hover {
  color: #2a4765;
}

#header {
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(18, 24, 34, 0.12);
}

#header .navbar-section.logo {
  flex: 0 0 240px;
}

#header .navbar-section.desktop-menu {
  flex: 1 1 auto;
  justify-content: flex-end;
}

#header .dropmenu > ul {
  gap: 1.25rem;
}

#header .dropmenu ul li a {
  padding: 0.35rem 0.65rem !important;
  border-radius: 7px;
}

#header .dropmenu > ul > li > a:hover,
#header .dropmenu > ul > li > a.active {
  background: rgba(210, 176, 122, 0.18);
}

#header .dropmenu > ul > li > a.active {
  box-shadow: inset 0 -2px 0 0 #c79d5d;
}

#body-wrapper > .container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 239, 0.94) 100%);
  border-color: rgba(31, 42, 58, 0.12);
  border-radius: 14px;
}

#body-wrapper {
  padding-bottom: 2rem;
}

.hero,
.modular-hero {
  position: relative;
}

.hero::after,
.modular-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.06) 0%, rgba(16, 21, 30, 0.22) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  #header .navbar-section.logo {
    flex-basis: 160px;
  }

  #header .dropmenu > ul {
    gap: 0.6rem;
  }

  #header .dropmenu ul li a {
    padding: 0.2rem 0.3rem !important;
    font-size: 0.9rem !important;
  }
}

/* Final layout fixes: keep menu in the header and center content images */
#header .container {
  display: flex;
  align-items: center;
}

#header .navbar {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.4rem;
  align-items: center;
}

#header .navbar-section.logo {
  min-width: 180px;
}

#header .navbar-section.desktop-menu {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

#header .dropmenu {
  width: 100%;
}

#header .dropmenu > ul {
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

#header .dropmenu > ul > li > a {
  line-height: 1.15;
}

#body-wrapper img,
#body-wrapper p > img,
#body-wrapper .e-content img,
#body-wrapper .modular-text img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

#body-wrapper p > a {
  display: block;
  text-align: center;
}

#body-wrapper p > a > img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}