/* ==========================================================================
   HV Makelaardij — Starter Preview
   Archetype: clean-minimal
   Kleuren: Teal #00718F, Geel-groen #F3F700, Tekst #1A2A3A
   Fonts: Satoshi (headings) + Inter (body)
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #00718F;
  --color-primary-dark: #005B73;
  --color-accent: #F3F700;
  --color-accent-hover: #D9DE00;
  --color-text: #1A2A3A;
  --color-text-light: #4A5568;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-border: #E2E8F0;
  --color-footer: #1A2A3A;

  --font-heading: 'Satoshi', sans-serif;
  --font-body: 'Inter', sans-serif;

  --section-padding: 80px;
  --container-width: 1140px;
  --border-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* --- SVG Safety (SOP) --- */
svg:not([width]) {
  max-width: 48px;
  max-height: 48px;
}

svg {
  overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.section--primary h2,
.section--primary h3 {
  color: #FFFFFF;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn--white {
  background-color: #FFFFFF;
  color: var(--color-text);
}

.btn--white:hover {
  background-color: #F7F8FA;
  color: var(--color-text);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: 80px;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  height: 64px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 44px;
  width: auto;
  transition: height 0.3s ease;
}

.header.scrolled .header__logo img {
  height: 36px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a.active {
  color: var(--color-primary);
}

.header__cta {
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1050;
}

.mobile-nav.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.35s; }

/* --- Hero --- */
.hero {
  background-color: var(--color-primary);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-size: 2.75rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__accent {
  position: absolute;
  top: -60px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  z-index: 1;
}

/* --- Page Header (sub-pages) --- */
.page-header {
  background-color: var(--color-primary);
  padding: 60px 0 70px;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  max-width: 600px;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 64px;
  height: 48px;
  margin-bottom: 20px;
}

.service-card__icon img {
  width: 64px;
  height: 48px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.125rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card__link:hover {
  color: var(--color-primary-dark);
}

/* --- Social Proof Bar --- */
.proof-bar {
  background-color: var(--color-accent);
  padding: 20px 0;
}

.proof-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-bar__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
}

.proof-bar__divider {
  width: 1px;
  height: 20px;
  background-color: rgba(26, 42, 58, 0.2);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview__image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-preview__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-preview__text h2 {
  margin-bottom: 1.25rem;
}

.about-preview__text p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- Partners --- */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partners-row img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partners-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Diensten Page --- */
.dienst-blok {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.dienst-blok:last-child {
  border-bottom: none;
}

.dienst-blok__icon img {
  width: 64px;
  height: 48px;
  object-fit: contain;
}

.dienst-blok h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.dienst-blok p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.dienst-blok ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.dienst-blok ul li {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.team-member__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  filter: grayscale(100%);
}

.team-member__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-member__role {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.team-member__dept {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* --- Facts Row --- */
.facts-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.fact-item {
  text-align: center;
}

.fact-item__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-item__label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Woningaanbod --- */
.funda-block {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.funda-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.funda-block p {
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-info__item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-info__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.contact-info__text strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

.map-container {
  margin-top: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.kvk-info {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.kvk-info h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.kvk-info p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  margin-bottom: 1.25rem;
}

.cta-section p {
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__contact p {
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a:hover {
  color: #FFFFFF;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__partners img {
  height: 28px;
  width: auto;
  filter: grayscale(100%) brightness(2);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer__partners img:hover {
  opacity: 0.7;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 64px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview__image img {
    height: 300px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  .container {
    padding: 0 20px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-header {
    padding: 40px 0 50px;
  }

  .proof-bar__inner {
    flex-direction: column;
    gap: 8px;
  }

  .proof-bar__divider {
    display: none;
  }

  .dienst-blok {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .facts-row {
    gap: 32px;
  }

  .fact-item__number {
    font-size: 2rem;
  }

  .about-preview__image img {
    height: 240px;
  }

  .partners-row {
    gap: 32px;
  }

  .partners-row img {
    height: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__partners {
    justify-content: center;
  }
}

/* --- Sticky Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px;
}

.mobile-cta .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 68px;
  }
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.section--primary .section-subtitle {
  color: var(--color-accent);
}
