:root { 
    --pas-red: #d90429; 
    --pas-blue: #003566; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    color: #333; 
    overflow-x: hidden; 
}

/* Top Bar Responsive */
.top-info { 
    background: var(--pas-blue); 
    color: white; 
    font-size: 0.85rem; 
    padding: 10px 0; 
}

/* Navbar Enhancements */
.navbar-brand { 
    font-weight: 900; 
    font-size: 1.8rem; 
    letter-spacing: -1px; 
    color: var(--pas-blue) !important; 
}

.nav-link { 
    font-weight: 700; 
    font-size: 0.95rem; 
    margin-left: 15px; 
    transition: 0.3s; 
}

.nav-link:hover { 
    color: var(--pas-red) !important; 
}

/* YOUR CUSTOM CTA BUTTON */
.nav-link.btn-danger { 
    border-radius: 50px; 
    transition: transform 0.2s ease; 
    color: white !important;
    padding: 8px 25px !important;
}

.nav-link.btn-danger:hover { 
    transform: translateY(-2px); 
    background-color: #b30321 !important; 
}

/* Hero Responsive with YOUR TEXT SHADOW */
.hero-carousel .carousel-item { 
    height: 70vh; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

@media (min-width: 992px) { 
    .hero-carousel .carousel-item { height: 85vh; } 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.2); 
}

.hero-content { 
    position: relative; 
    top: 25%; 
    color: white; 
}

.hero-content h1 { 
    font-size: calc(2.5rem + 2vw); 
    font-weight: 800; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}

/* Sections */
.big-section { 
    padding: 60px 0; 
}

@media (min-width: 992px) { 
    .big-section { padding: 100px 0; } 
}

.section-tag { 
    color: var(--pas-red); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* Showrooms Responsive */
.showroom-card { 
    position: relative; 
    height: 400px; 
    overflow: hidden; 
    border-radius: 15px; 
    margin-bottom: 30px; 
}

@media (min-width: 992px) { 
    .showroom-card { height: 500px; } 
}

.showroom-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.6s ease; 
}

.showroom-card:hover img { 
    transform: scale(1.05); 
}

.showroom-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    padding: 30px; 
    color: white; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
    width: 100%; 
}

/* Brands Responsive Grid */
.brand-logo { 
    filter: grayscale(100%); 
    opacity: 0.5; 
    transition: 0.4s; 
    height: 50px; 
    width: 100%; 
    object-fit: contain; 
}

.brand-logo:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
}

footer { 
    background: #111; 
    color: #eee; 
    padding: 80px 0 20px; 
}

.branch-title { 
    color: white; 
    font-weight: 700; 
    border-bottom: 2px solid var(--pas-red); 
    display: inline-block; 
    margin-bottom: 15px; 
}

/* Optimized Logo Styling */
.nav-logo {
    height: 140px;          /* Set a specific height */
    width: 180px;           /* Width must match height for a perfect circle */
    object-fit: cover;     /* Ensures the image fills the circle without stretching */
    border-radius: 50%;    /* This is the "magic" line that makes it a circle */
    
}
/* Adjust the Navbar to handle the logo height */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    
}

/* Mobile adjustment so it doesn't crowd the screen */
@media (max-width: 991px) {
    .nav-logo {
        height: 60px;
    }
}

.nav-link {
    font-weight: 700;
    font-size: 1rem; /* Slightly larger for better balance */
    color: #333 !important;
}

/* Glassmorphism Header */
.main-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Logo Holder Polish */
.logo-holder {
    transition: transform 0.3s ease;
}

.nav-logo {
    height: 85px; /* Increased size since there is no text next to it */
    width: auto;
    object-fit: contain;
    /* Ensuring the circular look from your saved preferences */
    border-radius: 50%; 
}

/* Hover effect to make it feel premium */
.navbar-brand:hover .logo-holder {
    transform: scale(1.08);
}

/* Nav Link Styling */
.navbar-nav .nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 15px;
    color: #1a1a1a !important;
}

/* Red CTA Button (from your preferences) */
.cta-btn {
    border-radius: 50px !important;
    background-color: #dc3545 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background-color: #b30321 !important; /* Slightly darker red */
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #dc3545; /* P.A.S. Red */
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-card hr {
    margin: 20px 0;
    opacity: 0.1;
}

.contact-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-card a {
    text-decoration: none;
    color: inherit;
}

.top-nav-strip {
    background-color: #b30321; /* Matches your brand red */
    color: white;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-social-links a {
    color: white;
    text-decoration: none;
}

/* Main Nav Adjustments */
.main-navigation-bar {
    border-bottom: 4px solid #f1f1f1;
    padding: 10px 0 !important;
}

.pas-logo {
    height: 90px; /* Larger logo that sits proudly on the left */
    width: auto;
    margin-top: -10px; /* Slight offset for that overlapping look */
    margin-bottom: -10px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #444 !important;
    padding: 10px 15px !important;
    border-right: 1px solid #eee;
}

.navbar-nav .nav-link:last-child {
    border-right: none;
}

/* Red Contact Link */
.active-contact {
    color: #b30321 !important;
}

.navbar-nav .nav-link:hover {
    color: #b30321 !important;
}

/* Container to hold both bars together */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1050; /* High z-index to stay above carousel and images */
    width: 100%;
}

.top-nav-strip {
    background-color: #b30321; /* Your brand red */
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

/* Main Navbar - Ensure it doesn't have its own sticky-top if the container is sticky */
.main-navigation-bar {
    background-color: white !important;
    border-bottom: 2px solid #f1f1f1;
    padding: 10px 0 !important;
    transition: all 0.3s ease;
}

.pas-logo {
    height: 80px; 
    width: auto;
    transition: height 0.3s ease;
}

/* Optional: Make logo slightly smaller when scrolling for a cleaner look */
.scrolled .pas-logo {
    height: 60px;
}

.hero {
  position: relative;
  background-image: url("images/toys.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Adding a dark tint to hero images to make white text pop */
.carousel-item img {
    filter: brightness(70%);
}

/* Ensure your requested text shadow is applied to all hero text */
.carousel-caption h1, 
.carousel-caption p {
    text-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
}

.carousel-item {
    /* This creates a dark shadow that glows inward from the edges */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.6);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* To make the image itself darker (as we discussed) without affecting text */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* This is your 'dark' layer */
    z-index: 1;
}

/* Ensure your text stays on top of the shadow and dark layer */
.carousel-caption {
    z-index: 2;
}

.pas-name {
    height: 25px; /* Adjust this value as needed */
    width: auto;  /* Maintains aspect ratio */
    transition: transform 0.3s ease; /* Optional: smooth feel */
}

/* Optional: Make it even smaller on mobile devices */
@media (max-width: 768px) {
    .pas-name {
        height: 30px;
    }
}

/* Container for the icon version of the card */
.showroom-card.icon-card {
    background: #dc3545; 
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover effect: Darkens the red slightly like your Nav CTA */
.showroom-card.icon-card:hover {
    transform: translateY(-10px);
    background-color: #b30321; 
}

/* Icon Styling */
.showroom-icon-wrapper i {
    font-size: 6rem;
    color: white;
    margin-bottom: 20px;
}

/* Text adjustments since background is now red */
.showroom-info h3, 
.showroom-info p {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Styling for the Product Cards to match the Contact Page */
.card {
    border: 1px solid #eee !important; /* Soft light border by default */
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

/* Hover effect: Red border and soft elevation */
.card:hover {
    border-color: #dc3545 !important; /* Match the red on your contact cards */
    transform: translateY(-5px); /* Gentle lift effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important; /* Soft shadow */
}

/* Ensure the icons and headings look sharp */
.card i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1); /* Slight icon pop on hover */
}

/* 1. Global Page Lock - Affects all pages to stop mobile dragging */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 2. Fixed Header - Always at the top */
#header-placeholder {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    background: white; 
}

/* 3. The SAFE ZONE - ONLY applies if the body DOES NOT have .is-index */
/* This prevents the white gap and image shrinking on the home page */
body:not(.is-index) {
    padding-top: 140px !important; 
}

/* 4. Ensure Hero Carousel on index fills the whole space */
/* If the image looks small, we make sure it stretches correctly */
.is-index .hero-carousel, 
.is-index .carousel-item {
    padding-top: 0 !important;
    margin-top: 0 !important;
    height: 100vh; /* Keeps it full screen as intended */
}

/* 5. Mobile Adjustments for other pages */
@media (max-width: 991px) {
    body:not(.is-index) {
        padding-top: 110px !important;
    }
}

@media (max-width: 991px) {
    /* Adjust logo sizes to fit in the mobile bar */
    .pas-logo {
        height: 40px !important;
    }
    .pas-name {
        height: 30px !important;
    }
    
    /* Center the mobile logo between the circle logo and the toggle */
    .navbar-brand.d-lg-none {
        margin: 0 auto; 
        padding-left: 10px;
    }

    /* Ensure the toggle button doesn't push the logo too far */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }
}

/* Premium Showroom Design */
.premium-showroom-box {
    background: linear-gradient(135deg, #8b0000 0%, #b30321 50%, #5e0000 100%);
    padding: 80px 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.white-floating-card {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 100%;
}

.showroom-icon-circle {
    width: 80px;
    height: 80px;
    background: #b30321;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(179, 3, 33, 0.3);
}

/* Mobile responsive tweaks */
@media (max-width: 768px) {
    .premium-showroom-box {
        padding: 40px 15px;
    }
    .white-floating-card {
        padding: 30px 20px;
    }
}

.brand-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    height: 160px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Optional: very soft border so white logos don't disappear */
    border: 1px solid #f0f0f0; 
}

.brand-card img {
    max-width: 90%;  /* Increased from previous versions */
    max-height: 90%; /* Increased from previous versions */
    width: auto;
    height: auto;
    object-fit: contain; /* Keeps logo proportions perfect */
    filter: none !important; /* Forces color to stay */
    opacity: 1 !important;   /* Forces full visibility */
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #dc3545;
}

.featured-brand img {
    max-width: 100% !important;  /* Remove the 90% restriction */
    max-height: 100% !important; /* Let it fill the height */
    transform: scale(1.1);       /* Slight extra zoom for impact */
}

.featured-brand:hover {
    border-color: #ff0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15) !important;
}

/* 1. Prevent the arrow controls from covering the middle of the screen */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Narrow the hit area so it doesn't overlap the text/buttons */
    z-index: 5; /* Keep them above the background but below the content */
}

/* 2. Ensure the Hero Content and Buttons are always on the very top */
.hero-content {
    position: relative;
    z-index: 10 !important; /* Forces content to stay above the carousel controls */
}

/* 3. Make sure the buttons themselves are clickable */
.hero-content .btn {
    position: relative;
    z-index: 15 !important;
    pointer-events: auto !important;
}

@media (max-width: 991.98px) {
    /* Adjust the logo position */
    .navbar-brand.d-lg-none {
        margin-left: -5px !important; /* Move it left */
        padding-left: 0 !important;
    }

    /* Adjust the container padding if it's still too far in */
    .navbar > .container, 
    .navbar > .container-fluid {
        padding-left: 10px !important; /* Reduces the default gap from the screen edge */
    }
}