/* css/contact.css - Contact Section Styles */

/* Contact Section */
.contact {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--terracotta) 50%, 
        transparent 100%
    );
}

.contact::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 5%;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.1'%3E%3Cpath d='M75,30 Q90,50 75,70 Q60,50 75,30' fill='%237c8471'/%3E%3Cpath d='M75,70 L75,120' stroke='%237c8471' stroke-width='2'/%3E%3Cpath d='M60,80 Q70,90 60,100' fill='%238a9a5b'/%3E%3Cpath d='M90,80 Q80,90 90,100' fill='%238a9a5b'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 1;
}

.contact-content.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Contact Info */
.contact-info {
    padding: 2rem;
    background: rgba(244, 241, 232, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(124, 132, 113, 0.2);
}

.info-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px dashed var(--sage-light);
    opacity: 0;
    transform: translateX(-20px);
}

.contact-content.animate-in .info-item {
    animation: slideInLeft 0.6s ease forwards;
}

.contact-content.animate-in .info-item:nth-child(1) { animation-delay: 0.2s; }
.contact-content.animate-in .info-item:nth-child(2) { animation-delay: 0.3s; }
.contact-content.animate-in .info-item:nth-child(3) { animation-delay: 0.4s; }

.info-item:last-of-type {
    border-bottom: none;
}

.info-item h3 {
    font-family: var(--font-secondary);
    font-size: 1.375rem;
    color: var(--forest-dark);
    margin-bottom: 0.75rem;
    font-style: italic;
    position: relative;
    padding-left: 25px;
}

.info-item h3::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-size: 1rem;
}

.info-item p {
    color: var(--walnut);
    line-height: 1.8;
    margin: 0;
}

.info-item em {
    color: var(--olive);
    font-size: 0.9em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px dashed var(--sage-light);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--sage-light);
    border-radius: 50%;
    color: var(--forest-green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--forest-green);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--warm-white);
    border-color: var(--forest-green);
    transform: translateY(-3px) rotate(5deg);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form {
    background: var(--warm-white);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(30, 58, 41, 0.08);
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(124, 132, 113, 0.2);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--forest-green) 0%, var(--terracotta) 100%);
    border-radius: 10px 0 0 10px;
}

.contact-form::after {
    content: '✉';
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--warm-white);
    padding: 0 10px;
    color: var(--terracotta);
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--sage-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    color: var(--forest-dark);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-bottom-color: var(--forest-green);
    outline: none;
}

.contact-form .form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--olive);
    pointer-events: none;
    transition: all 0.3s ease;
    font-style: italic;
}

.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:valid ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:valid ~ label {
    top: -0.75rem;
    font-size: 0.875rem;
    color: var(--forest-green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: var(--spacing-sm);
    background: var(--forest-green);
    color: var(--warm-white);
    border: 2px solid var(--forest-green);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    font-style: italic;
    z-index: 1;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--rust) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-submit:hover::before {
    left: 0;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 41, 0.2);
    border-color: var(--terracotta);
    color: var(--warm-white);
}

/* Footer */
.footer {
    background: var(--forest-dark);
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='100' viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q50,30 100,50 T200,50' stroke='%237c8471' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 200px 100px;
    background-repeat: repeat-x;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content p {
    color: var(--sage-light);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    font-style: italic;
}

.footer-content p:first-child {
    color: var(--warm-white);
    font-size: 1rem;
}

/* Map Container (Optional) */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: var(--spacing-lg);
    border: 1px solid var(--gray-pale);
    background: var(--gray-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--gray-medium);
}

.map-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .info-item {
        border-bottom: none;
        border-left: 3px solid var(--accent-gold);
        padding-left: 1rem;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-form::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
    }
    
    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
}

/* Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}