/********** MALAR STUDIOS - Modern Photography Template CSS **********/

:root {
    --primary: #a4115c;       /* Malar Studios Magenta / Deep Berry */
    --secondary: #003ba5;     /* Royal Blue */
    --accent: #945e00;        /* Warm Gold / Ochre */
    --dark: #00242e;          /* Deep Teal / Dark Navy */
    --light: #fdfbf7;         /* Soft Off-White */
    --gray-bg: #f8fafc;       /* Light Gray Background */
    --text-dark: #1a1a1a;     /* Deep Black for readability */
    --text-muted: #555555;

    --bs-primary: #a4115c;
    --bs-secondary: #003ba5;
    --bs-light: #fdfbf7;
    --bs-dark: #00242e;

    --bs-primary-rgb: 164, 17, 92;
    --bs-secondary-rgb: 0, 59, 165;
    --bs-light-rgb: 253, 251, 247;
    --bs-dark-rgb: 0, 36, 46;
}

/* Base Styles & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
}

p {
    color: #333333;
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Color Utility Classes */
.text-primary-brand {
    color: var(--primary) !important;
}

.text-secondary-brand {
    color: var(--secondary) !important;
}

.text-accent-brand {
    color: var(--accent) !important;
}

.text-dark-brand {
    color: var(--dark) !important;
}

.bg-primary-brand {
    background-color: var(--primary) !important;
}

.bg-secondary-brand {
    background-color: var(--secondary) !important;
}

.bg-accent-brand {
    background-color: var(--accent) !important;
}

.bg-dark-brand {
    background-color: var(--dark) !important;
}

.bg-soft-gray {
    background-color: var(--gray-bg);
}

/* Custom Buttons */
.btn {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 600;
    border-radius: 50px;
}

.btn-primary-brand {
    background: var(--primary);
    color: #ffffff !important;
    border: 2px solid var(--primary);
}

.btn-primary-brand:hover {
    background: #870d4b;
    border-color: #870d4b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 17, 92, 0.35);
}

.btn-secondary-brand {
    background: var(--secondary);
    color: #ffffff !important;
    border: 2px solid var(--secondary);
}

.btn-secondary-brand:hover {
    background: #002c7c;
    border-color: #002c7c;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 59, 165, 0.35);
}

.btn-accent-brand {
    background: var(--accent);
    color: #ffffff !important;
    border: 2px solid var(--accent);
}

.btn-accent-brand:hover {
    background: #764b00;
    border-color: #764b00;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(148, 94, 0, 0.35);
}

.btn-outline-primary-brand {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-outline-primary-brand:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 17, 92, 0.3);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(164, 17, 92, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--dark);
    color: #ffffff;
    transform: translateY(-4px);
}

/* Floating Contact Buttons */
.floating-box {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    z-index: 9999;
}

.fab-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-btn.whatsapp {
    background: #25D366;
    color: #ffffff;
}

.fab-btn.call {
    background: var(--secondary);
    color: #ffffff;
}

.fab-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.sticky-top {
    top: 0;
    transition: .4s;
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 36, 46, 0.08);
}

.navbar {
    padding: 10px 0;
}

.custom-logo {
    max-height: 82px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.02);
}

.navbar .navbar-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--dark) !important;
    padding: 15px 18px !important;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

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

/* Carousel */
#header-carousel .carousel-item {
    height: 640px;
    background-color: #000;
}

#header-carousel .carousel-item img {
    object-fit: cover;
    opacity: 0.88;
}

.carousel-caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 36, 46, 0.5) 0%, rgba(164, 17, 92, 0.65) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    background: rgba(0, 36, 46, 0.7);
    border-radius: 50%;
    top: calc(50% - 28px);
    margin: 0 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(rgba(0, 36, 46, 0.85), rgba(164, 17, 92, 0.8)), url('../img/banner-wedding.jpg') center center no-repeat;
    background-size: cover;
    padding: 85px 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header .breadcrumb-item a:hover {
    color: #ffffff;
}

/* Section Subtitle / Eyebrow */
.section-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.section-eyebrow i {
    color: var(--accent);
}

/* Modern Card Styling */
.modern-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 36, 46, 0.08);
    box-shadow: 0 10px 30px rgba(0, 36, 46, 0.05);
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0, 36, 46, 0.12);
    border-color: rgba(164, 17, 92, 0.25);
}

/* Social Connect Card */
.social-connect-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    gap: 16px;
}

.social-connect-card .social-info {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.social-connect-card .social-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    margin-right: 16px;
}

.social-connect-card .social-text {
    min-width: 0;
}

.social-connect-card .social-text h5 {
    white-space: nowrap;
    margin-bottom: 2px;
}

.social-connect-card .social-text small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-connect-card .social-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .social-connect-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        gap: 14px;
    }
    
    .social-connect-card .social-btn {
        width: 100%;
        text-align: center;
    }
}

/* Service Box */
.service-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 28px;
    border: 1px solid #edf0f5;
    box-shadow: 0 10px 30px rgba(0, 36, 46, 0.04);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 36, 46, 0.12);
    border-color: rgba(164, 17, 92, 0.2);
}

.service-box:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(164, 17, 92, 0.1), rgba(0, 59, 165, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 22px;
    transition: all 0.35s ease;
}

.service-box:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
}

.service-image-header {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 14px 14px 0 0;
}

.service-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-box:hover .service-image-header img {
    transform: scale(1.08);
}

/* Service Header Wrap for Mobile Side-by-Side Icon & Title */
.service-header-wrap {
    display: block;
}

@media (max-width: 991.98px) {
    .service-box {
        padding: 24px 20px;
    }

    .service-header-wrap {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 12px;
    }

    .service-header-wrap .service-icon-wrapper {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
        border-radius: 14px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .service-header-wrap .service-title {
        margin-bottom: 0 !important;
        font-size: 1.25rem !important;
    }
}

/* Feature Badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(164, 17, 92, 0.08);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Gallery Showcase */
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 36, 46, 0.08);
    cursor: pointer;
    background: #000;
}

.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 36, 46, 0.92) 0%, rgba(164, 17, 92, 0.6) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: opacity 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(0, 36, 46, 0.08);
    box-shadow: 0 10px 30px rgba(0, 36, 46, 0.05);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 36, 46, 0.1);
    border-color: rgba(164, 17, 92, 0.2);
}

.testimonial-quote-icon {
    font-size: 38px;
    color: rgba(164, 17, 92, 0.2);
    margin-bottom: 12px;
}

.star-rating {
    color: #f59e0b;
    margin-bottom: 12px;
}

/* Stats Counter Box */
.stat-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #edf0f5;
    box-shadow: 0 6px 20px rgba(0, 36, 46, 0.04);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 5px;
}

/* Contact Info Item */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    box-shadow: 0 6px 20px rgba(0, 36, 46, 0.04);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(164, 17, 92, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    margin-right: 18px;
}

/* Special Highlight Card */
.special-shop-card {
    background: linear-gradient(135deg, var(--dark) 0%, #003645 100%);
    border-radius: 20px;
    color: #ffffff;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.special-shop-card::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(164, 17, 92, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer */
.footer {
    background-color: var(--dark) !important;
    color: #d1d5db;
    position: relative;
}

.footer h4 {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer a {
    color: #d1d5db;
}

.footer a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Footer Social Buttons with Real Brand Colors */
.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    color: #ffffff !important;
}

/* Facebook Real Color */
.footer-social-btn.btn-facebook,
.footer-social-btn[href*="facebook"] {
    background: #1877F2 !important;
}
.footer-social-btn.btn-facebook:hover,
.footer-social-btn[href*="facebook"]:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.5);
}

/* Instagram Real Color */
.footer-social-btn.btn-instagram,
.footer-social-btn[href*="instagram"] {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) !important;
}
.footer-social-btn.btn-instagram:hover,
.footer-social-btn[href*="instagram"]:hover {
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.5);
}

/* Google Maps Real Color */
.footer-social-btn.btn-maps,
.footer-social-btn[href*="maps"] {
    background: #EA4335 !important;
}
.footer-social-btn.btn-maps:hover,
.footer-social-btn[href*="maps"]:hover {
    box-shadow: 0 6px 16px rgba(234, 67, 53, 0.5);
}

/* WhatsApp Real Color */
.footer-social-btn.btn-whatsapp,
.footer-social-btn[href*="wa.me"] {
    background: #25D366 !important;
}
.footer-social-btn.btn-whatsapp:hover,
.footer-social-btn[href*="wa.me"]:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.copyright-bar {
    background-color: #00161d;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .custom-logo {
        max-height: 56px !important;
    }

    #header-carousel .carousel-item {
        height: 560px;
    }

    #header-carousel h1,
    #header-carousel h1.display-3 {
        font-size: 2.2rem !important;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        height: 540px !important;
    }

    #header-carousel .carousel-caption-overlay .container {
        padding-left: 45px !important;
        padding-right: 45px !important;
    }

    #header-carousel .badge {
        font-size: 0.78rem !important;
        padding: 5px 14px !important;
        margin-bottom: 12px !important;
        letter-spacing: 1px !important;
    }

    #header-carousel h1,
    #header-carousel h1.display-3 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }

    #header-carousel p,
    #header-carousel p.fs-5 {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
        max-width: 95% !important;
    }

    #header-carousel .btn,
    #header-carousel a.btn {
        padding: 10px 22px !important;
        font-size: 0.9rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 6px;
        background: rgba(0, 36, 46, 0.45);
        top: calc(50% - 18px);
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .custom-logo {
        max-height: 48px !important;
    }

    #header-carousel .carousel-item {
        height: 520px !important;
    }

    #header-carousel .carousel-caption-overlay .container {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    #header-carousel .badge {
        font-size: 0.72rem !important;
        padding: 4px 12px !important;
        margin-bottom: 10px !important;
    }

    #header-carousel h1,
    #header-carousel h1.display-3 {
        font-size: 1.42rem !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }

    #header-carousel p,
    #header-carousel p.fs-5 {
        font-size: 0.84rem !important;
        line-height: 1.4 !important;
        margin-bottom: 16px !important;
    }

    #header-carousel .btn,
    #header-carousel a.btn {
        padding: 9px 18px !important;
        font-size: 0.85rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        height: 32px;
        margin: 0 4px;
        background: rgba(0, 36, 46, 0.45);
        top: calc(50% - 16px);
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 12px !important;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .floating-box {
        right: 12px;
        bottom: 75px;
    }

    .fab-btn {
        width: 46px !important;
        height: 46px !important;
    }

    .gallery-card img {
        height: 220px;
    }
}