/* =============================================
   Catalogs Page – Vortice
   Same design system as Featured Products
   ============================================= */

/*
 * Header styling is handled by adding the 'scroll' class to #masthead via JS
 * in catalogs.php. This reuses all existing scroll-state styles from
 * redesign-footer.css (dark text, white background, etc.)
 */

/* ---- Hard Reset: override Storefront defaults ---- */
.vortice-catalogs-section,
.vortice-catalogs-section *,
.vortice-catalogs-section h1,
.vortice-catalogs-section h2,
.vortice-catalogs-section h3,
.vortice-catalogs-section p,
.vortice-catalogs-section a,
.vortice-catalogs-section span,
.vortice-catalogs-section div {
    font-family: 'Fira Sans', sans-serif !important;
    box-sizing: border-box;
}

.vortice-catalogs-section h2,
.vortice-catalogs-section h3,
.vortice-catalogs-section p {
    padding: 0 !important;
}

/* Icon reset */
.vortice-catalogs-section i.fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

/* ---- Section ---- */
.vortice-catalogs-section {
    position: relative;
    padding: 160px 0 96px 0 !important;
    /* Extra top padding to clear fixed header */
    background-color: #f8fafc !important;
    overflow: hidden;
    margin: 0 !important;
}

/* Abstract Background Elements */
.vortice-catalogs-bg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.vortice-catalogs-bg-blob-1 {
    position: absolute;
    top: -160px;
    right: -160px;
    width: 600px;
    height: 600px;
    background: rgba(49, 190, 103, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.vortice-catalogs-bg-blob-2 {
    position: absolute;
    top: 160px;
    left: 80px;
    width: 300px;
    height: 300px;
    background: rgba(219, 234, 254, 0.3);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ---- Container ---- */
.vortice-catalogs-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    position: relative;
    z-index: 10;
}

/* ---- Header ---- */
.vortice-catalogs-header {
    text-align: center !important;
    max-width: 768px;
    margin: 0 auto 80px auto !important;
}

.vortice-catalogs-title {
    font-size: 48px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    color: #0f172a !important;
    margin: 0 0 24px 0 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
    word-spacing: 0.15em;
}

@media (min-width: 1024px) {
    .vortice-catalogs-title {
        font-size: 60px !important;
    }
}

.vortice-catalogs-title strong {
    font-weight: 600 !important;
    background: linear-gradient(135deg, #00963E 0%, #31be67 40%, #00963E 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.vortice-catalogs-desc {
    font-size: 20px !important;
    color: #64748b !important;
    font-weight: 300 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ---- Grid ---- */
.vortice-catalogs-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 32px !important;
}

@media (min-width: 768px) {
    .vortice-catalogs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .vortice-catalogs-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---- Card Wrapper (makes entire card clickable) ---- */
.vortice-catalog-card-wrapper {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.vortice-catalog-card-wrapper:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card {
    box-shadow: 0 25px 50px -12px rgba(49, 190, 103, 0.1) !important;
    transform: translateY(-8px);
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-img {
    transform: scale(1.08);
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-overlay {
    opacity: 1;
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-shine {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-title {
    color: #00963E !important;
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-dl-icon i.fa-solid {
    transform: translateY(-5px);
}

.vortice-catalog-card-wrapper:hover .vortice-catalog-card-link {
    color: #00963E !important;
}

/* ---- Catalog Card ---- */
.vortice-catalog-card {
    position: relative;
    background: #ffffff !important;
    border-radius: 2rem !important;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.vortice-catalog-card:hover {
    box-shadow: 0 25px 50px -12px rgba(49, 190, 103, 0.1) !important;
    transform: translateY(-8px);
}

/* Card Shine Effect */
.vortice-catalog-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 20;
}

.vortice-catalog-card:hover .vortice-catalog-card-shine {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* ---- Image Container: full-width cover at top ---- */
.vortice-catalog-card-img-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.vortice-catalog-card-img-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.vortice-catalog-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.7s ease;
    display: block;
}

.vortice-catalog-card:hover .vortice-catalog-card-img {
    transform: scale(1.08);
}

/* ---- Download Overlay (appears on hover) ---- */
.vortice-catalog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 150, 62, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.vortice-catalog-card:hover .vortice-catalog-card-overlay {
    opacity: 1;
}

.vortice-catalog-card-dl-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.vortice-catalog-card-dl-icon i.fa-solid {
    font-size: 48px !important;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.vortice-catalog-card:hover .vortice-catalog-card-dl-icon i.fa-solid {
    transform: translateY(-5px);
}

.vortice-catalog-card-dl-text {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-family: 'Fira Sans', sans-serif !important;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
}

/* ---- Content ---- */
.vortice-catalog-card-content {
    position: relative;
    z-index: 10;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vortice-catalog-card-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
    transition: color 0.3s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.vortice-catalog-card:hover .vortice-catalog-card-title {
    color: #00963E !important;
}

.vortice-catalog-card-excerpt {
    font-size: 18px !important;
    color: #64748b !important;
    font-weight: 300 !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.6 !important;
    flex: 1;
}

/* ---- Footer / Action Row ---- */
.vortice-catalog-card-footer {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 24px !important;
    margin: 0 !important;
    margin-top: auto !important;
}

.vortice-catalog-card-link {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    line-height: 1 !important;
}

.vortice-catalog-card-link i.fa-solid {
    font-size: 14px !important;
    transition: transform 0.3s ease;
    color: inherit !important;
}

.vortice-catalog-card-link:hover {
    color: #00963E !important;
    text-decoration: none !important;
}

.vortice-catalog-card-link:hover i.fa-solid {
    transform: translateY(2px);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .vortice-catalogs-section {
        padding: 64px 0 !important;
    }

    .vortice-catalogs-header {
        margin-bottom: 48px !important;
    }

    .vortice-catalogs-title {
        font-size: 36px !important;
    }

    .vortice-catalogs-desc {
        font-size: 18px !important;
    }

    .vortice-catalog-card-img-container {
        height: 200px;
    }
}

/* ---- Special CTA Card (Contact) ---- */
.vortice-catalogs-grid .vortice-product-special-card {
    position: relative;
    background: linear-gradient(to bottom right, #00963E, #009b4c) !important;
    border-radius: 2rem !important;
    padding: 32px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff !important;
    box-shadow: 0 20px 25px -5px rgba(49, 190, 103, 0.3), 0 8px 10px -6px rgba(49, 190, 103, 0.3) !important;
    transition: transform 0.5s ease;
    cursor: pointer;
    min-height: 450px !important;
    height: 100%;
    border: none !important;
}

.vortice-catalogs-grid .vortice-product-special-card:hover {
    transform: scale(1.02);
}

/* Special Card Backgrounds */
.vortice-catalogs-grid .vortice-special-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.vortice-catalogs-grid .vortice-special-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    filter: blur(48px);
    transform: translate(50%, -50%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.vortice-catalogs-grid .vortice-special-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 256px;
    height: 256px;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    filter: blur(48px);
    transform: translate(-50%, 50%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.vortice-catalogs-grid .vortice-product-special-card:hover .vortice-special-blob-1 {
    transform: translate(50%, -50%) scale(1.5);
}

.vortice-catalogs-grid .vortice-product-special-card:hover .vortice-special-blob-2 {
    transform: translate(-50%, 50%) scale(1.5);
}

/* Special Content */
.vortice-catalogs-grid .vortice-special-content {
    position: relative;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Icon Circle */
.vortice-catalogs-grid .vortice-special-icon-circle {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    transition: transform 0.5s ease;
}

.vortice-catalogs-grid .vortice-product-special-card:hover .vortice-special-icon-circle {
    transform: scale(1.1);
}

/* Icon inside circle */
.vortice-catalogs-grid .vortice-special-icon-circle i.fa-solid {
    font-size: 36px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Title */
.vortice-catalogs-grid .vortice-special-title {
    font-size: 36px !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.vortice-catalogs-grid .vortice-special-title strong {
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* Description */
.vortice-catalogs-grid .vortice-special-desc {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 300 !important;
    margin: 0 0 40px 0 !important;
    line-height: 1.5 !important;
    max-width: 320px;
}

/* Button */
.vortice-catalogs-grid .vortice-special-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 32px !important;
    background: #ffffff !important;
    color: #009b4c !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    font-size: 14px !important;
    line-height: 1 !important;
    border: none !important;
}

.vortice-catalogs-grid .vortice-special-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ---- Responsive: Special Card ---- */
@media (max-width: 767px) {
    .vortice-catalogs-grid .vortice-product-special-card {
        min-height: 350px !important;
    }

    .vortice-catalogs-grid .vortice-special-title {
        font-size: 30px !important;
    }

    .vortice-catalogs-grid .vortice-special-desc {
        font-size: 16px !important;
        margin-bottom: 32px !important;
    }
}