/*
Theme Name: Moriah
Theme URI: https://moriah.com.br
Author: Moriah Team
Author URI: https://moriah.com.br
Description: Tema WordPress pixel-perfect baseado no design original da Moriah - A Arte da Montagem. Layout moderno com cores escuras e amarelo vibrante, totalmente responsivo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moriah
Tags: one-column, custom-menu, featured-images, translation-ready, custom-colors, custom-header, custom-logo, custom-background, threaded-comments, full-width-template, sticky-post, theme-options
*/

/* Reset básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais (extraídas visualmente do layout) */
    --yellow: #ffc727;
    --yellow-dark: #f2b11f;
    --bg-dark: #050608;
    --bg-dark-soft: #111111;
    --bg-light: #e5e5e5;
    --bg-light-soft: #f2f2f2;
    --bg-card-dark: #1f1f1f;
    --bg-card: #ffffff;
    --text-light: #f7f7f7;
    --text-muted: #b7b7b7;
    --text-dark: #1f1f1f;
    --text-mid: #555555;

    /* Tipografia */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --page-max-width: 1920px;
    --container-width: 1120px;
    --section-y: 96px;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: radial-gradient(circle at top left, #222 0, #000 55%, #000 100%);
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Botões genéricos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    color: #171717;
    box-shadow: 0 10px 25px rgba(255, 199, 39, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 199, 39, 0.55);
}

.btn-icon {
    margin-left: 10px;
    font-size: 14px;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #202020;
    color: var(--text-light);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.topbar-logo-mark {
    width: 64px;
    height: 32px;
    border-radius: 999px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}

.topbar-nav-items {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-nav-items li {
    margin: 0;
    padding: 0;
}

.topbar-link {
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
}

.topbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.15s ease;
}

.topbar-link:hover::after {
    width: 100%;
}

.topbar-cta {
    padding: 8px 24px;
    border-radius: 999px;
    background: var(--yellow);
    color: #171717;
    font-weight: 600;
    font-size: 13px;
}

.topbar-border {
    height: 4px;
    background: var(--yellow);
}

/* Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 128px 0 96px;
    overflow: hidden;
    margin-top: 64px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0, transparent 60%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-logo-block img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-logo-icon {
    width: 64px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
}

.hero-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-title {
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 18px;
}

.hero-logo-subtitle {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-heading {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-heading strong {
    font-weight: 700;
}

.hero-subheading {
    font-size: 18px;
    margin-bottom: 32px;
}

.hero-highlight {
    color: var(--yellow);
    font-weight: 700;
}

.hero-button {
    margin-bottom: 40px;
}

.hero-description-card {
    max-width: 490px;
    margin: 0 auto;
    padding: 18px 32px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0, rgb(51 50 50 / 30%) 55%);
    backdrop-filter: blur(6px);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.hero-description-card strong {
    font-weight: 700;
}

/* Faixa de marca amarela */
.brand-strip {
    background: #ecb707;
}

.brand-strip-pattern {
    max-width: var(--page-max-width);
    margin: 0 auto;
    height: 24px;
}

/* Seção de serviços */
.services {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-y) 0;
}

.section-header-pill {
    margin: 0 auto 40px;
    max-width: 520px;
    background: linear-gradient(35deg, #bfbfbf 0, #cecece 50%, #bfbfbf 100%);
    border-radius: 999px;
    padding: 18px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title-light {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    max-width: 880px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(35deg, #bfbfbf 0, #cecece 50%, #bfbfbf 100%);
    border-radius: 18px;
    padding: 26px 26px 50px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.service-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at top, var(--yellow), var(--yellow-dark));
    box-shadow: 0 5px 25px rgba(255, 199, 39, 0.4);
    margin: 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon-circle i {
    font-size: 18px;
    color: #000;
    line-height: 1;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-text {
    font-size: 15px;
    line-height: 1.7;
    color: #000;
}

/* Projetos & depoimentos */
.projects {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-y) 0 80px;
    color: var(--text-light);
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

/* Quando convertido para carrossel pelo JS */
.projects-gallery .projects-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.projects-gallery .project-card-wrapper {
    flex-shrink: 0;
    box-sizing: border-box;
}

.projects-gallery .project-card-wrapper .project-card {
    width: 100%;
    height: 200px;
}

.project-card {
    border-radius: 24px;
    background: #444;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    height: 200px;
}

.image-placeholder {
    background-image: linear-gradient(135deg, #666, #999);
}

.testimonial-slider {
    max-width: 880px;
    margin: 0 auto 40px;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Quando convertido para carrossel pelo JS */
.testimonial-slider .testimonial-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.testimonial-card {
    width: 100%;
    border-radius: 18px;
    padding: 24px 32px 24px;
    background: linear-gradient(135deg, #2c2107, #201606);
    color: var(--text-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.testimonial-rating {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
}

.testimonial-local {
    font-weight: 400;
    opacity: 0.8;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.dot-active {
    background: var(--yellow);
}

.projects-cta-wrapper {
    text-align: center;
    margin-top: 16px;
}

/* Sobre */
.about {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-y) 0;
}

.about-inner {
    position: relative;
}

.about-bg-mark {
    position: absolute;
    inset: 0 0 auto 0;
    height: 70%;
    max-width: 880px;
    margin: 0 auto;
    border-radius: 40px;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.03) 0, transparent 60%);
    opacity: 0.9;
}

.about-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.about-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 32px;
}

.about-text {
    text-align: left;
    font-size: 15px;
    line-height: 1.9;
    color: #000;
}

.about-text p + p {
    margin-top: 10px;
}

/* Contato */
.contact {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-y) 0 96px;
    color: var(--text-light);
}

.contact-inner {
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 880px;
    padding: 36px 40px 32px;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04) 0, rgba(0, 0, 0, 0.9) 55%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

/* Página de Avaliação - Card destacado */
.avaliar-section {
    background: radial-gradient(circle at top, #f5f5f5 0, #dcdcdc 65%, #d6d6d6 100%);
}

.avaliar-card {
    background: linear-gradient(135deg, #2a2a2a 0, #1f1f1f 50%, #1a1a1a 100%);
    border: 2px solid rgba(255, 199, 39, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 199, 39, 0.1);
    position: relative;
}

.avaliar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    border-radius: 24px 24px 0 0;
}

.avaliar-card .contact-title {
    color: var(--yellow);
}

.avaliar-card .field input,
.avaliar-card .field textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.avaliar-card .field input:focus,
.avaliar-card .field textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 199, 39, 0.1);
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.contact-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 26px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.field-full {
    width: 100%;
}

.field-label {
    font-weight: 500;
}

.field input,
.field textarea {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-light);
    outline: none;
}

.field textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 100px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--yellow);
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.contact-actions .btn-primary {
    min-width: 120px;
}

/* Rodapé */
.footer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}

.footer-border-top {
    height: 4px;
    background: var(--yellow);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 1fr;
    align-items: center;
    padding: 32px 0 40px;
    gap: 24px;
    font-size: 13px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    max-width: 158px;
    width: 100%;
}

.footer-logo-mark {
    width: 60px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-weight: 700;
    letter-spacing: 0.22em;
    font-size: 16px;
}

.footer-logo-subtitle {
    font-size: 11px;
    letter-spacing: 0.2em;
}

.footer-center {
    text-align: center;
}

.footer-section-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-social-icons {
    display: inline-flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgb(254, 197, 38);
    background: rgb(253, 196, 38);
    box-shadow: 0px 1px 17px rgba(255, 199, 39, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: rgb(254, 197, 38);
    border-color: rgb(253, 196, 38);
}

.social-icon i {
    font-size: 16px;
    color: #000;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-link-topo {
    margin-right: 3px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: underline;
}

.btn-footer-contact {
    padding-inline: 30px;
    font-size: 13px;
}

/* Responsividade */
/* Modal de Login */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0, #1f1f1f 50%, #1a1a1a 100%);
    border: 2px solid rgba(255, 199, 39, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 199, 39, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.login-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    border-radius: 24px 24px 0 0;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: var(--yellow);
}

.login-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--yellow);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.login-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.login-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-actions {
        justify-content: center;
        align-items: center;
    }

    .footer-actions {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    :root {
        --section-y: 72px;
    }

    .topbar-inner {
        padding-block: 8px;
    }

    .topbar-nav {
        gap: 16px;
        font-size: 13px;
    }

    .hero-heading {
        font-size: 22px;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding-inline: 20px;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .topbar-inner {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding-bottom: 12px;
    }

    .topbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-logo-block {
        flex-direction: column;
    }

    .section-header-pill {
        padding-inline: 18px;
    }

    .contact-card {
        padding: 24px 18px;
    }

    .login-modal-content {
        padding: 32px 24px;
        width: 95%;
    }
}
