/* ============================================================
   Akropolis Grill Bad Honnef – Static Site Styles
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

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

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

h1, h2, h3 { line-height: 1.25; }

/* ---- Layout ---------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Navigation ------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0d6c2;
  padding: 0.6rem 0;
  /* needed so the mobile dropdown positions against the nav bar */
  isolation: isolate;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 52px;
}

/* Logo floats above the flex flow, always centered in the nav bar */
.site-nav .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* ---- Desktop scroll behaviour (> 600px) ------------------- */
@media (min-width: 601px) {
  /* Links float above flex flow, always centered — hidden at top */
  .site-nav ul {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  /* Scrolled: logo fades out, links fade in — pure opacity, no layout shift */
  .site-nav.scrolled .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav.scrolled ul {
    opacity: 1;
    visibility: visible;
  }
}

.site-nav .logo img {
  height: 52px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav ul a {
  font-family: "Gill Sans", "Optima", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a3a1a;
}

.site-nav ul a:hover {
  color: #b8860b;
  text-decoration: none;
}

/* ---- Hamburger button (hidden on desktop) ----------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #5a3a1a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate into × when open */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---- Mobile nav ------------------------------------------ */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #e0d6c2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 200;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav ul li a {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0ebe0;
    font-size: 1rem;
  }

  .site-nav ul li:last-child a {
    border-bottom: none;
  }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 8rem 1.25rem 6rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Slideshow: stack all slides absolutely */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Ken Burns zoom-out: start slightly zoomed in, end at normal */
  animation: heroSlide 55s linear infinite;
}

/* Each slide starts 5s after the previous one */
.hero-slide:nth-child(1)  { animation-delay:  0s; }
.hero-slide:nth-child(2)  { animation-delay:  5s; }
.hero-slide:nth-child(3)  { animation-delay: 10s; }
.hero-slide:nth-child(4)  { animation-delay: 15s; }
.hero-slide:nth-child(5)  { animation-delay: 20s; }
.hero-slide:nth-child(6)  { animation-delay: 25s; }
.hero-slide:nth-child(7)  { animation-delay: 30s; }
.hero-slide:nth-child(8)  { animation-delay: 35s; }
.hero-slide:nth-child(9)  { animation-delay: 40s; }
.hero-slide:nth-child(10) { animation-delay: 45s; }
.hero-slide:nth-child(11) { animation-delay: 50s; }

/* 11 images × 5s = 55s total cycle
   Each slide: fade in, show, fade out
   Visible window: ~9.09% of 55s = 5s
   Fade: ~1.09% = 0.6s                        */
@keyframes heroSlide {
  0%     { opacity: 0;   transform: scale(1.12); }
  1.1%   { opacity: 1;   transform: scale(1.12); }   /* fade in done */
  9.09%  { opacity: 1;   transform: scale(1.0);  }   /* show ends */
  10.2%  { opacity: 0;   transform: scale(1.0);  }   /* fade out done */
  100%   { opacity: 0;   transform: scale(1.0);  }
}

/* Dark overlay on top of slides */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

/* SVG tilt shape divider at bottom */
.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-shape svg {
  display: block;
  width: 100%;
  height: 140px;
}

.hero-shape .shape-fill {
  fill: #fff;
}

/* Hero text content sits above slides + overlay */
.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: normal;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero .tagline {
  font-size: 1.1rem;
  color: #e0c98a;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero .phone-link {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #e0c98a;
  border: 2px solid #e0c98a;
  padding: 0.4rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.hero .phone-link:hover {
  background: #e0c98a;
  color: #3b2512;
  text-decoration: none;
}

/* ---- Section banners (category headings) ------------------ */
.section-banner {
  background: white;
  color: black;
  text-align: center;
  padding: 2rem 1.25rem;
}

.section-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* ---- Section banners with photo background --------------- */
.section-banner--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 3rem 1.25rem;
  color: #fff;
}

.section-banner--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.section-banner--photo h2 {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ---- Menu sections --------------------------------------- */
.menu-section {
  padding: 3rem 0;
  border-bottom: 1px solid #e0d6c2;
}

.menu-section h2 {
  font-size: 1.4rem;
  color: #5a3a1a;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0d6c2;
}

.menu-section .menu-note {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* two-column layout for large screens */
.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.menu-col h2 {
  font-size: 1.3rem;
  color: #5a3a1a;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0d6c2;
  margin-bottom: 0.25rem;
}

.menu-col .menu-note {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Menu item list */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted #ccc;
}

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

.item-name {
  flex: 1;
  font-weight: bold;
  font-size: 0.95rem;
}

.item-desc {
  display: block;
  font-weight: normal;
  font-size: 0.85rem;
  color: #555;
}

.item-price {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: bold;
  color: #5a3a1a;
}

/* ---- Contact section ------------------------------------- */
.contact-section {
  padding: 3rem 0;
  background: #faf6ee;
}

.contact-section h2 {
  font-size: 1.8rem;
  font-weight: normal;
  color: #5a3a1a;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  font-size: 1rem;
  line-height: 2;
}

.contact-info strong {
  display: block;
  font-size: 1.1rem;
  color: #5a3a1a;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: #5a3a1a;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Contact section with photo background */
.contact-section--photo {
  position: relative;
  background-size: cover;
  background-position: center;
}

.contact-section--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-section--photo .container {
  position: relative;
  z-index: 1;
}

.contact-section--photo h2,
.contact-section--photo .contact-info,
.contact-section--photo .contact-info strong,
.contact-section--photo .contact-info a {
  color: #fff;
}

.contact-section--photo .contact-info a:hover {
  color: #e0c98a;
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 4px;
}

/* ---- Inner sub-section headings in content pages --------- */
.page-content {
  padding: 3rem 0;
  max-width: 780px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 1.8rem;
  color: #5a3a1a;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0d6c2;
  padding-bottom: 0.5rem;
}

.page-content h2 {
  font-size: 1.2rem;
  color: #5a3a1a;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content a {
  color: #5a3a1a;
  text-decoration: underline;
}

/* ---- Page header (for inner pages) ----------------------- */
.page-header {
  background: #3b2512;
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}

.page-header h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: normal;
  letter-spacing: 0.04em;
}

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: #222;
  color: #aaa;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .menu-cols {
    grid-template-columns: 1fr;
  }

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

  .site-nav ul {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .site-nav .logo img {
    height: 40px;
  }
}
