/* =========================================================
   Agnes Kozijnen — Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   Custom properties
   --------------------------------------------------------- */
:root {
  --accent:       #A0D9E5;
  --accent-dark:  #2A8FA3;
  --dark:         #030213;
  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-800:     #1f2937;
  --gray-900:     #111827;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --max-width:    80rem;   /* 1280px */
  --max-narrow:   56rem;   /* 896px  */
  --section-px:   1.5rem;
  --section-py:   8rem;

  --transition-base:  200ms ease;
  --transition-slow:  500ms ease;
  --transition-long:  700ms ease;
}

@media (min-width: 1024px) {
  :root {
    --section-px: 3rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, iframe {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
#site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: 1.5rem;
  transition:
    background-color var(--transition-slow),
    backdrop-filter var(--transition-slow),
    box-shadow var(--transition-slow),
    padding var(--transition-slow);
}

#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding-block: 0.75rem;
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  text-decoration: none;
}

.logo-img {
  height: 3.5rem;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
  transition: height var(--transition-slow), filter var(--transition-slow);
}

#site-header.scrolled .logo-img {
  height: 2.5rem;
  filter: none;
}

.nav-list {
  display: none;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition: color var(--transition-base);
}

.nav-list a:hover {
  color: var(--accent);
}

#site-header.scrolled .nav-list a {
  color: var(--gray-900);
  text-shadow: none;
}

#site-header.scrolled .nav-list a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.05;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 1.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero-label {
  display: inline-block;
  margin-block-end: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

#hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-block-end: 2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin-inline: auto;
  margin-block-end: 3rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  padding: 1.25rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

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

.btn-hero svg {
  transition: transform var(--transition-base);
}

.btn-hero:hover svg {
  transform: translateY(3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ---------------------------------------------------------
   Shared section utilities
   --------------------------------------------------------- */
.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
  padding-block: var(--section-py);
}

.section-inner--narrow {
  max-width: var(--max-narrow);
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 1rem;
}

.section-lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-600);
}

/* ---------------------------------------------------------
   Locatie
   --------------------------------------------------------- */
#locatie {
  background-color: #faf9f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-10 33 42)'%3E%3Crect x='10' y='12' width='46' height='60' rx='2'/%3E%3Cline x1='10' y1='42' x2='56' y2='42'/%3E%3Cline x1='33' y1='12' x2='33' y2='72'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(18 197 86)'%3E%3Crect x='182' y='62' width='30' height='48' rx='2'/%3E%3Ccircle cx='206' cy='88' r='2.5'/%3E%3Crect x='187' y='68' width='8' height='12' rx='1'/%3E%3Crect x='199' y='68' width='8' height='12' rx='1'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-5 78 210)'%3E%3Crect x='62' y='190' width='32' height='40' rx='2'/%3E%3Cline x1='62' y1='210' x2='94' y2='210'/%3E%3Cline x1='78' y1='190' x2='78' y2='230'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(12 267 193)'%3E%3Crect x='248' y='168' width='38' height='50' rx='2'/%3E%3Cline x1='248' y1='193' x2='286' y2='193'/%3E%3Cline x1='267' y1='168' x2='267' y2='218'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-20 151 278)'%3E%3Crect x='138' y='258' width='26' height='40' rx='2'/%3E%3Ccircle cx='158' cy='280' r='2'/%3E%3Crect x='142' y='263' width='7' height='10' rx='1'/%3E%3Crect x='153' y='263' width='7' height='10' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
}

#locatie .section-label,
#contact .section-label {
  color: var(--accent-dark);
}

.location-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#locatie h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-block-start: 1rem;
}

.address-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--dark);
  color: var(--white);
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

.address-block:hover .icon-box {
  background: var(--accent);
  color: var(--dark);
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-block-end: 0.4rem;
}

.address-block address {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dark);
}

.phone-link {
  font-size: 1.0625rem;
  color: var(--dark);
  text-decoration: none;
}

.phone-link:hover {
  color: var(--accent-dark);
}

.footer-phone {
  display: block;
  margin-block-start: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-300);
  text-decoration: none;
}

.footer-phone:hover {
  color: var(--accent);
}

.hours-block {
  border-left: 2px solid var(--accent);
  padding-inline-start: 2rem;
  padding-block: 1rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-block-start: 0.5rem;
}

.hours-row {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--dark);
}

.hours-row dt::after {
  content: ':';
}

.location-map-wrapper {
  position: relative;
  height: 500px;
}

@media (min-width: 1024px) {
  .location-map-wrapper {
    height: 600px;
  }
}

.map-accent {
  position: absolute;
  inset: 0;
  background: var(--accent);
  translate: 1.5rem 1.5rem;
}

.location-map {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------
   Galerij
   --------------------------------------------------------- */
#galerij {
  background: var(--dark);
  color: var(--white);
}

.gallery-header {
  margin-block-end: 4rem;
}

#galerij h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-block-start: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-auto-rows: 300px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform var(--transition-long),
    filter var(--transition-long);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

.gallery-item:hover .gallery-overlay {
  opacity: 0.3;
}

/* Skeleton loading state */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.gallery-item--skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.gallery-error {
  text-align: center;
  color: var(--gray-400);
  margin-block-start: 2rem;
  font-size: 1rem;
}

/* Wide item: spans 2 cols on mobile */
.gallery-item--wide {
  grid-column: span 2;
}

/* Featured item: 2×2 on desktop */
@media (min-width: 1024px) {
  .gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Undo wide on desktop */
  .gallery-item--wide {
    grid-column: span 1;
  }
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
#contact {
  background-color: #faf9f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-10 33 42)'%3E%3Crect x='10' y='12' width='46' height='60' rx='2'/%3E%3Cline x1='10' y1='42' x2='56' y2='42'/%3E%3Cline x1='33' y1='12' x2='33' y2='72'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(18 197 86)'%3E%3Crect x='182' y='62' width='30' height='48' rx='2'/%3E%3Ccircle cx='206' cy='88' r='2.5'/%3E%3Crect x='187' y='68' width='8' height='12' rx='1'/%3E%3Crect x='199' y='68' width='8' height='12' rx='1'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-5 78 210)'%3E%3Crect x='62' y='190' width='32' height='40' rx='2'/%3E%3Cline x1='62' y1='210' x2='94' y2='210'/%3E%3Cline x1='78' y1='190' x2='78' y2='230'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(12 267 193)'%3E%3Crect x='248' y='168' width='38' height='50' rx='2'/%3E%3Cline x1='248' y1='193' x2='286' y2='193'/%3E%3Cline x1='267' y1='168' x2='267' y2='218'/%3E%3C/g%3E%3Cg stroke='%23e3e0dc' stroke-width='0.6' fill='none' transform='rotate(-20 151 278)'%3E%3Crect x='138' y='258' width='26' height='40' rx='2'/%3E%3Ccircle cx='158' cy='280' r='2'/%3E%3Crect x='142' y='263' width='7' height='10' rx='1'/%3E%3Crect x='153' y='263' width='7' height='10' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
}

.contact-header {
  text-align: center;
  margin-block-end: 4rem;
}

#contact h2 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-block: 0.5rem 1.5rem;
}

.form-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.form-field input {
  width: 100%;
  padding-block: 1rem;
  padding-inline: 0;
  border: none;
  border-bottom: 2px solid var(--gray-300);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition-base);
}

.form-field input::placeholder {
  color: var(--gray-400);
}

.form-field input:focus {
  border-bottom-color: var(--accent);
}

.h-captcha {
  margin-block-start: 2rem;
}

.form-actions {
  margin-block-start: 2rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 1.25rem 3rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

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

.btn-submit svg {
  transition: transform var(--transition-base);
}

.btn-submit:hover svg {
  transform: translateX(5px);
}

.form-success {
  margin-block-start: 2rem;
  background: var(--accent);
  color: var(--dark);
  padding: 1.5rem 2rem;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success__title {
  font-size: 1.125rem;
  font-weight: 600;
}

.form-success__body {
  font-size: 0.9375rem;
  margin-block-start: 0.25rem;
  opacity: 0.8;
}

.contact-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 2rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-or::before,
.contact-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.contact-phone-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-block-end: 0.75rem;
}

.contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color var(--transition-base);
}

.contact-phone svg {
  flex-shrink: 0;
  color: var(--accent-dark);
  transition: transform var(--transition-base);
}

.contact-phone:hover {
  color: var(--accent-dark);
}

.contact-phone:hover svg {
  transform: rotate(12deg);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
footer {
  background: var(--dark);
  color: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
  padding-block: 5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-block-end: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-block-end: 1.25rem;
}

.footer-brand p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 28rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-block-start: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gray-400);
  border: 1px solid var(--gray-800);
  transition:
    color var(--transition-base),
    border-color var(--transition-base);
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-block-end: 1.25rem;
}

.footer-col address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-hours > div {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-300);
}

.footer-hours dt::after {
  content: ':';
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-block-start: 2rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-500);
}
