/* ============================================================
   Het Oude Raedthuys – one-pager
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Xtradex";
  src: url("../fonts/Xtradex.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cta: #F47D38;
  --cta-dark: #d9662a;
  --cta-soft: #fdeadd;
  --bg: #fffdf9;
  --bg-alt: #fdf6ee;
  --ink: #2b2620;
  --ink-soft: #6b6157;
  --card: #ffffff;
  --line: #f0e6da;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 38, 32, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --logo-size: 132px;
  --header-h: calc(var(--logo-size) + 4px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.accent { color: var(--cta); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 22px rgba(244, 125, 56, 0.35);
}
.btn-cta:hover {
  background: var(--cta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 125, 56, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--cta);
  color: var(--cta-dark);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.85em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  padding-block: 2px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--cta); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cta-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.header-phone:hover { color: var(--cta); }

.header-phone-icon {
  flex-shrink: 0;
}

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(255, 250, 243, 0.94) 0%, rgba(255, 250, 243, 0.82) 38%, rgba(255, 244, 232, 0.25) 70%, rgba(255, 244, 232, 0.05) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-inner,
.hero-wave {
  position: relative;
  z-index: 2;
}

.hero-inner { max-width: 100%; }

.hero-copy { max-width: 36rem; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cta-dark);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  margin: -0.4rem 0 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

/* ---------- Live openingstijden-pill ---------- */

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  font-weight: 600;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #b3aca3;
}

.live-pill.is-open .live-dot {
  background: #2fae5f;
  animation: pulse 2s ease-in-out infinite;
}
.live-pill.is-soon .live-dot {
  background: var(--cta);
  animation: pulse 2s ease-in-out infinite;
}
.live-pill.is-closing .live-dot {
  background: var(--cta);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 174, 95, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(47, 174, 95, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none !important; }
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.hero-wave {
  position: absolute;
  inset: auto 0 -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: clamp(50px, 9vw, 130px); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #fff; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cta);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

/* ---------- Frituren ---------- */

.frituren-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.frituren-head h2 { margin-bottom: 0; }

.frituren-badge {
  width: clamp(90px, 10vw, 130px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(43, 38, 32, 0.18));
}

/* ---------- Over ons ---------- */

.about-section {
  overflow: hidden;
  --about-progress: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: clamp(18px, 3vw, 28px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform:
    translateY(calc((1 - var(--about-progress)) * 48px))
    scale(calc(0.92 + var(--about-progress) * 0.08));
  opacity: calc(0.35 + var(--about-progress) * 0.65);
  will-change: transform, opacity;
}

.about-visual picture {
  display: block;
}

.about-visual img {
  width: 100%;
  height: clamp(300px, 40vw, 500px);
  object-fit: cover;
  transform: scale(calc(1.14 - var(--about-progress) * 0.14));
  will-change: transform;
}

.about-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cta-dark);
  box-shadow: var(--shadow);
  transform: translateY(calc((1 - var(--about-progress)) * 16px));
  opacity: var(--about-progress);
}

.about-copy {
  --t1: clamp(0, (var(--about-progress) - 0.05) / 0.2, 1);
  --t2: clamp(0, (var(--about-progress) - 0.18) / 0.2, 1);
  --t3: clamp(0, (var(--about-progress) - 0.3) / 0.2, 1);
  --t4: clamp(0, (var(--about-progress) - 0.42) / 0.2, 1);
  --t5: clamp(0, (var(--about-progress) - 0.54) / 0.2, 1);
}

.about-kicker {
  margin-bottom: 0.6rem;
  opacity: var(--t1);
  transform: translateY(calc((1 - var(--t1)) * 22px));
}

.about-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 1rem;
  opacity: var(--t2);
  transform: translateY(calc((1 - var(--t2)) * 26px));
}

.about-text {
  color: var(--ink);
  transform: translateY(calc((1 - var(--step, 1)) * 20px));
}

.about-text-3 { --step: var(--t3); opacity: var(--t3); }
.about-text-4 { --step: var(--t4); opacity: var(--t4); }
.about-text-5 { --step: var(--t5); opacity: var(--t5); margin-bottom: 0; }

.about-lead { font-size: 1.12rem; }

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual img { height: clamp(260px, 55vw, 380px); }
}

@media (prefers-reduced-motion: reduce) {
  .about-section { --about-progress: 1; }
  .about-visual,
  .about-visual img,
  .about-kicker,
  .about-title,
  .about-text,
  .about-badge {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- TikTok fan ---------- */

#videos { padding-top: clamp(1rem, 2.5vw, 2rem); }

.videos-head { text-align: center; }

.videos-quote {
  max-width: 46rem;
  margin-inline: auto;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
}

.videos-source {
  color: var(--cta);
  font-weight: 600;
  margin: 0;
}

.fan-wrap {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.fan-nav,
.fan-dots {
  display: none;
}

.fan {
  position: relative;
  width: 340px;
  height: 620px;
}

.fan-card {
  position: absolute;
  inset: 0;
  width: 325px;
  height: 605px;
  margin-inline: auto;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: 50% 115%;
  transform: rotate(calc(var(--spread, 0) * var(--angle, 0deg)))
             translateX(calc(var(--spread, 0) * var(--shift, 0px)));
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.fan-card:nth-child(1) { --angle: -14deg; --shift: -90px; z-index: 1; }
.fan-card:nth-child(2) { --angle: 0deg;   --shift: 0px;   z-index: 3; }
.fan-card:nth-child(3) { --angle: 14deg;  --shift: 90px;  z-index: 2; }

.fan-card.is-front { z-index: 4; }

.fan-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tiktok-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(24rem 20rem at 30% 20%, var(--cta-soft), transparent 65%),
    linear-gradient(160deg, #fff4ea, #ffe4cf);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-size: 1.5rem;
  padding-left: 5px;
  box-shadow: 0 10px 26px rgba(244, 125, 56, 0.45);
}

.tiktok-handle {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- Openingstijden ---------- */

.hours-section { padding-top: 0; }

.hours-card {
  max-width: 26rem;
  margin-inline: auto;
  text-align: center;
}

.hours-card h2 { font-size: 1.6rem; }

.hours-card .hours th { text-align: left; }
.hours-card .hours td { text-align: right; }

.hours-exceptions {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--cta-soft);
  border-radius: 12px;
  font-size: 0.92rem;
  text-align: left;
}
.hours-exceptions li { padding: 0.1rem 0; }
.hours-exceptions li::before { content: "\26A0\FE0E"; color: var(--cta-dark); margin-right: 0.5em; }

.day-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 0.5em;
  vertical-align: 1px;
}
.day-dot.is-open {
  background: #2fae5f;
  animation: pulse 2s ease-in-out infinite;
}
.day-dot.is-closed {
  background: #d9463e;
  animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 70, 62, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(217, 70, 62, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .day-dot { animation: none !important; }
}

/* ---------- Fotobanners ---------- */

.banner-section { padding-top: 0; }

.banner {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  min-height: clamp(150px, 26vw, 290px);
}
.banner:first-child { margin-top: 0; }

.banner-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.banner-strip picture {
  display: block;
}

.banner-strip img {
  width: 100%;
  height: clamp(150px, 26vw, 290px);
  object-fit: cover;
  border-radius: clamp(14px, 2.5vw, 28px);
  box-shadow: var(--shadow);
}

.banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
  pointer-events: none;
  color: var(--cta);
}

.banner-title span {
  display: block;
  line-height: 1.05;
  /* Witte outline via text-shadow — werkt betrouwbaarder in Chrome dan -webkit-text-stroke */
  --outline: clamp(2px, 0.1em, 7px);
  text-shadow:
    calc(-1 * var(--outline)) 0 #fff,
    var(--outline) 0 #fff,
    0 calc(-1 * var(--outline)) #fff,
    0 var(--outline) #fff,
    calc(-1 * var(--outline)) calc(-1 * var(--outline)) #fff,
    var(--outline) calc(-1 * var(--outline)) #fff,
    calc(-1 * var(--outline)) var(--outline) #fff,
    var(--outline) var(--outline) #fff,
    0 4px 14px rgba(43, 38, 32, 0.28);
}

.font-xtradex {
  font-family: "Xtradex", var(--font-display);
  font-size: clamp(1.6rem, 5.2vw, 4.2rem);
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

address { font-style: normal; margin-bottom: 1rem; }

.contact-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cta-dark);
  text-decoration: none;
}
.contact-phone:hover { text-decoration: underline; }

.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; padding-right: 1rem; }
.hours td { color: var(--ink-soft); }

.card-map { padding: 0; overflow: hidden; min-height: 280px; }
.card-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cfc7bd;
  padding: 2rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cta); }

/* ---------- Reveal animaties ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fan-card { --spread: 1 !important; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-media img { object-position: center 30%; }

  .header-phone-text { display: none; }
  .header-phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    background: var(--cta-soft);
    color: var(--cta-dark);
  }
  .header-phone:hover { background: #fbd5b8; color: var(--cta); }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.94) 0%, rgba(255, 250, 243, 0.88) 55%, rgba(255, 244, 232, 0.7) 100%);
  }

  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-map { min-height: 320px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 0;
  }
  .site-nav.is-open { max-height: 360px; }
  .site-nav a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  /* TikTok-carousel op mobiel */
  .fan-wrap {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding-inline: 0;
    gap: 1rem;
  }

  .fan {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem calc(50% - min(162px, 42.5vw)) 0.75rem;
  }

  .fan::-webkit-scrollbar { display: none; }

  .fan-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }

  .fan-nav-prev { left: 0.35rem; }
  .fan-nav-next { right: 0.35rem; }

  .fan-nav.is-hidden {
    visibility: hidden;
    pointer-events: none;
  }

  .fan-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
  }

  .fan-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d8cfc3;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .fan-dot.is-active {
    background: var(--cta);
    transform: scale(1.2);
  }

  .fan-card {
    position: relative;
    inset: auto;
    flex: 0 0 min(325px, 85vw);
    scroll-snap-align: center;
    transform: none !important;
    width: min(325px, 85vw);
    height: 580px;
    z-index: auto;
  }
}
