/* Theme Variables */
:root {
  /* Day Mode Colors */
  --bg-primary: #fefcf8;
  --text-primary: #2a2a2a;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-text: #2a2a2a;
  --card-bg: #fff;
  --card-shadow: rgba(200, 160, 120, 0.05);
  --card-hover-shadow: rgba(255, 128, 0, 0.85);
  --accent-color: rgba(205, 127, 50, 0.85);
  --footer-bg: #111;
  --footer-text: #eee;
  --modal-bg: #fff;
  --modal-text: #2a2a2a;
  --border-color: #e0e0e0;
  --light-bg: #f9f9f9;
}

/* Night Mode Colors */
[data-theme="night"] {
  --bg-primary: #1a1a1a;
  --text-primary: #f0f0f0;
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --navbar-text: #f0f0f0;
  --card-bg: #2d2d2d;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --card-hover-shadow: rgba(205, 127, 50, 0.6);
  --accent-color: rgba(205, 127, 50, 0.85);
  --footer-bg: #0a0a0a;
  --footer-text: #ccc;
  --modal-bg: #2d2d2d;
  --modal-text: #f0f0f0;
  --border-color: #404040;
  --light-bg: #2d2d2d;
}

/*--------------------------------------------------------------
Global Reset & Typography
--------------------------------------------------------------*/

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Poppins', 'Playfair Display', serif !important;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-title,
.footer-brand,
.contact-title,
.checkout-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
}

/* Re-apply Poppins sans-serif to these elements */
.btn,
.form-label,
.form-control,
.nav-link,
p,
li,
a {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400;
}

/*--------------------------------------------------------------
Base Styles
--------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Override Bootstrap’s muted/secondary grays */
.text-muted,
.text-secondary {
  color: var(--text-primary) !important;
}

/*--------------------------------------------------------------
Navbar
--------------------------------------------------------------*/

.navbar {
  background-color: var(--navbar-bg) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--navbar-text) !important;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Toggler */
.navbar-toggler {
  border-color: var(--border-color);
}
.navbar-toggler-icon {
  filter: invert(0) !important;
  transition: filter 0.3s ease;
}
[data-theme="night"] .navbar-toggler-icon {
  filter: invert(1) !important;
}

/* On mobile always show light navbar */
@media (max-width: 991.98px) {
  .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

/*--------------------------------------------------------------
Hero Carousel
--------------------------------------------------------------*/

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.2s ease-out;
  filter: brightness(90%);
}
.carousel-inner,
.carousel-item {
  height: 100vh;
}
.carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/*--------------------------------------------------------------
About Section
--------------------------------------------------------------*/

#about {
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.section-title {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 2rem;
  animation: titleFade 1.2s ease both;
}
#about .fs-5 {
  color: var(--text-primary) !important;
}

/*--------------------------------------------------------------
Why Choose & Services
--------------------------------------------------------------*/

#why {
  background-color: var(--light-bg);
  transition: background-color 0.3s ease;
  padding: 2rem 0;
}
#why .section-title {
  color: var(--accent-color);
}
#why .list-unstyled li i {
  color: var(--accent-color);
}
#why .bg-light {
  background-color: var(--light-bg) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 6px var(--card-shadow);
  transition: background-color 0.3s ease, color 0.3s ease;
}
#why .bg-light h5 {
  color: var(--accent-color) !important;
}

/*--------------------------------------------------------------
Animations
--------------------------------------------------------------*/

@keyframes titleFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.elegant-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.elegant-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
Logo Circle
--------------------------------------------------------------*/

.logo-circle {
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  background-color: var(--card-bg);
  box-shadow: 0 0 15px var(--accent-color);
  width: 100%; max-width: 150px;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--card-hover-shadow);
}

/*--------------------------------------------------------------
Theme Toggle Button
--------------------------------------------------------------*/

.theme-toggle {
  background: none;
  border: none;
  color: var(--navbar-text) !important;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 1rem;
}
.theme-toggle:hover {
  background-color: var(--accent-color);
  color: #fff !important;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/

.footer {
  background-color: #111;
  color: #eee;
  padding: 40px 0;
}

.footer-brand {
  color: rgba(205, 127, 50, 0.9);
  font-weight: bold;
  font-style: italic;
}

.section-heading {
  color: rgba(205, 127, 50, 0.9);
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: rgba(205, 127, 50, 1);
}
.social-icon i {
  color: var(--accent-color);
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}



@media (max-width: 1024px) {


  .navbar-nav .nav-item {
    display: flex;
    justify-content: center;
  }

  /* ensure the button itself doesn’t stretch full width */
  .navbar-nav .theme-toggle {
    width: auto;
    margin: 0;
  }
}
.footer-logo {
  display: inline-block;    /* shrink-wrap to the image */
  max-width: 180px;         /* bump this up if you want it bigger */
  width: auto;              /* preserves its natural aspect ratio */
  height: auto;
  margin: 0 auto 1rem;      /* center + spacing below */
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .footer .col-md-3 {
    text-align: center;
  }
}

@media (min-width: 577px) and (max-width: 1024px) {
  .footer-logo {
    max-width: 100px;   /* shrink it down for tablets */
    margin-bottom: 0.75rem;
  }
}