/* Frituur De Frit-Toet: one stylesheet, no frameworks */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #dbb971;
  --gold-light: #ecd6a6;
  --navy: #081622;
  --navy-2: #12283a;
  --brown: #ad7b34;
  --white: #fff;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 12px;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-order { animation: none; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--gold);
  overflow-wrap: break-word;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.dark { background: var(--navy); color: var(--white); }
.dark h2 { color: var(--gold); }
.center { text-align: center; }

.sprite { position: absolute; overflow: hidden; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .65rem 1.4rem;
  border: 2px solid var(--navy); border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--navy); color: var(--gold); }
.btn-solid:hover { background: var(--navy-2); }
.btn-line { color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--gold); }
.dark .btn { border-color: var(--gold); }
.dark .btn-solid { background: var(--gold); color: var(--navy); }
.dark .btn-solid:hover { background: var(--gold-light); }
.dark .btn-line { color: var(--gold); }
.dark .btn-line:hover { background: var(--gold); color: var(--navy); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Hero */
.hero { background: var(--navy); }
.hero h1 { margin: 0; }
.hero-banner { position: relative; max-width: 1600px; margin: 0 auto; overflow: hidden; }
.hero h1 img { width: 100%; aspect-ratio: 2559 / 567; object-fit: cover; }
/* Klik en Eet logo on the banner: flies in like the old slider layer, grows on hover */
.hero-order {
  position: absolute; left: 70%; top: 2%; width: 11.5%;
  animation: hero-in 1.6s cubic-bezier(.23, 1, .32, 1) .35s both;
}
.hero-order img { width: 100%; transition: transform .3s; }
.hero-order:hover img, .hero-order:focus-visible img { transform: scale(1.1); }
@keyframes hero-in { from { opacity: 0; transform: translateX(-100px) rotate(-45deg) scale(.8); } }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  padding: 1.25rem var(--gutter) 1.5rem;
}

/* Sticky navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy); border-top: 1px solid var(--navy-2);
  box-shadow: 0 2px 10px rgb(0 0 0 / .25);
}
.nav ul {
  display: flex; gap: .25rem;
  max-width: var(--wrap); margin: 0 auto; padding: 0 .5rem; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
/* auto margins centre the links, but never push one out of reach on a narrow screen */
.nav li:first-child { margin-left: auto; }
.nav li:last-child { margin-right: auto; }
.nav a {
  display: flex; align-items: center; height: var(--nav-h); padding: 0 .9rem;
  color: var(--white); font-weight: 500; text-decoration: none; white-space: nowrap;
}
@media (max-width: 420px) {
  .nav ul { gap: 0; }
  .nav a { padding: 0 .55rem; font-size: .95rem; }
}
@media (max-width: 360px) {
  .nav ul { padding: 0; }
  .nav a { padding: 0 .4rem; font-size: .85rem; }
}
.nav a:hover { color: var(--gold); }
.nav .nav-order { color: var(--gold); font-weight: 700; }

/* News */
.news { text-align: center; }
.news-card {
  max-width: 760px; margin: 0 auto; padding: 2rem var(--gutter);
  border: 2px dashed var(--gold); border-radius: var(--radius);
}
.news-tag {
  display: inline-block; margin-bottom: .75rem; padding: .2rem .8rem; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.news p { font-size: 1.2rem; }
.news .btn { margin-top: .5rem; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
.about-since {
  justify-self: center; display: grid; place-items: center; text-align: center;
  width: 170px; aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); color: var(--gold);
}
.about-since span { font-size: .95rem; color: var(--white); }
.about-since strong { display: block; margin: .2rem 0; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.signature { font-weight: 700; }
@media (min-width: 768px) {
  .about { grid-template-columns: 1fr auto; gap: 3rem; }
  .about-since { width: 200px; }
}

/* Ordering */
.order { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.order img { width: 240px; }

/* Photos */
.photos-title { margin-top: 4rem; }
.photos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
}
/* Hover as on the old site: overlay darkens, name fades in, gold bar slides up */
.photos li { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photos li::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgb(0 0 0 / .4); transition: background-color .4s;
}
.photos li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; z-index: 3;
  height: 10px; background: var(--gold); transition: bottom .3s;
}
.photo-caption {
  position: absolute; left: 0; bottom: 1rem; z-index: 2;
  padding: 1rem 1.25rem; color: var(--gold);
  font-size: clamp(1rem, .7rem + 1.2vw, 1.6rem); font-weight: 700; line-height: 1.2; text-transform: uppercase;
  opacity: 0; transition: opacity .4s, bottom .3s;
}
.photos li:hover::before { background-color: rgb(0 0 0 / .8); }
.photos li:hover::after { bottom: 0; }
.photos li:hover .photo-caption { opacity: 1; bottom: 0; }
@media (min-width: 768px) { .photo-caption { padding: 1.5rem 2rem; } }
@media (min-width: 768px) { .photos { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* Menu */
.board {
  margin-top: 2rem; padding: clamp(1rem, .5rem + 2vw, 2rem);
  background: var(--navy); color: var(--white); border-radius: var(--radius);
}
.menu { columns: 1; column-gap: 1.25rem; }
@media (min-width: 768px) { .menu { columns: 2; } }
@media (min-width: 1100px) { .menu { columns: 3; } }
.menu-card {
  break-inside: avoid; margin: 0 0 1.25rem; padding: 1.25rem 1.5rem;
  border: 1px dashed rgb(255 255 255 / .35); border-radius: 10px;
}
.menu-card h3 { color: var(--gold); text-align: center; letter-spacing: .04em; margin-bottom: 1rem; }
.menu-card ul { margin: 0; padding: 0; list-style: none; }
.menu-card ul + ul { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgb(255 255 255 / .12); }
.menu-card li { padding: .28rem 0; font-weight: 500; }
.menu-card li small { display: block; font-weight: 400; font-size: .85rem; color: rgb(255 255 255 / .7); }
.menu-card .note { margin: 1rem 0 0; text-align: center; color: var(--gold); font-weight: 600; }
.menu-card .note + ul { margin-top: 1rem; }

/* Contact & hours */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.contact-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--gold); color: var(--navy);
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list h3 { font-size: 1rem; margin: 0 0 .15rem; color: var(--gold); }
.contact-list p { margin: 0; }
.contact-list a { text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 3px; }
.contact-list a:hover { color: var(--gold); }

.hours {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--gold); color: var(--navy);
}
.hours h2 { color: var(--navy); font-size: 1.6rem; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid rgb(8 22 34 / .15); vertical-align: top; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours .closed td { opacity: .65; }
.hours .btn { margin-top: 1.25rem; width: 100%; }
.dark .hours .btn-solid { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.dark .hours .btn-solid:hover { background: var(--navy-2); }

/* Footer */
.footer {
  padding: 1.25rem 0; background: #040b11; color: rgb(255 255 255 / .75); font-size: .9rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--gold); }
