@import url('normalize.css');
@import url('font-awesome.min.css');
@import url('simple-sidebar.css');
@import url('lightbox.min.css');
@import url('bootstrap.min.css');
@import url('https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/*=================================
  1. GLOBAL & BASE STYLES
=================================*/
:root {
  --primary-color: #894342;
  --secondary-color: #f7f2ec;
  --text-dark: #333333;
  --text-light: #555555;
  --accent-color: #c0a080;
  --border-color: #e0e0e0;
  --success-color: #28a745;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Ubuntu', 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

p {
  color: #696969;
  font-size: 14px;
  line-height: 25px;
}

a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

::placeholder { color: #fff; opacity: 1; }
:-ms-input-placeholder { color: #fff; }
::-ms-input-placeholder { color: #fff; }

/*=================================
  2. HEADER & NAVIGATION
=================================*/
#main-header-top {
  position: relative;
  max-width: 100%;
  border-bottom: 1px solid #dfdfdf;
  transition: box-shadow 0.3s ease-in-out;
  background-color: #fff;
  z-index: 1000;
}

#main-header-top.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-menu {
  padding: 0;
  background-color: var(--primary-color);
}
.top-menu aside {
  width: auto;
  display: inline-block;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 20px;
  float: left;
}
.top-menu aside:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.top-menu aside a {
  color: #fff;
  font-size: 13px;
}
.top-menu a:hover,
.top-menu i:hover {
  cursor: pointer;
  color: #fddfdf;
  text-decoration: none;
}

/* Main Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* **FIXED** Navigation Dropdown Styles for Desktop */
.navbar-nav .dropdown-menu {
    min-width: 220px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-top: 0;
    padding: 8px 0;
    
    /* Initial state for animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    
    /* Important: Must be hidden by default but capable of animation */
    display: block; /* Keep display:block for hover transition to work */
}

/* State when Bootstrap JS adds the .show class (on click) */
.navbar-nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desktop Hover Trigger (If you rely on hover instead of click) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


.dropdown-menu a {
    display: block;
    color: var(--text-dark) !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    border-bottom: none !important;
    margin: 0 !important;
    text-transform: none !important;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* **FIXED** Mobile/Collapsed Menu Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        /* Reset all desktop-specific styling/animation */
        position: static !important; /* Force menu to flow vertically in the nav */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        
        /* Let Bootstrap's collapse function hide/show it */
        display: none; 
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block; /* Bootstrap JS applies this on click */
    }
    
    /* Add borders to menu items in mobile view for cleaner separation */
    .navbar-nav .dropdown-menu a {
        border-bottom: 1px solid var(--border-color) !important;
        padding: 12px 15px !important; /* Adjust padding for mobile */
    }
    .navbar-nav .dropdown-menu a:last-child {
        border-bottom: none !important;
    }
    
    /* Visually separate the main menu items from the dropdown in mobile view */
    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
}


/*=================================
  3. PAGE COMPONENTS & SECTIONS
=================================*/
/* Hero Section for Inner Pages */
/* Hero Section for Inner Pages */
.page-hero {
  padding: 120px 0; /* Increased padding */
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Fixed background effect */
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(40, 40, 40, 0.65);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.page-hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 15px;
}
.page-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  color: #fff;
}

/* Section Layouts & Titles */
.section-padding { padding: 80px 0; }
.section-bg { background-color: var(--secondary-color); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h1,
.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Content & About Sections */
.intro-section p,
.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}
.intro-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}
.content-section h3 { font-size: 2rem; margin-bottom: 20px; }

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.about-content .text-content,
.about-content .image-content {
  flex: 1 1 45%;
}
.about-content p { line-height: 1.7; color: var(--text-light); }
.about-content img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}





/* Image Hover Effect */
.img-fluid.rounded.shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-fluid.rounded.shadow:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


/* Grids & Cards (Services, Features) */
.services-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card, .feature-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card { display: flex; flex-direction: column; }
.service-card:hover, .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}
.service-card h4, .feature-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.service-card p {
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 25px;
}
.feature-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.feature-card p, .feature-card ul {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}
.feature-card ul {
  list-style-position: inside;
  text-align: left;
  padding-left: 10px;
}

/* Styled Lists */
.feature-list, .material-list, .uses-list, .promise-list {
  list-style: none;
  padding: 0;
}
.feature-list li, .promise-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.material-list li, .uses-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.feature-list li .fa, .promise-list .icon, .material-list .icon, .uses-list .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  width: 35px;
  text-align: center;
}
.feature-list li .fa { font-size: 20px; width: 20px; }

.material-list h4, .uses-list h4 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.material-list p, .uses-list p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-light);
  font-size: 1rem;
}

/* Call To Action (CTA) Section */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* FAQ Accordion */
.faq-accordion .card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: none;
    overflow: hidden;
}
.faq-accordion .card-header {
    background-color: #fff;
    padding: 0;
    border-bottom: 0;
}
.faq-accordion .btn-link {
    width: 100%;
    text-align: left;
    padding: 20px;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    background-color: #fff;
    transition: all 0.3s ease;
}
.faq-accordion .btn-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.faq-accordion .btn-link[aria-expanded="true"] {
    background-color: var(--primary-color);
    color: #fff;
}
.faq-accordion .btn-link::after {
    content: '\f067';
    font-family: FontAwesome;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.faq-accordion .btn-link[aria-expanded="true"]::after {
    content: '\f068';
    transform: translateY(-50%) rotate(180deg);
}
.faq-accordion .card-body {
    padding: 20px;
    line-height: 1.7;
    color: var(--text-light);
    background-color: #f8f9fa;
}



/*=================================
  4. BUTTONS & FORMS
=================================*/
.btn:hover { color: #fff !important; }
.btn-primary { background: #894342; color: #fff; border: none; }
.btn-primary:hover { background: #000; }

.btn-readmore {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.btn-readmore:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(137, 67, 66, 0.4);
  transform: translateY(-2px);
}

.btn-cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  border: 2px solid var(--primary-color);
}
.btn-cta:hover {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(137, 67, 66, 0.3);
  transform: translateY(-3px);
}

/* Enquiry Button */
.btn-enquiry {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    margin: 20px 0 10px;
    transition: all 0.3s ease;
}
.btn-enquiry:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* Contact Banner & Form */
.contactBanner {
  width: 100%;
  z-index: 999;
  margin: -93px 0 0 0;
  position: relative;
}
.conFrom {
  width: 100%;
  background: #894342;
  padding: 20px;
}
.contactBanner h2 {
  width: 100%;
  text-transform: uppercase;
  font-size: 26px;
  margin: 0 0 10px;
  text-align: center;
  color: #fff;
}
.contactBanner .form-control {
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}
.contactBanner .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(137, 67, 66, 0.25);
}
.conFrom .conbtnhome {
  width: 100%;
  height: 93px;
  background-color: #000;
  white-space: normal;
  border: none;
  border-radius: .25rem;
  font-size: 18px;
  margin: 0;
  word-break: break-all;
  transition: background-color 0.3s ease;
}
.conFrom .conbtnhome:hover { background: #333; }
.conFrom textarea.form-control { height: 93px; }


/*=================================
  5. LAYOUT & MISCELLANEOUS
=================================*/
.w100 { width: 100%; display: inline-block; }
.row-flex { display: flex; flex-wrap: wrap; }

.banner {
  width: 100%;
  display: inline-block;
  border-bottom: 6px solid #894342;
}
.carousel-control-next-icon, .carousel-control-prev-icon { width: 50px; height: 50px; }
.carousel-control-next-icon { background: url("../img/left.png") no-repeat right center; }
.carousel-control-prev-icon { background: url("../img/right.png") no-repeat left center; }

.ourproduct-block {
  margin-top: 50px;
  padding-bottom: 80px;
}
.ourproduct-block h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
}
.full-blk { padding: 0 15px; margin: 0 0 30px 0; }
.full-blk .pf {
  transition: box-shadow 0.3s ease;
}
.full-blk:hover .pf { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.prop-img img { max-width: 100%; }
.pf { padding: 0; width: 100%; float: left; border: 1px solid #dbdbdb; }
.prop-main-text { padding: 20px; width: 100%; float: left; }
.prop-header {
  color: #212121;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat {
  width: 100%;
  float: left;
  position: fixed;
  z-index: 999;
  bottom: 15px;
}
.chat span { width: 40px; float: right; margin-right: 20px; }
.chat span a, .chat span a img { width: 100%; float: right; transition: transform 0.3s ease;}
.chat span a:hover { transform: scale(1.1); }

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
}
.modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.modal-header .modal-title {
    color: #fff;
}
.modal-header .close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
}
.modal-body .form-control {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}
.modal-body .form-control::placeholder {
    color: #999;
}

/* Modal Button Styles */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
.modal-footer .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.modal-footer .btn-primary:hover {
    background-color: #6a3332;
    border-color: #6a3332;
}

/*=================================
  6. PAGE-SPECIFIC BANNERS
=================================*/
.page-hero.page-about-us { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-contact { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-hospital-curtains { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-hotel-curtains { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-outdoor-curtains { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-customized-curtains { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-upholstery { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-fabrics { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-curtain-fabrics { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-sofa-upholstery { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-curtain-tassels { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-residential-curtains { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }
.page-hero.page-sofa-upholstery { background-image: url('../img/pageimages/Revelvetuae01.jpg'); }



/*=================================
  7. CONTACT & ABOUT PAGE STYLES
=================================*/
.c-info {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}
.c-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.c-info i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.c-info p {
    color: #f0f0f0;
    font-size: 1rem;
    line-height: 1.6;
}
.c-info a {
    color: #fff;
    text-decoration: none;
}
.c-info a:hover {
    text-decoration: underline;
}

.c-form .c-item,
.c-form .c-text {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.c-form .c-item::placeholder,
.c-form .c-text::placeholder {
    color: #999;
}
.c-form .c-item:focus,
.c-form .c-text:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(137, 67, 66, 0.25);
    outline: none;
}
.c-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.c-form .btn-primary:hover {
    background-color: #6a3332;
    border-color: #6a3332;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-map {
    border-radius: 8px;
    overflow: hidden;
}

.mission-vision-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    text-align: center;
}
.mission-vision-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.mission-vision-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.mission-vision-box p,
.mission-vision-box ul {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}
.mission-vision-box ul {
    list-style-position: inside;
    text-align: left;
    padding-left: 0;
}

/*=================================
  8. FOOTER
=================================*/
footer {
  width: 100%;
  display: inline-block;
  background: #111; /* Darker Footer background */
  color: #ffffff;
}

.footmenu {
  width: 100%;
  display: inline-block;
  padding: 60px 0;
  border-bottom: 1px solid #333;
}
.footmenu h5 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}
.footmenu p {
  color: #a0a0a0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  margin: 0;
}
.footmenu ul {
  width: 100%;
  display: inline-block;
  padding: 0;
  list-style: none;
}
.footmenu ul li {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}
.footmenu ul li i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}
.footmenu ul li a {
  display: inline-block;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
}
.footmenu ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    margin-top: 25px;
}
.footer-social a {
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px 0;
  background: #000;
}
.footer-bottom p {
  color: #888;
  font-size: 13px;
  margin: 0;
}
.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-quick-links li {
    display: inline-block;
    margin-left: 20px;
}
.footer-quick-links a {
    color: #888;
    font-size: 13px;
}
.footer-quick-links a:hover {
    color: #fff;
    text-decoration: underline;
}


/*=================================
  9. MEDIA QUERIES
=================================*/
@media (max-width: 767px) {
  .top-menu { display: none; }
  .contactBanner { margin: 0; }
  .conFrom .conbtnhome { height: auto; }
  
  .page-hero h1, .section-title h1, .section-title h2 { font-size: 2.2rem; }
  .page-hero p { font-size: 1.1rem; }

  .about-content { flex-direction: column; }
  .about-content:last-of-type { flex-direction: column-reverse; }
  .about-content .text-content,
  .about-content .image-content {
    flex-basis: 100%;
  }
  .footmenu .col-md-4 {
      margin-bottom: 40px;
  }
  .footer-bottom .text-md-left,
  .footer-bottom .text-md-right {
      text-align: center !important;
  }
  
  .why-us-section {
    padding: 80px 20px;
  }
  
  .footmenu{
      padding: 60px 20px !important; 
  }
  
  .section-padding{
      padding-right: 20px!important;
      padding-left: 20px!important;
  }
}





/* Ensure variables are defined for context */
:root {
  --primary-color: #894342;
}

/* Base Container Styling (Matches the final image background) */
.cta-banner-section-v4 {
    background-color: var(--primary-color);
    padding: 100px 0;
    color: #fff;
}

.cta-wrapper-v4 {
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
.cta-title-v4 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Ubuntu', sans-serif; 
}

.cta-lead-v4 {
    font-size: 1.25rem;
    color: #f0f0f0; /* Slightly off-white for body text */
    max-width: 700px;
    margin: 0 auto 50px; /* Increased margin for better separation */
    line-height: 1.6;
}

/* Locations Chip Styling (Clean white background, centered) */
.service-area-chips-v4 {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 15px; 
    margin-bottom: 40px; /* Space between chips and main button */
}

.area-chip-v4 {
    /* Style matching the image */
    background-color: rgba(255, 255, 255, 0.9); 
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px; /* Boxy chip look */
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: default;
    transition: all 0.2s ease;
}

.area-chip-v4:hover {
    background-color: #fff;
}

/* Call-to-Action Button (Main focus) */
.btn-cta-final-v4 {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color) !important;
    padding: 15px 35px; /* Slightly more compact padding */
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px !important;
}

.btn-cta-final-v4:hover {
    background-color: var(--primary-color); 
    color: #fff !important;
    transform: translateY(-2px);
    border-color: #fff;
}

.cta-footer-text-v4 {
    font-size: 1rem;
    color: #f0f0f0;
    font-weight: 400;
    margin: 0;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .cta-title-v4 {
        font-size: 2.2rem;
    }
    .cta-lead-v4 {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .btn-cta-final-v4 {
        font-size: 1rem;
        padding: 15px 30px;
        width: 100%; /* Make button full width on mobile for better usability */
        max-width: 300px;
    }
}





/* =================================
   FIX: Mobile Banner Background 
   ================================= */
@media (max-width: 768px) {
    /* Ensure the carousel item has height on mobile */
    .carousel-item {
        height: 50vh; /* Reduce height slightly for better mobile viewing */
        min-height: 350px;
        /* If you set background-image using CSS instead of <img> */
        background-attachment: scroll !important; /* Forces image to move with scroll */
    }
    
    /* Ensure the image inside the carousel item covers the area */
    .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    /* If you have any other hero sections using background-image */
    .page-hero {
        background-attachment: scroll !important;
        padding: 80px 0 !important;
    }
}



/* =================================
   FIX: Slider
   ================================= */

        .hero-contact-split {
            position: relative;
            width: 100%;
            height: 100vh; 
            min-height: 100vh;
        }

        .split-carousel-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .split-carousel-container .carousel,
        .split-carousel-container .carousel-inner,
        .split-carousel-container .carousel-item {
            height: 100%;
        }

        .split-carousel-container img {
            object-fit: cover;
            height: 100%;
            width: 100%;
            filter: brightness(0.4); 
        }

        .hero-overlay-content {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            height: 100%;
        }

        .slide-text-content {
            color: #fff;
            padding-right: 40px;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
        }

        .slide-text-content h1 {
            font-size: 3.8rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 20px;
        }
        
        .slide-text-content p {
            font-size: 1.4rem;
            color: #f0f0f0;
            line-height: 1.5;
        }
        
        .btn-cta-hero {
            display: inline-block;
            background-color: var(--primary-color);
            color: #fff !important;
            padding: 15px 30px;
            border-radius: 3px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .btn-cta-hero:hover {
            background-color: #a05a59;
            transform: translateY(-2px);
        }

        .form-col-right {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .contact-form-card {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
        }

        .contact-form-card h2 {
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 25px;
        }

        .contact-form-card .form-control {
            border-radius: 5px;
            border: 1px solid #ddd;
            padding: 12px;
            font-size: 1rem;
        }
        
        .contact-form-card .form-control::placeholder {
            color: #aaa;
            opacity: 1; 
        }

        .btn-submit-hero {
            background-color: var(--primary-color);
            border: 2px solid var(--primary-color);
            color: #fff;
            padding: 12px;
            font-weight: 700;
            text-transform: uppercase;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        
        .btn-submit-hero:hover {
            background-color: #6a3332;
            border-color: #6a3332;
        }
        
        /* Ensure dynamic content has the animation classes */
        #dynamic-slide-content .fade-in-up {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease, transform 1s ease;
        }
        #dynamic-slide-content .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Mobile Adjustments (THE FIX) */
        @media (max-width: 991.98px) {
            /* 1. Remove fixed height and use auto height */
            .hero-contact-split {
                height: auto;
               /* min-height: 1px; */
                padding-bottom: 40px; /* Add padding at the bottom of the section */
            }
            
            /* 2. Position the carousel background relative so it doesn't overlap the next content */
            .split-carousel-container {
                 /*   position: relative; 
            height: 400px; 
                min-height: 300px; */
              
                margin-bottom: -1px; 
            }
            
            /* 3. Ensure overlay content flows normally */
          /*   .hero-overlay-content {
                position: relative; 
                transform: none;
                left: auto;
                top: -300px; 
                height: auto;
            } */
            
            .slide-text-content { 
                text-align: center;
                padding: 15px;  
            }
            .slide-text-content h1 {
                font-size: 2.5rem;
            }
            .slide-text-content p {
                font-size: 1.1rem;
            }
            .form-col-right {
                justify-content: center;
                /* Instead of bottom padding on this column, rely on the main section's padding */
                padding-bottom: 0; 
        
            }
            .contact-form-card {
                max-width: 90%;
            }
        }