/*
 * Color Palette based on the provided image:
 * #D1CFC9 - Buttercream
 * #001F3F - Navy
 * #0F1A2B - Deep Navy
 * #FFFCF2 - Off-White/Cream
 * #CCC5B9 - Light Grayish-Brown
 * #403D39 - Dark Grayish-Brown
 * #252422 - Black/Charcoal
 * #EB5E28 - Orange
 */

:root {
    --primary-color: #001f3fff;      /* Affects backgrounds of Gallery, Footer, and Navbar. Also affects hover state of social icons. */
    --secondary-color: #403D39;    /* Affects professional card headings and modal content. */
    --accent-color: #3c7ab9f2;      /* Affects logo text, nav link hover states, buttons (gold), and section titles. Also affects professional button hover. */
    --text-light: #FFFCF2;         /* Affects text in Hero, Services, Gallery, and Footer sections. Also nav links. */
    --text-dark: #0F1A2B;          /* Affects headings in Products and Professionals sections. Also product info text. */
    --bg-light: #f8f9fa;          /* Affects backgrounds of Services and Testimonials sections. Also affects skill tags. */
    --transition: all 0.3s ease;
    --success-color: #27AE60;      /* Affects success button. */
    --warning-color: #F39C12;      /* Affects warning messages (not used in this code but good to have). */
    --gray-text: #888888;  
    --transparent: #00000000;/* A secondary dark text color for contrast on light backgrounds. */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* --- */

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
}

.navbar-logo {
    height: 55px; /* Adjust this value based on your logo's proportions */
    width: auto;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;               /* hidden by default */
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;  /* smooth animation */
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}


.navbar-toggler {
    border-color: #fff !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* For better mobile responsiveness */
@media (max-width: 1171px) {
    .navbar-logo {
        height: 45px; /* Smaller logo for mobile */
    }
    
    .nav-link {
    margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 35px; /* Smaller logo for mobile */
    }
}

@media (max-width: 991.98px) {
  /* Default: solid color */
  .navbar {
    background-color: rgba(0, 0, 0, 1);
    transition: background 0.3s ease;
  }

  /* When menu is open: apply image to the whole navbar */
  .navbar:has(.collapse.show) {
    background: url("images/navbar-bg.jpg") no-repeat center center;
    background-size: cover;
  }

  /* Optional: add padding to the menu area for spacing */
  .navbar .collapse.show {
    padding: 15px;
  }
}


/* --- */

/* ## Hero Section */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-height: 40%;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 60px;
    color: var(--text-light);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-top: 160px;
    color: var(--text-light);
    font-weight: 300;
}

.btn-custom {
    padding: 8px 22px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-color {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: 2px solid var(--text-dark);
}

.btn-color:hover{
    background-color: #0F1A2B;
    color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(235, 94, 40, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--bg-light);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* --- */

/* ## Section Styles */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- */

/* ## Products Section */

.products {
    background-color: var(--fff);
}

.products .section-title h2,
.products .section-title p {
    color: var(--text-dark);
}

.product-card {
    background-color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* stretches to match tallest card in row */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- */

/* ## Services Section */

.services {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.services .section-title h2,
.services .section-title p {
    color: var(--text-dark);
}

.service-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* stretches to match tallest card in row */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 300px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* --- */

/* ## Professionals Section */

.professionals {
    background: var(--primary-color);
}

.professionals .section-title h2,
.professionals .section-title p {
    color: var(--text-light);
}


/* Card styling */
.professional-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: var(--transition, all 0.3s ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Image — full width of card */
.professional-img {
  width: 100%;
  height: 320px; /* was 260px, adjust upward */
  object-fit: cover;
  object-position: top;
  display: block;
}


/* Info area */
.professional-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.professional-info p {
    margin-bottom: 0;
}

/* Skill tags */
.skills { margin: 6px 0; }
.skill-tag {
  display: inline-block;
  background: #00000000;
  border: 1px solid var(--primary-color);
  color: var(--text-dark);
  padding: 6px 10px;
  border-radius: 20px;
  margin: 3px 6px 3px 0;
  font-size: 0.85rem;
  white-space: nowrap;
}

.professional-info .btn-custom {
    margin-top: auto; /* pushes to bottom */
}


/* ## Modal Styles */

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    color: var(--text-light);
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-body h5 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body .skills {
    margin-bottom: 1.5rem;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
}

.modal-body .btn-success {
    background: var(--success-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 1rem;
}

.modal-body .btn-success:hover {
    background: #229954;
}

.modal-dialog {
    margin: 4.5rem auto;
}

@media (max-width: 576px) {
    .modal-dialog .modal-content {
        width: 90%;
        margin: 0 auto;
    }
}

/* ====== About Us Section ====== */
#about {
  background-color: var(--bg-light);
}

/* About image */
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Mission Card */
.about-mission {
  background: #fff;
  border-left: 4px solid #d4af37;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-mission:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.mission-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.mission-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #d4af37;
}

.mission-text {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  
  .about-mission {
    min-height: 300px; /* pick a height that fits the tallest text */
  }
  .section-title {
    font-size: 1.75rem;
  }
  .mission-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
    
  .section-title {
    font-size: 1.5rem;
  }
  .mission-text {
    font-size: 0.95rem;
  }
}
/* Smooth slide animation */
#info-title, #info-text {
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide-out {
  transform: translateX(-30px);
  opacity: 0;
}

.slide-in {
  transform: translateX(0);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .about-mission {
    min-height: 390px; /* pick a height that fits the tallest text */
  }
}



/* -------------------- */

/* ## Gallery Section */

.gallery {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.gallery .section-title h2,
.gallery .section-title p {
    color: var(--text-light);
}

.car-img {
    width: 80% !important;
    margin: 0 auto; /* centers the image */
    display: block;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(235, 94, 40, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .4;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.gallery-grid {
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: var(--text-light);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.gallery-overlay-content p {
    font-size: 0.9rem;
    margin: 0;
}


.carousel-indicators [data-bs-target] {
    background-color: var(--text-dark);
}


/* -- REVIEW Section- */

/* ## Testimonial Section */

.review-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.review-text {
    max-height: 150px;
    overflow-y: auto;
}

.admin-reply {
    background-color: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
}

/* --- */

/* ## Footer */

footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
}

.footer-content {
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    padding-left: 5px;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.map-container {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* --- */

/* ## WhatsApp Floating Button */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: bounce 2s infinite;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}


/* --- */

/* ## Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* --- */

/* ## Responsive */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        margin: 10px 0;
    }
    
    /* ccarusel */
    .car-img {
    width: 100% !important;
    height: 400px;
    }
}

@media (max-width: 576px) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-mobile1.jpg') no-repeat center 0%;
        background-size: cover; /* <-- fills the whole hero section */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .col-12 {
        max-width: 80%;
    }
}