/* ========================================
   Café Kamiel — Styles
   ======================================== */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --koffiedik: #1C1714;
  --melk: #FAF5EF;
  --terracotta: #C8693A;
  --basilicum: #2E5E3F;
  --bruin: #2B2421;
  --suiker: #F5EDE5;
  --hout: #9E8E82;
  --lijn: #E5DDD5;

  /* Functional aliases */
  --bg-dark: var(--koffiedik);
  --bg-light: var(--melk);
  --text-primary: var(--bruin);
  --text-inverse: var(--suiker);
  --text-muted: var(--hout);
  --accent: var(--terracotta);
  --accent-secondary: var(--basilicum);
  --border: var(--lijn);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: 1200px;
  --site-border: 8px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-light);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

a:hover {
  color: var(--basilicum);
}

::selection {
  background: var(--accent);
  color: white;
}

/* ===== SITE BORDER ===== */
.site-border {
  position: fixed;
  inset: 0;
  border: var(--site-border) solid var(--koffiedik);
  pointer-events: none;
  z-index: 9999;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ===== SECTION UTILITIES ===== */
.section-label {
  display: block;
  font-family: var(--font-accent);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-label--light {
  color: var(--terracotta);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title--light {
  color: var(--text-inverse);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: var(--site-border);
  left: var(--site-border);
  right: var(--site-border);
  z-index: 1000;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(28, 23, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo:hover {
  color: var(--terracotta);
}

.nav__logo-icon {
  font-size: 24px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-inverse);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(12px, 2vw, 28px);
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.3s var(--ease-smooth);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease-smooth);
}

.nav__links a:hover {
  color: var(--terracotta);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__socials a {
  color: rgba(245, 237, 229, 0.6);
  transition: color 0.3s var(--ease-smooth);
  display: flex;
}

.nav__socials a:hover {
  color: var(--terracotta);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--koffiedik);
}

.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 23, 20, 0.5) 0%,
    rgba(28, 23, 20, 0.3) 40%,
    rgba(28, 23, 20, 0.6) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-inverse);
  padding: 0 20px;
}

.hero__logo-mark {
  margin-bottom: 32px;
}

.hero__logo-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 24px);
  color: rgba(245, 237, 229, 0.8);
  letter-spacing: 0.02em;
}

.hero__tagline {
  margin-top: 40px;
}

.hero__tagline-line {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 237, 229, 0.7);
  border: 1px solid rgba(245, 237, 229, 0.25);
  padding: 10px 24px;
  border-radius: 40px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 237, 229, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero__bullets {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 237, 229, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  padding: 0;
}

.hero__bullet.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.2);
}

.hero__bullet:hover {
  border-color: var(--terracotta);
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.about__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.about__photo:hover img {
  transform: scale(1.03);
}

.about__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 105, 58, 0.15), transparent);
  pointer-events: none;
}

.about__text {
  padding: 16px 0;
}

.about__body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about__body:last-child {
  margin-bottom: 0;
}

.about__body strong {
  font-weight: 700;
  color: var(--bruin);
}

.about__body a {
  font-weight: 600;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.about__body a:hover {
  border-color: var(--basilicum);
  color: var(--basilicum);
}

/* ===== EVENTS ===== */
.events {
  padding: var(--section-padding) 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.events::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 105, 58, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.events__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: center;
}

.events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 40px;
}

.events__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  text-align: left;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.events__card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 105, 58, 0.3);
}

.events__card-day {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.events__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.15;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.events__card-text {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: rgba(245, 237, 229, 0.7);
  margin-bottom: 20px;
}

.events__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta);
  background: rgba(200, 105, 58, 0.1);
  border: 1px solid rgba(200, 105, 58, 0.2);
  padding: 8px 16px;
  border-radius: 40px;
}

.events__note {
  font-size: 14px;
  color: rgba(245, 237, 229, 0.5);
}

.events__note a {
  color: var(--terracotta);
  font-weight: 600;
  border-bottom: 1px solid var(--terracotta);
}

.events__note a:hover {
  color: var(--suiker);
  border-color: var(--suiker);
}

/* ===== MENU HIGHLIGHT ===== */
.menu-highlight {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.menu-highlight__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: center;
}

.menu-highlight__text {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.menu-highlight__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.menu-highlight__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.menu-highlight__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 23, 20, 0.06);
}

.menu-highlight__item-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.menu-highlight__item strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--bruin);
  margin-bottom: 2px;
}

.menu-highlight__item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== GALLERY ===== */
.gallery {
  padding: var(--section-padding) 0 40px;
  background: var(--bg-light);
}

.gallery__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: center;
  margin-bottom: 48px;
}

.gallery__slideshow {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--koffiedik);
}

.gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth);
}

.gallery__slide.active {
  opacity: 1;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.85);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.gallery__arrow:hover {
  background: var(--terracotta);
  transform: translateY(-50%) scale(1.08);
}

.gallery__arrow--prev {
  left: 16px;
}

.gallery__arrow--next {
  right: 16px;
}

.gallery__bullets {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-smooth);
}

.gallery__bullet.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.3);
}

.gallery__bullet:hover {
  border-color: white;
}

/* ===== CONTACT ===== */
.contact {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 0;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 23, 20, 0.88) 0%,
    rgba(28, 23, 20, 0.75) 100%
  );
}

.contact__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.contact__text {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(245, 237, 229, 0.7);
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: white;
  background: var(--terracotta);
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.contact__btn:hover {
  background: var(--basilicum);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 105, 58, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  padding: clamp(48px, 6vw, 80px) 0 24px;
  color: var(--text-inverse);
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.footer__brand {
  text-align: center;
  margin-bottom: 48px;
}

.footer__logo-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text-inverse);
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 18px;
  color: rgba(245, 237, 229, 0.6);
}

.footer__map {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__map iframe {
  display: block;
  width: 100%;
  height: 300px;
  filter: grayscale(30%) brightness(0.85);
  transition: filter 0.3s var(--ease-smooth);
}

.footer__map:hover iframe {
  filter: grayscale(0%) brightness(1);
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.footer__info-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.footer__info-col p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245, 237, 229, 0.7);
}

.footer__info-col a {
  color: rgba(245, 237, 229, 0.7);
  transition: color 0.3s var(--ease-smooth);
}

.footer__info-col a:hover {
  color: var(--terracotta);
}

.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(245, 237, 229, 0.7);
  max-width: 180px;
}

.footer__hours-row span:first-child {
  font-weight: 500;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 237, 229, 0.5);
  font-size: 14px;
  transition: color 0.3s var(--ease-smooth);
}

.footer__social-link:hover {
  color: var(--terracotta);
}

.footer__legal {
  text-align: center;
  padding-top: 24px;
}

.footer__legal p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(245, 237, 229, 0.3);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: rgba(28, 23, 20, 0.97);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
    z-index: 999;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .nav__socials {
    display: none;
  }

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

  .about__photo {
    aspect-ratio: 16/9;
  }

  .events__grid {
    grid-template-columns: 1fr;
  }

  .footer__info {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__hours {
    align-items: center;
  }
}

@media (max-width: 600px) {
  :root {
    --site-border: 4px;
  }

  .nav {
    height: 56px;
  }

  .hero__logo-icon {
    font-size: 44px;
  }

  .hero__title {
    font-size: 38px;
  }

  .menu-highlight__items {
    grid-template-columns: 1fr;
  }

  .gallery__arrow {
    width: 40px;
    height: 40px;
  }

  .gallery__arrow--prev {
    left: 8px;
  }

  .gallery__arrow--next {
    right: 8px;
  }
}
