/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fb;
    color: #111827;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
}

/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15,23,42,0.05);
}

/* LEFT */

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* BACK BUTTON */

.back-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

    .back-btn:hover {
        background: #e2e8f0;
        transform: translateX(-3px);
    }

    .back-btn i {
        color: #111827;
        font-size: 16px;
    }

/* PROFILE */

.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
    background: #fff;
}

.profile-content {
    display: flex;
    flex-direction: column;
}

.business-name {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* META */

.business-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rating-box {
    background: #16a34a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.review-count,
.location-text {
    color: #64748b;
    font-size: 14px;
}

/* RIGHT */

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* TOP BUTTON */

.top-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(15,23,42,0.06);
}

    .top-btn:hover {
        transform: translateY(-3px);
    }

.top-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PROFILE BUTTON */

.profile-top-btn {
    background: #eef2ff;
    color: #4f46e5;
}

/* WEBSITE BUTTON */

.website-top-btn {
    background: #e8f8ee;
    color: #16a34a;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.main-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    max-width: 1450px;
    margin: auto;
    padding: 30px;
    align-items: flex-start;
}

/* FORM SIDE */

.right-sidebar {
    width: 370px;
    flex-shrink: 0;
}

/* CONTENT SIDE */

.left-content {
    flex: 1;
    min-width: 0;
}

/* STICKY */

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15,23,42,0.07);
}

/* TITLE */

.blog-title {
    font-size: 44px;
    line-height: 1.3;
    font-weight: 800;
    padding: 38px 38px 18px;
    color: #0f172a;
}

/* IMAGE */

.blog-image {
    width: 100%;
    display: block;
}

/* META */

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 38px;
    border-bottom: 1px solid #e5e7eb;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

/* SHARE */

.share-icons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

    .share-btn:hover {
        transform: translateY(-4px);
        background: #e2e8f0;
    }

/* CONTENT */

.blog-content {
    padding: 38px;
}

    .blog-content p {
        font-size: 18px;
        line-height: 2;
        color: #475569;
        margin-bottom: 25px;
    }

    .blog-content h2 {
        font-size: 34px;
        margin-top: 40px;
        margin-bottom: 18px;
        color: #0f172a;
    }

/* =========================================
   CONTACT CARD
========================================= */

.contact-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15,23,42,0.08);
}

    .contact-card h3 {
        font-size: 30px;
        margin-bottom: 10px;
        color: #0f172a;
    }

    .contact-card p {
        color: #64748b;
        line-height: 1.8;
        margin-bottom: 28px;
    }

/* FORM */

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        border: none;
        background: #f8fafc;
        padding: 16px;
        border-radius: 14px;
        font-size: 15px;
        border: 2px solid transparent;
        transition: 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #4f46e5;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
        }

/* SUBMIT */

.submit-btn {
    width: 100%;
    border: none;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

    .submit-btn:hover {
        transform: translateY(-3px);
    }

/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions {
    position: fixed;
    right: 30px;
    top: 220px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 999;
}

.quick-btn {
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    .quick-btn:hover {
        transform: translateX(-6px);
    }

    .quick-btn i {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: rgba(255,255,255,0.75);
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* COLORS */

.call-btn {
    background: #e8f8ee;
    color: #16a34a;
}

.location-btn {
    background: #eef2ff;
    color: #4f46e5;
}

.save-btn {
    background: #fff1f2;
    color: #e11d48;
}

.share-profile-btn {
    background: #ecfeff;
    color: #0891b2;
}

.services-btn {
    background: #fff7ed;
    color: #ea580c;
}

/* =========================================
   MOBILE CALL BUTTON
========================================= */

.mobile-call-bar {
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 99999;
    display: none;
}

.mobile-call-btn {
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(34,197,94,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseCall 1.8s infinite;
}

@keyframes pulseCall {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px) {

    .main-layout {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

@media(max-width:992px) {

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px;
    }

    .header-right {
        display: flex;
        width: 100%;
        gap: 12px;
    }

    .main-layout {
        padding: 15px;
        gap: 20px;
    }

    .quick-actions {
        display: none;
    }

    .mobile-call-bar {
        display: block;
    }

    .blog-title {
        font-size: 32px;
        padding: 25px 20px 15px;
    }

    .blog-content {
        padding: 22px;
    }

        .blog-content h2 {
            font-size: 24px;
        }

        .blog-content p {
            font-size: 15px;
            line-height: 1.9;
        }

    .blog-meta {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .contact-card {
        padding: 22px;
    }

    .business-name {
        font-size: 18px;
    }

    .review-count,
    .location-text {
        font-size: 13px;
    }

    .top-btn {
        flex: 1;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
        border-radius: 14px;
    }

        .top-btn span {
            white-space: nowrap;
        }

    .top-btn-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media(max-width:580px) {

    .profile-wrapper {
        align-items: flex-start;
    }

    .business-name {
        font-size: 17px;
    }

    .blog-title {
        font-size: 26px;
    }

    .profile-logo {
        width: 52px;
        height: 52px;
    }

    .back-btn {
        width: 42px;
        height: 42px;
    }
}
