/* ==================== */
/* Custom Fonts          */
/* ==================== */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces_72pt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: 'Druk';
  src: url('../fonts/druk_medium-webfont.woff2') format('woff2'),
       url('../fonts/druk_medium-webfont.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==================== */
/* CSS Variables         */
/* ==================== */
:root {
  --jonas-primary: #fff9e0;
  --jonas-text: #661c12;
  --jonas-accent: #ff6400;
  --white: #fff9e0;
  --jonas-gray: #888;
  
  --font-base: 'Fraunces', Georgia, serif;
  --font-heading: 'Druk', 'Fraunces', Georgia, serif;
  
  --transition: 0.3s ease;
  --radius: 500px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--jonas-primary);
  color: var(--jonas-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Disable transitions during window resize */
body.resize-in-progress * {
  transition: none !important;
}

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

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* ==================== */
/* Typography           */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--jonas-text);
  text-transform: uppercase;
}

h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  line-height:1;
}

.cta.section p {
    margin-bottom: 0;
}

/* ==================== */
/* Layout               */
/* ==================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section, .carousel-track {
  padding: 4rem 0;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* ==================== */
/* Header & Navigation  */
/* ==================== */
.header {
  background-color: transparent;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 249, 224, 0.5);
  border-bottom: 1px solid rgba(102, 28, 18, 0.1);
  backdrop-filter: blur(20px);
}

.header.scrolled.menu-active {
  backdrop-filter: none;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  display: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}


.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-toggle span {
  background-color: var(--jonas-text);
  box-shadow: none;
}

.nav-toggle.active span {
  background-color: var(--jonas-text);
  box-shadow: none;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Fullscreen overlay menu - Mobile only */
.nav-menu {
  list-style: none;
}

@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--jonas-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

  .nav-menu li a {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--jonas-text);
    text-shadow: none;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .nav-menu li a:hover {
    color: var(--jonas-accent);
    transform: scale(1.1);
  }
}

/* ==================== */
/* Hero                 */
/* ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/assets/JONAS_HERO_IMAGE.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}


.hero-logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-logo {
  height: 150px;
  width: auto;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4));
}

.hero-buttons {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    padding: 0 1.5rem;
}

/* ==================== */
/* Buttons              */
/* ==================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--jonas-accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #e55a00;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--jonas-text);
  border: 2px solid var(--jonas-text);
}

.btn-secondary:hover {
  background-color: var(--jonas-text);
  color: var(--jonas-primary);
}

.btn-hero {
  background-color: var(--jonas-text);
  color: var(--jonas-primary);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-hero:hover {
  background-color: var(--jonas-primary);
  color: var(--jonas-text);
  transform: translateY(-3px);
}

/* ==================== */
/* Story Section        */
/* ==================== */
.story-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.story-content h2 {
  margin-bottom: 2rem;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

/* ==================== */
/* Burger Cards         */
/* ==================== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.burger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.burger-card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

.burger-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 28, 18, 0.1);
}

.burger-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--jonas-text);
}

.burger-card p {
  color: var(--jonas-gray);
  margin-bottom: 0;
}

/* ==================== */
/* CTA Section          */
/* ==================== */
.cta {
  background-color: var(--jonas-text);
  color: var(--jonas-primary);
  text-align: center;
}

.cta-content h2 {
  color: var(--jonas-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--jonas-primary);
  opacity: 0.9;
}

/* ==================== */
/* Page Header          */
/* ==================== */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.8;
}


/* ==================== */
/* For the Love of Burger */
/* ==================== */
section.for-the-love-of-burger {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

section.for-the-love-of-burger h1 {
    display: flex;
    flex-direction: column;
    line-height: 0.8;
    text-align: center;
    position: relative;
    z-index: 1;
}

.jonas-ketchup-logo {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    max-width: none;
    z-index: 2;
    pointer-events: none;
}

.jonas-interior {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.jonas-interior::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: -1;
    transform: translateY(var(--parallax-y, 0px));
}

.jonas-interior.bar::before {
    background-image: url(/assets/jonas-interior-117.jpg);
}

.jonas-interior.seating::before {
    background-image: url(/assets/jonas-interior-181-portrait.jpg);
}

/* ==================== */
/* Carousel             */
/* ==================== */

#jonas-menu-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 0;
  overflow: visible;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: none;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 auto;
  min-width: 400px;
  width: 400px;
  height: 711px;
  position: relative;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==================== */
/* Menu Items           */
/* ==================== */
.menu-items {
  max-width: 800px;
  margin: 0 auto;
}

.menu-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(102, 28, 18, 0.1);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.menu-item h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--jonas-accent);
  font-weight: 500;
}

.menu-item p {
  color: var(--jonas-gray);
  margin-bottom: 0;
}

/* ==================== */
/* Location             */
/* ==================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.location-details h2 {
  margin-bottom: 2rem;
}

.detail-group {
  margin-bottom: 2rem;
}

.detail-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--jonas-accent);
}

.detail-group p {
  margin-bottom: 0;
}

.placeholder-image {
  background-color: var(--white);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--jonas-gray);
}

/* ==================== */
/* Contact              */
/* ==================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--jonas-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--white);
  color: var(--jonas-text);
  border: 1px solid rgba(102, 28, 18, 0.2);
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--jonas-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--jonas-gray);
  margin-top: 0.25rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--jonas-accent);
}

.info-item p {
  margin-bottom: 0;
}

img.jonas-location-image {
  border-radius: 20px;
  border: 2px solid #dbd4bc;
  margin: 1rem auto;
}

a.jonas-map-link {
    background: var(--jonas-accent);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
  background-color: var(--jonas-text);
  color: var(--jonas-primary);
  padding: 0 0 3rem 0;
}

.footer h2 {
    color: var(--jonas-primary);
    margin:0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--jonas-primary);
}

.footer-brand h3 {
  color: var(--jonas-primary);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
  font-weight: 700;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--jonas-accent);
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==================== */
/* Animations           */
/* ==================== */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== */
/* Responsive - Mobile  */
/* ==================== */
@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
  }

    .hero-logo-container {
    align-items: flex-start;
    margin-top: 250px;
    }
  
  .hero-logo {
    height: 100px;
  }
  
  .btn-hero {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        letter-spacing: -0.01rem;
  }
    .footer {
            text-align: center;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero {
    background-image: url('/assets/JONAS_HERO_IMAGE-portrait.jpg');
  }
}


/* ==================== */
/* Responsive - Tablet  */
/* ==================== */
@media (min-width: 768px) {
  h1 {

  }
  
  .hero-logo {
    height: 120px;
  }
  
  .burger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-container {
    grid-template-columns: 2fr 1fr;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ==================== */
/* Responsive - Desktop */
/* ==================== */
@media (min-width: 1024px) {
  .nav {
    justify-content: center;
  }
  
  .header.scrolled .nav {
    justify-content: space-between;
  }
  
  .nav-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .header.scrolled .nav-logo {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .nav-menu li {
    opacity: 1;
    transform: none;
  }
  
  .nav-menu li a {
    font-size: 0.95rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
  }
  
  .header.scrolled .nav-menu li a {
    color: var(--jonas-text);
    text-shadow: none;
  }
  
  .nav-menu li a:hover {
    color: var(--jonas-accent);
  }
  
  .nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--jonas-accent);
  }
  
  .nav-toggle {
    display: none;
  }
  
  .hero-logo-container {
    position: fixed;
    top: calc(3rem + 40px + 50px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .hero-logo {
    height: 150px;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .burger-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .carousel-item {
    width: 500px;
    height: 889px;
  }
}
