/* =========================================
   FARMÁCIA POPULAR - GLOBAL STYLES
   ========================================= */

:root {
    /* Colors */
    --primary: #E31919;
    --primary-dark: #C81010;
    --primary-soft: rgba(227, 25, 25, 0.08);
    --secondary: #2ECC71;
    --secondary-hover: #27AE60;
    --secondary-soft: rgba(46, 204, 113, 0.1);
    --accent: #3498DB;
    --accent-hover: #2980B9;
    --highlight: #F1C40F;
    
    /* Neutral Colors */
    --dark: #1A1A1A;
    --text-body: #4A4A4A;
    --light: #FFFFFF;
    --bg-light: #F8F9FA;
    --gray: #F5F5F5;
    --border: rgba(0, 0, 0, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.3;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

p {
    margin-bottom: 20px;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* =========================================
   LAYOUT UTILS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
}

.page-header {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    margin-bottom: 40px;
}

/* =========================================
   HEADER
   ========================================= */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 25, 25, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 0;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight-text {
    color: var(--primary);
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-body);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 10px 20px rgba(227, 25, 25, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(227, 25, 25, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.35);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--light);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.25);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.35);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =========================================
   CARDS & GRIDS
   ========================================= */
.benefits-grid, .mission-vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card, .mvv-card {
    padding: 40px 30px;
    border-radius: 20px;
    background-color: var(--light);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mvv-card {
    background: var(--light); /* Ensure consistency for mvv cards */
}

.benefit-card:hover, .mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.benefit-icon, .mvv-card i {
    width: 70px;
    height: 70px;
    background-color: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 28px;
    transition: all 0.4s ease;
}

.mvv-card i {
    width: auto;
    height: auto;
    background: none;
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary);
    color: var(--light);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(227, 25, 25, 0.2);
}

.benefit-title, .mvv-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* =========================================
   CONTACT PAGE & FORMS
   ========================================= */
.contact-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background-color: var(--light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

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

.info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.info-content p {
    color: var(--text-body);
    font-size: 1rem;
    margin: 0;
}

.contact-form {
    background-color: var(--light);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #EEE;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--light);
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(227, 25, 25, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(227, 25, 25, 0.3);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--light);
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a, .footer-links span, .footer-links li {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.footer-links i {
    width: 24px;
    color: var(--primary);
    text-align: center;
}

.footer-legal-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal-info strong {
    color: rgba(255, 255, 255, 0.9);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .header-content { justify-content: center; }
    .header-buttons { justify-content: center; width: 100%; margin-top: 15px; }
    .btn-submit { width: 100%; }
    .contact-form { padding: 30px; }
}
