/* NCI Restaurant styles */

:root{
  --primary:#d4af37;
  --dark:#111;
  --muted:#222;
  --accent:#c41e3a;
  --text:#f5f5f5;
  --glass: rgba(255,255,255,0.03);
  --header-h:72px;
  --trans: 250ms ease;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: "Poppins",system-ui,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#0b0b0b;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  padding-top:var(--header-h); /* prevent fixed header overlap */
}

/* Header */
header{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--header-h);
  background:linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  backdrop-filter: blur(6px);
  display:flex;align-items:center;z-index:1000;
  border-bottom:1px solid rgba(255,255,255,0.03);
}
nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
}
.logo{max-height:56px;display:block}
.nav-links{
  display:flex;
  align-items:center;
  gap:2rem;
  transition: all 0.3s ease;
}
.nav-links a{
  color:var(--primary);text-decoration:none;font-weight:500;padding:0.25rem 0.25rem;position:relative;
}
.nav-links a::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:transparent;transition:var(--trans);
}
.nav-links a:hover{color: #fff}
.nav-links a:hover::after{background:var(--primary)}

/* Mobile button */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}
.mobile-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}
.mobile-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content button {
    background: white;
    color: black;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.hero-content button:hover {
    transform: scale(1.05);
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sections */
.section-title{font-family:"Playfair Display",serif;font-size:1.6rem;margin:1rem 0 0.6rem;color:var(--primary);text-align:center}
.menu-section{padding:2.5rem 1rem;background:linear-gradient(180deg, rgba(10,10,10,0.9), rgba(14,14,14,0.95))}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem;max-width:1200px;margin:1rem auto;padding:0 1rem}
.menu-item{background:var(--glass);border:1px solid rgba(255,255,255,0.04);padding:1rem;border-radius:8px;display:flex;flex-direction:column;gap:.6rem;transition:transform var(--trans), box-shadow var(--trans)}
.menu-item:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(0,0,0,0.6)}
.menu-item h3{font-size:1.05rem;margin-top:.25rem;color:var(--text)}
.menu-item p{color:#ddd;font-size:.95rem}
.menu-item .price{margin-top:auto;font-weight:700;color:var(--primary)}

/* Primary button */
.btn-primary {
  display:inline-block;
  background: linear-gradient(135deg,var(--primary), #b8902a);
  color:#08110b;
  padding:.75rem 1.25rem;
  border-radius:8px;
  border:0;
  font-weight:700;
  box-shadow: 0 8px 18px rgba(20,20,20,0.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,10,10,0.55); }

/* Menu item media & price badge */
.menu-item .media { position:relative; overflow:hidden; border-radius:6px; }
.menu-item .media img { display:block; width:100%; height:220px; object-fit:cover; transition:transform .35s ease; }
.menu-item .media:hover img { transform: scale(1.05); }
.price-badge {
  position:absolute; right:10px; top:10px;
  background:rgba(0,0,0,0.65); color:var(--primary);
  padding:.35rem .6rem; border-radius:6px; font-weight:700; font-size:.95rem;
  border:1px solid rgba(255,255,255,0.04);
}

/* Booking form */
.booking-form{max-width:780px;margin:2.2rem auto;padding:1.25rem;background:linear-gradient(180deg, rgba(12,12,12,0.85), rgba(8,8,8,0.85));border:1px solid rgba(255,255,255,0.04);border-radius:8px;}
.form-group{margin-bottom:.9rem;display:flex;flex-direction:column;gap:.35rem}
.form-group label{font-size:.95rem;color:#ddd}
.form-group input, .form-group select{padding:.6rem;border-radius:6px;border:1px solid rgba(255,255,255,0.06);background:transparent;color:var(--text)}
button[type="submit"]{display:inline-block;background:var(--primary);color:#111;padding:.7rem 1.25rem;border-radius:6px;border:0;cursor:pointer;font-weight:600}

/* form layout */
.form-row { display:flex; gap:1rem; flex-wrap:wrap; }
.form-row .form-group { flex:1 1 200px; }
.form-group input, .form-group select {
  width:100%; padding:.7rem; border-radius:8px; border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02); color:var(--text);
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: rgba(212,175,55,0.9); box-shadow: 0 6px 18px rgba(212,175,55,0.07); transform: translateY(-2px);
}

/* form actions */
.form-actions { display:flex; align-items:center; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
.note { margin:0; color:#bdbdbd; font-size:.9rem; }

/* Success message */
.success-message{
  margin-top:1rem;padding:.75rem;border-radius:6px;background:linear-gradient(90deg,#1f3b1f,#13321e);color:#dff0d8;border:1px solid rgba(0,0,0,0.25);animation:fadein .35s ease;
}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;max-width:1200px;margin:1rem auto;padding:0 1rem}
.gallery-grid img{width:100%;height:220px;object-fit:cover;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,0.5);transition:transform var(--trans)}
.gallery-grid img:hover{transform:scale(1.03)}

/* Footer */
footer{padding:2rem 1rem;background:linear-gradient(180deg,#080808,#050505);color:#ccc;text-align:center}

/* muted text helper */
.muted { color:#cfcfcf; font-size:.95rem; }

/* footer grid */
.footer-grid { display:flex; gap:2rem; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; padding:1.5rem 0; }
.footer-col h4 { color:var(--text); margin-bottom:.5rem; }
.footer-col p { color:#bfbfbf; font-size:.95rem; margin:0.25rem 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.03); padding-top:1rem; margin-top:1rem; text-align:center; color:#aaa; }

/* social links */
.social-links a { margin-right:.6rem; color:var(--primary); font-size:1.15rem; display:inline-block; transition: transform .12s ease; }
.social-links a:hover { transform: translateY(-3px); color:#fff; }

/* Enhanced category buttons */
.menu-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
  /* subtle backdrop so buttons pop on darker backgrounds */
  padding: 0.25rem;
}

.menu-categories button {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.03);
  color: #f2efe6;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.65rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* hover & focus */
.menu-categories button:hover {
  transform: translateY(-4px);
  background: rgba(212,175,55,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}
.menu-categories button:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(212,175,55,0.10);
}

/* active/selected style */
.menu-categories button.active {
  background: linear-gradient(135deg, var(--primary), #b8902a);
  color: #08110b;
  border-color: rgba(212,175,55,0.95);
  box-shadow: 0 18px 40px rgba(184,144,42,0.18);
  transform: translateY(-2px) scale(1.02);
}

/* small devices: allow horizontal scrolling and keep buttons usable */
@media (max-width: 480px) {
  .menu-categories {
    gap: 0.6rem;
    padding: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .menu-categories button {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    font-size: 0.98rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  }
}

/* ensure the category row doesn't collide with surrounding spacing on medium screens */
@media (min-width: 481px) and (max-width: 900px) {
  .menu-categories { margin-bottom: 1.75rem; }
}

/* Responsive */
@media (max-width:900px){
  .hero-content h1{font-size:2.4rem}
  .hero-content h2{font-size:1.05rem}
  .menu-item .media img { height:200px; }
}
@media (max-width:768px){
  .nav-links{
    display:none;
    position:absolute;
    top:var(--header-h);
    left:0;
    right:0;
    background:rgba(5,5,5,0.95);
    flex-direction:column;
    gap:0;
    padding:1rem 0
  }
  .nav-links a{
    padding:0.6rem 1rem;
    width:100%;
    text-align:center
  }
  .mobile-menu{display:block}
  body{padding-top:var(--header-h)}
  .menu-item img{height:180px}
  .gallery-grid img{height:160px}
  .form-row { flex-direction:column; }
  .footer-grid { flex-direction:column; gap:1rem; }
}

/* small animation */
@keyframes fadein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    animation: fadeIn 1s ease-out;
}

/* subtle shadow and rounding improvements */
.menu-item { border-radius:10px; }
.menu-item h3 { margin:0.4rem 0 0; }
.menu-item p { margin:0; }

/* subtle entrance animation overrides */
.menu-item, .gallery-grid img, .hero-content { will-change: transform, opacity; }
