/* 
 * LAVDIN REBORN - Light Premium Simplified
 * Enforced 5px Radius | High Contrast | Clean Animations
 */

:root {
    /* Color Palette */
    --accent-primary: #2563eb;
    --accent-hover: #2563eb;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-deep: #f8fafc;
    --bg-surface: #ffffff;
    --border-light: rgba(15, 23, 42, 0.08);

    /* Layout */
    --radius-lg: 3px;
    --radius-md: 3px;
    --radius-sm: 3px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Base */
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Utilities */
.text-main {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-accent {
    color: var(--accent-primary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   IntersectionObserver will add .active class
   ============================================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-delay-100 {
    transition-delay: 0.1s !important;
}

.animate-delay-200 {
    transition-delay: 0.2s !important;
}

.animate-delay-300 {
    transition-delay: 0.3s !important;
}

.animate-delay-400 {
    transition-delay: 0.4s !important;
}

.animate-delay-500 {
    transition-delay: 0.5s !important;
}

/* Glass & Surface */
.glass-reborn {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-reborn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 3px !important;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    gap: 8px;
    cursor: pointer;
}

.btn-reborn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-reborn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-reborn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary) !important;
}

.btn-reborn-outline:hover {
    background: var(--accent-primary);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Glass Buttons for Hero */
.btn-dark-glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-dark-glass:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-dark-glass.is-favorite {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.btn-dark-glass.is-favorite:hover {
    background: rgba(239, 68, 68, 0.35);
}

/* Hero */
.hero-reborn,
.tenant-hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--bg-deep);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0, transparent 50%);
    z-index: 0;
}

.text-balance {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: inherit;
}

/* ============================================================
   HERO SECTION (Company Page)
   ============================================================ */
.company-hero-premium {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .company-hero-premium {
        height: 100vh;
        min-height: 100svh;
        /* Support for mobile browser bars */
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1);
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content-premium {
    position: relative;
    z-index: 10;
    color: #ffffff;
}

.company-logo-large {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.company-logo-large img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 3px;
    padding: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
}

.stat-item-premium {
    text-align: center;
}

.stat-value-premium {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label-premium {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-top: 4px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .stats-strip-premium {
        padding: 20px 10px;
        margin-top: -40px;
    }

    .stat-value-premium {
        font-size: 1.5rem;
    }

    .stat-label-premium {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

/* ============================================================
   PREMIUM SERVICES NAVIGATION
   ============================================================ */
.services-nav-premium {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    gap: 16px;
    background: #ffffff;
    padding: 16px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-small);
}

@media (max-width: 768px) {
    .services-nav-premium {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: transparent;
        box-shadow: none;
        border: none;
    }
}

.search-container-premium {
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .search-container-premium {
        width: 100%;
        margin-bottom: 12px;
    }
}

.search-input-premium {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 46px;
    background: var(--bg-deep);
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.search-input-premium:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-icon-premium {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input-premium:focus+.search-icon-premium {
    color: var(--accent-primary);
}

.categories-wrapper-premium {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.categories-inner-premium {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-inner-premium::-webkit-scrollbar {
    display: none;
}

.nav-link-pill {
    white-space: nowrap;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-link-pill:hover {
    background: var(--bg-deep);
    color: var(--text-main);
}

.nav-link-pill.active {
    background: var(--accent-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.admin-actions-premium {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
}

.btn-manage-premium {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    color: var(--text-muted);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-manage-premium:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* ============================================================
   SERVICE ROWS
   ============================================================ */
.services-list {
    min-height: 50px;
}

.service-row-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-small);
}

.service-row-premium:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.service-row-premium.hidden-by-search {
    display: none;
}

.service-info-premium {
    min-width: 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-right: 16px;
}

.service-info-premium h5 {
    margin-bottom: 5px;
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.98rem;
}

.service-meta-premium {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.service-price-premium {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 1.15rem;
    margin-left: 1rem;
}

/* ============================================================
   SIDEBAR INFO CARDS
   ============================================================ */
.info-card-premium {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    padding: 28px;
    box-shadow: var(--shadow-premium);
}

.business-hour-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-light);
}

.business-hour-row:last-child {
    border-bottom: none;
}

.business-hour-row.is-today {
    color: var(--accent-primary);
    font-weight: 700;
}

.social-pill {
    width: 40px;
    height: 40px;
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.social-pill:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.25);
}

/* ============================================================
   REVIEWS — LOAD MORE
   ============================================================ */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    background: #fff;
    border: 1px dashed var(--border-light);
    border-radius: 3px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.load-more-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.04);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   IMAGES & ROUNDED
   ============================================================ */
.rounded-premium {
    border-radius: 3px !important;
}

.shadow-premium {
    box-shadow: var(--shadow-premium) !important;
}

/* ============================================================
   MOBILE FLOATING CTA
   ============================================================ */
.mobile-cta-float,
.pm-float-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 990;
    width: calc(100% - 40px);
    max-width: 400px;
    animation: slide-up-cta 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

@keyframes slide-up-cta {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 767px) {

    .mobile-cta-float,
    .pm-float-cta {
        display: flex !important;
    }

    .mobile-cta-float.hidden,
    .pm-float-cta.hidden {
        display: none !important;
    }
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-ui {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.floating-animation {
    animation: float-ui 4s ease-in-out infinite;
}

/* ============================================================
   SHOWCASE & TEAM CARDS (Reborn)
   ============================================================ */
.showcase-card-reborn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.showcase-card-reborn:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

.team-card-reborn {
    padding: 24px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-small);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.team-card-reborn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.team-avatar-wrap {
    width: 100px;
    height: 100px;
    border-radius: 3px;
    padding: 4px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.team-card-reborn:hover .team-avatar-wrap {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Extra small text */
.extra-small {
    font-size: 0.78rem;
}

/* ============================================================
   GALLERY & LIGHTBOX (Compact Reborn)
   ============================================================ */
.compact-gallery-item {
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
}

.compact-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

.compact-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.compact-lightbox.active {
    display: flex;
    opacity: 1;
}

.cl-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    text-align: center;
}

.cl-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.12);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.compact-lightbox.active .cl-img {
    transform: scale(1);
}

.cl-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    width: 44px;
    height: 44px;
    border-radius: 3px;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-small);
}

.cl-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

.cl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-light);
    width: 50px;
    height: 50px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-small);
    transition: all 0.2s ease;
    z-index: 10;
}

.cl-nav:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.cl-prev {
    left: 20px;
}

.cl-next {
    right: 20px;
}

@media (max-width: 991px) {
    .cl-prev {
        left: 10px;
    }

    .cl-next {
        right: 10px;
    }

    .cl-close {
        top: 10px;
        right: 10px;
    }

    .cl-nav {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.8);
    }
}

.cl-caption {
    margin-top: 20px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

/* ============================================================
   MOBILE: Service Row Stacking
   ============================================================ */
@media (max-width: 575px) {
    .service-row-premium {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 14px;
        padding: 20px;
    }

    .service-row-premium .flex-shrink-0 {
        width: 100%;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .service-row-premium .flex-shrink-0 a,
    .service-row-premium .flex-shrink-0 button {
        flex: 1;
        min-width: 0 !important;
    }

    .service-info-premium {
        padding-right: 0;
    }

    .service-price-premium {
        font-size: 1rem;
        margin-left: 0;
    }
}