/* ============================================================
   Kisan Mattresses - site styles
   Mirrors the look of kisanmattresses.com:
   magenta #a4136c, blue #005aaa, ink #222, text #777, Open Sans
   ============================================================ */
:root {
    --brand: #a4136c;
    --brand-dark: #820f56;
    --blue: #005aaa;
    --ink: #222222;
    --text: #555555;
    --muted: #777777;
    --line: #dcdcdc;
    --nav-bg: #f0f0f0;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text);
    border-top: 4px solid var(--blue);
}
a { color: var(--ink); text-decoration: none; transition: color .3s; }
a:hover { color: var(--brand); }
.link-blue { color: var(--blue); }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: 'Open Sans', Arial, sans-serif; color: var(--ink); }

/* ---------- Header ---------- */
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 14px 0; }
.logo img { height: 110px; width: auto; }
.header-contact { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.header-contact li { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.header-contact a { color: var(--text); }
.header-contact a.link-blue { color: var(--blue); }
.hc-icon {
    width: 28px; height: 28px; border: 2px solid var(--ink); display: grid; place-items: center;
    font-size: 13px; color: var(--ink); flex-shrink: 0;
}

.social-links { display: flex; gap: 4px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue);
    display: grid; place-items: center; color: var(--ink); font-size: 14px; transition: all .3s;
}
.social-links a:hover { background: var(--blue); color: #fff; }

/* ---------- Main nav ---------- */
.main-nav { background: var(--nav-bg); padding: 0; }
.main-nav .navbar-nav .nav-link {
    padding: 0 30px !important; line-height: 72px; color: var(--ink); font-weight: 600;
    text-transform: uppercase; font-size: 13px; transition: all .3s;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .show > .nav-link { background: var(--brand); color: #fff; }
.main-nav .dropdown-menu {
    border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 260px; background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.main-nav .dropdown-item {
    padding: 12px 20px; font-size: 13px; text-transform: uppercase; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid #eee;
}
.main-nav .dropdown-item:hover, .main-nav .dropdown-item.active { background: var(--brand); color: #fff; }
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; }
}
.main-nav .navbar-toggler {
    width: 100%; height: 50px; margin: 0; border: 0; border-radius: 0; background: var(--brand);
    color: #fff; text-transform: uppercase; font-size: 16px; font-weight: 600;
}
.main-nav .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .main-nav .container { padding: 0; max-width: 100%; }
    .main-nav .navbar-nav .nav-link { line-height: 46px; padding: 0 20px !important; border-bottom: 1px solid #e2e2e2; }
    .main-nav .dropdown-menu { box-shadow: none; }
    .main-nav .dropdown-item { padding-left: 36px; }
    .logo img { height: 80px; }
}

/* ---------- Home banner ---------- */
#homeBanners .carousel-item { height: 340px; background-size: cover; background-position: center; }
@media (min-width: 1400px) { #homeBanners .carousel-item { height: 420px; } }
@media (max-width: 767px) { #homeBanners .carousel-item { height: 220px; } }
.banner-text {
    position: absolute; top: 100px; left: 12px; background: rgba(0, 0, 0, .45);
    padding: 10px 18px; color: #fff; max-width: 90%;
}
.banner-text h4 { color: #fff; font-size: 26px; font-weight: 400; margin: 0; line-height: 1.2; }
.banner-text h2 { color: #fff; font-size: 36px; font-weight: 700; margin: 0; line-height: 1.25; }
@media (max-width: 767px) {
    .banner-text { top: 50px; }
    .banner-text h4 { font-size: 16px; }
    .banner-text h2 { font-size: 20px; }
}
.carousel-item.active .banner-text { animation: slideIn .8s both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.content-section { padding: 80px 0; }
.content-section + .content-section.pt-0 { padding-top: 0; }
@media (max-width: 767px) { .content-section { padding: 50px 0; } }

.section-title { text-align: center; text-transform: uppercase; margin-bottom: 30px; }
.section-title h3 { color: var(--blue); font-size: 24px; font-weight: 400; margin: 0 0 4px; }
.section-title h3 span { color: var(--brand); }
.section-title h5 { color: var(--ink); font-size: 13px; font-weight: 400; margin: 0; }

/* Square buttons (live site style) */
.btn-outline-dark-sq, .btn-outline-light-sq, .btn-brand-sq {
    border-radius: 0; text-transform: uppercase; font-size: 12px; line-height: 35px; padding: 0 17px; transition: all .3s;
}
.btn-outline-dark-sq { border: 2px solid var(--ink); color: #555; background: transparent; }
.btn-outline-dark-sq:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline-light-sq { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-light-sq:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn-brand-sq { background: var(--brand); border: 0; color: #fff; line-height: 50px; padding: 0 35px; font-size: 13px; }
.btn-brand-sq:hover, .btn-brand-sq:focus { background: var(--ink); color: #fff; }

/* Home product cards */
.product { text-align: center; }
.product .product-img { display: block; overflow: hidden; }
.product .product-img img { width: 100%; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.05); }
.product h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; margin: 20px 0 15px; }
.product h5 a { color: var(--ink); }
.product h5 a:hover { color: var(--brand); }

/* Testimonials */
#testimonialTabs { background: url('/images/testimonial/bg.png') repeat 0 0; }
.testi-nav { list-style: none; padding: 0; margin: 0 0 22px; display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.testi-nav button { position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.testi-nav img { width: 55px; height: 55px; border-radius: 50%; transition: all .3s; filter: grayscale(.2); }
.testi-nav button:not(.active)::after {
    content: "+"; position: absolute; right: -2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 13px; line-height: 15px; font-weight: 700;
}
.testi-nav button.active img { width: 100px; height: 100px; }
.testi-nav button.active::before {
    content: ""; position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%);
    border: 11px solid transparent; border-bottom-color: var(--line); z-index: 2;
}
.testi-nav button.active::after {
    content: ""; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
    border: 10px solid transparent; border-bottom-color: #fff; z-index: 3;
}
.testi-text { background: #fff; border: 1px solid var(--line); padding: 20px 25px; text-align: center; color: var(--muted); }
.testi-text h5 { color: var(--brand); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }

/* Bring ideas band */
.bring-ideas { background: var(--brand); color: #fff; padding: 50px 0; }
.bring-ideas h3 { color: #fff; font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 0 0 4px; }
.bring-ideas p { margin: 0; font-weight: 600; }

/* Home gallery strip */
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; display: block; transition: transform .5s; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(164, 19, 108, .85); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: opacity .35s;
}
.gallery-overlay h4 { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0; }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-within .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- Inner page banner ---------- */
.page-cover { height: 200px; background: url('/images/pageCover.png') no-repeat center / cover; }
@media (max-width: 767px) { .page-cover { height: 120px; } }
.page-title { background: var(--brand); color: #fff; padding: 12px 0; }
.page-title h1 { color: #fff; font-size: 18px; font-weight: 400; text-transform: uppercase; margin: 0; line-height: 26px; }
.page-title .breadcrumb { font-size: 13px; text-transform: uppercase; }
.page-title .breadcrumb-item, .page-title .breadcrumb-item a, .page-title .breadcrumb-item.active { color: #fff; }
.page-title .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: #fff; }

/* About - vision / mission */
.service-box { position: relative; }
.service-box img { width: 100%; display: block; }
.service-box h4 {
    background: var(--blue); color: #fff; font-size: 15px; font-weight: 400; margin: 0; padding: 10px 15px;
}

/* Product / gallery tiles */
.category-intro { margin-bottom: 40px; }
.product-tile { text-align: center; }
.tile-img { display: block; position: relative; border: 1px solid var(--line); padding: 10px; background: #fff; }
.tile-img img { width: 100%; display: block; }
.tile-overlay {
    position: absolute; inset: 10px; background: rgba(164, 19, 108, .6); display: grid; place-items: center;
    opacity: 0; transition: opacity .3s;
}
.tile-zoom {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand);
    display: grid; place-items: center; font-size: 18px;
}
.tile-img:hover .tile-overlay { opacity: 1; }
.product-tile h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; margin: 15px 0 0; }

/* ---------- Contact ---------- */
.block-title {
    color: var(--blue); font-size: 18px; font-weight: 400; text-transform: uppercase;
    padding-bottom: 15px; margin-bottom: 25px; border-bottom: 2px solid var(--line);
}
.block-title span { color: var(--brand); }
.contact-form .form-label { color: var(--ink); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.contact-form .req { color: var(--ink); }
.contact-form .form-control { border-radius: 0; border-color: var(--line); padding: 10px 12px; }
.contact-form .form-control:focus { border-color: var(--brand); box-shadow: none; }
.contact-form .input-validation-error { border-color: #dc3545; }
.char-count { color: var(--ink); font-size: 13px; }
.validation-summary-valid { display: none; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 22px; font-size: 13px; }
.ci-icon {
    width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
    display: grid; place-items: center; flex-shrink: 0; font-size: 14px;
}
.contact-info h5 { color: var(--blue); font-size: 14px; font-weight: 400; text-transform: uppercase; margin: 6px 0 6px; }
.contact-info strong { color: var(--ink); }
.contact-info a { color: var(--text); }
.contact-info a.link-blue { color: var(--blue); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: url('/images/footer.png') no-repeat center 0 / cover; color: #fff; }
.top-footer { background: rgba(0, 0, 0, .75); padding: 40px 0 35px; }
.footer-logo { max-width: 100%; width: 520px; margin-bottom: 12px; }
.footer-address { display: flex; gap: 12px; font-size: 13px; }
.footer-address i { font-size: 16px; }
.site-footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 8px; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { color: #ffb3dd; }
.copy-right { background: #000; color: #fff; text-align: center; padding: 19px 15px; font-size: 13px; }
.copy-right a { color: #fff; }
.copy-right a:hover { color: #ffb3dd; }

/* ---------- Floating buttons ---------- */
.back-to-top, .whatsapp-float {
    position: fixed; right: 20px; width: 44px; height: 44px; display: grid; place-items: center;
    color: #fff; z-index: 1030; transition: opacity .3s;
}
.back-to-top { bottom: 20px; background: var(--brand); opacity: 0; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; background: var(--ink); }
.whatsapp-float { bottom: 74px; border-radius: 50%; background: #25d366; font-size: 1.4rem; }
.whatsapp-float:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 92vw; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
