/*
Theme Name: Altasorz Green Technology Theme
Theme URI: https://www.altasorz.com/
Author: Antigravity (Google DeepMind pair programming)
Author URI: https://deepmind.google/
Description: Premium, lightweight WordPress theme optimized for Core Web Vitals (95+ score) and lead generation. Custom built for Altasorz Green Technology.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: altasorz
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #1B4D3E;       /* Deep Forest Green */
    --secondary: #4CAF50;     /* Vibrant Eco-Green / Lime */
    --neutral-bg: #F9FBF9;    /* Off-white / Light Eco Gray */
    --text: #2C3E50;          /* Charcoal */
    --white: #FFFFFF;
    --border: #E8EDE8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

body {
    background-color: var(--neutral-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Global Buttons & CTA Pulse */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Pulse CTA Button in Header */
.pulse-cta {
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: ctaPulse 2s infinite;
}

.pulse-cta:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(27, 77, 98, 0.4);
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Header & Sticky Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background-color: rgba(27, 77, 62, 0.15);
    backdrop-filter: blur(10px);
}

.site-header.scrolled {
    background-color: var(--primary);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.site-header.scrolled .site-logo img {
    height: 40px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, #2A5A4A 0%, var(--primary) 70%);
    color: var(--white);
    overflow: hidden;
}

/* Modern Green Tech Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(76, 175, 80, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 175, 80, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    z-index: 10;
}

.hero-content h1 {
    font-size: 54px;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 18px;
    color: var(--neutral-bg);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Section Common Styling */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tagline {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-desc {
    color: #5a6e7f;
    font-size: 16px;
}

/* Component 3: Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 12px 35px rgba(76,175,80,0.06);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--secondary);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #5a6e7f;
    line-height: 1.5;
    flex-grow: 1;
}

.service-link {
    margin-top: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Trust Signals: Counters Banner */
.counters-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item h3 {
    font-size: 46px;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 800;
}

.counter-item p {
    font-size: 14px;
    color: var(--neutral-bg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Slider Section */
.testimonials-section {
    background-color: #f3f7f3;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-quote {
    font-style: italic;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-meta h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.client-meta span {
    font-size: 12px;
    color: #718096;
}

/* Projects Interactive Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 77, 62, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    opacity: 0.95;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(76, 175, 80, 0.95), transparent 70%);
}

.project-overlay h4 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 5px;
}

.project-overlay p {
    font-size: 13px;
    color: var(--neutral-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google AdSense placeholders with fixed CLS boundaries */
.adsense-placeholder {
    margin: 40px auto;
    text-align: center;
    background-color: #edf2f7;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 13px;
    overflow: hidden;
}

/* Specific standard Sizes to prevent Cumulative Layout Shift */
.adsense-sidebar {
    width: 300px;
    height: 600px;
}

.adsense-in-article {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

/* Corporate Footer */
.site-footer {
    background-color: #123329;
    color: #a4beba;
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul a {
    color: #a4beba;
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list span.icon {
    color: var(--secondary);
    font-size: 16px;
}

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

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

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

/* Floating WhatsApp Button Bottom-Right Widget */
.altasorz-whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    animation: waPulse 2s infinite;
}

.altasorz-whatsapp-floating svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.altasorz-whatsapp-floating:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(10deg);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Exit-Intent Popup Styles */
.altasorz-exit-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 51, 41, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.altasorz-exit-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.exit-popup-content {
    background-color: var(--white);
    max-width: 550px;
    width: 90%;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    border: 1px solid var(--border);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.altasorz-exit-popup.show .exit-popup-content {
    transform: translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: var(--transition);
}

.exit-popup-close:hover {
    color: var(--primary);
}

.exit-popup-icon {
    font-size: 54px;
    margin-bottom: 15px;
    display: block;
}

.exit-popup-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.exit-popup-content p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.5;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

/* Responsive Theme Adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none; /* Mobile hamburger omitted for layout focus */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
}
