/**
 * Custom Styles - Semear Sorriso Theme
 *
 * @package Semear_Sorriso
 */

/* ====================================
   TOP BAR
==================================== */
.top-bar {
    background-color: var(--color-background-dark);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    transition: color var(--transition-fast);
}

.top-bar-item:hover {
    color: var(--color-accent);
}

.top-bar-item i {
    font-size: 0.875rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ====================================
   HEADER
==================================== */
.site-header {
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title:hover {
    color: var(--color-primary);
}

.site-title i {
    font-size: 1.75rem;
}

.site-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

.custom-logo-link {
    display: block;
}

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

/* Navigation */
.main-navigation {
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-base);
}

.menu-toggle-icon::before {
    transform: translateY(-6px);
}

.menu-toggle-icon::after {
    transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg) translateY(-2px) translateX(2px);
}

.header-cta {
    flex-shrink: 0;
}

.btn-header-cta {
    white-space: nowrap;
}

/* Mobile Navigation */
@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .main-navigation.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-background-alt);
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
    }
}

/* ====================================
   FLOATING BUTTONS
==================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--color-text);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Click-to-Call removido - mantido apenas WhatsApp flutuante */
/*
.click-to-call {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    transition: all var(--transition-base);
}

.click-to-call:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}
*/

/* ====================================
   HERO SECTION
==================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.85) 100%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-text {
    color: #ffffff;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.hero-feature i {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta-buttons .btn {
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.hero-cta-buttons .btn-white {
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-cta-buttons .btn-white:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Form */
.hero-form-wrapper {
    background-color: var(--color-background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
}

.form-header {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-subheader {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: none;
}

.form-response.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-response.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

.form-trust {
    margin-top: 1rem;
    text-align: center;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-trust i {
    color: var(--color-success);
}

/* Responsive Hero */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 500px;
    }

    .hero-section {
        min-height: 700px;
    }
}

/* ====================================
   SECTIONS
==================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: 1rem;
}

.section-cta {
    margin-top: 3rem;
}

/* ====================================
   SERVICE CARDS
==================================== */
.service-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.service-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-background-alt);
}

.service-price {
    font-weight: 600;
    color: var(--color-primary);
}

.service-link {
    color: var(--color-accent);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--color-primary);
}

/* ====================================
   AREAS SECTION
==================================== */
.areas-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.areas-highlight {
    text-align: center;
}

.area-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    min-width: 300px;
}

.area-primary i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.area-primary h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.area-address {
    font-size: 1.125rem;
}

.areas-list h4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.area-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.area-item i {
    color: var(--color-success);
    font-size: 1.25rem;
}

.areas-cta {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
}

.areas-cta p {
    margin-bottom: 1rem;
}

/* ====================================
   TESTIMONIALS
==================================== */
.rating-summary {
    margin-top: 1rem;
}

.stars {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.testimonial-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-location {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

.testimonial-rating {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--color-text-light);
    line-height: 1.7;
    flex-grow: 1;
}

.google-reviews-badge {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
}

.google-reviews-badge i {
    font-size: 2rem;
    color: #4285f4;
    margin-right: 0.5rem;
}

/* ====================================
   FAQ SECTION
==================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question i {
    transition: transform var(--transition-base);
    color: var(--color-primary);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-cta {
    margin-top: 3rem;
}

/* ====================================
   CONTACT MAP SECTION
==================================== */
.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
}

.map-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form-final {
    background-color: var(--color-background-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form-final h3 {
    margin-bottom: 0.5rem;
}

.contact-form-final > p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.contact-direct-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.direct-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .contact-map-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .map-buttons {
        justify-content: flex-start;
    }

    .direct-buttons {
        flex-direction: row;
    }
}

/* ====================================
   FOOTER
==================================== */
.site-footer {
    background-color: var(--color-background-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-site-title i {
    color: var(--color-primary);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all var(--transition-base);
}

.footer-social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-menu,
.footer-schedule,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--color-accent);
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-day {
    color: rgba(255, 255, 255, 0.7);
}

.schedule-time {
    color: #ffffff;
    font-weight: 500;
}

.footer-emergency {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer-emergency i {
    color: var(--color-accent);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-contact i {
    color: var(--color-primary);
    font-size: 1.125rem;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom-content {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content p {
    margin-bottom: 0.5rem;
}

.copyright,
.credits {
    margin: 0;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    }
}

/* ====================================
   BLOG / ARCHIVE
==================================== */
.archive-wrapper,
.single-post-wrapper,
.page-wrapper {
    padding: 2rem 0;
}

.breadcrumbs {
    background-color: var(--color-background-alt);
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.post-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.post-card-image {
    display: block;
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.post-card-category a {
    color: var(--color-primary);
    font-weight: 500;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.post-card-link {
    color: var(--color-accent);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.post-card-link:hover {
    color: var(--color-primary);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    padding: 0.75rem 1.25rem;
    background-color: var(--color-background);
    border: 1px solid var(--color-background-alt);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* ====================================
   SINGLE POST
==================================== */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--color-primary);
}

.post-meta .post-category a {
    color: var(--color-primary);
    font-weight: 500;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-background-alt);
    border-bottom: 1px solid var(--color-background-alt);
}

.post-tags a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-md);
    margin: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.post-tags a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.post-share {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
}

.post-share h4 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

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

.share-facebook {
    background-color: #1877f2;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0a66c2;
}

.share-whatsapp {
    background-color: #25d366;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}

.nav-link {
    padding: 1.5rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.nav-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.nav-title {
    font-size: 1rem;
}

.nav-link-prev {
    text-align: left;
}

.nav-link-next {
    text-align: right;
}

.related-posts {
    margin: 3rem 0;
}

.related-posts-title {
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.related-post-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.related-post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.related-post-image {
    display: block;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.related-post-title a {
    color: var(--color-text);
}

.related-post-title a:hover {
    color: var(--color-primary);
}

.related-post-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.related-post-excerpt {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-post-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .single-post-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* ====================================
   SIDEBAR
==================================== */
.widget {
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.widget-cta-content {
    text-align: center;
}

.widget-cta-content i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.widget-cta-content h3 {
    margin-bottom: 0.75rem;
}

.widget-cta-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.widget-cta-content .btn {
    margin-bottom: 0.75rem;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-background-alt);
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.recent-post-title a {
    color: var(--color-text);
}

.recent-post-title a:hover {
    color: var(--color-primary);
}

.recent-post-date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

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

.category-item {
    margin-bottom: 0.75rem;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.category-item a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.category-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.widget-banner-content {
    background: linear-gradient(135deg, var(--color-accent), #d97706);
    color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.widget-banner-content h3 {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.widget-banner-content p {
    margin-bottom: 1.5rem;
}

/* ====================================
   PAGE TEMPLATE
==================================== */
.page-main {
    max-width: 900px;
    margin: 0 auto;
}

.page-article {
    margin-bottom: 3rem;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.page-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.page-cta-section {
    margin-top: 3rem;
}

.page-cta-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.page-cta-box h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-cta-box p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.page-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ====================================
   404 ERROR PAGE
==================================== */
.error-404-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-404-title {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-404-search {
    margin-bottom: 3rem;
}

.error-404-search h3 {
    margin-bottom: 1rem;
}

.error-404-links h3 {
    margin-bottom: 1.5rem;
}

.error-404-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.error-link {
    padding: 1.5rem;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.error-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.error-link i {
    font-size: 2rem;
}

.error-404-cta h3 {
    margin-bottom: 0.75rem;
}

.error-404-cta p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.error-404-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .error-404-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ====================================
   SEARCH FORM
==================================== */
.widget-search form {
    position: relative;
}

.widget-search input[type="search"] {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 1px solid var(--color-background-alt);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.widget-search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 1rem;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.widget-search button:hover {
    background-color: var(--color-secondary);
}

/* ====================================
   NO POSTS
==================================== */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts i {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.no-posts h2 {
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ====================================
   RESPONSIVE MOBILE FIXES
==================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
    /* Top Bar - Stack vertically for mobile */
    .top-bar {
        padding: 0.625rem 0;
        font-size: 0.875rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 0rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .top-bar-left {
        justify-content: center;
        padding: 0 0.5rem;
    }

    .top-bar-right {
        justify-content: center;
        padding: 0 0.5rem;
    }

    .top-bar-item {
        gap: 0.375rem;
        font-size: 0.875rem;
        padding: 0.125rem 0.375rem;
        /* Ensure clickable area */
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .top-bar-item i {
        font-size: 0.9375rem;
        flex-shrink: 0;
    }

    .top-bar-item span {
        /* Remove truncation - show full text */
        max-width: none;
        white-space: normal;
        line-height: 1.3;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        /* Better touch target */
    }

    /* Header - Allow multi-line and proper spacing */
    .site-header {
        padding: 1.25rem 0;
    }

    .header-content {
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-branding {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
        order: 1;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .site-title {
        font-size: 1.375rem;
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
        max-width: 100%;
        justify-content: center;
        padding: 0 0.5rem;
    }

    /* Allow text to wrap to multiple lines - will naturally break into 2 lines */
    .site-title-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: manual;
        display: inline-block;
        flex: 1;
        max-width: calc(100% - 2.5rem);
        text-align: left;
        line-height: 1.5;
    }

    .site-title i {
        font-size: 1.75rem;
        flex-shrink: 0;
        margin-top: 0.25rem;
        display: inline-block;
    }

    .site-description {
        display: none;
    }

    .custom-logo {
        max-height: 70px;
        width: auto;
    }

    /* Navigation - Below branding */
    .main-navigation {
        flex: 0 0 auto;
        order: 3;
        align-self: center;
    }

    /* Header CTA - Larger and more visible */
    .header-cta {
        flex: 0 0 auto;
        order: 2;
        align-self: center;
    }

    .btn-header-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1.0625rem;
        white-space: nowrap;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-header-cta .desktop-only {
        display: none !important;
    }

    .btn-header-cta .mobile-only {
        display: inline !important;
    }

    .btn-header-cta i {
        font-size: 1.25rem;
    }

    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
    }

    .hero-cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-form-wrapper {
        padding: 1.5rem;
    }

    /* WhatsApp Float - Adjust position */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Menu toggle button - ensure proper sizing */
@media (max-width: 767px) {
    .menu-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle-icon,
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        width: 24px;
        height: 3px;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.1875rem;
        line-height: 1.4;
    }

    .site-title i {
        font-size: 1.5rem;
    }

    /* Top bar - Keep readable, don't shrink too much */
    .top-bar {
        font-size: 0.8125rem;
        padding: 0.875rem 0;
    }

    .top-bar-item {
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .top-bar-item i {
        font-size: 0.9375rem;
    }

    /* Header CTA - Maintain good size for touch */
    .btn-header-cta {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .btn-header-cta i {
        font-size: 1.125rem;
    }

    /* Social icons - maintain touch target */
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
