/* ============================================================
   DOMORIA — Custom Components CSS
   Carregado após o Tailwind CDN. Define todas as classes de
   componente customizadas usadas nas views do projeto.
   ============================================================ */

/* ---- Footer Bottom Bar ---- */
.footer-bottom {
    margin-top: 3rem;
}

.footer-bottom-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 150, 46, 0.4), transparent);
    margin-bottom: 1.25rem;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copy strong {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.footer-copy-right {
    font-size: 0.8rem;
    color: rgba(200, 150, 46, 0.6);
    font-style: italic;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- Sections ---- */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-alt {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #F8F7F4;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background-color: rgba(200, 150, 46, 0.1);
    color: #C8962E;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #1A2332;
    color: #ffffff;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #C8962E, #E8B84B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(26, 35, 50, 0.2);
    color: #1A2332;
    background-color: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(26, 35, 50, 0.05);
}

.btn-secondary.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ---- Cards ---- */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A2332;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-text {
    font-size: 0.9rem;
    color: #6b7280;
    flex: 1;
    line-height: 1.6;
}

/* ---- Project Badge ---- */
.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(200, 150, 46, 0.15);
    color: #C8962E;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Grids ---- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- CTA Section ---- */
.cta-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #1A2332 0%, #0f1720 100%);
    color: #ffffff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

/* ---- Gallery ---- */
.gallery-main {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 0.75rem;
}

.gallery-main img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.gallery-thumb {
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: #C8962E;
}

.gallery-thumb img {
    width: 100%;
    height: 5rem;
    object-fit: cover;
    display: block;
}

/* ---- Lead Form Section (Sidebar) ---- */
.lead-form-section {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-form-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A2332;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Forms ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #1A2332;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #C8962E;
    box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.15);
    background-color: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ---- Contact Form ---- */
.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* ---- Fade In Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 50;
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    background-color: #16a34a;
    transform: translateY(-4px);
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    left: 50%;
    margin-left: -9rem;
    bottom: 6rem;
    transform: translateY(100%);
    opacity: 0;
    background-color: #1A2332;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    z-index: 60;
    min-width: 280px;
    text-align: center;
}

@media (min-width: 768px) {
    .toast {
        margin-left: 0;
        left: auto;
        right: 1.5rem;
        bottom: 6rem;
    }
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Prose (Descrição do Projeto) ---- */
.prose {
    color: #4b5563;
    line-height: 1.75;
    font-size: 1rem;
}

.prose p {
    margin-bottom: 1rem;
}