/* Theme + Google Fonts */
@import url('theme.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Variables (bridge to theme) */
:root {
  --primary: var(--color-secondary);
  --secondary: var(--color-bg);
  --dark: var(--color-primary);
  --light: var(--color-bg);
  --accent: var(--color-secondary);
  --text: var(--color-primary);
  --text-light: rgba(1, 38, 64, 0.7);
  /* Navbar height used by JS and layout offsets */
  --navbar-height: 90px;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.bg-light {
  background-color: var(--secondary) !important;
}

.btn {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  /* Ensure Bootstrap v5 button variables also reflect brand color */
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary);
  --bs-btn-active-border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Disabled buttons: render in neutral grey for clarity */
.btn-primary:disabled,
.btn-primary.disabled,
#submitBtn:disabled {
  --bs-btn-bg: #adb5bd; /* neutral grey */
  --bs-btn-border-color: #adb5bd;
  --bs-btn-hover-bg: #adb5bd;
  --bs-btn-hover-border-color: #adb5bd;
  color: #fff !important;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* (Reverted) brand blue button styles removed */

.btn-outline-light:hover {
  color: var(--primary);
}

/* Navigation */
.navbar {
  padding: 15px 0;
  transition: background-color 0.3s, box-shadow 0.3s;
  background: rgba(1, 38, 64, 0.95) !important; /* default: solid navy for visibility */
  height: var(--navbar-height);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(1, 38, 64, 0.95) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: var(--navbar-height);
}

/* Sync navbar height variable on mobile */
@media (max-width: 991.98px) {
  :root { --navbar-height: 60px; }
}

/* Transparent only when overlapping hero */
.navbar.over-hero {
  background: transparent !important;
  box-shadow: none;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 15px;
  transition: width 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: calc(100% - 30px);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: white;
}

/* Mobile navbar menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(1, 38, 64, 0.95);
    padding: 15px;
    border-radius: 0 0 10px 10px;
    margin-top: 5px;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-dark .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Make sure dropdown menu is visible */
  .navbar-nav .dropdown-menu {
    background-color: rgba(1, 38, 64, 0.8);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0;
  }

  .navbar-nav .dropdown-item {
    color: white;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-nav .dropdown-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus,
  .navbar-nav .dropdown-item.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Rich gradient for better text legibility over images */
  background: linear-gradient(90deg,
    rgba(1, 38, 64, 0.78) 0%,
    rgba(1, 38, 64, 0.60) 35%,
    rgba(1, 38, 64, 0.28) 65%,
    rgba(0, 0, 0, 0.00) 100%);
  z-index: -1;
}

.hero h1 {
  /* Larger, responsive headline across all sizes */
  font-size: clamp(2.6rem, 4vw + 1.2rem, 5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  word-spacing: 0.02em;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  color: white;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* About Section */
.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-img img {
  transition: transform 0.5s;
}

.about-img:hover img {
  transform: scale(1.05);
}

.experience {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience span {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.experience p {
  margin: 0;
  font-size: 1rem;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.about-list i {
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
}

/* Menu Section */
.menu-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  transition: all 0.3s;
}

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.menu-img {
  height: 200px;
  overflow: hidden;
}

.menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.menu-item:hover .menu-img img {
  transform: scale(1.1);
}

.menu-content {
  padding: 20px;
}

.menu-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.menu-content h4 span {
  color: var(--primary);
}

.menu-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

.nav-tabs {
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.nav-tabs .nav-link {
  color: var(--text);
  font-weight: 500;
  border: none;
  padding: 10px 25px;
  position: relative;
}

.nav-tabs .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -2px;
  left: 0;
  transition: width 0.3s;
}

.nav-tabs .nav-link:hover::after,
.nav-tabs .nav-link.active::after {
  width: 100%;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  background: transparent;
}

/* Gallery Section */
.gallery-container {
  position: relative;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.gallery-item img {
  transition: all 0.5s;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 38, 64, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s;
}

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

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

.gallery-caption {
  text-align: center;
  color: white;
}

.gallery-caption h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.gallery-zoom {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.gallery-zoom:hover {
  background: var(--dark);
  color: white;
  transform: rotate(90deg);
}

/* Book a Table Section */
.php-email-form .form-control {
  height: 50px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.php-email-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.php-email-form textarea.form-control {
  height: auto;
  padding-top: 15px;
}

.php-email-form label {
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
}

.php-email-form .loading {
  color: var(--text);
  text-align: center;
}

.php-email-form .error-message {
  color: #721c24;
  background: #f8d7da;
  text-align: center;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.php-email-form .sent-message {
  color: #155724;
  background: #d4edda;
  text-align: center;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Contact Section */
.contact-info {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 20px;
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 0;
}

.footer-logo img {
  margin-bottom: 20px;
}

.footer p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer h4 {
  color: white;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 15px;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}

.footer ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer ul li i {
  margin-right: 10px;
  color: var(--primary);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.newsletter-form {
  position: relative;
}

.newsletter-form input {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 30px;
  padding: 0 20px;
  background: rgba(255,255,255,0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: white;
  color: var(--primary);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .section-padding {
    padding: 80px 0;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .experience {
    padding: 20px;
  }
  
  .experience span {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .experience {
    position: static;
    margin-top: 30px;
    display: inline-block;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .menu-content h4 {
    flex-direction: column;
  }
  
  .menu-content h4 span {
    margin-top: 5px;
  }
}
/* Hero Slider Styles */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Mirror gradient used above (dedup in future refactor) */
  background: linear-gradient(90deg,
    rgba(1, 38, 64, 0.78) 0%,
    rgba(1, 38, 64, 0.60) 35%,
    rgba(1, 38, 64, 0.28) 65%,
    rgba(0, 0, 0, 0.00) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* Hero CTA buttons: stack on mobile, inline on md+ */
.btn-hero {
  padding: 12px 26px;
  font-weight: 600;
  border-radius: 999px;
}

.hero-cta-group .btn-hero {
  min-width: 180px;
}

/* Emphasize Book a Table CTA sizing responsively */
.hero-cta-group .btn-hero-book {
  min-width: 200px;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-cta-group .btn-hero-book { min-width: 220px; }
}
@media (min-width: 1200px) {
  .hero-cta-group .btn-hero-book { min-width: 260px; }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 0 14px; }
  .hero h1 { margin-bottom: 14px; }
  .hero p { margin-bottom: 20px; }
  .hero-cta-group { gap: 12px !important; }
  .hero-cta-group .btn-hero { width: 100%; min-width: 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 { font-size: clamp(2.2rem, 1.6vw + 1.8rem, 2.6rem); }
  .hero-cta-group .btn-hero { min-width: 170px; }
}

/* Hero Enhancements */
.text-accent { color: var(--primary) !important; }
.bg-accent-subtle { background: var(--primary-light) !important; }

.hero h1 .text-accent {
  /* Emphasize just the word “Penang” */
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
}

/* Lighten the flanking words for contrast */
.hero-title-light {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 575.98px) {
  .hero h1 .text-accent {
    font-size: 1.15em;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero h1 .text-accent {
    font-size: 1.2em;
  }
}

/* Subtitle readability tweaks */
.hero-subtitle {
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  line-height: 1.5;
  max-width: 62ch;
}

.hero-eyebrow .badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-meta { color: rgba(255,255,255,0.85); }
.hero-meta .vr { height: 18px; }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.85rem;
  backdrop-filter: blur(2px);
}

/* Menu Download Button */
.btn-download-menu {
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary);
}

.btn-download-menu:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Section Scrolling */
section {
  scroll-margin-top: calc(var(--navbar-height) + 20px);
  position: relative;
}

/* Opening Hours in Footer */
.opening-times {
  color: #fff;
}

.day-hours {
  margin-bottom: 10px;
}

.day-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.hours {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.current-day {
  color: #75c22e; /* Highlight color for current day */
}

.current-day .day-name {
  font-weight: 700;
}

.current-day .hours {
  color: #fff;
}

/* Footer Branch Locations */
.footer-branch {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-branch:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-branch h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.footer-branch h5 i {
  color: #83c523;
  margin-right: 8px;
}

.footer-branch .branch-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-branch .branch-details li {
  color: #ddd;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 5px;
}

.footer-branch .branch-details li i {
  margin-right: 8px;
  color: #83c523;
  font-size: 12px;
}

.footer-branch .branch-details a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-branch .branch-details a:hover {
  color: #83c523;
}

@media (max-width: 991px) {
  .footer-branch {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }
  
  .footer-branch h5 {
    font-size: 15px;
  }
}
