/* SABAHO CAFÉ - Theme Configuration */

:root {
  --sabaho-brown: #6b3f2f;
  --sabaho-brown-dark: #543022;
  --sabaho-brown-light: #e8d9d0;
}

html {
  scroll-behavior: smooth;
}

/* Override Bootstrap primary color with Sabaho brown theme */
.sabaho-theme .text-primary {
  color: var(--sabaho-brown) !important;
}

.sabaho-theme .bg-primary {
  background: var(--sabaho-brown) !important;
  color: #fff !important;
}

.sabaho-theme .btn-primary {
  background: var(--sabaho-brown) !important;
  border-color: var(--sabaho-brown) !important;
  color: #fff !important;
}

.sabaho-theme .btn-outline-primary {
  color: var(--sabaho-brown) !important;
  border-color: var(--sabaho-brown) !important;
  background: transparent !important;
}

/* Theme Breadcrumb Override */
.sabaho-theme .breadcrumb .breadcrumb-item a {
  color: #eee;
}

.hero-header .breadcrumb-item a.text-primary {
  color: var(--sabaho-brown) !important;
}

/* Custom Theme Classes - Sabaho Brand */
.text-sabaho {
  color: var(--sabaho-brown) !important;
}

.bg-sabaho {
  background: var(--sabaho-brown) !important;
  color: #fff !important;
}

/* Sabaho Button Variants */
.btn-sabaho-outline {
  background: transparent;
  color: var(--sabaho-brown);
  border: 1px solid var(--sabaho-brown);
  transition: all 0.3s ease;
}

.btn-sabaho-outline:hover {
  background: var(--sabaho-brown-light);
}

.btn-sabaho {
  background: var(--sabaho-brown);
  color: #fff;
  border: 1px solid var(--sabaho-brown-dark);
  transition: all 0.3s ease;
}

.btn-sabaho:hover {
  background: var(--sabaho-brown-dark);
  border-color: var(--sabaho-brown-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu - Navigation */
.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: #fff;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .dropdown-item {
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
  background: var(--sabaho-brown);
  color: #fff !important;
  padding-left: 1.75rem;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background: var(--sabaho-brown);
  color: #fff !important;
}

.navbar .dropdown-divider {
  border-color: #e0e0e0;
}

.navbar-nav .nav-link:hover {
  color: var(--sabaho-brown) !important;
}

/* Hero Section */
.hero {
  background-image: url("../img/main.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #fff;
  position: relative;
  min-height: 600px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .display-4 {
  color: var(--sabaho-brown);
  font-weight: 700;
}

/* Global Typography & Body */
body {
  font-family: "Open Sans", sans-serif;
  background-color: #fff;
}

/* Menu Page Cards */
.menu-card img {
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Navigation Bar Styling */
.navbar-nav .nav-link:hover {
  background: var(--sabaho-brown-light);
  color: var(--sabaho-brown) !important;
  border-radius: 0.25rem;
}

.navbar-brand img {
  height: 40px;
}

/* Back to Top Button - Float Action */
.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Utilities - Square Variants */
.btn {
  transition: all 0.3s ease;
}

.btn-square {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/* Navigation Bar - Responsive & Sticky */
.sticky-top {
  top: -150px;
  transition: top 0.5s ease;
}

.navbar {
  padding: 15px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.navbar .navbar-nav .nav-link {
  padding: 0 15px;
  outline: none;
  color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--bs-white);
  background: var(--sabaho-brown);
}

/* Responsive Dropdown Navigation - Desktop Mode */
@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: all 0.3s ease;
    opacity: 1;
  }
}

/* Hero Header - Sub Pages */
.hero-header {
  margin-top: -100px;
  padding-top: 150px;
  background: url(../img/hero-bg.jpg) top center no-repeat;
  background-size: cover;
}

.hero-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.hero-header .display-1 {
  color: var(--sabaho-brown) !important;
  font-weight: 700;
}

/* Hero Menu Section - Menu Page Header */
.hero-menu {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 600px;
  background-image: url("../img/menu.jpg") !important;
  margin-bottom: 0 !important;
}

.hero-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-menu > .container {
  position: relative;
  z-index: 2;
}

/* Header Carousel - Responsive & Animated */
.header-carousel {
  position: relative;
  padding: 45px 90px 45px 0;
}

.header-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.header-carousel .owl-dots {
  position: absolute;
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 5px 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--bs-white);
  transition: all 0.3s ease;
}

.header-carousel .owl-dot.active {
  height: 30px;
  background: var(--bs-white);
}

/* Project Items - Portfolio/Gallery Effect */
.project-item img {
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.2);
}

.project-overlay {
  position: absolute;
  padding: 25px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

/* Service Items - Cards & Hover Effects */
.service-item {
  position: relative;
  padding: 30px 25px;
  transition: all 0.3s ease;
}

.service-item.bg-primary:hover {
  background: var(--bs-light) !important;
}

.service-item.bg-primary p {
  color: var(--bs-light);
  transition: color 0.3s ease;
}

.service-item.bg-primary:hover p {
  color: var(--bs-secondary);
}

.service-item.bg-light:hover {
  background: var(--bs-primary) !important;
}

.service-item.bg-light p {
  color: var(--bs-secondary);
  transition: color 0.3s ease;
}

.service-item.bg-light:hover p {
  color: var(--bs-light);
}

.service-item .service-img h3 {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
  transition: all 0.3s ease;
}

.service-item.bg-primary:hover .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
  transition: all 0.3s ease;
}

.service-item.bg-light:hover .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
}

/* Team Member Cards - Image & Overlay Effects */
.team-item img {
  transition: transform 0.3s ease;
}

.team-item:hover img {
  transform: scale(1.2);
}

.team-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

.team-overlay small {
  display: inline-block;
  padding: 3px 15px;
  color: var(--bs-white);
  background: var(--sabaho-brown);
}

/* Testimonial Section - Carousel & Styling */
.testimonial-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.testimonial-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.testimonial-text h5 {
  position: relative;
  padding-left: 45px;
}

.testimonial-text h5::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
  position: absolute;
  height: 17px;
  bottom: 0;
  right: 0;
  left: auto;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  transition: all 0.3s ease;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-primary);
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-dots {
    left: 0;
    right: auto;
  }

  .testimonial-carousel .owl-dot {
    margin-right: 10px;
    margin-left: 0;
  }
}

/* Footer Section - Main & Menu Variants */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding-top: 50px;
  padding-bottom: 20px;
}

.footer h5 {
  color: var(--sabaho-brown);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer p {
  color: #999;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer .btn.btn-link {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 0;
  text-align: left;
  color: #999;
  font-weight: normal;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.footer .btn.btn-link:hover {
  color: var(--sabaho-brown);
  letter-spacing: 0;
  box-shadow: none;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0;
}

.footer .copyright {
  padding: 20px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #666;
  margin-top: 30px;
}

.footer .copyright a {
  color: var(--sabaho-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .copyright a:hover {
  color: #fff;
}

/* Footer Menu Links */
.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer .footer-menu a:hover {
  color: var(--sabaho-brown);
  padding-left: 5px;
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* Social Media Links - Footer */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sabaho-brown);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.footer-social .social-link:hover {
  background: var(--sabaho-brown-dark);
  transform: scale(1.1);
}

/* Menu Page Footer - Light Theme Variant */
.menu-footer {
  background: #f8f8f8 !important;
  color: #333 !important;
}

.menu-footer h5 {
  color: var(--sabaho-brown);
}

.menu-footer .footer-menu a {
  color: #666;
  border-right-color: #ddd;
}

.menu-footer .footer-menu a:hover {
  color: var(--sabaho-brown);
}

.menu-footer .copyright {
  border-top-color: #ddd;
  color: #666;
}

.menu-footer .copyright a {
  color: var(--sabaho-brown);
}

/* Gallery Styles - Centralized */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(107, 63, 47, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
}
