/* Enhanced styles for Genuine Landscapers website */

/* Accessibility improvements */
:focus {
    outline: 3px solid #28a745;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced Typography */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a2b;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #28a745;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background-color: #28a745;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
    background-color: #0056b3;
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #28a745;
    color: #28a745;
}

.btn-outline:hover {
    background-color: #28a745;
    color: #fff;
}

/* Enhanced Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.scrolled .logo img {
    max-height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #1e3a2b;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #28a745;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.webp') no-repeat center center/cover;
    color: #fff;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Enhanced Services Section */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.service-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1e3a2b;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Enhanced Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f1f8f3;
    position: relative;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2328a745' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.review-slide {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.review-slide.active {
    display: block;
}

.review-content {
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.review-content:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: #28a745;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    color: #f1c40f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: #1e3a2b;
}

.review-location {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.carousel-controls {
    text-align: center;
    margin-top: 30px;
}

.prev-review, .next-review {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin: 0 15px;
    color: #28a745;
    transition: all 0.3s ease;
}

.prev-review:hover, .next-review:hover {
    color: #218838;
    transform: scale(1.1);
}

.carousel-dots {
    display: inline-block;
    margin: 0 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #999;
}

.dot.active {
    background-color: #28a745;
    transform: scale(1.2);
}

/* Enhanced Footer */
.site-footer {
    background-color: #1e3a2b;
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #28a745;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    color: #fff;
    margin-right: 20px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: #28a745;
    transform: translateY(-3px);
}

.footer-contact p,
.footer-hours p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i,
.footer-hours i {
    margin-right: 15px;
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #28a745;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-newsletter .form-group {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
}

.footer-newsletter button {
    padding: 12px 20px;
    border-radius: 50px;
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
}

.success-message {
    color: #28a745;
    padding: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
}

.error-message {
    color: #e74c3c;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom-links a {
    color: #fff;
    margin-left: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #28a745;
}

/* Enhanced Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #28a745;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top i {
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    background-color: #218838;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.form-section {
    padding: 80px 0;
    background-color: #fff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1e3a2b;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.form-control.has-error {
    border-color: #e74c3c;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
}

/* Error Page */
.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Seasonal Offers */
.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.seasonal-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid;
}

.seasonal-card h3 {
    margin-bottom: 20px;
}

.seasonal-card ul {
    list-style-type: none;
    padding: 0;
}

.seasonal-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.seasonal-card li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
}

.seasonal-card li:last-child {
    border-bottom: none;
}

.seasonal-card.spring {
    border-color: #7cb342;
}

.seasonal-card.summer {
    border-color: #ffa000;
}

.seasonal-card.fall {
    border-color: #e65100;
}

.seasonal-card.winter {
    border-color: #1976d2;
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: #f1f8f3;
    padding: 40px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: center;
}

.newsletter-signup h3 {
    margin-bottom: 15px;
}

.newsletter-signup p {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about-page-hero.webp') no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 15px;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #28a745;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-bottom-links a {
        margin: 0;
    }
    
    .review-content {
        padding: 30px 20px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .services-grid,
    .tips-grid,
    .offers-grid,
    .seasonal-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
}
