/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #1A1A1A;
    background: #f7f7f7;
}

:root {
    --brand: #b30000;
    --brand-dark: #8f0000;
    --text: #1A1A1A;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0,0,0,0.9);
    -webkit-backdrop-filter: saturate(140%);
    backdrop-filter: saturate(140%);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo span { font-weight: 700; color: var(--brand); font-size: 20px; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 26px;
    height: 3px;
    background: #ffffff;
    display: block;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-btn span.active:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn span.active:nth-child(2) { opacity: 0; }
.mobile-menu-btn span.active:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a { text-decoration: none; color: #ffffff; font-weight: 500; font-size: 17px; }
.nav-menu a:hover { color: #e5e7eb; }
.order-btn { background: var(--brand); color: #fff !important; padding: 10px 18px; border-radius: 8px; font-weight: 600; }

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
      linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
      url('images_optimized/hero-image.webp') center/cover no-repeat,
      url('images_optimized/hero-image.jpg') center/cover no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fix dla urządzeń mobilnych */
@media (max-width: 768px) {
    .hero {
        background:
          linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
          url('images_optimized/hero-image-mobile.webp') center/cover no-repeat,
          url('images_optimized/hero-image-mobile.jpg') center/cover no-repeat;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}
.hero .hero-content {
    color: #fff;
    text-align: center;
}
.hero .hero-content h1 { line-height: 1.08; font-weight: 400; font-size: clamp(28px, 5vw, 64px); margin: 0 0 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero .hero-content p { font-size: clamp(18px, 2.4vw, 28px); margin: 0 0 20px; color: #f3f4f6; text-shadow: 0 2px 6px rgba(0,0,0,0.45); }
.cta-button { display: inline-block; margin-top: 12px; background: var(--brand); color: #fff; padding: 16px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px rgba(179,0,0,0.35); font-size: 18px; }
/* Ensure hero CTA is perfectly centered on all screens */
.hero .hero-content .cta-button { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; }

/* Menu Section */
.menu-section { padding: 48px 0; }
.menu-categories { display: grid; gap: 16px; }
.menu-category {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.menu-category h3 { margin: 0 0 8px; color: var(--brand); font-weight: 600; }
.menu-items { display: grid; gap: 10px; }
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.menu-item h4 { margin: 0; font-weight: 600; }
.menu-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.price { font-weight: 600; color: #111827; }

/* About & Contact spacing */
.about-section, .contact-section { padding: 48px 0; }

/* Menu tabs responsive */
@media (max-width: 768px) {
  .menu-section [role="tablist"] {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .menu-section [role="tab"] {
    padding: 8px 16px;
    font-size: 14px;
    min-width: auto;
    flex: 1;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .menu-section [role="tablist"] {
    gap: 6px;
  }
  
  .menu-section [role="tab"] {
    padding: 6px 12px;
    font-size: 12px;
    max-width: 100px;
  }
}

/* Contact section responsive */
@media (max-width: 768px) {
  .contact-section .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-section .grid > div:first-child {
    order: 1;
  }
  
  .contact-section .grid > div:last-child {
    order: 2;
    height: 300px;
  }
  
  .contact-section iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .contact-section .grid > div:last-child {
    height: 250px;
  }
  
  .contact-section .flex.flex-wrap {
    flex-direction: column;
    gap: 8px;
  }
  
  .contact-section .flex.flex-wrap a {
    width: 100%;
    justify-content: center;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer .grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer .flex.items-center {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 0;
  }
  
  .footer .grid {
    gap: 20px;
  }
  
  .footer h3 {
    font-size: 18px;
  }
  
  .footer p, .footer address {
    font-size: 14px;
  }
}

/* Footer */
.footer { padding-top: 0; }

/* Button responsive improvements */
@media (max-width: 768px) {
  .cta-button, .order-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu-section button[data-goorder-open] {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cta-button, .order-btn {
    min-height: 40px;
    font-size: 14px;
  }
  
  .menu-section button[data-goorder-open] {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .contact-section .flex.flex-wrap a {
    min-height: 40px;
    font-size: 14px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-menu a, .nav-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu-section [role="tab"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-menu {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { 
    color: #fff; 
    padding: 8px 0;
    font-size: 16px;
  }
  .nav-menu button { 
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .hero { 
    min-height: 100vh; 
    padding: 20px;
  }
  .hero .hero-content h1 { 
    font-size: clamp(28px, 8vw, 48px); 
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .hero .hero-content p { 
    font-size: clamp(16px, 4vw, 22px); 
    margin-bottom: 24px;
  }
  .cta-button {
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .menu-section { padding: 32px 0; }
  .menu-categories { gap: 12px; }
  .menu-category { padding: 12px; }
  
  .about-section, .contact-section { padding: 32px 0; }
  
  .nav-container { padding: 12px 16px; }
  .logo span { font-size: 16px; }
  .nav-menu { gap: 16px; }
}

@media (max-width: 640px) {
  .nav-container { padding: 8px 12px; }
  .logo span { font-size: 14px; }
  .logo img { height: 8px; width: auto; }
  
  .hero .hero-content h1 { 
    font-size: clamp(24px, 9vw, 40px); 
    line-height: 1.2;
  }
  .hero .hero-content p { 
    font-size: clamp(14px, 4.5vw, 20px); 
  }
  /* Make CTA a centered block on small screens */
  .hero .hero-content .cta-button { display: flex; width: auto; max-width: 320px; }
  
  .menu-section { padding: 24px 0; }
  
  .about-section, .contact-section { padding: 24px 0; }
}

@media (max-width: 480px) {
  .hero .hero-content h1 { 
    font-size: clamp(20px, 10vw, 32px); 
    line-height: 1.3;
  }
  .hero .hero-content p { 
    font-size: clamp(12px, 5vw, 18px); 
  }
  .cta-button { 
    padding: 12px 20px; 
    font-size: 14px; 
    width: 100%;
    max-width: 280px;
  }
  
  .menu-category { padding: 8px; }
  .menu-item { padding: 8px 10px; }
  
  .nav-container { padding: 8px 12px; }
  .logo span { font-size: 12px; }
  .nav-menu {
    top: 56px;
    right: 12px;
    left: 12px;
    padding: 12px;
  }
  
  .about-section, .contact-section { padding: 20px 0; }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero .hero-content h1 { 
    font-size: clamp(18px, 12vw, 28px); 
  }
  .hero .hero-content p { 
    font-size: clamp(11px, 6vw, 16px); 
  }
  .cta-button { 
    padding: 10px 16px; 
    font-size: 13px; 
  }
  
  .nav-container { padding: 6px 8px; }
  .logo span { font-size: 11px; }
}

