/* Modern Restyling for Pereira & Asociados */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    /* Premium Navy */
    --accent-color: #ff6426;
    /* Existing Orange, kept for brand identity */
    --secondary-color: #f8fafc;
    /* Off-white background */
    --text-color: #334155;
    /* Slate 700 */
    --heading-color: #1e293b;
    /* Slate 800 */
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    color: var(--heading-color);
    font-weight: 700;
}

/* Hero Section */
.hero-area {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../img/banner_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Buttons */
.btn-modern {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 100, 38, 0.4);
    border: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 100, 38, 0.6);
    color: white;
    background: #ff7c4d;
}

/* About Section Modernization */
.section-modern-padding {
    padding: 100px 0;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    border-radius: 20px;
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 10px;
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-modern-padding {
        padding: 60px 0;
    }
}

/* Footer Restyling */
.footer-area {
    background-color: var(--primary-color) !important;
    padding: 80px 0 40px !important;
    color: #cbd5e1 !important;
    /* Slate 300 */
}

.footer-area h4 {
    color: white !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
}

.footer-area h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-area p,
.footer-area a,
.footer-area span,
.footer-area b,
.footer-area strong,
.footer-area li {
    color: #e2e8f0 !important;
    /* Slate 200 - Lighter for better contrast */
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    transition: color 0.3s ease;
}

.footer-area a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.footer-area ul li {
    margin-bottom: 10px;
}

/* Newsletter Form */
.footer-area input.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 5px 0 0 5px !important;
    padding: 10px 15px !important;
}

.footer-area input.form-control::placeholder {
    color: #94a3b8 !important;
}

.footer-area .input-group-append .btn {
    background: var(--accent-color) !important;
    color: white !important;
    border-radius: 0 5px 5px 0 !important;
    border: none !important;
}

.footer-area .input-group-append .btn:hover {
    background: #ff7c4d !important;
}

/* Copyright Area */
.copyright_part_text {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

.copyright_social_icon a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white !important;
    transition: all 0.3s ease;
}

.copyright_social_icon a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    padding-left: 0 !important;
    /* Reset generic hover padding */
}

/* Shared Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    object-fit: cover;
}

.bg-light {
    background-color: #f1f5f9 !important;
}

/* News Section */
.news-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 100, 38, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover h4 {
    color: var(--accent-color);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .news-image {
        height: 200px;
    }
}

/* SMS-Style Contact Section */
.sms-contact-section {
    padding: 100px 0;
    background: #f8fafc;
}

.sms-contact-info {
    background: var(--primary-color);
    padding: 60px;
    border-radius: 20px 0 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.sms-contact-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 0;
}

.sms-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sms-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sms-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.sms-info-item h5 {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif !important;
}

.sms-info-item p {
    color: #cbd5e1 !important;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sms-contact-form-wrapper {
    background: white;
    padding: 60px;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.sms-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sms-input,
.sms-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f1f5f9;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem;
    color: var(--text-color);
}

.sms-input:focus,
.sms-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 100, 38, 0.1);
}

.sms-textarea {
    resize: none;
}

.gap-3 {
    gap: 1rem;
}

@media (max-width: 991px) {
    .sms-contact-info {
        border-radius: 20px 20px 0 0;
        padding: 40px;
    }

    .sms-contact-form-wrapper {
        border-radius: 0 0 20px 20px;
        padding: 40px;
    }
}

@media (max-width: 576px) {

    .sms-contact-info,
    .sms-contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* Hide SMS logo on scroll */
.menu_fixed .img_der {
    display: none !important;
}