/*
Theme Name: Glass & Growth
Author: WordPress Telex
Description: A refined, editorial WordPress block theme for greenhouse and agricultural companies. Features deep forest greens, cinematic imagery, and elegant serif typography.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: glass-and-growth
Tags: block-theme, full-site-editing, agriculture, greenhouse
*/

/* Top Bar */
.gg-top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.gg-top-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.gg-top-bar a:hover {
    color: #52B788;
}

/* Navigation */
.gg-nav a {
    position: relative;
    text-decoration: none;
    color: #FAFAFA;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
.gg-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #52B788;
    transition: width 0.3s ease;
}
.gg-nav a:hover {
    color: #52B788;
}
.gg-nav a:hover::after {
    width: 100%;
}

/* Hero */
.gg-hero-headline {
    text-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* 9-Grid Hero */
.gg-nine-grid-wrapper {
    position: relative;
    width: 100%;
    height: 200vh;
}
.gg-nine-grid-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.gg-nine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
    transition: none;
}
.gg-nine-grid .gg-grid-cell {
    overflow: hidden;
    position: relative;
}
.gg-nine-grid .gg-grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gg-nine-grid .gg-grid-cell--center {
    z-index: 10;
    position: relative;
}
.gg-nine-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 67, 50, 0.65);
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.gg-nine-grid-overlay > * {
    pointer-events: auto;
}
.gg-nine-grid-overlay.is-faded {
    opacity: 0;
    pointer-events: none;
}

/* CTA Button */
.gg-cta .wp-block-button__link {
    background-color: #4CAF50 !important;
    color: #FAFAFA !important;
    border-radius: 50px !important;
    padding: 1.15rem 3rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25,1,0.5,1) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.gg-cta .wp-block-button__link:hover {
    background-color: #52B788 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Section Divider */
.gg-divider {
    width: 60px;
    height: 2px;
    background: #52B788;
    border: none;
    opacity: 1;
}

/* Crop Tabs */
.gg-crop-tabs .wp-block-column {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(82,183,136,0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
}
.gg-crop-tabs .wp-block-column:hover {
    border-color: #52B788;
    background: rgba(82,183,136,0.08);
    transform: translateY(-2px);
}

/* Service Cards */
.gg-service-card {
    border: 1px solid rgba(82,183,136,0.15);
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}
.gg-service-card:hover {
    border-color: #52B788;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Stats */
.gg-stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    line-height: 1.1 !important;
}

/* Testimonial */
.gg-testimonial {
    border-left: 3px solid #52B788;
    padding-left: 2rem;
}

/* Project Grid */
.gg-project-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gg-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Equal Cards */
.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* Footer */
.gg-footer a {
    color: rgba(250,250,250,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.gg-footer a:hover {
    color: #52B788;
}

.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* Crop image grid */
.gg-crop-grid img {
    border-radius: 8px;
    transition: transform 0.4s ease;
}
.gg-crop-grid img:hover {
    transform: scale(1.03);
}

/* Section entrance animations */
@keyframes ggFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.gg-animate {
    animation: ggFadeUp 0.8s ease forwards;
}

/* Certification badges */
.gg-cert {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 700;
}