/* ==========================================================================
   Swaddle Nepal S.A. - Comprehensive Design & Grid Stylesheet
   Fixes container bleeding, column grids, header alignment & footer styling
   ========================================================================== */

/* 1. Global Reset & Body Background */
body {
    background-color: #eef2ef !important;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #334d5c;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Force container backgrounds */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* 2. Full 12-Column Grid System (Fixes missing col-md-3, col-md-2, col-md-5, col-md-7, etc.) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    box-sizing: border-box;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* 3. Top Bar (Crisp dark bar) */
.top-bar-swaddle {
    background: #15222c !important;
    color: #a3c2d6 !important;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid #319966;
    width: 100%;
}
.top-bar-swaddle .container {
    background-color: transparent !important;
}
.top-bar-swaddle a {
    color: #55cca2 !important;
    text-decoration: none;
    margin-right: 15px;
}
.top-bar-swaddle a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
.top-bar-swaddle .cuit-badge {
    background: rgba(49, 153, 102, 0.3);
    border: 1px solid #55cca2;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
}

/* 4. Main Navigation Bar (Clean, dark glass header) */
.swaddle-main-header {
    background: #1a2a36;
    border-bottom: 3px solid #319966;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1010;
}
.swaddle-main-header .container {
    background-color: transparent !important;
    padding-top: 12px;
    padding-bottom: 12px;
}
.swaddle-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.swaddle-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.swaddle-brand img {
    height: 48px;
    width: auto;
}
.swaddle-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.swaddle-nav-item {
    margin: 0 2px;
}
.swaddle-nav-link {
    display: inline-block;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.swaddle-nav-link:hover,
.swaddle-nav-link.active {
    color: #55cca2 !important;
    background: rgba(49, 153, 102, 0.2);
}
.swaddle-nav-link.btn-reserve {
    background: #319966 !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 8px 18px;
    margin-left: 8px;
    border: 1px solid #55cca2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.swaddle-nav-link.btn-reserve:hover {
    background: #23734c !important;
    color: #ffffff !important;
}

/* 5. Hero Banner Container */
.swaddle-hero-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-image: url(../img/simple-house-01.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swaddle-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 27, 36, 0.75) 0%, rgba(15, 27, 36, 0.45) 50%, rgba(15, 27, 36, 0.8) 100%);
}
.swaddle-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 40px 20px;
    max-width: 850px;
}
.swaddle-hero-tag {
    display: inline-block;
    background: rgba(49, 153, 102, 0.85);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.4);
}
.swaddle-hero-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.swaddle-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #e4f0ec;
    margin: 0 auto 25px auto;
    max-width: 720px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Main Content Wrapper */
.swaddle-main-wrapper {
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    margin-top: 0;
    margin-bottom: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
}

/* 6. Breadcrumbs & Subpage Hero Headers */
.page-hero-header-swaddle {
    background: linear-gradient(135deg, #1c2e3d, #254055);
    border-left: 6px solid #319966;
    padding: 35px 30px;
    margin-bottom: 35px;
    border-radius: 6px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.page-hero-header-swaddle h1 {
    font-size: 30px;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.page-hero-header-swaddle p {
    font-size: 15px;
    color: #c9e2f2;
    line-height: 1.6;
    margin: 0;
}
.breadcrumb-swaddle {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #55cca2;
}
.breadcrumb-swaddle li {
    display: inline;
}
.breadcrumb-swaddle li+li:before {
    content: " / ";
    padding: 0 6px;
    color: #89b3cc;
}
.breadcrumb-swaddle a {
    color: #ffffff;
    text-decoration: none;
}
.breadcrumb-swaddle a:hover {
    color: #55cca2;
    text-decoration: underline;
}

/* 7. Gallery Tabs & Cards */
.tm-paging-links {
    text-align: center;
    margin: 30px 0 40px 0;
}
.tm-paging-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #f0f7f3;
    padding: 6px;
    border-radius: 30px;
    border: 1px solid #d4e8dd;
}
.tm-paging-item {
    margin: 2px 4px;
}
.tm-paging-link {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none !important;
    border-radius: 24px;
    transition: all 0.25s ease;
}
.tm-paging-link:hover {
    color: #1e7048;
}
.tm-paging-link.active {
    background: #319966;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(49,153,102,0.3);
}

.tm-gallery {
    margin-bottom: 50px;
}
.tm-gallery-page {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.tm-gallery-item {
    margin-bottom: 30px;
}
.tm-gallery-card {
    background: #ffffff;
    border: 1px solid #e2ece6;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tm-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.tm-gallery-img-wrap {
    height: 200px;
    width: 100%;
    overflow: hidden;
}
.tm-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tm-gallery-card:hover .tm-gallery-img-wrap img {
    transform: scale(1.05);
}
.tm-gallery-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tm-gallery-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e7048;
    margin: 0 0 8px 0;
}
.tm-gallery-description {
    font-size: 13px;
    color: #557088;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}
.tm-gallery-price-tag {
    font-size: 13px;
    font-weight: 700;
    color: #319966;
    background: #f0f8f4;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

/* 8. Botanical Badges & Cards */
.badge-botanical {
    display: inline-block;
    background: #eaf6ef;
    color: #1e7048;
    border: 1px solid #c2e5d0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-botanical {
    background: #ffffff;
    border: 1px solid #e2ece6;
    border-radius: 6px;
    padding: 26px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-botanical:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(49,153,102,0.12);
}
.card-botanical h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}

/* 9. Interactive Simulator Container */
.simulator-box-swaddle {
    background: #fbfdfc;
    border: 1px solid #dbeae0;
    border-radius: 8px;
    padding: 35px 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.pairing-result-card {
    background: #ffffff;
    border: 1px solid #cce5d6;
    border-left: 5px solid #319966;
    border-radius: 4px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pairing-title {
    font-size: 19px;
    font-weight: 700;
    color: #1f6b45;
    margin-bottom: 6px;
}

/* 10. Corporate Rich Footer (Fixes bleached white background) */
.footer-swaddle-rich {
    background: #15222c !important;
    color: #b2cddf !important;
    padding: 55px 0 35px 0 !important;
    margin-top: 50px;
    border-top: 4px solid #319966;
    width: 100%;
}
.footer-swaddle-rich .container {
    background-color: transparent !important;
}
.footer-swaddle-rich h4 {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #319966;
    display: inline-block;
    padding-bottom: 6px;
}
.footer-swaddle-rich ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-swaddle-rich ul li {
    margin-bottom: 10px;
    font-size: 13.5px;
}
.footer-swaddle-rich ul li a {
    color: #9bbcd2 !important;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-swaddle-rich ul li a:hover {
    color: #55cca2 !important;
    text-decoration: underline;
}
.footer-bottom-swaddle {
    background: #0c151c !important;
    padding: 20px 0 !important;
    font-size: 13px;
    color: #728d9f !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}
.footer-bottom-swaddle .container {
    background-color: transparent !important;
}
.footer-bottom-swaddle a {
    color: #55cca2 !important;
    text-decoration: none;
}
.footer-bottom-swaddle a:hover {
    text-decoration: underline;
}

/* 11. Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
}
.modal.in, .modal.show {
    display: block !important;
}
.modal-dialog {
    position: relative;
    width: auto;
    max-width: 600px;
    margin: 50px auto;
    z-index: 1060;
}
.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.modal-swaddle-header {
    background: #1f6b45;
    color: #ffffff;
    padding: 20px 25px;
}
.modal-swaddle-header h4 {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    font-size: 18px;
}
.modal-body {
    padding: 25px;
    background: #fafdfc;
}
.close {
    float: right;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.8;
    background: none;
    border: none;
    cursor: pointer;
}
.close:hover { opacity: 1; }

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #334d5c;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #319966;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49,153,102,0.15);
}
.form-group { margin-bottom: 16px; }
.hidden { display: none !important; }

/* 12. Floating WhatsApp Reservation Button */
.floating-reserve-swaddle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.btn-float-reserve {
    background: #319966;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    border: 2px solid #ffffff;
    text-decoration: none !important;
    transition: transform 0.2s, background-color 0.2s;
}
.btn-float-reserve:hover {
    background: #23734c;
    transform: translateY(-2px);
}

/* 13. Responsive Navigation Tweaks */
@media (max-width: 991px) {
    .swaddle-navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .swaddle-nav-menu {
        margin-top: 12px;
        width: 100%;
    }
    .swaddle-nav-item {
        margin: 4px 0;
    }
    .swaddle-nav-link {
        padding: 6px 10px;
        font-size: 12.5px;
    }
    .swaddle-hero-title {
        font-size: 28px;
    }
}

/* 14. Team & Person Cards (Fix flex blowout and column squashing) */
.tm-person {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #dce8e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    height: 100% !important;
}

.tm-person img.tm-person-img {
    width: 100% !important;
    height: 290px !important;
    max-height: 290px !important;
    object-fit: cover !important;
    object-position: top center !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.tm-person-description,
.tm-person-body {
    padding: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.tm-person-name {
    color: #1a2a36 !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 8px 0 4px 0 !important;
}

.tm-person-title {
    color: #319966 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.tm-person-about {
    color: #557088 !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 15px !important;
}
