/*
    _components.css
    Reusable components like buttons, cards, and navigation.
*/

/* --- Header Re-design (Apple Glass) --- */
/* Conflict removed - Header logic consolidated in main.css */
/* header,
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    padding: 1rem 0;
} */

.header.scrolled,
.header-scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

/* Nav Links */
.nav-link {
    position: relative;
    color: var(--color-text-primary);
    font-family: var(--font-ui);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

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

.nav-link.active::after {
    width: 60%;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: block;
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--color-text-primary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
}

.mobile-nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(255, 122, 0, 0.05);
    border-radius: var(--radius-sm);
}


/* --- Buttons (Premium Apple Pill Style) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 980px;
    font-family: var(--font-ui);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.15);
}

#quoteBtn {
    padding: 0.6rem 1.5rem;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#quoteBtn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.podcast-btn {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.podcast-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* --- Cards --- */
/* Base Card Component */
.card {
    background: var(--color-surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

/* Card Variations (inherit from .card) */
/* .service-card, .blog-card, .pricing-card, .branding-package-card, .team-card, .stat-card, .process-step, .portfolio-item {
    background: var(--color-surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover, .blog-card:hover, .pricing-card:hover, .branding-package-card:hover, .team-card:hover, .stat-card:hover, .process-step:hover, .portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
} */
.service-card,
.blog-card,
.pricing-card,
.branding-package-card,
.team-card,
.stat-card,
.process-step,
.portfolio-item {
    background: var(--color-surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.service-card:hover,
.blog-card:hover,
.pricing-card:hover,
.branding-package-card:hover,
.team-card:hover,
.stat-card:hover,
.process-step:hover,
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

/* Specific Card Overrides */
.portfolio-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.process-step {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
}

.team-card img,
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;

}

.team-card img {
    height: 250px;
}

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

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(255, 111, 0, 0.1);
    color: #ff6f00;
}

.badge-secondary {
    background: rgba(31, 41, 55, 0.1);
    color: var(--color-grey);
}

/* --- Pagination --- */
.pagination-link {
    transition: all 0.3s ease;
}

.pagination-link:hover {
    transform: scale(1.1);
}

.pagination-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* --- Animations & Utilities --- */
.pulse-border {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.custom-checkbox {
    appearance: none;
    /* Remove default checkbox */
    -webkit-appearance: none;
    /* For Safari */
    -moz-appearance: none;
    /* For Firefox */
    width: 20px;
    height: 20px;
    border: 2px solid var(--orange-400);
    border-radius: 50%;
    /* Makes it rounded */
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.custom-checkbox:checked {
    background-color: var(--gradient-primary);
    /* Filled color when checked */
    border-color: var(--color-primary);
}

.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    /* right: 3px; */
    /* down: 3px; */
    left: 4px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* Map Control Buttons */
.btn-control {
    padding: 0.5rem 0.75rem;
    /* px-3 py-2 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    /* font-medium */
    background-color: var(--color-primary);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-control:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* --- Custom Service Cards (Pricing Page) --- */
.custom-service-card {
    background-color: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-secondary);
}

.custom-service-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.custom-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--orange-400);
}

/* Style for when the hidden checkbox is checked */
.peer:checked~.card-content {
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.75rem;
}

/* Reviews Scrolling Marquee */
.reviews-marquee {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: var(--color-bg);
}

.reviews-marquee::before,
.reviews-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.reviews-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.reviews-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.reviews-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: scroll-right 80s linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.review-card {
    flex-shrink: 0;
    width: 400px;
    margin: 0 15px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    white-space: normal;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.review-stars {
    color: #ffb800;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.review-text {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
}

.author-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.author-role {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}