/* About and Contact Pages Styling */

.about-hero,
.contact-hero {
    background: linear-gradient(135deg, #1a3d6a 0%, #2c5aa0 50%, #51854c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(81, 133, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero h1,
.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.about-hero p,
.contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    opacity: 0.95;
}

/* About Content */
.about-content {
    padding: 5rem 0;
    background: linear-gradient(180deg, #faf9f6 0%, #ffffff 50%, #f8f7f4 100%);
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(81, 133, 76, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(26, 61, 106, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.about-section {
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 6px solid #51854c;
    position: relative;
    z-index: 1;
}

.about-section h2 {
    color: #1a3d6a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-section p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: linear-gradient(135deg, #f8f7f4 0%, #faf9f6 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(81, 133, 76, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(81, 133, 76, 0.15);
    border-color: rgba(81, 133, 76, 0.3);
    background: white;
}

.service-item i {
    font-size: 2.5rem;
    color: #51854c;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #1a3d6a;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.about-tagline {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.about-tagline p {
    color: #1a3d6a;
    font-size: 1.3rem;
    margin: 0;
}

/* Contact Content */
.contact-content {
    padding: 5rem 0;
    background: linear-gradient(180deg, #faf9f6 0%, #ffffff 50%, #f8f7f4 100%);
    position: relative;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(81, 133, 76, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(26, 61, 106, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-info h2 {
    color: #1a3d6a;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(81, 133, 76, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.8rem;
    color: #51854c;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-item h3 {
    color: #1a3d6a;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.info-item a {
    color: #51854c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #6ba065;
    text-decoration: underline;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper h2 {
    color: #1a3d6a;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #1a3d6a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(81, 133, 76, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #51854c;
    box-shadow: 0 0 0 3px rgba(81, 133, 76, 0.1);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero p,
    .contact-hero p {
        font-size: 1rem;
    }

    .about-section,
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-overview {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .about-hero,
    .contact-hero {
        padding: 3rem 0;
    }

    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        padding: 3rem 0;
    }

    .about-section,
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .services-overview {
        grid-template-columns: 1fr;
    }
}
