/* 
   MedVetLegal - Custom Stylesheet
   Color Palette: Deep Navy (#0e2a47) & Noble Gold (#c7a006)
*/

:root {
    --primary-color: #0e2a47;
    --primary-light: #163c65;
    --primary-dark: #071729;
    --accent-color: #c7a006;
    --accent-hover: #e0b408;
    --accent-light: #fdf6d4;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(14, 42, 71, 0.05);
    --hover-shadow: 0 20px 40px rgba(14, 42, 71, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Typography */
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Navigation Bar */
.navbar-custom {
    background-color: var(--primary-color);
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-custom .navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.btn-nav-contact {
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    border-radius: 4px;
    padding: 0.4rem 1.2rem !important;
    transition: var(--transition-smooth) !important;
}

.btn-nav-contact:hover {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.btn-nav-contact::after {
    display: none !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(7, 23, 41, 0.94), rgba(14, 42, 71, 0.85)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 0 140px;
    position: relative;
    text-align: center;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.btn-gold {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 16px 42px;
    border-radius: 4px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(199, 160, 6, 0.3);
    transition: var(--transition-smooth);
}

.btn-gold:hover {
    background-color: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 160, 6, 0.5);
}

/* Section Common Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Profile Cards */
.profile-card {
    border: none;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.profile-header {
    background-color: var(--primary-color);
    height: 140px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.profile-img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    margin: -95px auto 0;
    display: block;
    background-color: #eee;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-card h3 {
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-top: 25px;
    font-weight: 700;
}

.profile-role {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.profile-features {
    text-align: left;
    margin-top: 30px;
    padding: 0 10px;
}

.profile-feature-item {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-feature-item i {
    color: var(--accent-color);
    margin-top: 5px;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-card-footer {
    border-top: 1px solid #edf2f7;
    margin-top: 35px;
    padding-top: 25px;
}

.btn-lattes {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 24px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.btn-lattes:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Service Box Grid */
.service-card {
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--accent-color);
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Form Card */
.contact-section {
    background-color: #f7fafc;
}

.contact-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(14, 42, 71, 0.08);
    overflow: hidden;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 50px;
}

.contact-info-panel h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 25px;
}

.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.contact-info-text p,
.contact-info-text a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin: 0;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.contact-info-text a:hover {
    color: var(--accent-color);
}

.contact-form-panel {
    background-color: var(--white);
    padding: 50px;
}

.contact-form-panel h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.1);
    outline: none;
}

/* Footer styling */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-color);
}

footer h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

footer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-social-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
    padding-top: 25px;
    font-size: 0.85rem;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-custom .nav-link {
        margin-left: 0;
        padding: 0.8rem 0;
    }
    .btn-nav-contact {
        display: inline-block;
        margin-top: 10px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .profile-img {
        width: 160px;
        height: 160px;
        margin-top: -80px;
    }
    .profile-header {
        height: 110px;
    }
}
