/* Custom Variables for the Palette Provided */
:root {
    --dark-grey: #550706;
    --light-grey: #CBCBCB;
    --cream: #FFFFE3;
    --slate-blue: #6D8196;
}

body {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--dark-grey);
}

/* Navbar Styling */
.custom-navbar {
    background-color: #eaeaea;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



.nav-link {
    color: #550706;
    font-weight: 400;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #df4c53;
}

/* Appointment Button */
.btn-appointment {
    background-color: #550706;
    color: #550706;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    background-color: var(--light-grey);
    color: var(--dark-grey);
    transform: translateY(-2px);
}

/* Mobile Toggler */
.navbar-toggler {
    border-color: #cfcfcf;
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Custom Dropdown Styling */
.custom-dropdown-menu {
    background-color: var(--dark-grey); /* Matches your navbar */
    border: 1px solid rgba(255, 255, 227, 0.1);
    margin-top: 10px;
}

.custom-dropdown-menu .dropdown-item {
    color: var(--cream);
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: var(--slate-blue);
    color: #ffffff;
    padding-left: 25px;
}

.custom-dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 227, 0.1);
}

/* Fix for mobile view to ensure dropdown text is visible */
@media (max-width: 991px) {
    .custom-dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2); /* Slightly different for mobile clarity */
        border: none;
    }
}



/* Hero Section Layout */
.hero-section {
    position: relative;
    height: 80vh; /* Default for desktop */
    min-height: 300px; /* Ensures it doesn't get too small */
    width: 100%;
    overflow: hidden;
}

/* Static Overlay Content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens images for text readability */
    z-index: 2;
}

.hero-title {
    color: var(--cream);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: #ffdc4d;
    font-size: 1.25rem;
}

/* Background Slider Logic */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center; /* Keeps the focus in the middle */
    opacity: 0;
    animation: fadeAnimation 15s infinite;
}

/* Replace URLs with your actual image paths */
.slide-1 { background-image: url('../images/slider-1.jpg'); }
.slide-2 { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200'); animation-delay: 5s; }
.slide-3 { background-image: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1200'); animation-delay: 10s; }

@keyframes fadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

/* Buttons for Hero */
.btn-primary-custom {
    background-color: #550706;
    color: var(--cream);
    border: none;
}
.btn-primary-custom:hover {
    background-color: var(--light-grey);
    color: var(--dark-grey);
}
.btn-outline-custom {
    border: 2px solid var(--cream);
    color: var(--cream);
}
.btn-outline-custom:hover {
    background-color: var(--cream);
    color: var(--dark-grey);
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh; /* Full screen on mobile for better impact */
    }

    .hero-title {
        font-size: 2.2rem !important; /* Smaller text so it doesn't break awkwardly */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column; /* Stack buttons on small screens */
        gap: 15px;
    }

    .hero-btns .btn {
        margin: 0 !important;
        width: 100%; /* Full width buttons for easier tapping */
    }
}



/* About Section Styles */
.about-section {
    background-color: #fff7d6;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
    z-index: 1;
    margin-right: 15px;
}

/* The Modern Offset Frame */
.frame-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 90%;
    border: 8px solid var(--slate-blue);
    z-index: -1;
    transform: translate(15px, -15px);
    border-radius: 4px;
}

.about-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60%;
    height: 50%;
    background-color: var(--light-grey);
    z-index: -2;
    opacity: 0.3;
    border-radius: 4px;
}

.main-about-img {
    transition: transform 0.5s ease;
}

.main-about-img:hover {
    transform: scale(1.02);
}

.btn-about-more {
    border: 2px solid var(--dark-grey);
    color: var(--dark-grey);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-about-more:hover {
    background-color: var(--dark-grey);
    color: var(--cream);
}



/* Services Section Styles */
.services-section {
    background-color: #fcfcfc; /* Very subtle contrast from the cream */
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 74, 74, 0.1);
    border-color: var(--slate-blue);
}

.service-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-container {
    background-color: var(--light-grey);
}

.service-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.service-card h4 {
    color: var(--dark-grey);
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Testimonials Section */
.testimonials-section {
    background-color: var(--dark-grey);
    overflow: hidden;
}

.text-cream {
    color: var(--cream);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    scroll-behavior: smooth;
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.testimonial-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 227, 0.05);
    border: 1px solid rgba(203, 203, 203, 0.2);
    padding: 30px;
    border-radius: 12px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85%; /* Card fills most of the screen on mobile */
    }
}

.quote-icon {
    font-size: 3.5rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fffae5;
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--light-grey);
    margin-bottom: 20px;
}

.testimonial-user-name {
    color: #fffae5;
}

.testimonial-user-designation {
    color: #dec5c6 !important;
}

.btn-scroll-arrow {
    background: none;
    border: none;
    color: #ffdc4d;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-scroll-arrow:hover {
    color: var(--cream);
    transform: scale(1.1);
}

.btn-scroll-arrow:active {
    transform: scale(0.9);
}



/* FAQ Section Styles */
.faq-section {
    background-color: #fff7d6;
}

.custom-faq .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 10px;
}

.custom-faq .accordion-button {
    background-color: transparent;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem 0;
    box-shadow: none;
    transition: color 0.3s ease;
}

.custom-faq .accordion-button:not(.collapsed) {
    color: var(--slate-blue);
    background-color: transparent;
    box-shadow: none;
}

/* Customizing the accordion icon */
.custom-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A4A4A'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z'/%3e%3c/svg%3e");
    background-size: 1.25rem;
    transition: transform 0.3s ease-in-out;
}

.custom-faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236D8196'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.custom-faq .accordion-body {
    padding: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}


/* Contact Section Styles */
.contact-section {
    background-color: #ffffff;
}

.contact-form-container {
    background-color: #ffdc4d;
    border-radius: 12px;
}

.custom-input {
    background-color: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--slate-blue);
    box-shadow: 0 0 0 3px rgba(109, 129, 150, 0.1);
}

/* Reusing the Appointment Button style from Navbar */
.btn-appointment {
    background-color: #550706;
    color: var(--cream);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    background-color: var(--dark-grey);
    color: var(--cream);
    transform: translateY(-2px);
}


/* Footer Section Styles */
.footer-section {
    background-color: #1a1a1a; /* Even darker than dark-grey for contrast */
    color: #ffffff;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-logo {
    color: var(--cream);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.accent-text {
    color: var(--slate-blue);
}

.footer-bio {
    color: var(--light-grey);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

/* Unique Underline Effect */
.footer-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: var(--slate-blue);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-grey);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--cream);
    padding-left: 5px;
}

.footer-contact {
    color: var(--light-grey);
    margin-bottom: 10px;
    line-height: 1.6;
}

.social-links a {
    color: var(--light-grey);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--slate-blue);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.copyright, .signature {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}