/* Component Styles */

/* Buttons */
.cta-button,
.view-gallery-button,
.learn-more-button,
.btn,
.read-more-link,
.back-to-blog {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    /* Slightly rounded corners */
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.cta-button:hover,
.view-gallery-button:hover,
.learn-more-button:hover,
.btn:hover,
.read-more-link:hover,
.back-to-blog:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.read-more-link {
    background-color: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
}

.read-more-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Cards */
.product-card,
.gallery-item,
.blog-card,
.contact-card,
.about-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-card:hover,
.gallery-item:hover,
.blog-card:hover,
.contact-card:hover,
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

/* Specific Card Styles */
.product-card img,
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card h3,
.blog-card h3 {
    padding: 1.25rem 1.25rem 0.5rem;
    margin-bottom: 0;
    color: var(--text-heading);
}

.product-card p,
.blog-card p {
    padding: 0 1.25rem 1.5rem;
    color: var(--text-body);
    font-size: var(--text-sm);
}

.blog-card {
    position: relative;
    padding: 2rem;
}

.blog-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
}

.blog-card h3 a {
    color: var(--text-heading);
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--accent-500);
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.whatsapp-button,
.phone-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-button {
    background-color: #25d366;
}

.phone-button {
    background-color: var(--primary-color);
}

.whatsapp-button:hover,
.phone-button:hover {
    transform: scale(1.1);
}

/* Inputs & Forms */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Product Card Image Zoom */
.product-card .product-image {
    overflow: hidden;
    /* Ensure zoom stays within card */
}

.product-card img,
.gallery-item img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--bg-surface);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--primary-200);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-heading);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--primary-900);
    color: #fff;
    margin-bottom: 4rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-500);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}