/* Theme Name: Borba & Camargo Child
Theme URI: https://borbaecamargoadvogados.com.br
Description: Child theme for Borba & Camargo Advogados blog.
Version: 1.0
Template: twentyseventeen
Text Domain: borba-child
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Questrial:wght@400&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFF1E2;
}

h1, h2, h3, h4 {
    font-family: 'Questrial', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page {
    min-height: 48vh;
    padding: 24px 0 72px;
}

.contact-page-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 36px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(49, 44, 46, 0.08);
    text-align: center;
}

.contact-page-details {
    margin-top: 28px;
    line-height: 1.9;
}

.contact-page-details a,
.footer-contact a {
    color: inherit;
}

/* Override existing styles for blog */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.site-header {
    background-color: #312C2E;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-logo img {
    height: 55px;
}

.header-nav ul {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: #FFFFFF;
    font-family: 'Questrial', sans-serif;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s;
    padding-bottom: 3px;
}

.header-nav a:hover,
.header-nav a.active {
    color: #C1982F;
    border-bottom: 2px solid #C1982F;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Instagram Icon - Gradient colorido */
.social-icon.instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E1306C 0%, #C1272D 50%, #833F72 75%, #585F76 100%, #3560A8 100%);
    color: #FFFFFF;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon.instagram:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.9;
}

/* WhatsApp Button - Verde colorido */
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Questrial', sans-serif;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #25D366 0%, #0E7A6E 100%);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Additional responsive and utility styles */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .header-mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .header-mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #FFFFFF;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .header-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #312C2E;
        z-index: 1000;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    .header-mobile-menu.active {
        right: 0;
    }

    .header-mobile-menu nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .header-mobile-menu nav a {
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .header-mobile-menu .header-actions {
        flex-direction: column;
        margin-top: 30px;
        gap: 15px;
    }

    .header-mobile-menu .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Desktop: hide mobile toggle */
@media (min-width: 769px) {
    .header-mobile-toggle {
        display: none;
    }

    .header-mobile-menu {
        display: none !important;
    }
}

/* Button styles */
.btn-primary {
    background-color: #C1982F;
    color: #312C2E;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #E4B837;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #312C2E;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #C1982F;
    color: #312C2E;
}

/* Card styles */
.card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog specific styles */
.blog-post {
    margin-bottom: 40px;
}

.featured-post .blog-post {
    margin-bottom: 60px;
}

.featured-post .post-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.post-category {
    background-color: #E8E8E8;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.post-tag {
    background-color: #F5F5F5;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8E8E8;
}

.sidebar-widget p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.newsletter-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-bottom: 8px;
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: #C1982F;
}

.newsletter-form button {
    background-color: #C1982F;
    color: #312C2E;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    margin-top: 8px;
}

.newsletter-form button:hover {
    background-color: #E4B837;
    transform: translateY(-2px);
}

.newsletter-form label {
    font-size: 0.85rem;
    line-height: 1.5;
}

.newsletter-form label input[type="checkbox"] {
    margin-right: 6px;
}

.newsletter-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.newsletter-notice {
    padding: 10px 12px;
    border-left: 3px solid #C1982F;
    background: #F8F5EC;
    font-size: 0.9rem;
}

/* CTA sidebar */
.sidebar-widget .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* Social share */
.social-share {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-share .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-share .social-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C57B0 100%);
}

.social-share .social-icon.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
}

.social-share .social-icon.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005486 100%);
}

.social-share .social-icon.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #C1272D 50%, #833F72 75%, #585F76 100%, #3560A8 100%);
}

.social-share .social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Override WordPress default button styles */
.sidebar-widget button,
.sidebar-widget .button {
    margin-top: 10px;
}

/* Fix input field spacing */
.sidebar-widget input[type="email"] {
    margin-bottom: 12px;
}

/* Fix comment form spacing */
.sidebar-widget textarea {
    margin-bottom: 12px;
}

/* Fix all sidebar elements spacing */
.sidebar-widget .form-control,
.sidebar-widget input[type="text"],
.sidebar-widget input[type="email"],
.sidebar-widget textarea {
    margin-bottom: 12px;
}

.sidebar-widget button,
.sidebar-widget .button,
.sidebar-widget .btn-primary,
.sidebar-widget .btn-secondary {
    margin-top: 12px;
}

/* Second social share section (archive) */
@media (max-width: 768px) {
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* End of styles */

.sidebar-widget p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-bottom: 12px;
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: #C1982F;
}

.newsletter-form button {
    background-color: #C1982F;
    color: #312C2E;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    margin-top: 4px;
}

.newsletter-form button:hover {
    background-color: #E4B837;
    transform: translateY(-2px);
}

/* CTA sidebar */
.sidebar-widget .btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* Social share */
.social-share {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-share .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-share .social-icon.facebook {
    background-color: #1877F2;
}

.social-share .social-icon.twitter {
    background-color: #1DA1F2;
}

.social-share .social-icon.linkedin {
    background-color: #0077B5;
}

/* Override WordPress default button styles */
.sidebar-widget button,
.sidebar-widget .button {
    margin-top: 10px;
}

/* Fix input field spacing */
.sidebar-widget input[type="email"] {
    margin-bottom: 12px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #C1982F;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.newsletter-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-bottom: 8px; /* Added margin-bottom */
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: #C1982F;
}

.newsletter-form button {
    background-color: #C1982F;
    color: #312C2E;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    margin-top: 8px; /* Added margin-top for spacing */
}

.newsletter-form button:hover {
    background-color: #E4B837;
    transform: translateY(-2px);
}

/* Helper classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.d-none { display: none; }

/* RTL support for Arabic text */
.rtl { direction: rtl; }

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
