/* ===================================
   Dilvy - Pest Control Website
   Custom CSS Styles
   =================================== */

/* ===== Variables ===== */
:root {
    --primary-color: #8B1A1A;
    --secondary-color: #A52A2A;
    --accent-color: #D32F2F;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: #FFD700;
}

.top-bar i {
    margin-right: 5px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Navigation ===== */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.navbar-brand .logo {
    max-height: 60px;
    width: auto;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
    background: var(--primary-color);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.8), rgba(44, 62, 80, 0.7));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
    text-align: center;
}

.hero-subtitle {
    display: inline-block;
    color: #FFD700;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 26, 26, 0.8);
    border-radius: 50%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Programas Destaque ===== */
.programas-destaque {
    background: var(--light-color);
}

.programa-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.programa-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.programa-card:hover .programa-icon {
    transform: rotate(360deg);
}

.programa-card h4 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.programa-card p {
    color: #666;
    margin: 0;
}

/* ===== Serviços ===== */
.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.9), rgba(44, 62, 80, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 60px;
    color: var(--white);
}

.service-content {
    padding: 30px;
}

.service-content h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    margin: 0;
}

/* ===== Sobre ===== */
.sobre img {
    border-radius: 15px;
}

.sobre h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.sobre p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* ===== Directora ===== */
.directora-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.directora-card h3 {
    font-size: 32px;
    font-weight: 700;
}

.directora-card h5 {
    font-size: 18px;
}

/* ===== Valores ===== */
.valor-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.valor-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.valor-card:hover .valor-icon {
    background: var(--white);
    color: var(--primary-color);
}

.valor-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.valor-card:hover h4,
.valor-card:hover p {
    color: var(--white);
}

/* ===== Clientes ===== */
.clientes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cliente-badge {
    display: inline-block;
    padding: 12px 25px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cliente-badge:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== Contacto ===== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 26, 26, 0.25);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links-footer a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links-footer a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        margin-bottom: 10px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}



/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    padding: 100px 0 60px;
    margin-top: 0;
}

.page-header h1 {
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Service Icon Large ===== */
.service-icon-large {
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 48px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
}


/* O cartão de fundo para o texto */
.directora-card-elegante {
    background-color: #ffffff;
    border-radius: 15px; /* Bordas arredondadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); /* Sombra suave e elegante */
    padding: 20px;
    padding-top: 80px; /* Espaço no topo para a imagem não sobrepor o texto */
    margin-top: 70px; /* Margem no topo para a imagem ter onde "respirar" */
    position: relative; /* Essencial para o posicionamento da imagem */
    width: 100%;
}

/* Contentor da imagem */
.directora-imagem-wrapper {
    position: absolute;
    top: -60px; /* Puxa a imagem para cima, para fora do cartão */
    left: 50%;
    transform: translateX(-50%); /* Centra a imagem horizontalmente */
    width: 140px; /* Largura da moldura */
    height: 140px; /* Altura da moldura */
}

/* A imagem e sua moldura elegante */
.directora-imagem-perfil {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a foto preenche a moldura */
    border-radius: 50%; /* Imagem perfeitamente redonda */
    border: 7px solid #ffffff; /* Borda branca espessa que cria um efeito de destaque */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Sombra na própria imagem para dar profundidade */
}

/* A área de informação (nome e cargo) */
.directora-info {
    margin-top: 10px; /* Pequeno ajuste no espaçamento */
}


/* ===== Mission Card ===== */
.mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

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

.mission-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 36px;
    border-radius: 50%;
    display: inline-block;
}

.mission-card h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.mission-card p {
    color: #666;
    margin: 0;
}

/* ===== Contact Info Card ===== */
.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 30px;
    border-radius: 50%;
}

.contact-info-card h5 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: #666;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

/* ===== Map Container ===== */
.map-container {
    box-shadow: var(--shadow);
    border-radius: 15px;
    overflow: hidden;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-section h2 {
    color: var(--white);
    font-size: 32px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* ===== Form Labels ===== */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* ===== Responsive Adjustments for Internal Pages ===== */
@media (max-width: 767px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 36px;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
}

