/*
Theme Name: Jobse & Jobse
Theme URI: https://jobsejobse.nl
Author: AP strikwerda
Author URI: https://strikwerda.dev
Description: Custom theme for Jobse & Jobse — ambachtelijke broodjes, koffie en meer in Heerde.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobse
*/

/* ========================================
   Self-hosted Fonts
   ======================================== */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/PlayfairDisplay.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 700 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

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

[id] {
  scroll-margin-top: 140px;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 100px;
  }
}

body {
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #393939;
  background-color: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: #121212;
}

/* ========================================
   Content-visibility: skip rendering for
   off-screen sections until they scroll
   into view. Hero is excluded (above fold).
   ======================================== */
.about-info,
.menu-section,
.reviews,
.cta,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #cfcfcf;
  --gray: #888888;
  --dark-gray: #393939;
  --near-black: #121212;
  --black: #090909;
  --max-width: 1200px;
}

/* ========================================
   Utility
   ======================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 84px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  height: 48px;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border-radius: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn-dark {
  background-color: var(--near-black);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--near-black);
  border: 1px solid var(--near-black);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 84px;
  height: 120px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  margin-left: -16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  line-height: 20px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--near-black);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--near-black);
}

/* Full-screen mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.mobile-menu__close {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--near-black);
  background: none;
  border: none;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu__nav a {
  font-family: 'General Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--near-black);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.mobile-menu__nav a:hover {
  color: var(--gray);
}

/* When checkbox is checked: show overlay, hide hamburger */
.nav-checkbox:checked ~ .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.nav-checkbox:checked ~ .menu-toggle {
  visibility: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 184px 0 0;
  background-color: var(--white);
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 500px);
  gap: 140px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-title {
  font-family: 'General Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  line-height: 58px;
  color: var(--near-black);
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  line-height: 38px;
  color: var(--near-black);
  margin-bottom: 24px;
}

.hero-description {
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-gray);
  line-height: 28px;
}

.hero-subtitle {
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-gray);
  line-height: 28px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 582px;
  object-fit: cover;
}

/* ========================================
   ABOUT + INFO COMBINED SECTION
   ======================================== */
.about-info {
  padding: 80px 0;
  background-color: var(--white);
}

.section-header {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  max-width: calc(1.7 / 2.7 * (100% - 50px));
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
  line-height: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-header p {
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 28px;
}

.about-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Editorial: two portrait photos, staggered like a magazine spread */
.about-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.about-editorial__left {
  padding-top: 0;
}

.about-editorial__right {
  padding-top: 60px;
}

.about-editorial img {
  width: 100%;
  height: auto;
  display: block;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 10px;
  font-style: normal;
}

.about-details .detail-block h3 {
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--near-black);
  margin-bottom: 8px;
}

.about-details .detail-block p {
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 28px;
  margin-bottom: 4px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 28px;
  color: var(--dark-gray);
  margin-bottom: 4px;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--near-black);
}

.about-details .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu-section {
  padding: 80px 0;
  background-color: var(--white);
  border-top: 1px solid var(--off-white);
}

/* Desktop: 7-column grid with varied spans per row */
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.menu-gallery__item {
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Row layout via grid-column spans:
   Row 1: 2 + 2 + 3  = 7
   Row 2: 2 + 3 + 2  = 7
   Row 3: 3 + 2 + 2  = 7 */
.menu-gallery__item.menu-item--square { grid-column: span 2; }
.menu-gallery__item.menu-item--wide   { grid-column: span 3; }

.menu-gallery__item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.menu-gallery__item:hover img,
.menu-gallery__item:focus-visible img {
  transform: scale(1.05);
}

.menu-gallery__item:focus-visible {
  outline: 2px solid var(--near-black);
  outline-offset: -2px;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: 'General Sans', sans-serif;
  font-size: 13px;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews {
  padding: 80px 0;
  background-color: var(--white);
  border-top: 1px solid var(--off-white);
}

.review-body {
  display: flex;
  gap: 40px;
  align-items: center;
}

.review-image {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.review-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.review-content {
  flex: 1;
  min-width: 0;
}

.review-highlight {
  font-family: 'General Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 28px;
  line-height: 42px;
}

.review-quote {
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-gray);
  line-height: 28px;
  margin-bottom: 28px;
}

.review-author {
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--dark-gray);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 80px 0 0;
  background-color: var(--white);
  text-align: left;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  color: var(--near-black);
  line-height: 58px;
}

.cta-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  color: var(--near-black);
  line-height: 58px;
  margin-bottom: 50px;
}

/* Instagram grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 48px;
}

.instagram-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.instagram-grid a:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.instagram-cta {
  text-align: center;
  margin-top: 32px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--near-black);
  transition: opacity 0.3s ease;
}

.instagram-link:hover {
  opacity: 0.7;
}

.instagram-link svg {
  width: 22px;
  height: 22px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0 30px;
  background-color: var(--white);
  color: var(--dark-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  margin-top: 60px;
}

.footer-col h4 {
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--near-black);
  margin-bottom: 12px;
}

.footer-col p,
.footer-col span {
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 28px;
  display: block;
}

.footer-col a {
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 28px;
  display: block;
}

.footer-col a:hover {
  color: var(--near-black);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 28px;
  color: var(--dark-gray);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--dark-gray);
  position: relative;
  top: 1px;
}

.footer-bottom {
  border-top: 1px solid var(--off-white);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-credit {
  font-size: 13px;
  color: var(--gray);
}

.footer-credit a {
  color: var(--dark-gray);
  display: inline;
  font-size: inherit;
}

/* Social links with arrows */
.footer-col a.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* .footer-col a.social-link::after {
  content: "\2197";
  font-size: 12px;
} */

/* ========================================
   PAGE / POST CONTENT (for future pages)
   ======================================== */
.site-content {
  padding: 184px 0 80px;
}

.site-content .container {
  max-width: 800px;
}

.site-content h1 {
  font-size: 40px;
  margin-bottom: 24px;
}

.site-content p {
  font-size: 18px;
  line-height: 28px;
  color: var(--dark-gray);
  margin-bottom: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1260px) {
  .hero-top {
    gap: 48px;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .container {
    padding: 0 40px;
  }

  .header {
    padding: 20px 40px;
    height: auto;
  }

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

  .hero-title {
    font-size: 48px;
    line-height: 58px;
  }

  .hero-image img {
    height: 400px;
  }

  .section-header {
    max-width: 100%;
  }

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

  .about-editorial__right {
    padding-top: 40px;
  }

  .menu-gallery__item img {
    height: 220px;
  }

  .review-body {
    flex-direction: column;
    gap: 30px;
  }

  .cta-title,
  .cta-subtitle {
    font-size: 36px;
    line-height: 46px;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .about-info,
  .menu-section,
  .reviews,
  .cta {
    padding: 48px 0;
  }

  .cta {
    padding-bottom: 0;
  }

  .header {
    padding: 16px 20px;
    height: auto;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 0;
  }

  .hero-title {
    font-family: 'General Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
  }

  .hero-tagline {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .hero-image img {
    height: 280px;
  }

  .section-header h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .section-header {
    max-width: 100%;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-editorial__right {
    padding-top: 24px;
  }

  /* Mobile: same markup becomes a horizontal scroll-snap strip */
  .menu-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .menu-gallery__item {
    flex: 0 0 75%;
    scroll-snap-align: center;
  }

  .menu-gallery__item.menu-item--square,
  .menu-gallery__item.menu-item--wide {
    flex: 0 0 75%;
  }

  .menu-gallery__item img {
    height: auto;
    aspect-ratio: 1;
    border-radius: 4px;
  }

  /* Hide scrollbar but keep scroll */
  .menu-gallery {
    scrollbar-width: none;
  }
  .menu-gallery::-webkit-scrollbar {
    display: none;
  }

  .review-highlight {
    font-size: 22px;
    line-height: 32px;
  }

  .cta-title,
  .cta-subtitle {
    font-size: 28px;
    line-height: 38px;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 18px;
    line-height: 28px;
  }

  .menu-gallery__item.menu-item--square,
  .menu-gallery__item.menu-item--wide {
    flex: 0 0 82%;
  }
}
