/* ========================================
   FENCING WEBSITE - MAIN STYLESHEET
   ========================================
   
   NOTE: Page-specific styles have been moved to separate files:
   - home.css (Homepage styles)
   - contact.css (Contact page styles)
   - services.css (All service pages)
   - blog.css (Blog page styles)
   - about.css (About page styles)
   - portfolio.css (Portfolio page styles)
   
   This file contains GLOBAL styles only:
   - CSS Variables & Color Scheme
   - Base Styles & Typography
   - Navigation & Header
   - Buttons & Forms (Global)
   - Footer
   - Utility Classes
   - Global Responsive Styles
   
   ======================================== */

/* Color Scheme Variables */
:root {
    /* Primary Color - Forest Green */
    --primary-color: #2D6A4F;

    /* Secondary Color - WhatsApp Green */
    --secondary-color: #25D366;


    /* Text Color - Dark Gray (No Black) */
    --text-color: #2D6A4F;

    /* Background Color - Off White */
    --background-color: #FAFAFA;
    --background-light: #FAFAFA;
    --background-dark: #FAFAFA;

    /* Additional utility colors */
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-color: rgba(45, 106, 79, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: #128C7E;
    color: var(--white);
    border-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Content - Account for fixed header */
main {
    min-height: 80vh;
    padding: 0;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    background-image: linear-gradient(rgba(34, 34, 34, 0.5), rgba(34, 34, 34, 0.5)), url("/static/images/fencing-hero.3b8054697af8.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Container for non-hero sections */
.container-section {
    padding: 2rem 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.service-box {
    background-color: var(--background-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(45, 106, 79, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-box:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
    text-align: center;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-content .btn {
    margin-top: 0.5rem;
}

/* Placeholder for missing images */
.placeholder-image {
    font-size: 4rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-color), var(--background-dark));
}

/* Service Page Styles */
.service-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.service-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.service-overview {
    margin-bottom: 3rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(45, 106, 79, 0.15);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-benefits {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.service-benefits h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-benefits ul {
    list-style: none;
    padding: 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.service-benefits li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.service-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.service-cta p {
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-page {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.1);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.form-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.btn-full {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Contact Information Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.1);
}

.info-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.info-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.address {
    color: var(--text-color);
    line-height: 1.6;
}

.response-time {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.response-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Find Us Section */
.find-us-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.find-us-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.find-us-section>p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--background-dark), var(--background-color));
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Additional Contact Info */
.additional-contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    padding: 3rem;
    border-radius: 1rem;
    color: var(--white);
    margin-top: 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.method p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.method ul {
    color: var(--white);
    opacity: 0.9;
    padding-left: 1.5rem;
}

.method strong {
    color: var(--white);
    font-weight: 700;
}

/* Responsive Contact Layout */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-section {
        padding: 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.7rem;
    }

    .info-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .additional-contact-info {
        padding: 2rem 1rem;
    }

    .method {
        text-align: center;
    }
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.blog-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-intro {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background-color: var(--background-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(45, 106, 79, 0.15);
}

.blog-post.featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post.featured .post-image {
    height: 300px;
}

.post-content {
    padding: 2rem;
}

.blog-post.featured .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-category {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.post-content h2,
.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.3rem;
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.sidebar-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.sidebar-cta p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Responsive Blog Layout */
@media (max-width: 1024px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-post.featured {
        grid-template-columns: 1fr;
    }

    .blog-post.featured .post-image {
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 1rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .sidebar-section {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive Service Pages */
@media (max-width: 768px) {
    .service-hero {
        padding: 2rem 1rem;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .service-benefits {
        padding: 1.5rem;
    }

    .service-cta {
        padding: 2rem 1rem;
    }
}

/* Responsive Services Grid */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-image {
        height: 150px;
    }

    .service-content {
        padding: 1rem;
    }
}

/* Reviews Carousel Section */
.reviews-section {
    background: linear-gradient(135deg, var(--background-light), var(--background-dark));
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 1rem;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side: Title and CTA */
.reviews-left h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.reviews-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.reviews-cta p {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Right Side: Reviews Carousel */
.reviews-right {
    position: relative;
    max-width: 650px;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    min-height: 200px;
    padding: 0;
}

.reviews-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.review-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
}

.review-card {
    background-color: var(--background-light);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.1);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
}

.review-stars {
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-color);
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.author-info h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.75rem;
    display: block;
    margin-top: 0.15rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: calc(100% + 60px);
    left: -30px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
    opacity: 0.9;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.08);
    opacity: 1;
}

.prev-btn {
    margin-left: 0;
}

.next-btn {
    margin-right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(45, 106, 79, 0.25);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.5);
    box-shadow: 0 0 6px rgba(45, 106, 79, 0.4);
}

.indicator:hover {
    background-color: var(--secondary-color);
    transform: scale(1.3);
}

/* Responsive Reviews */
@media (max-width: 1024px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .reviews-left h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }

    .reviews-layout {
        gap: 2rem;
    }

    .reviews-left h2 {
        font-size: 2rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .prev-btn {
        margin-left: -20px;
    }

    .next-btn {
        margin-right: -20px;
    }

    .reviews-cta p {
        font-size: 1.1rem;
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

/* Form Validation Styles (for forms.js) */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation Classes (for animations.js) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 4rem;
    margin-bottom: 0;
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-section h3.footer-logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-logo-container {
    margin-top: 1.5rem;
}

.footer-logo-image {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

/* Contact icons styling */
.footer-contact svg {
    color: var(--secondary-color) !important;
    fill: var(--secondary-color) !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-contact li:hover svg {
    color: var(--white) !important;
    fill: var(--white) !important;
    transform: scale(1.1);
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25D366, #20b358);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.footer-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20b358, #1a9647);
}

.footer-whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-powered {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-ccw-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-ccw-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Center the company info section */
    .footer-section:first-child {
        text-align: center;
    }

    /* Create a flex wrapper for Services and Company */
    .footer-section:nth-child(2) {
        order: 1;
    }

    .footer-section:nth-child(3) {
        order: 2;
    }

    .footer-section:last-child {
        order: 3;
    }

    /* Wrap Services and Company in a flex container */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        grid-template-areas:
            "company company"
            "services companylinks"
            "contact contact";
    }

    .footer-section:first-child {
        grid-area: company;
        text-align: center;
    }

    .footer-section:nth-child(2) {
        grid-area: services;
        text-align: center;
    }

    .footer-section:nth-child(3) {
        grid-area: companylinks;
        text-align: center;
    }

    .footer-section:last-child {
        grid-area: contact;
        text-align: center;
    }

    .footer-section:last-child .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section:last-child .footer-whatsapp-btn {
        display: inline-flex;
    }

    .footer-section h3.footer-logo {
        font-size: 1.75rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        row-gap: 2rem;
    }

    /* Hide logo image on mobile */
    .footer-logo-container {
        display: none;
    }

    /* Make first section (company info) span 2 columns and center */
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-section h3.footer-logo {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* Center the Get In Touch section and make it span 2 columns */
    .footer-section:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-section:last-child .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section:last-child .footer-whatsapp-btn {
        display: inline-flex;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .footer-contact li {
        margin-bottom: 0.75rem;
    }

    .footer-whatsapp-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
        margin-top: 0.75rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-light {
    background-color: var(--background-light);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}