/*
Theme Name: Transmar Transportadora
Description: Tema personalizado para a Transportadora Transmar - Especializada em transporte de cargas de São Paulo para Imperatriz e 16 cidades do Maranhão
Author: Castro X Code
Version: 1.0
License: GPL v2 or later
Text Domain: transmar
*/

:root {
    --primary-900: #002590;
    --primary-800: #072E68;
    --primary-700: #1e40af;
    --accent-600: #059669;
    --accent-500: #10b981;
    --neutral-100: #f8fafc;
    --neutral-200: #e2e8f0;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--neutral-100);
    margin: 0;
    padding: 0;
}

.font-display {
    font-family: 'Montserrat', sans-serif;
}

.hero-bg {
    background: linear-gradient(135deg, #002590 0%, #072E68 50%, #1e40af 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('http://transportadoratransmar.com.br/wp-content/uploads/2023/11/caminhao-estrada.png');
    background-size: 130%;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-500);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--accent-500);
    transition: left 0.3s ease;
}

.nav-link:hover::after {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #002590, #072E68);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 37, 144, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 37, 144, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    border: 2px solid #002590;
    color: #002590;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #002590;
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: #002590;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 37, 144, 0.15);
}

.route-line {
    background: linear-gradient(90deg, #002590, #072E68);
    height: 4px;
    border-radius: 2px;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.service-icon {
    background: linear-gradient(135deg, #002590, #072E68);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002590, #072E68);
    z-index: -1;
    opacity: 0.3;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.card-hover:hover .service-icon::before {
    transform: scale(1.2);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.route-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #002590;
    transition: all 0.3s ease;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 37, 144, 0.15);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: #002590;
    line-height: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('http://transportadoratransmar.com.br/wp-content/uploads/2023/11/caminhao-estrada.png');
    background-size: 130%;
    background-position: top left;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 37, 144, 0.15);
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #002590;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 37, 144, 0.15);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #002590, #072E68);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #002590;
    box-shadow: 0 0 0 3px rgba(0, 37, 144, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #002590, #072E68);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 37, 144, 0.4);
}

.process-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    border-color: #002590;
    transform: translateY(-4px);
}

.process-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #002590, #072E68);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.guarantee-badge {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: #002590;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-card {
    background: linear-gradient(135deg, #002590, #072E68);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #002590;
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #059669;
    color: white;
}

.notification.error {
    background: #dc2626;
    color: white;
}

.notification.info {
    background: #002590;
    color: white;
}

.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.show {
    transform: translateY(0);
}

.faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question:focus {
    outline: none;
    background: #f8fafc;
}

.faq-answer {
    border-top: 1px solid #f3f4f6;
    animation: slideDown 0.3s ease-out;
}

.faq-answer.show {
    display: block;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

section {
    position: relative;
    transition: all 0.3s ease;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 37, 144, 0.1), transparent);
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    section {
        padding: 3rem 0;
    }
}

.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 37, 144, 0.15);
    border-color: #e5e7eb;
}

@media (max-width: 640px) {
    .section-title {
        font-size: 1.75rem;
    }
    section {
        padding: 2.5rem 0;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-whatsapp 2s infinite;
}

/* Force WhatsApp notification to stay visible */
.whatsapp-notification {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce-notification 1s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce-notification {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-tooltip {
        bottom: 65px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* Developer Credit */
.developer-credit {
    margin-top: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.developer-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: #059669;
}

/* Tailwind-like utilities */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.text-white { color: white; }
.bg-white { background-color: white; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.mb-16 { margin-bottom: 4rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.p-8 { padding: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:text-5xl { font-size: 3rem; }
}

/* Additional WordPress specific styles */
.wp-block-group {
    margin: 0;
}

.site-main {
    margin-top: 0;
    padding-top: 0;
}

/* Logo size enforcement */
.custom-logo,
.custom-logo img,
nav img,
footer img,
img[alt*="Transmar"] {
    width: 70px !important;
    height: auto !important;
    max-width: 70px !important;
    min-width: 70px !important;
}

/* Menu Cotação button styling */
.menu-item a[href="#cotacao"],
a[href="#cotacao"].btn-primary {
    background: linear-gradient(135deg, #002590, #072E68) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 37, 144, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
}

.menu-item a[href="#cotacao"]:hover,
a[href="#cotacao"].btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 37, 144, 0.4) !important;
}

/* Form error states */
.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #059669;
    color: white;
}

.notification.error {
    background: #dc2626;
    color: white;
}

.notification.info {
    background: #002590;
    color: white;
}

/* WordPress admin bar compatibility */
body.admin-bar nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav {
        top: 46px;
    }
}

/* Ensure proper spacing */
#main {
    padding-top: 0;
    margin-top: 0;
}

body.admin-bar #main {
    padding-top: 0;
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #main {
        margin-top: 46px;
    }
}

/* Force display of main content */
.site-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero section specific */
.hero-bg {
    display: flex !important;
    min-height: 100vh;
}

/* Ensure sections are visible */
section {
    display: block !important;
    visibility: visible !important;
}