/* Additional styles beyond critical CSS */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: #f8fafc;
}

.section-contact {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c5530;
    text-align: center;
    margin-bottom: 1rem;
}

.section-contact h2 {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
}

.section-contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Header Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #2c5530;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5530;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a:hover .logo-text {
    color: #4a7c59;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    color: #2c5530;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c5530;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #2c5530;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Additional Styles */
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #e6f7ea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 20% center;
    box-shadow: 0 8px 32px rgba(44, 85, 48, 0.2);
    border: 4px solid white;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.qualifications {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
}

.qualifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5530;
    font-weight: bold;
}

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

.engagement {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.engagement img {
    flex-shrink: 0;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c5530;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
}

.process-step p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.address {
    margin-bottom: 1.5rem;
    font-style: normal;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-methods p {
    margin-bottom: 0.5rem;
}

.contact-methods a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: text-decoration-color 0.2s ease;
}

.contact-methods a:hover,
.contact-methods a:focus {
    text-decoration-color: white;
}

.privacy-notice {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.privacy-notice small {
    color: rgba(255, 255, 255, 0.9);
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background: #1eb757;
    border-color: #1eb757;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-container img {
    transition: transform 0.2s ease;
}

.logo-container a:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
    color: white;
}

.footer-regions {
    margin: 1rem 0;
}

.footer-legal {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    margin-top: 2rem;
}

.developer-credit {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #334155;
    margin-top: 1.5rem;
}

.developer-credit a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.developer-credit a:hover,
.developer-credit a:focus {
    color: white;
}

.developer-credit img {
    width: 100px;
    height: auto;
    transition: transform 0.2s ease;
}

.developer-credit a:hover img {
    transform: scale(1.05);
}

/* Legal Pages */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 70vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5530;
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5530;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #475569;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #475569;
}

.legal-content a {
    color: #2c5530;
    text-decoration: underline;
    text-decoration-color: rgba(44, 85, 48, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus {
    text-decoration-color: #2c5530;
}

.contact-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.intro {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 4px solid #2c5530;
    border-radius: 0 6px 6px 0;
}

.important-notice {
    background: #fef3cd;
    border: 1px solid #f6cc3b;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.important-notice h3 {
    color: #b45309;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.important-notice p {
    color: #92400e;
    margin: 0;
}

.back-link {
    background: white;
    border: 1px solid white;
    text-align: center;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Error Page */
.error-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 70vh;
}

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

.error-number {
    font-size: 6rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.helpful-links {
    text-align: left;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.helpful-links h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
}

.helpful-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.helpful-links li {
    margin-bottom: 0.75rem;
}

.helpful-links a {
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.helpful-links a:hover,
.helpful-links a:focus {
    color: #4a7c59;
    text-decoration: underline;
}

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

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: 120px 1rem 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-nav ul,
    .footer-legal ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-content h1 {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .logo-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-container {
        padding: 0 0.75rem;
    }
    
    .service-card,
    .process-step {
        padding: 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .helpful-links {
        padding: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #2c5530;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .hero-actions,
    .back-link,
    .map-link {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .legal-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
