/* ============================================================
   Sleep Fit Mattress — MAIN STYLESHEET
   ============================================================ */

:root {
    --color-primary: #0B5ED7;
    --color-primary-dark: #094aad;
    --color-secondary: #1F2937;
    --color-accent: #F59E0B;
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;
    --color-muted: #64748B;
    --color-border: #E2E8F0;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.14);

    --transition-base: all 0.3s ease;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-bg);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.section-padding {
    padding: 90px 0;
}

@media (max-width: 767px) {
    .section-padding { padding: 60px 0; }
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(11, 94, 215, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn-primary-brand {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    transition: var(--transition-base);
}
.btn-primary-brand:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent-brand {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #1F2937;
    font-weight: 600;
    transition: var(--transition-base);
}
.btn-accent-brand:hover {
    background-color: #d98708;
    border-color: #d98708;
    color: #1F2937;
    transform: translateY(-2px);
}

.btn-outline-brand {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    background: transparent;
}
.btn-outline-brand:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- Navbar ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-secondary) !important;
}

.brand-icon {
    color: var(--color-primary);
    font-size: 1.4rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-secondary);
    padding: 0.6rem 1rem !important;
    position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(120deg, #0B5ED7 0%, #094aad 100%);
    overflow: hidden;
    padding: 110px 0 130px;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 50%;
    filter: blur(10px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.hero-badges {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-badge-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.hero-badge-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-image-wrap {
    position: relative;
    z-index: 2;
}

.hero-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.hero-float-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-secondary);
}

.hero-float-card i {
    color: var(--color-accent);
    font-size: 1.6rem;
}

/* ---------- Why Choose Us ---------- */
.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(11, 94, 215, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(11, 94, 215, 0.15);
}

.feature-card:hover .feature-icon-box {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- Product Cards ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-accent);
    color: #1F2937;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}

.product-card-body {
    padding: 24px;
}

.product-card-cat {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-size: 1.2rem;
    margin: 8px 0 10px;
}

.product-card-desc {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* ---------- Category Cards ---------- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 260px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,41,55,0) 30%, rgba(31,41,55,0.85) 100%);
    z-index: 1;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
}

.category-card-body {
    position: relative;
    z-index: 2;
    padding: 22px;
    color: #fff;
}

.category-card-body h5 {
    color: #fff;
    margin-bottom: 4px;
}

.category-card-body span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* ---------- Process Steps ---------- */
.process-step {
    text-align: center;
    padding: 20px;
}

.process-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step:hover .process-num {
    background: var(--color-primary);
}

/* ---------- Gallery ---------- */
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.testimonial-stars {
    color: var(--color-accent);
    margin-bottom: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
    border: none;
    margin-bottom: 14px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.accordion-button {
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--color-secondary);
}

.accordion-button:not(.collapsed) {
    background: rgba(11, 94, 215, 0.06);
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ---------- CTA Strip ---------- */
.cta-strip {
    background: var(--color-secondary);
    padding: 46px 0;
    color: #fff;
}

.cta-strip-title {
    color: #fff;
    font-size: 1.5rem;
}

.cta-strip-text {
    color: rgba(255,255,255,0.75);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #16202e;
    color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
}

.footer-contact i {
    color: var(--color-accent);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--color-primary);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.small-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999;
    animation: pulse 2.2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--color-primary);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
    background: linear-gradient(120deg, #0B5ED7 0%, #094aad 100%);
    padding: 70px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 50%;
}

.page-header h1 {
    color: #fff;
    font-size: 2.4rem;
}

.breadcrumb-custom a {
    color: rgba(255,255,255,0.75);
}

.breadcrumb-custom .active {
    color: #fff;
}

/* ---------- About Page ---------- */
.about-img-stack {
    position: relative;
}

.about-img-stack img.img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.about-img-stack img.img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-md);
    border: 6px solid #fff;
    box-shadow: var(--shadow-hover);
}

.value-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 4px solid #dbeafe;
}

.timeline-year {
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-display);
}

/* ---------- Stats Strip ---------- */
.stat-box {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ---------- Product Detail Page ---------- */
.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 440px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.product-gallery-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
    border-color: var(--color-primary);
}

.product-detail-title {
    font-size: 2rem;
}

.product-meta-badges .badge {
    background: rgba(11, 94, 215, 0.08);
    color: var(--color-primary);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 50px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.spec-table {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.spec-table th {
    background: var(--color-bg);
    width: 40%;
    color: var(--color-secondary);
}

.detail-feature-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-feature-list li:last-child {
    border-bottom: none;
}

.detail-feature-list i {
    color: var(--color-primary);
    margin-top: 4px;
}

.enquiry-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    text-align: center;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ---------- Filter Pills ---------- */
.filter-pills .btn {
    border-radius: 50px;
    margin: 0 6px 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Animations ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.3rem; }
    .about-img-stack img.img-secondary { display: none; }
    .enquiry-box { position: static; }
}
