/* ===================================================
   GreenScape Lawn Services – Custom Stylesheet
   =================================================== */

:root {
    --gs-green-dark: #228B22;
    --gs-green-light: #90EE90;
    --gs-green-hover: #1a6e1a;
    --gs-white: #ffffff;
    --gs-off-white: #f8f9fa;
    --gs-gray: #6c757d;
    --gs-dark: #212529;
}

/* ---- Base ---- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    color: var(--gs-dark);
    margin: 0;
    padding: 0;
    padding-top: 56px; /* offset for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--gs-green-dark);
}

/* ---- Navbar ---- */
.gs-navbar {
    background-color: rgba(34, 139, 34, 0.95) !important;
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease;
}

.gs-navbar .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.gs-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.gs-navbar .nav-link:hover,
.gs-navbar .nav-link:focus {
    color: var(--gs-green-light) !important;
}

/* ---- Buttons ---- */
.btn-gs {
    background-color: var(--gs-green-dark);
    color: var(--gs-white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-gs:hover,
.btn-gs:focus {
    background-color: var(--gs-green-hover);
    color: var(--gs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

.btn-gs-outline {
    border: 2px solid var(--gs-green-dark);
    color: var(--gs-green-dark);
    background: transparent;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-gs-outline:hover,
.btn-gs-outline:focus {
    background-color: var(--gs-green-dark);
    color: var(--gs-white);
    transform: translateY(-2px);
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    margin-top: -56px;              /* pull up behind the fixed navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('https://images.pexels.com/photos/1453499/pexels-photo-1453499.jpeg?auto=compress&cs=tinysrgb&w=1920') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(34, 139, 34, 0.70) 0%, rgba(0, 0, 0, 0.50) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--gs-white);
    padding: 6rem 1rem 2rem;       /* top padding clears the navbar */
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---- Hero button row ---- */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gs-white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    background: rgba(255, 255, 255, 0.92);
    color: var(--gs-green-dark);
    border-color: var(--gs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-btn-accent {
    background: var(--gs-white);
    color: var(--gs-green-dark);
    border-color: var(--gs-white);
}

.hero-btn-accent:hover,
.hero-btn-accent:focus {
    background: var(--gs-green-light);
    color: var(--gs-green-dark);
    border-color: var(--gs-green-light);
}

/* Scroll-down indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(12px); }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 5rem 1rem 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-btn {
        font-size: 0.82rem;
        padding: 0.45rem 1rem;
    }
}

/* iOS touch devices — background-attachment:fixed not supported */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* ---- Section Helpers ---- */
.section-padding {
    padding: 5rem 0;
    position: relative;
    background-color: var(--gs-white);     /* opaque so fixed hero image stays behind */
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--gs-green-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gs-green-light);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--gs-gray);
    max-width: 600px;
    margin: 0.75rem auto 0;
}

.bg-light-green {
    background-color: #e8f5e9;
    position: relative;
    z-index: 1;
}

/* ---- Service Cards ---- */
.service-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gs-green-dark), var(--gs-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--gs-white);
    font-size: 1.6rem;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background-color: var(--gs-white);
    border: none;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gs-green-light);
    position: absolute;
    top: 0.25rem;
    left: 1.25rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--gs-gray);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

.testimonial-card .testimonial-name {
    font-weight: 700;
    color: var(--gs-green-dark);
}

/* ---- About / Team Cards ---- */
.team-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-card img {
    height: 280px;
    object-fit: cover;
}

.values-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.values-list li i {
    color: var(--gs-green-dark);
    margin-right: 0.5rem;
}

/* ---- Services Detail ---- */
.services-detail-card {
    border: none;
    border-left: 4px solid var(--gs-green-dark);
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    background-color: var(--gs-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.services-detail-card:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.services-detail-card h3 {
    color: var(--gs-green-dark);
}

/* ---- Gallery ---- */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.85);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: var(--gs-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 12px 12px;
}

/* ---- Lightbox Modal ---- */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    text-align: center;
}

.lightbox-modal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    filter: invert(1);
}

/* ---- Contact ---- */
.contact-info-card {
    background: linear-gradient(135deg, var(--gs-green-dark), #1a6e1a);
    color: var(--gs-white);
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-info-card h3 {
    margin-bottom: 1.5rem;
}

.contact-info-card ul {
    list-style: none;
    padding: 0;
}

.contact-info-card li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info-card li i {
    width: 24px;
    text-align: center;
    margin-right: 0.75rem;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--gs-green-dark);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ---- Footer ---- */
.gs-footer {
    background: linear-gradient(135deg, #1a3d1a, #0d260d);
    position: relative;
    z-index: 1;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--gs-green-light);
}

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

.footer-social:hover,
.footer-social:focus {
    color: var(--gs-green-light);
    transform: translateY(-3px);
}

/* ---- Fade-in animation (scroll driven) ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--gs-green-dark), #1a6e1a);
    color: var(--gs-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: var(--gs-white);
}

.cta-banner .btn-light {
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}