/* =========================================
   Verde Armonia - Custom Styles
   ========================================= */

/* Root Variables */
:root {
    --primary-green: #198754;
    --light-green: #d1e7dd;
    --dark-green: #146c43;
    --gradient-green: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    --gradient-info: linear-gradient(135deg, #0dcaf0 0%, #6f42c1 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-green);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none; /* This allows clicks to pass through */
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Gradient Backgrounds */
.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

/* Hero and About Images */
.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.about-image img {
    max-width: 350px;
    height: auto;
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-body {
    padding: 2rem;
}

.review-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.featured-post {
    border-left: 5px solid var(--primary-green);
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-success {
    background: var(--gradient-green);
    border: none;
}

.btn-success:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-success:hover {
    background: var(--gradient-green);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

/* Contact Info */
.contact-info {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-3px);
}

.contact-info i {
    transition: all 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.1);
}

/* Social Links */
.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .btn {
    margin: 0.25rem;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-green);
}

/* Blog Styles */
.blog-header {
    background: var(--gradient-success);
}

.sidebar .card {
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.recent-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post-item h6 a {
    color: #333;
    transition: color 0.3s ease;
}

.recent-post-item h6 a:hover {
    color: var(--primary-green);
}

/* Article Styles */
.article-header {
    padding: 4rem 0;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #555;
}

.author-bio {
    border-left: 4px solid var(--primary-green);
}

/* Legal Pages */
.page-header {
    padding: 3rem 0;
}

.privacy-content,
.terms-content,
.cookie-content {
    font-size: 1rem;
    line-height: 1.7;
}

.privacy-content h2,
.terms-content h2,
.cookie-content h2 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
}

/* Thank You Page */
.min-vh-100 {
    min-height: 100vh;
}

.social-sharing .btn {
    margin: 0.25rem;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--primary-green);
    font-weight: 600;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: var(--light-green);
    color: var(--dark-green);
}

/* Accordion */
.accordion-button {
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: var(--primary-green);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-green);
    color: var(--dark-green);
}

/* Stars */
.stars {
    color: #ffc107;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .cookie-banner .container .row {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner .col-lg-4 {
        margin-top: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Custom Utilities */
.text-gradient {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-green) 1;
}

.shadow-custom {
    box-shadow: 0 .5rem 1.5rem rgba(25, 135, 84, 0.2);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid var(--primary-green);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: var(--primary-green);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .btn-outline-success {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}
