/* Custom styles for Prism Railing website - Modern Design */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e40af;
    --color-primary-light: #60a5fa;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-bg: #fafbfc;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-tertiary: #94a3b8;
    --color-border: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Modern Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle Parallax Effect */
[data-parallax] {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Micro-interactions */
.micro-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-hover:hover {
    transform: translateY(-2px);
}

/* Body */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.text-accent {
    color: var(--color-accent) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
    transform: translateY(0);
}

.navbar.navbar-scrolled {
    background: rgba(230, 240, 255, 0.98);
    box-shadow: 0 2px 30px rgba(119, 119, 119, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.brand-logo {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.navbar.navbar-scrolled .navbar-nav .nav-link {
    color: #334155 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1e40af !important;
    background: rgba(59, 130, 246, 0.08);
}

.navbar.navbar-scrolled .navbar-nav .nav-link:hover,
.navbar.navbar-scrolled .navbar-nav .nav-link.active {
    color: #60a5fa !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 2px;
}

.btn-accent {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 10px;
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-open,
.navbar-toggler-close {
    font-size: 36px;
    color: #334155;
    position: absolute;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.navbar-toggler-open {
    opacity: 1;
    visibility: visible;
    display: block;
    z-index: 2;
}

.navbar-toggler-close {
    opacity: 0;
    visibility: hidden;
    display: none;
    z-index: 2;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-open {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-close {
    opacity: 1;
    visibility: visible;
    display: block;
}

.navbar.navbar-scrolled .navbar-toggler-open,
.navbar.navbar-scrolled .navbar-toggler-close {
    color: #334155;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 20px;
        margin-top: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .navbar.navbar-scrolled .navbar-collapse {
        background: rgba(15, 23, 36, 0.98);
    }

    .navbar-nav .nav-link {
        color: #334155 !important;
        margin: 4px 0;
    }

    .navbar.navbar-scrolled .navbar-nav .nav-link {
        color: #e2e8f0 !important;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-cta {
        margin-top: 12px;
    }
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Forms */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #080f1a 100%);
    color: #d1d5db;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer .container {
    max-width: 1140px;
    position: relative;
    z-index: 1;
}

.brand-block {
    padding-right: 1rem;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.brand-link:hover {
    opacity: 0.85;
}

.brand-link .brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: inline-block;
    position: relative;
}

.brand-accent {
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #ff7a00 0%, #ff9500 100%);
    border-radius: 2px;
    margin-top: 10px;
    opacity: 0.9;
}

.brand-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00 0%, #ff9500 100%);
    border-radius: 1px;
    opacity: 0.7;
}

.brand-block .footer-brand {
    color: transparent;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0;
    padding-bottom: 0;
}

.brand-block .footer-brand::after {
    display: none;
}

.site-footer p { color: #9ca3af; line-height: 1.7; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:active {
    transform: translateY(-2px);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-btn.youtube { background: #ff0000; }
.social-btn.indiamart { background: #ff6600; }
.social-btn.justdial { background: #0099ff; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.18s ease; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.newsletter .form-control { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); color: #fff; }
.newsletter .form-control::placeholder { color: rgba(255,255,255,0.6); }
.newsletter .btn-primary { background-color: #ff7a00; border-color: #ff7a00; }
.newsletter .btn-primary:hover { background-color: #e06a00; border-color: #e06a00; }
.site-footer hr { border-color: rgba(255,255,255,0.06); }
.site-footer .text-muted { color: #9ca3af !important; }

@media (max-width: 576px) {
    .social-btn { width: 40px; height: 40px; }
    .newsletter .d-flex { flex-direction: column; gap: 8px; }
    .newsletter .btn { width: 100%; }
    .brand-text { font-size: 1.25rem; }
    .brand-block { padding-right: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 0;
    }

    .navbar-nav {
        text-align: center;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Certificates Carousel */
.certificate-carousel {
    position: relative;
    margin-top: 20px;
}

.certificate-viewport {
    overflow: hidden;
    padding: 8px 4px;
}

.certificate-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.certificate-item {
    flex: 0 0 calc(33.333333% - 16px);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.certificate-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.03);
}

.certificate-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.certificate-arrow:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) scale(1.05);
}

.certificate-arrow:focus-visible {
    outline: 3px solid rgba(0,123,255,0.5);
    outline-offset: 3px;
}

.certificate-arrow-prev {
    left: -12px;
}

.certificate-arrow-next {
    right: -12px;
}

@media (max-width: 991px) {
    .certificate-track {
        gap: 16px;
    }

    .certificate-item {
        flex-basis: calc(50% - 8px);
    }

    .certificate-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.7rem;
    }

    .certificate-arrow-prev {
        left: 0;
    }

    .certificate-arrow-next {
        right: 0;
    }
}

@media (max-width: 575px) {
    .certificate-track {
        gap: 12px;
    }

    .certificate-item {
        flex-basis: 100%;
    }

    .certificate-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .certificate-item img {
        height: 200px;
    }
}

/* Floating Contact Buttons - Modern Style */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.floating-contact-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.floating-contact-btn.call { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.floating-contact-btn.whatsapp { background: #25D366; }
.floating-contact-btn.message { background: linear-gradient(135deg, #f59e0b, #d97706); }
.floating-contact-btn.download { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.floating-contact-tooltip {
    position: absolute;
    right: 65px;
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.floating-contact-btn:hover + .floating-contact-tooltip,
.floating-contact-tooltip:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-contact-tooltip {
        right: 60px;
        font-size: 12px;
    }
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-modern::before,
.hero-modern::after {
    content: none;
}

@keyframes heroFade {
    0%, 100% { opacity: 0; }
    5%, 93% { opacity: 1; }
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 48s infinite;
    will-change: opacity;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.bento-item {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.bento-item.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(245, 158, 11, 0.05));
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.bento-icon.primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; }
.bento-icon.accent { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: white; }
.bento-icon.secondary { background: rgba(59, 130, 246, 0.1); color: var(--color-primary-dark); }

.bento-stats {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.bento-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Modern Card */
.product-card-modern {
    background: var(--color-surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.product-card-image {
    aspect-ratio: 5/4;
    overflow: hidden;
    min-height: 150px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 12px;
}

.product-card-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.category-banner {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.products-hero {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-stats {
    gap: 0.9rem;
}

.stat-card {
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    color: var(--color-text-secondary);
}

.hero-panel {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.7);
}

.hero-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-panel-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.hero-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

@media (max-width: 991px) {
    .hero-panel {
        padding: 1.5rem;
    }
}

.products-hero .display-5 {
    font-size: clamp(2.25rem, 2.5vw, 3rem);
    line-height: 1.05;
}

.products-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.6rem 0.85rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    min-width: 145px;
}

.products-summary strong {
    font-size: 2rem;
    color: var(--color-primary-dark);
    line-height: 1;
}

.products-summary-label,
.products-summary-value {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.product-intro p {
    max-width: 60ch;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary-dark);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}

.product-card-body h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.product-card-body p {
    color: var(--color-text-secondary);
    min-height: 3.2rem;
    margin-bottom: 0.75rem;
    font-size: 0.93rem;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
    color: var(--color-text-secondary);
}

.product-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    font-size: 0.82rem;
}

.product-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    font-size: 0.9rem;
}

.product-card-modern .btn {
    width: 100%;
}


/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Bento Grid */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* FAQ Modern */
.faq-modern .accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--color-surface);
}

.faq-modern .accordion-button {
    font-weight: 600;
    padding: 20px 24px;
    background: var(--color-surface);
}

.faq-modern .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.05);
    color: var(--color-primary-dark);
}

.faq-modern .accordion-body {
    padding: 20px 24px;
    color: var(--color-text-secondary);
}

/* Map Section */
.map-modern {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 70vh;
        padding: 40px 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-item.featured,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

#productCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#productCarousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#productCarousel .carousel-inner,
#productCarousel .carousel-item {
    max-height: 450px;
}

#productCarousel .carousel-item img {
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    max-height: 600px;
    max-width: 100%;
    object-fit: contain;
}

.active-thumb {
    border: 3px solid #3b82f6 !important;
    opacity: 1;
}

.product-thumbnails img {
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-thumbnails img:hover {
    opacity: 1;
}
/* ============================================================
   Blog page styles (moved from pages/blog.php)
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-featured-img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-single-post .blog-post-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.blog-single-post .blog-content {
    color: #334155;
    line-height: 1.8;
}

.blog-single-post .blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.blog-single-post .blog-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.blog-single-post .blog-content p {
    margin-bottom: 1.25rem;
}

.blog-single-post .blog-content ul,
.blog-single-post .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-single-post .blog-content li {
    margin-bottom: 0.5rem;
}

.blog-single-post .blog-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

.blog-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.blog-card-hover .card-title a {
    color: #0f172a;
    transition: color 0.2s ease;
}

.blog-card-hover:hover .card-title a {
    color: #3b82f6;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.blog-single-post .breadcrumb {
    background: transparent;
}

.blog-single-post .breadcrumb-item a {
    color: #64748b;
}

.blog-single-post .breadcrumb-item a:hover {
    color: #1e40af;
}

.blog-single-post .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.blog-single-post .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
    content: var(--bs-breadcrumb-divider, '/');
}

/* Top-of-page breadcrumb sits on the light page background (outside .blog-single-post),
   so it needs dark text instead of the white base color. */
.blog-breadcrumb {
    margin: 0;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.blog-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #1e40af;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.product-breadcrumb {
    margin: 0;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.product-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: #1e40af;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.blog-post-meta span i {
    color: #3b82f6;
}

.blog-single-post .blog-tags .badge {
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-single-post .blog-tags .badge:hover {
    background-color: #e2e8f0;
}

.related-posts .card {
    transition: all 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.related-posts .card-title a {
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .blog-single-post .blog-post-title {
        font-size: 1.5rem;
    }
    .blog-hero h1 {
        font-size: 1.75rem;
    }
}