/* Global and Imports */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: 'Nunito', sans-serif; */
  font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-1 {
  font-family: 'Fredoka One', cursive;
  color: #474344;
}

/* Base Styles */
.card {
  padding: 1.5rem;
  /* Use this as the default */
  border-radius: 1rem;
  background-color: rgba(72, 68, 69, 0.1);
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.light-pill {
  color: rgb(72, 68, 69);
  background-color: rgba(72, 68, 69, 0.1);
  width: max-content;
  padding: 0.25rem 0.875rem;
  border-radius: 0.75rem;
}

.light-pill-pink {
  color: rgb(247, 175, 197);
  background-color: rgba(247, 175, 197, 0.1);
  width: max-content;
  padding: 0.25rem 0.875rem;
  border-radius: 0.75rem;
}

.para-1 {
  font-size: 24px;
  font-weight: 500;
  color: rgb(17, 24, 39);
}

.df-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-main {
  padding: 0.75rem 1.5rem;
  border-width: 2px;
  border-style: solid;
  box-shadow: none;
  font-weight: 500;
  background-color: rgb(72, 68, 69);
  color: rgb(255, 255, 255);
  border-radius: 8px;
  border-color: rgb(72, 68, 69);
  font-size: 20px;
  line-height: 1.75rem;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  /* Added transition */
}

.btn-main:hover {
  color: rgb(255, 255, 255);
  opacity: 0.9;
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
}

/* Section-Specific Styles */

/* --- Navbar Styles --- */
.navbar {
  /* Add transitions for smooth scroll effect */
  /* MODIFIED: Added 'transform' to the transition */
  transition: padding 0.3s ease, background-color 0.3s ease, transform 0.3s ease-in-out;
}

/* UPDATED: Added navbar-logo class */
.navbar-logo {
  max-height: 120px;
  /* Default logo size */
  transition: max-height 0.3s ease;
}

.navbar-hidden {
  transform: translateY(-100%);
}

/* Styles for when navbar is scrolled */
.navbar-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #ffffff;
  /* Give it a solid background */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Add a subtle shadow */
}

.navbar-scrolled .navbar-logo {
  max-height: 80px;
  /* Smaller logo on scroll */
}

/* --- NEW: Animated Hamburger Icon --- */
.hamburger-icon {
  width: 30px;
  height: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Animate to "X" when 'collapsed' class is NOT present (i.e., menu is open) */
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Remove default border and focus outline from toggler */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --- End Navbar Styles --- */


/* Hero Section */
.hero-card-body {
  min-height: auto;
  /* Default for mobile */
}

.hero-right-img,
.hero-2-img,
.hero-3-img {
  background-image: url("/img/hero-1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-2-img {
  background-image: url("/img/faces/IMG_1775.jpeg");
}

.hero-3-img {
  background-image: url("/img/faces/IMG_1234.jpeg");
}

/* About Section */
.section-2-text {
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  text-align: center;
}

/* NEW: Big Image border-radius */
.big-image img {
  width: 100%;
  border-radius: 1rem;
}

/* Gallery Sections (4, 6, 8) */
#section4 .card,
#section6 .card,
#section8 .card {
  padding: 0;
  background: transparent;
}

#section4 .card .card-img-top,
#section6 .card .card-img-top,
#section8 .card .card-img-top {
  aspect-ratio: 3 / 4;
  /* NEW: Forces a 3:4 portrait shape */
  object-fit: cover;
  border-radius: 1rem;
  width: 100%;
  /* Ensure it fills the card width */
}

#section4 .card h5,
#section4 .card p,
#section6 .card h5,
#section6 .card p,
#section8 .card h5,
#section8 .card p {
  color: #ffffff;
}

/* Quality Check Section */
#section5 .card {
  /* background-color: #fff; */
  background-color: rgba(72, 68, 69, 0.1);

  min-height: auto;
  /* Default for mobile */
}

#section5 svg {
  color: #474344;
}

#section5 .card .card-title {
  margin-top: 1rem;
}

/* Testimonials Section */
#section7 .card {
  background-color: rgba(72, 68, 69, 0.1);
  min-height: auto;
  /* Default for mobile */
  display: flex;
  /* Added for better centering */
  flex-direction: column;
  justify-content: center;
}

#section7 .card .card-title {
  margin-top: 1rem;
  font-size: 1.1rem;
  /* Adjusted for readability */
}

#section7 .card img {
  height: 96px;
  width: 96px;
  border-radius: 50%;
  margin: 0 auto;
  /* Center image */
}

/* Contact Form Section */
#contactForm {
  color: #fff;
}

#contactForm .contact-form-image {
  border-radius: 1rem;
  height: auto;
  /* Make height responsive */
  max-height: 400px;
  /* Max height on mobile */
  width: 100%;
  object-fit: cover;
}

/* Footer Section */
#footer h4 {
  font-size: 1.25rem;
  /* Better responsive font size */
}

#footer a:hover {
  text-decoration: underline !important;
}

/* --- Responsive Media Queries --- */

/* Medium devices and down (tablets and phones) */
@media (max-width: 991.98px) {

  /* --- NEW: Center logo on mobile --- */
  .navbar-brand {
    /* This tells the logo to take up all available space, 
      pushing the hamburger menu to the right.
    */
    flex-grow: 1;

    /* We set a 'min-width' so the logo image itself doesn't
      get squished or try to shrink to zero.
    */
    min-width: 100px;
    /* Adjust if logo is wider */
  }

  .navbar-brand img {
    /* Finally, we center the image INSIDE the 
      expanded .navbar-brand area.
    */
    margin: 0 auto;
  }

  .navbar-toggler {
    /* This ensures the toggler has a higher z-index, 
      so it stays on top and clickable.
    */
    position: relative;
    z-index: 1;
  }

  /* --- End of new rules --- */

  /* Center items in collapsed navbar */
  .navbar-collapse {
    text-align: center;
    padding-top: 1rem;
    /* Add some space */
  }

  .navbar-nav {
    justify-content: center;
    /* Center the social icons row */
    margin-bottom: 1rem;
    /* Space between icons and button */
  }
}



@media (max-width: 576px) {
  .section-2-text {
    font-size: 1.5rem;
    /* Smaller text on small phones */
  }

  #contactForm .contact-form-image {
    display: none;
  }

  .big-image img {
    border-radius: 0;
  }

  .display-2 {
    font-size: 2.5rem;
    /* Smaller hero heading */
  }

  .card {
    padding: 1.5rem;
    /* Reduce card padding on mobile */
  }
}

@media (min-width: 992px) {

  /* Re-apply min-heights only on large screens */
  /* .hero-card-body {
    min-height: 593px;
  } */

  #section5 .card {
    min-height: 360px;
  }

  #section7 .card {
    /* min-height: 560px; */
    min-height: 460px;
  }

  #contactForm .contact-form-image {
    height: 547px;
    /* Fixed height on desktop */
    max-height: none;
  }
}

/* Custom Container Width for Desktop */
/* @media (min-width: 1200px) {
  .container {
    max-width: 1300px;
  }
} */
.form-control {
  border-radius: 0.5rem;
  border: none;
  padding: .475rem .75rem;
}

.form-control:focus {
  border-color: #a8638b;
  box-shadow: 0 0 0 .25rem rgb(145 100 114);
}

.submit-btn {
  border-radius: 0.5rem;
  padding: .475rem .75rem;
  border: none;
}

.btn-check:focus+.btn-light,
.btn-light:focus {
  box-shadow: none;
}

/* --- WhatsApp Floating Icon --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  /* Spacing from the bottom */
  right: 25px;
  /* Spacing from the right */
  background-color: #25d366;
  /* WhatsApp Green */
  color: #fff;
  border-radius: 50px;
  /* Makes it a circle */
  text-align: center;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  /* Ensures it is always on top of other content */

  /* Center the SVG icon inside the circle */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  /* Slight zoom effect on hover */
}

/* Make it slightly smaller on small mobile devices */
@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }


}

/* --- HIDE ON MOBILE (New Rule) --- */
@media (max-width: 575.98px) {
  .to-top-float {
    display: none !important;
    /* Forces the button to be completely hidden on mobile */
  }

  .navbar-light .navbar-brand {
    text-align: center;
    padding-left: 4rem;
  }
}

/* --- Go To Top Button (New) --- */
.to-top-float {
  position: fixed;
  width: 50px;
  height: 50px;
  /* Positioned 10px above the 60px WhatsApp button (25+60+10 = 95) */
  bottom: 95px;
  right: 25px;
  background-color: rgba(71, 67, 68, 0.85);
  /* Site dark color with transparency */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* Hidden by default */
  visibility: hidden;
  /* Hidden by default */
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.to-top-float:hover {
  background-color: #f7afc5;
  /* Site pink color on hover */
  color: #474344;
  /* Dark arrow on hover */
}

/* Class added by JavaScript when scrolling */
.to-top-float.show {
  opacity: 1;
  visibility: visible;
}