/* =========================================
   ESTO - PRODUCTS PAGE CSS
   ========================================= */

/* --- GLOBALS --- */
:root {
    --navy: #0f172a;
    --blue: #005b96;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

body { background: var(--light-bg); }

/* --- 1. HERO SECTION --- */
.prod-hero {
    height: 50vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chem-overlay {
    position: absolute;
    inset: 0;
    /* Abstract Chemical Hexagon Pattern */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 91, 150, 0.2) 0%, transparent 50%),
        url('../img/hex-pattern.png'); /* Optional hex pattern image */
    background-size: cover;
    opacity: 0.3;
}

.relative-z { position: relative; z-index: 5; }

.hero-label {
    font-family: 'Rajdhani', sans-serif;
    color: #60a5fa;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}
.text-blue { color: #60a5fa; }

.hero-desc {
    font-family: 'Barlow', sans-serif;
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 2. PRODUCT GRID SECTION --- */
.prod-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background Animation */
.grid-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 30px;
    position: relative;
    z-index: 5;
}

/* --- THE PRODUCT CARD --- */
.prod-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.prod-card:hover {
    transform: translateY(-10px); /* Lifts up */
    box-shadow: 0 20px 40px rgba(0, 91, 150, 0.15); /* Blue shadow */
    border-color: var(--blue);
}

.icon-box {
    width: 60px; height: 60px;
    background: #f0f9ff;
    color: var(--blue);
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: 0.3s;
}

.prod-card:hover .icon-box {
    background: var(--blue);
    color: white;
}

.prod-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.prod-card p {
    font-family: 'Barlow', sans-serif;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes button to bottom */
}

.explore-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.prod-card:hover .explore-link {
    gap: 15px; /* Arrow moves right */
}

/* Hover Line Animation */
.hover-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.prod-card:hover .hover-line {
    transform: scaleX(1);
}

/* --- SPECIALITY CARD (Full Width) --- */
.full-width {
    grid-column: 1 / -1; /* Spans all columns */
    background: var(--navy);
    border: none;
}

.full-width h3 { color: white; }
.full-width p { color: #cbd5e1; }
.full-width .icon-box { background: rgba(255,255,255,0.1); color: #60a5fa; }

.full-width:hover {
    transform: translateY(-5px);
    background: #1e293b; /* Lighter navy on hover */
}

.card-content.flex-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.text-group { flex: 1; }

.btn-style {
    background: var(--blue);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    border: none;
}
.btn-style:hover { background: white; color: var(--navy); }
.btn-solid {
    display: inline-block;
    padding: 15px 35px;
    background: var(--blue);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--blue); /* Adds structure */
}

/* Glow Effect */
.btn-glow {
    box-shadow: 0 0 15px rgba(0, 91, 150, 0.4); 
}

/* Hover State */
.btn-solid:hover {
    background: var(--navy);
    border-color: var(--navy);
    transform: translateY(-3px); /* Lifts up slightly */
    box-shadow: 0 10px 25px rgba(0, 91, 150, 0.3);
}

/* --- 3. CUSTOM CTA --- */
.custom-cta {
    background: white;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.custom-cta h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.custom-cta p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-glow { box-shadow: 0 0 15px rgba(0, 91, 150, 0.3); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: 1fr 1fr; } /* 2 cols */
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; } /* 1 col */
    .card-content.flex-row { flex-direction: column; text-align: center; }
    .explore-link { justify-content: center; }
}

/* Animation Classes */
.fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}