/* ==========================
   Fonts & Root Theme
   ========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  /* Mediterranean Luxe + Bold Hospitality Palette */
  --color-primary: #181818;          /* Deep charcoal */
  --color-primary-dark: #000000;
  --color-accent: #c89b3c;           /* Warm gold */
  --color-accent-dark: #a87f2b;
  --color-bg: #f5efe6;               /* Warm, soft background */
  --color-bg-alt: #ffffff;           /* Card / section background */
  --color-text: #2b2b2b;
  --color-light-text: #7a7a7a;
  --color-border: #e0d4c2;

  --max-width: 1200px;
  --radius-card: 14px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Typography base */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
}

/* Utility container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Small all-caps label */
.subhead {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-lead {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--color-light-text);
}

/* ==========================
   Navbar
   ========================== */

.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-text h1 {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tagline {
  font-size: 0.85rem;
  color: var(--color-light-text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-links a:hover:not(.btn-primary)::after,
.nav-links a.active-link:not(.btn-primary)::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================
   Buttons
   ========================== */

/* Primary CTA: gold, same everywhere (nav + sections) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: #1a1a1a;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  color: #111111;
}

/* Nav CTA uses same visuals */
.btn-nav-cta {
  padding-inline: 1.4rem;
}

/* Outline buttons for PDFs / secondary actions */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #111111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

/* Legacy secondary button (kept for compatibility if used) */
.btn-secondary {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #111111;
}

/* ==========================
   Home Gallery (Hero Strip)
   ========================== */

.gallery {
  padding: 4.5rem 0 4.5rem;
  background: var(--color-bg);
}

.gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-title {
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-lead {
  max-width: 540px;
  margin: 0.75rem auto 1.6rem;
  color: var(--color-light-text);
  font-size: 0.98rem;
}

.gallery-btn {
  margin-top: 0.25rem;
}

/* 5-image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 260px);
  gap: 1.4rem;
  align-items: stretch;
}

.gallery-main {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.spacing-title {
  margin-bottom: 1.6rem;  /* adjust this number to get the perfect spacing */
}

/* ==========================
   Menus
   ========================== */

.menus {
  padding: 5rem 0 4.5rem;
  text-align: center;
  background: var(--color-bg-alt);
}

.menus h2 {
  margin-bottom: 0.4rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.menu-card {
  background: #fdf8f1;
  padding: 2rem 2rem 2.3rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.menu-card h4 {
  margin-bottom: 0.45rem;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.menu-card p {
  margin-bottom: 1.1rem;
  color: var(--color-light-text);
}

.menu-items {
  list-style: none;
  padding: 0;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.9rem;
}

.menu-items li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.menu-items li span {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 0.35rem;
}

.favorite {
  font-weight: 600;
  color: var(--color-accent-dark);
  font-style: italic;
  font-size: 0.85rem;
}

.menu-card .btn-outline,
.menu-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.menu-cta {
  margin-top: 3.3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.menu-cta p {
  font-style: italic;
  color: var(--color-light-text);
  margin-bottom: 1rem;
}

/* Remove spacing that expected descriptions */
.menu-card.no-desc {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Ensures all cards align even without descriptions */
.menu-grid.refined {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

/* Café Zeitoun centered and proportional */
.cafe-card {
  text-align: center;
  padding-top: 1.5rem;
}

.cafe-card p {
  max-width: 90%;
  margin: 0.5rem auto 0;
}

/* Tighten list spacing for a cleaner, luxury look */
.menu-items li {
  margin-bottom: 0.4rem;
}

/* Slightly larger headings for visual balance */
.menu-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

/* ==========================
   About
   ========================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.8rem;
  padding: 4.8rem 0 4.8rem;
  align-items: center;
}

.about-text p {
  margin: 0.7rem 0;
  color: var(--color-text);
}

.about-video-wrapper {
  display: flex;
}

.about-video {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  max-height: 520px;
  box-shadow: var(--shadow-strong);
}

.link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.8rem;
  display: inline-block;
}

.link:hover {
  color: var(--color-accent-dark);
}

/* ==========================
   Services
   ========================== */

.services {
  background: var(--color-bg-alt);
  padding: 4.8rem 0 4.6rem;
  text-align: center;
}

.services h3 {
  margin-bottom: 0.4rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
  margin-top: 2.6rem;
}

.service-card {
  background: #fdf8f1;
  padding: 1.9rem 1.8rem 2.1rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.service-card h4 {
  margin-bottom: 0.5rem;
}

.service-card p {
  flex-grow: 1;
  color: var(--color-text);
  margin-bottom: 1.3rem;
}

.service-card .btn-primary {
  align-self: flex-start;
}

/* ==========================
   Testimonials
   ========================== */

.testimonials {
  padding: 4.6rem 0 4.8rem;
  background: var(--color-bg);
}

.testimonials .container {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.4rem;
}

blockquote {
  background: var(--color-bg-alt);
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  font-style: italic;
  text-align: left;
  border-left: 3px solid var(--color-accent);
}

blockquote p {
  color: var(--color-text);
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  font-style: normal;
}

/* ==========================
   Contact
   ========================== */

.contact {
  background: var(--color-bg-alt);
  padding: 4.8rem 0 4.6rem;
}

.contact-box {
  background: #fdf8f1;
  padding: 2.5rem 2.3rem 2.8rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-box p {
  color: var(--color-text);
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
  margin-top: 1.5rem;
}

form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.98rem;
  background: #fffdf8;
}

form textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==========================
   Footer
   ========================== */

.footer {
  background: #151515;
  color: white;
  padding: 2.2rem 0 2.4rem;
}

.footer-content {
  display: grid;
  grid-template-areas:
    "logo contact social"
    "copyright copyright copyright";
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.footer-logo-link {
  grid-area: logo;
  justify-self: start;
}

.footer-logo {
  height: 120px;
  width: auto;
  border-radius: 100px;
}

.footer-contact {
  grid-area: contact;
  justify-self: center;
  font-size: 0.95rem;
}

.footer-social {
  grid-area: social;
  justify-self: end;
  font-size: 0.95rem;
}

.footer-social a,
.footer-contact a {
  display: inline-block;
  color: var(--color-accent);
  margin-top: 0.35rem;
  text-decoration: none;
}

.footer-social a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-social .social-icon svg {
  transition: all 0.25s ease;
}

.footer-social .social-icon:hover svg {
  stroke: white;
  transform: scale(1.08);
}

.copyright {
  grid-area: copyright;
  margin-top: 0.9rem;
  color: #aaaaaa;
  font-size: 0.86rem;
}

/* ==========================
   Gallery Page (Modern Grid)
   ========================== */

.modern-gallery {
  width: 100%;
  padding: 4.8rem 0 4.6rem;
  background: var(--color-bg);
}

.gallery-page-header {
  text-align: center;
  margin-bottom: 2.6rem;
}

.gallery-grid-modern {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.gallery-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* Lightbox overlay for gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  width: 88%;
  max-width: 960px;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================  
   Instagram Review Slider  
   ========================== */

.review-slider {
  position: relative;
  padding: 40px 0;
  z-index: 1;
}

.review-slider::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 50%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(200, 155, 60, 0.22),
    rgba(200, 155, 60, 0) 70%
  );
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.review-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.9s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.review-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 3;
}

.review-slide img {
  max-height: 460px;
  width: auto;
  border-radius: 18px;

  /* Card frame */
  background: #ffffff;
  padding: 14px;
  border: 1px solid rgba(200, 155, 60, 0.22);

  /* Soft deep shadow */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);

  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* Dots */
.review-dots {
  margin-top: 1.8rem;
  z-index: 10;
  position: relative;
  display: flex;               
  justify-content: center; 
  gap: 10px;                   
}

.review-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6cdbf;
  transition: all 0.3s ease;
  z-index: 10;
}

.review-dots .dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* ==========================
   Review Lightbox
   ========================== */

.review-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.86);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.review-lightbox.show {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.review-lightbox img {
  width: 90%;
  max-width: 900px;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Arrows */
.review-lightbox-prev,
.review-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: opacity 0.2s ease;
  opacity: 0.75;
}

.review-lightbox-prev:hover,
.review-lightbox-next:hover {
  opacity: 1;
}

.review-lightbox-prev { left: 1.2rem; }
.review-lightbox-next { right: 1.2rem; }

/* ==========================
   Responsive
   ========================== */

@media (max-width: 900px) {
  .brand-logo {
    height: 70px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-main {
    grid-column: 1 / span 2;
    grid-row: auto;
    height: 320px;
  }

  .gallery-item {
    height: 230px;
  }

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

  .footer-content {
    grid-template-areas:
      "logo"
      "contact"
      "social"
      "copyright";
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-link,
  .footer-contact,
  .footer-social,
  .copyright {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1.3rem 1.4rem 2.4rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    min-height: 100vh;
    overflow-y: auto;
    z-index: 99;
    gap: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a,
  .nav-links .btn-primary {
    width: 100%;
    text-align: center;
  }

  .menu-btn {
    display: block;
  }

  .gallery {
    padding-top: 3.8rem;
  }

  .gallery-main {
    grid-column: 1 / span 1 !important;
    grid-row: auto !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item,
  .gallery-main {
    height: 260px;
  }

  .about {
    padding: 4rem 0 3.8rem;
  }

  .services,
  .menus,
  .testimonials,
  .contact,
  .modern-gallery {
    padding: 4rem 0 3.8rem;
  }

  .gallery-photo {
    height: 260px;
  }

  .lightbox img {
    width: 94%;
  }
}

@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 1.2rem;
  }

  .gallery-title {
    font-size: 2.1rem;
  }

  .contact-box {
    padding: 2rem 1.5rem 2.3rem;
  }
}
