/* ==========================================================================
   KASTEL ROOFING - CUSTOM STYLESHEET
   Contains custom animations, fallbacks, and typography rules that 
   run alongside Tailwind CSS.
   ========================================================================== */

/* --- 1. TAILWIND DIRECTIVES --- */
/* (Include these only if this is your main Tailwind input.css file) */
@tailwind base;
@tailwind components;
@tailwind utilities;


/* --- 2. TYPOGRAPHY SAFETY NET (Blog Content) --- */
/* Ensures bullets and spacing render correctly inside the blog view */
.article-content p {
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-content ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.article-content ol {
    list-style-type: decimal !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.article-content li {
    display: list-item !important;
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.article-content li::marker {
    color: #002D72; /* Kastel Navy */
    font-weight: bold;
}


/* --- 3. CUSTOM ANIMATIONS --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- 4. UI COMPONENTS & LOADERS --- */
/* Sticky Navbar Shadow */
.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* Skeleton Loader for dynamic content */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* --- 5. IMAGE SAFETY NET --- */
/* Hero/Carousel Images: Full screen without stretching */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* Gallery & Project Images: Forces uniform height */
.group img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #e5e7eb; /* Fallback grey box if broken */
}

/* Service Card Icons: Keeps expertise section neat */
section .grid img, 
section .grid i {
    display: block;
    margin-bottom: 1rem;
}

/* Broken Image Handler: Hides ugly browser default broken icons */
img:not([src]):not([srcset]) {
    visibility: hidden;
}