/* =====================================================
   TransUnion CRB — Luxury Dark Design System
   ===================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
    --primary:          #2255a4;
    --primary-light:    #3370cc;
    --gold:             #c9a84c;
    --gold-dim:         #9f7f2e;
    --gold-glow:        rgba(201, 168, 76, 0.22);
    --gold-border:      rgba(201, 168, 76, 0.18);
    --gold-bg:          rgba(201, 168, 76, 0.07);

    --bg-body:          #06101e;
    --bg-card:          rgba(255, 255, 255, 0.042);
    --bg-card-hover:    rgba(255, 255, 255, 0.072);
    --bg-header:        rgba(6, 16, 30, 0.98);
    --bg-footer:        #030b16;

    --text-primary:     #dde8f5;
    --text-secondary:   #7a9abf;
    --text-muted:       #405878;

    --border:           rgba(255, 255, 255, 0.07);
    --border-gold:      rgba(201, 168, 76, 0.2);

    --shadow-card:      0 1px 0 rgba(255,255,255,0.055) inset,
                        0 4px 32px rgba(0, 0, 0, 0.45);
    --shadow-hover:     0 1px 0 rgba(255,255,255,0.08) inset,
                        0 8px 48px rgba(0, 0, 0, 0.55);
    --shadow-gold:      0 4px 24px rgba(201, 168, 76, 0.3);
    
    --carousel-overlay: rgba(6, 14, 28, 0.92);
    --carousel-text:    #fff;
    --carousel-text-sec:rgba(255, 255, 255, 0.55);
    --carousel-fade:    rgba(6, 16, 30, 0.25);
    
    --body-grad-1:      rgba(34, 85, 164, 0.18);
    --body-grad-2:      rgba(201, 168, 76, 0.06);
    --body-pattern:     url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");

    --radius:           20px;
    --radius-sm:        14px;
    --radius-pill:      50px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-body:          #f4f7fb;
        --bg-card:          #ffffff;
        --bg-card-hover:    #f9fbfc;
        --bg-header:        rgba(255, 255, 255, 0.98);
        --bg-footer:        #e9eef5;

        --text-primary:     #121d2b;
        --text-secondary:   #4a607a;
        --text-muted:       #748ca6;

        --border:           rgba(0, 0, 0, 0.08);
        --border-gold:      rgba(201, 168, 76, 0.35);

        --shadow-card:      0 1px 0 rgba(255,255,255,1) inset,
                            0 4px 24px rgba(0, 0, 0, 0.04);
        --shadow-hover:     0 1px 0 rgba(255,255,255,1) inset,
                            0 8px 32px rgba(0, 0, 0, 0.08);
        --shadow-gold:      0 4px 24px rgba(201, 168, 76, 0.15);

        --gold-glow:        rgba(201, 168, 76, 0.15);
        --gold-bg:          rgba(201, 168, 76, 0.08);
        
        --carousel-overlay: rgba(244, 247, 251, 0.92);
        --carousel-text:    #121d2b;
        --carousel-text-sec:rgba(18, 29, 43, 0.65);
        --carousel-fade:    rgba(244, 247, 251, 0.25);

        --body-grad-1:      rgba(34, 85, 164, 0.06);
        --body-grad-2:      rgba(201, 168, 76, 0.08);
        --body-pattern:     url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='rgba(0,0,0,0.04)'/%3E%3C/svg%3E");
    }
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed scroll-behavior: smooth to prevent floaty native scrolling */

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, var(--body-grad-1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 110%, var(--body-grad-2) 0%, transparent 55%),
        var(--body-pattern);
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: all 0.25s ease;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0.6;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(34, 85, 164, 0.4);
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.logo-accent {
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 0.95rem;
    vertical-align: 1px;
}

/* --- Main Container --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 22px 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* --- Hero Carousel --- */
.carousel-container.full-width {
    width: 100%;
    position: relative;
    height: 340px;
    overflow: hidden;
}

.carousel-container.full-width::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        var(--carousel-fade) 0%,
        transparent 40%,
        transparent 60%,
        var(--carousel-fade) 100%
    );
    z-index: 4;
    pointer-events: none;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    filter: brightness(0.72) saturate(0.85);
    transform-origin: center;
    animation: kenBurns 22s ease-in-out infinite alternate;
    will-change: transform;
}

.carousel-img.active { opacity: 1; }

@keyframes kenBurns {
    0%   { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1) translate(0.5%, -0.5%); }
}

/* Carousel Overlay */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 36px 38px;
    background: linear-gradient(transparent 0%, var(--carousel-overlay) 100%);
    z-index: 5;
    color: var(--carousel-text);
    text-align: center;
}

.carousel-overlay .business-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--carousel-text);
    letter-spacing: 0.3px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.carousel-overlay .business-type {
    font-size: 0.9rem;
    color: var(--carousel-text-sec);
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.carousel-overlay .divider-line {
    width: 48px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 14px auto 10px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 18px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.35s ease;
}

.dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 3px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 30px 24px;
    text-align: center;
}

.btn-primary-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #1b4d99 50%, var(--primary-light) 100%);
    color: #e8f0fd;
    padding: 17px 28px;
    border-radius: var(--radius-pill);
    font-size: 1.08rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 0 rgba(255,255,255,0.08) inset, 0 6px 28px rgba(34, 85, 164, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary-large::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.55s ease;
}

.btn-primary-large:hover::before { left: 160%; }

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 0 rgba(255,255,255,0.1) inset, 0 10px 36px rgba(34, 85, 164, 0.45);
    color: #fff;
}

.btn-primary-large:active { transform: translateY(0); }

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 0 8px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.action-btn:hover { color: var(--text-primary); }

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.action-icon.whatsapp { color: #25d366; border-color: rgba(37, 211, 102, 0.2); }
.action-icon.directions { color: var(--gold); border-color: var(--border-gold); }
.action-icon.email { color: var(--primary-light); border-color: rgba(51, 112, 204, 0.2); }

.action-btn:hover .action-icon {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    padding: 28px 26px;
    margin: 0 0 18px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-dim), transparent 70%);
    opacity: 0.7;
    border-radius: 0 2px 2px 0;
    transition: opacity 0.3s;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-dim), transparent 60%);
    opacity: 0.25;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
}

.card-title-icon {
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.85;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 16px;
}

.premium-list {
    list-style: none;
    padding-left: 0;
}

.premium-list li {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
}

.premium-list li i {
    color: var(--gold);
    font-size: 0.85rem;
    background: var(--gold-bg);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gold);
}

/* --- Contact List --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.93rem;
    font-weight: 400;
    transition: all 0.25s ease;
    border-radius: var(--radius-sm);
}

.contact-item:hover {
    background: var(--gold-bg);
    border-color: transparent;
    color: var(--text-primary);
    padding-left: 14px;
}

.contact-item.border-none { border-bottom: none; }

.contact-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--gold-bg);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.contact-item:hover .contact-icon-wrap {
    background: var(--gold-glow);
    box-shadow: 0 0 12px var(--gold-glow);
}

.item-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.contact-item:hover .item-arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* --- Location --- */
.location-address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 20px;
    color: var(--text-secondary);
}

.location-address > i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 2px;
    opacity: 0.85;
}

.address-text {
    line-height: 1.65;
    font-size: 0.93rem;
    font-weight: 300;
}

.address-text strong {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.map-wrapper {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    filter: brightness(0.85) saturate(0.7) contrast(1.1);
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    margin-top: 16px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    color: var(--gold);
    font-weight: 500;
    font-size: 0.93rem;
    background: var(--gold-bg);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.btn-directions:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
    color: var(--gold);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-footer);
    text-align: center;
    padding: 28px 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    letter-spacing: 0.4px;
}

.site-footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    margin: 0 auto 16px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-column .reveal:nth-child(1) { transition-delay: 0s; }
.grid-column .reveal:nth-child(2) { transition-delay: 0.12s; }
.grid-column:last-child .reveal:nth-child(1) { transition-delay: 0.08s; }
.grid-column:last-child .reveal:nth-child(2) { transition-delay: 0.2s; }

/* --- Responsive --- */

/* Ultra-Wide Desktop ( > 1024px ) */
@media (min-width: 1024px) {
    .carousel-container.full-width { height: 600px; }
    .carousel-overlay .business-name { font-size: 3.8rem; }
    
    .main-container { padding: 60px 22px 80px; }
    
    .content-grid {
        gap: 40px;
    }
    .card { padding: 48px 40px; }
}

/* Tablet to Desktop ( 768px and up ) */
@media (min-width: 768px) {
    .carousel-container.full-width { 
        height: 500px; 
    }
    .carousel-overlay .business-name { font-size: 3.2rem; }

    .quick-actions {
        justify-content: center;
        gap: 48px;
    }

    .cta-section { padding: 40px; }
    .card { padding: 40px 36px; margin-bottom: 24px; }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }
}

/* iPad Portrait specifics ( 768px - 1023px ) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-grid { gap: 16px; }
    .card { padding: 28px 20px; }
    .cta-section { padding: 28px 20px; }
    .quick-actions { gap: 16px; }
    .btn-primary-large { font-size: 1rem; padding: 15px 20px; }
    .action-icon { width: 44px; height: 44px; font-size: 1rem; }
    .carousel-overlay .business-name { font-size: 2.8rem; }
}

/* Standard Mobile & Phablets ( < 768px ) */
@media (max-width: 767px) {
    .carousel-container.full-width { height: 340px; }
    .carousel-overlay .business-name { font-size: 2rem; }
    .carousel-overlay { padding-bottom: 30px; }
    
    .card { padding: 24px 20px; margin-bottom: 16px; }
    .main-container { padding: 32px 16px 50px; }
}

/* Small Mobile ( < 400px ) */
@media (max-width: 400px) {
    .carousel-container.full-width { height: 260px; }
    .carousel-overlay .business-name { font-size: 1.5rem; }
    .carousel-overlay .business-type { font-size: 0.8rem; }
    
    .header-content { padding: 12px 16px; }
    .logo-text { font-size: 1.1rem; }
    .brand-icon { width: 32px; height: 32px; font-size: 0.85rem; }

    .main-container { padding: 20px 12px 40px; }
    .card { padding: 20px 16px; border-radius: 16px; }
    
    .btn-primary-large { font-size: 0.95rem; padding: 14px 20px; }
    
    .quick-actions { flex-wrap: wrap; gap: 12px; }
    .action-btn { flex: 1 1 30%; min-width: 70px; }
    .action-icon { width: 42px; height: 42px; font-size: 1.1rem; }
}
