/* ======================== GLOBAL STYLES ======================== */
:root{
  --brand-brown: #8b4513;
  --brand-brown-dark: #a0522d;
  --text: #3b2f2f;
  --panel-bg: rgba(255,255,255,0.85);
}

*{box-sizing:border-box}

body {
  margin: 0;
  padding: 0;
  font-family: "Georgia", serif;
  color: var(--text);
  background: url("assets/marble-bg3.jpg") no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
}

/* HEADINGS */
h1,h2,h3{ text-align:center; margin-bottom:1rem; }

/* LINKS */
a{ text-decoration:none; color:var(--brand-brown); transition:color .2s ease; }
a:hover{ color:var(--brand-brown-dark); }

/* ======================== HEADER + NAVIGATION ======================== */
header{
  background: var(--panel-bg);
  padding: 1rem;
  border-bottom: 2px solid #eee0d9;
  text-align: center;
}
header .logo{ width:140px; margin-bottom:.5rem; }

nav{
  margin-top:.5rem;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1rem;
}
nav a{ font-weight:600; transition: transform .2s ease, color .2s ease; }
nav a:hover{ transform:scale(1.15); color:var(--brand-brown-dark); }

nav a.top-ig-link{ display:inline-flex; align-items:center; justify-content:center; height:40px; margin-left:10px; }
nav a.top-ig-link img.top-ig-icon{ width:32px; height:32px; display:block; vertical-align:middle; margin-top:-4px; transition:transform .3s ease; }
nav a.top-ig-link img.top-ig-icon:hover{ transform:scale(1.2); }

.cart-icon{
  width:28px; height:28px; display:block; vertical-align:middle; margin-top:-2px;
  transition: transform .3s ease; cursor:pointer;
}
.cart-icon:hover{ transform:scale(1.15); }

/* ======================== HERO SECTION ======================== */
.hero{
  background: rgba(255,255,255,0.7);
  padding: 2.5rem 1rem;
  text-align:center;
  margin-bottom:2rem;
}
.hero h2{ font-size:1.4rem; font-style:italic; color:#5a4238; }

/* ======================== ABOUT ME ======================== */
.about{
  max-width:800px;
  margin:2rem auto;
  padding:2rem;
  background:var(--panel-bg);
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  text-align:center;
}
.about-photo{ display:none; width:150px; border-radius:50%; margin:1rem auto; }
.about p{ font-size:1rem; line-height:1.5; }

/* ======================== MENU SECTIONS ======================== */
.menu-items, .thanksgiving-items, .seasonal-items{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1.5rem;
  max-width:1000px;
  margin:2rem auto;
}

.menu-card{
  background:var(--panel-bg);
  border:1px solid #eee0d9;
  border-radius:12px;
  padding:1.5rem;
  text-align:center;
  width:270px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  transition: transform .2s ease;
}
.menu-card:hover{ transform:translateY(-4px); }

.menu-title{ font-family:"Georgia", serif; font-size:1.3rem; font-weight:bold; margin-bottom:.5rem; }
.menu-description{ font-family:"Cormorant Garamond", serif; font-style:italic; color:#555; margin-bottom:1rem; }
.menu-footer{ display:flex; justify-content:center; align-items:center; gap:1rem; }
.menu-price{ font-size:1.1rem; font-weight:bold; color:var(--brand-brown); }
.add-to-cart{
  padding:.5rem 1.2rem; background:var(--brand-brown); color:#fff; border:none; border-radius:6px; cursor:pointer; transition:background .2s ease;
}
.add-to-cart:hover{ background:var(--brand-brown-dark); }

/* ======================== POP-OUT CART (DRAWER) ======================== */
.cart, #overlay-cart {
  position: fixed;
  top: 80px;
  right: -15%; /* Peek 15% from screen */
  width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee0d9;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  transition: right 0.3s cubic-bezier(.2,.8,.2,1);
  z-index: 999;
}

/* Peek-out on hover for desktop */
@media (hover: hover) {
  .cart:hover, #overlay-cart:hover {
    right: 0;
  }
}

/* Fully open state (when JS adds .open class) */
.cart.open, #overlay-cart.open {
  right: 0 !important;
}


/* ======================== CUSTOM ORDERS ======================== */
.custom-orders{ max-width:700px; margin:2rem auto; padding:1.5rem; text-align:center; }
.custom-frame{ background:var(--panel-bg); border:2px solid var(--brand-brown); padding:1rem; border-radius:12px; display:inline-block; margin:0 auto; font-weight:bold; }

/* ======================== REVIEWS ======================== */
.reviews{ max-width:700px; margin:2rem auto; padding:1.5rem; background:var(--panel-bg); border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,0.1); }
.review{ background:#fdfaf7; border-left:4px solid var(--brand-brown); padding:1rem; margin-bottom:1rem; border-radius:8px; }

/* Only show review form on reviews page */
body:not(.reviews-page) .review-form{ display:none; }

.review-form{ margin-top:2rem; text-align:center; }
.review-form form{ display:flex; flex-direction:column; gap:1rem; }
.review-form input, .review-form select, .review-form textarea{
  width:100%; max-width:400px; margin:0 auto; padding:.5rem; border:1px solid #ccc; border-radius:6px;
}
.review-form button{ background:var(--brand-brown); color:#fff; padding:.5rem 1rem; border:none; border-radius:6px; cursor:pointer; transition:background .2s ease; }
.review-form button:hover{ background:var(--brand-brown-dark); }

/* ======================== GALLERY STYLES ======================== */
.gallery-container{ max-width:1100px; margin:80px auto; padding:40px 20px; text-align:center; background:var(--panel-bg); border-radius:16px; }
.gallery-container h2{ font-size:2rem; margin-bottom:30px; color:var(--text); }
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:1.5rem; justify-items:center; }
.gallery-item{ position:relative; overflow:hidden; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.1); transition:transform .3s ease; width:100%; max-width:300px; }
.gallery-item:hover{ transform:scale(1.03); }
.gallery-item img{ width:100%; height:auto; object-fit:cover; border-radius:12px; transition:opacity .3s ease; }
.gallery-item:hover img{ opacity:.5; }
.gallery-description{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); opacity:0; color:var(--text); background:rgba(255,255,255,0.8); padding:.75rem 1.25rem; border-radius:8px; font-weight:bold; font-family:"Cormorant Garamond", serif; font-size:1.1rem; transition:opacity .3s ease; }
.gallery-item:hover .gallery-description{ opacity:1; }

/* IG icon consistency */
.top-ig-icon{ width:32px !important; height:32px !important; max-width:32px !important; max-height:32px !important; object-fit:contain !important; display:inline-block !important; vertical-align:middle !important; margin:0 !important; padding:0 !important; }

/* ======================== RESPONSIVE / MOBILE ======================== */

/* Serve mobile-optimized background image and prevent fixed attachment on mobile */
* ======================== RESPONSIVE / MOBILE ======================== */

/* Serve mobile-optimized background image and prevent fixed attachment on mobile */
@media (max-width:1024px){
  body{
    background: url("assets/marble-bg3-mobile.jpg") no-repeat center center;
    background-size: cover !important;
    background-attachment: scroll !important;
  }
}

/* tablet adjustments */
@media (max-width:768px){

  nav{ flex-direction:column; gap:.4rem; }
  nav a{ font-size:.9rem; }
  header .logo{ width:90px !important; }

  .top-ig-icon, .cart-icon{ width:26px !important; height:26px !important; }

  .menu-card{ width:100% !important; max-width:330px; margin:0 auto; }
  .thanksgiving-items{ gap:1rem !important; }
  .gallery-grid{ grid-template-columns:repeat(auto-fit, minmax(160px,1fr)) !important; }

  .hero h2{ font-size:1.05rem !important; }
  .about{ padding:1.5rem !important; }

  .cart, #overlay-cart { right: -15%; width: 85%; max-width:420px; }
}

/* very small phones */
@media (max-width:480px){
  nav a{ font-size:.75rem !important; }
  .menu-card{ max-width:280px !important; }
  .gallery-grid{ grid-template-columns:repeat(auto-fit, minmax(140px,1fr)) !important; }

  .cart, #overlay-cart { width:95%; right:-90%; }
}

/* ======================== CHRISTMAS PAGE BACKGROUND ======================== */
body.christmas-page {
  background: url("assets/christmas-bg.jpg") no-repeat center center fixed;
  background-size: cover !important;
}

/* ======================== CHRISTMAS MENU GRID ======================== */
.christmas-menu-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
}

/* ======================== CHRISTMAS ITEM CARD ======================== */
.christmas-item {
  background: var(--panel-bg);
  border: 1px solid #b30000; /* festive border */
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 220px;
  box-shadow: 0 4px 12px rgba(179,0,0,0.15); /* subtle red shadow */
  transition: transform .2s ease;
}

.christmas-item:hover {
  transform: translateY(-4px);
}

.christmas-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.christmas-item h3 {
  font-family: "Georgia", serif;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: .5rem;
  color: var(--text);
}

.christmas-item p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.christmas-item .menu-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.christmas-item .menu-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b30000;
}

.christmas-item .add-to-cart {
  padding: .5rem 1.2rem;
  background: #b30000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease;
}

.christmas-item .add-to-cart:hover {
  background: #8a0000;
}
