/* Homepage-only styling voor hostingo.nl. Los geladen, alleen op de homepage.
   Geen Tailwind-build nodig: dit bestand is puur CSS, geschreven met eigen class-namen
   (prefix hg-) zodat we niet afhankelijk zijn van de gecompileerde Tailwind-bundel. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-variable-latin.woff2') format('woff2');
}

:root {
  --hg-accent: #FF5B35;
  --hg-accent-dark: #E6431E;
  --hg-navy: #0B1120;
  --hg-cream: #FBF7F2;
  --hg-ink: #2A2320;
}

.hg-heading {
  font-family: 'Fraunces', Georgia, serif;
}

/* Herkleurt de bestaande, al gecompileerde Tailwind "brand"-klassen (standaardblauw)
   naar de nieuwe accentkleur, zonder dat de Tailwind-build opnieuw moet draaien. */
.bg-brand-dark { background-color: var(--hg-navy) !important; }
.bg-brand { background-color: var(--hg-accent) !important; }
.hover\:bg-brand-light:hover { background-color: var(--hg-accent-dark) !important; }
.bg-brand-50 { background-color: #FFE9E1 !important; }
.hover\:bg-brand-50:hover { background-color: #FFE9E1 !important; }
.text-brand-dark { color: var(--hg-navy) !important; }
.text-brand { color: var(--hg-accent) !important; }
.hover\:text-brand:hover { color: var(--hg-accent) !important; }
.border-brand { border-color: var(--hg-accent) !important; }
.text-blue-400 { color: var(--hg-accent) !important; }
.text-blue-200 { color: #FFD7C9 !important; }
.hover\:text-brand:hover { color: var(--hg-accent) !important; }

/* Fallback voor een paar Tailwind-utilities die nog niet in de gecompileerde
   CSS zaten (geen nieuwe build getriggerd, dus hier zelf gedefinieerd). */
.max-w-4xl { max-width: 56rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Header logo ---------- */
.hg-logo {
  display: block;
  height: 42px;
  width: auto;
}
.hg-logo-onDark {
  /* Logo is zwart op transparant; op de donkere header draaien we 'm naar wit. */
  filter: invert(1);
}

/* ---------- Knoppen in de nieuwe accentkleur ---------- */
.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--hg-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 1rem 1.75rem;
  transition: background-color 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.hg-btn:hover { background: var(--hg-accent-dark); }
.hg-btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; border-radius: 0.6rem; }
.hg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.hg-btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- Hero ---------- */
.hg-hero-form {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1rem;
  padding: 0.6rem;
}
.hg-hero-input {
  flex: 1 1 240px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 0.75rem;
  min-width: 0;
}
.hg-hero-input::placeholder { color: #8f9bb3; }
.hg-hero-form .hg-btn { flex: 0 0 auto; white-space: nowrap; }

/* Mini-animatie: een zin die uitgroeit tot een websitekaartje */
.hg-grow {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #fff;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.5);
}
.hg-grow-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: #F4F2EF;
  border-bottom: 1px solid #E7E1D6;
}
.hg-grow-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D8D2C6; }
.hg-grow-stage { position: relative; height: 260px; }
.hg-grow-step {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  opacity: 0;
  animation: hgFade 8s infinite;
}
.hg-grow-step:nth-child(2) { animation-delay: 4s; }
@keyframes hgFade {
  0% { opacity: 0; transform: translateY(6px); }
  4% { opacity: 1; transform: translateY(0); }
  46% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}
.hg-grow-typed {
  font-size: 1.05rem;
  color: var(--hg-ink);
  line-height: 1.5;
}
.hg-grow-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--hg-accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: hgBlink 1s steps(1) infinite;
}
@keyframes hgBlink { 50% { opacity: 0; } }
.hg-grow-site-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 1rem;}
.hg-grow-site-head b { font-family:'Fraunces', Georgia, serif; color: var(--hg-ink); }
.hg-grow-site-nav { display:flex; gap: 0.75rem; font-size: 0.65rem; color:#9c9284; }
.hg-grow-site-title { font-family:'Fraunces', Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--hg-ink); margin-bottom: 0.4rem; }
.hg-grow-site-text { font-size: 0.8rem; color: #8a8071; margin-bottom: 1rem; max-width: 20rem; }
.hg-grow-site-cta { display:inline-block; background: var(--hg-accent); color:#fff; font-size:0.72rem; font-weight:700; padding: 0.5rem 0.9rem; border-radius: 0.5rem; }
.hg-grow-blocks { display:grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; margin-top: 1.1rem; }
.hg-grow-blocks span { display:block; height: 2.6rem; border-radius: 0.5rem; background: #F0EBE1; }

@media (prefers-reduced-motion: reduce) {
  .hg-grow-step { animation: none; opacity: 1; position: static; }
  .hg-grow-step:nth-child(2) { display: none; }
}

/* ---------- Voorbeelden ---------- */
.hg-examples {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hg-example-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E7E1D6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hg-example-card:hover { box-shadow: 0 16px 30px -12px rgba(0,0,0,0.18); transform: translateY(-2px); }
.hg-example-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.hg-example-live {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(11,17,32,0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
button.hg-example-card {
  width: 100%;
  font: inherit;
  text-align: inherit;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* ---------- Demo-popup ---------- */
.hg-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.hg-demo-modal.is-open { display: block; }
.hg-demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,17,32,0.72);
  border: none;
  padding: 0;
  cursor: pointer;
}
.hg-demo-modal-panel {
  position: relative;
  margin: 3vh auto;
  width: min(1100px, 94vw);
  height: 90vh;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.55);
}
.hg-demo-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #ECE7DD;
  background: var(--hg-cream);
}
.hg-demo-modal-title {
  font-weight: 700;
  color: var(--hg-navy);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hg-demo-modal-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.hg-demo-modal-open { font-size: 0.8rem; color: var(--hg-accent-dark); text-decoration: underline; white-space: nowrap; }
.hg-demo-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0.1rem 0.4rem;
}
.hg-demo-modal-close:hover { color: var(--hg-navy); }
.hg-demo-modal-panel iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}
@media (max-width: 640px) {
  .hg-demo-modal-panel { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
}
.hg-example-caption { display:flex; align-items:baseline; justify-content:space-between; margin-top: 0.75rem; font-size: 0.875rem; }
.hg-example-caption .hg-name { font-weight: 600; color: var(--hg-navy); }
.hg-example-caption .hg-kind { color: #9a9488; }

/* ---------- Features ---------- */
.hg-features {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.hg-feature {
  text-align: left;
}
.hg-feature img { width: 72px; height: 72px; margin-bottom: 1.1rem; }
.hg-feature h3 { font-family:'Fraunces', Georgia, serif; font-size: 1.15rem; color: var(--hg-navy); font-weight: 700; margin-bottom: 0.5rem; }
.hg-feature p { color: #6b7280; font-size: 0.925rem; line-height: 1.6; }

.hg-feature-extra {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #ECE7DD;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: #4B5563;
}
.hg-feature-extra li { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Uitbreidingen (Agenda/Webshop) ---------- */
.hg-addons {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hg-addon {
  background: #fff;
  border: 1px solid #ECE7DD;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.hg-addon-badge {
  align-self: flex-start;
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hg-addon-badge-beta { background: var(--hg-cream); color: var(--hg-accent-dark); }
.hg-addon-badge-soon { background: #F3F4F6; color: #4B5563; }
.hg-addon-price {
  margin-top: 0.75rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hg-navy);
}
.hg-addon-price span {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
}
.hg-addon-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hg-accent-dark);
  text-decoration: none;
}
.hg-addon-link:hover { text-decoration: underline; }

/* ---------- Prijzen ---------- */
.hg-price-lead {
  display: inline-block;
  background: var(--hg-cream);
  border: 1px solid #EDE4D6;
  border-radius: 1.25rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  color: var(--hg-ink);
  font-weight: 600;
  text-align: center;
}
.hg-price-lead b { color: var(--hg-accent-dark); }

.hg-pricecard {
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.75rem;
  border: 1px solid #ECE7DD;
  display: flex;
  flex-direction: column;
}
.hg-pricecard.hg-pricecard-main { border: 2px solid var(--hg-accent); }
.hg-pricecard .hg-amount { font-family:'Fraunces', Georgia, serif; font-size: 2.6rem; font-weight: 700; color: var(--hg-navy); }

.hg-details {
  margin-top: 1.25rem;
  border-top: 1px solid #ECE7DD;
  padding-top: 1rem;
}
.hg-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hg-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hg-details summary::-webkit-details-marker { display: none; }
.hg-details summary .hg-chev { transition: transform 0.2s ease; color: #9a9488; }
.hg-details[open] summary .hg-chev { transform: rotate(180deg); }
.hg-details-body { padding-top: 0.75rem; font-size: 0.85rem; color: #6b7280; line-height: 1.6; }
.hg-details-body p + p { margin-top: 0.6rem; }

/* ---------- Vertrouwen ---------- */
.hg-trust {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hg-trust { grid-template-columns: 1fr 1fr; }
}
.hg-trust-logo-box {
  border: 1px solid #ECE7DD;
  border-radius: 1rem;
  background: var(--hg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 2.5rem;
}
.hg-trust-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* ---------- Mobiel ---------- */
@media (max-width: 480px) {
  .hg-hero-form { flex-direction: column; }
  .hg-hero-form .hg-btn { width: 100%; }
  .hg-grow-stage { height: 300px; }
}

/* ---------- Beleidspagina's (bv. Content Moderation Policy) ---------- */
.hg-policy { color: #374151; font-size: 1rem; line-height: 1.75; }
.hg-policy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--hg-navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.hg-policy h2:first-child { margin-top: 0; }
.hg-policy p { margin-top: 0.9rem; margin-bottom: 0.9rem; }
.hg-policy ul { margin-top: 0.9rem; margin-bottom: 0.9rem; padding-left: 1.25rem; list-style: disc; }
.hg-policy li { margin-top: 0.4rem; }
.hg-policy a { color: var(--hg-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.hg-policy a:hover { color: var(--hg-accent); }
