/*
Theme Name: UP Igreja Mirror
Theme URI: https://www.upigreja.com
Author: UP Igreja
Description: Tema editável e responsivo da UP Igreja.
Version: 2.0.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: upigreja-mirror
*/

:root {
    --up-blue: #0c3b5f;
    --up-light: #e5f3fb;
    --up-text: #08283f;
    --up-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--up-text); background: #fff; font-family: Avenir, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.up-site-header { position: sticky; top: 0; z-index: 1000; background: var(--up-blue); color: #fff; }
.up-header-inner { width: min(100% - 40px, 1260px); min-height: 94px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.up-brand { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .035em; }
.up-nav-desktop { display: flex; gap: 30px; }
.up-nav-desktop a, .up-nav-mobile a { color: #fff; text-decoration: none; }
.up-nav-desktop a:hover { text-decoration: underline; }
.up-nav-mobile { display: none; position: relative; }
.up-nav-mobile summary { list-style: none; cursor: pointer; font-size: 30px; }
.up-nav-mobile summary::-webkit-details-marker { display: none; }
.up-nav-mobile nav { position: absolute; top: 46px; right: 0; min-width: 210px; padding: 8px 0; display: flex; flex-direction: column; background: var(--up-blue); box-shadow: 0 12px 25px rgba(0,0,0,.25); }
.up-nav-mobile nav a { padding: 13px 20px; }

.up-page, .up-entry, .up-content { width: 100%; }
.up-content > *:not(.alignfull):not(.alignwide) { width: min(100% - 40px, var(--up-width)); margin-left: auto; margin-right: auto; }
.up-content > .alignwide { width: min(100% - 40px, 1280px); margin-left: auto; margin-right: auto; }
.up-content > .alignfull { width: 100%; }
.up-content h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.08; font-weight: 400; }
.up-content h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-weight: 400; }
.up-content h3 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.up-content p, .up-content li { font-size: 17px; line-height: 1.65; }

.up-hero { min-height: 615px; padding: 70px 20px 0; align-items: flex-end; }
.up-hero .wp-block-cover__inner-container { width: min(100%, 840px); }
.up-hero-card { padding: 34px 40px 24px; background: #fff; color: var(--up-text); text-align: center; }
.up-hero-card h1 { margin: 10px 0 0; font-size: clamp(40px, 5vw, 64px); }
.up-hero-card p { margin: 0; font-size: 25px; }
.up-section { padding: 80px 20px; }
.up-section-blue { padding: 80px 20px; background: var(--up-light); }
.up-section > *, .up-section-blue > *, .up-contact-section > * { width: min(100%, var(--up-width)); margin-left: auto; margin-right: auto; }
.up-section-title { text-align: center; letter-spacing: .04em; }
.up-centered { text-align: center; }
.up-lead { font-size: 21px !important; }
.up-button .wp-block-button__link { border-radius: 0; padding: 13px 28px; background: var(--up-blue); }
.up-quote { max-width: 850px; margin: 35px auto; padding: 35px; border-left: 5px solid var(--up-blue); background: #fff; font-size: 23px; }

.up-leader { gap: 45px; align-items: center; }
.up-leader .wp-block-media-text__media img { width: 100%; max-height: 680px; object-fit: cover; }
.up-team-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.up-team-card { height: 100%; padding: 22px; background: #fff; box-shadow: 0 7px 22px rgba(9,48,75,.1); }
.up-team-card figure { margin: -22px -22px 20px; }
.up-team-card figure img { width: 100%; aspect-ratio: 1.16; object-fit: cover; }

.up-donation { padding: 70px 20px; }
.up-donation-grid { gap: 50px; align-items: center !important; }
.up-pix-data { padding: 25px; background: var(--up-light); }
.up-pix-data strong { display: block; margin-top: 15px; }
.up-qr img { max-height: 760px; width: auto; display: block; margin: auto; }

.up-legal { padding: 70px 20px; }
.up-legal h1 { text-align: center; margin-bottom: 70px; }
.up-legal h2 { margin-top: 55px; }
.up-secretaria { min-height: 650px; padding: 85px 20px; text-align: center; }

.up-contact-section { padding: 75px 20px; background: var(--up-light); }
.up-contact-form { max-width: 760px; margin: 30px auto 0; }
.up-contact-form label { display: block; margin-bottom: 17px; font-weight: 600; }
.up-contact-form input, .up-contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px; border: 1px solid #9cb3c3; background: #fff; font: inherit; }
.up-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.up-contact-form button { padding: 14px 25px; border: 0; background: var(--up-blue); color: #fff; font: inherit; cursor: pointer; }
.up-honeypot { position: absolute !important; left: -10000px !important; }

.up-site-footer { padding: 55px 20px; background: var(--up-blue); color: #fff; }
.up-footer-inner { width: min(100%, var(--up-width)); margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; }
.up-site-footer a { color: #fff; }
.up-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 60px; height: 60px; display: grid; place-items: center; background: var(--up-blue); color: #fff; text-decoration: none; font-size: 29px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

@media (max-width: 767px) {
    .up-header-inner { min-height: 68px; width: min(100% - 28px, 1260px); }
    .up-brand { font-size: 13px; }
    .up-nav-desktop { display: none; }
    .up-nav-mobile { display: block; }
    .up-content > *:not(.alignfull):not(.alignwide), .up-content > .alignwide { width: min(100% - 32px, var(--up-width)); }
    .up-hero { min-height: 590px; padding: 0 16px; }
    .up-hero-card { padding: 25px 16px; }
    .up-hero-card p { font-size: 18px; }
    .up-hero-card h1 { font-size: 34px; }
    .up-section, .up-section-blue, .up-donation, .up-legal, .up-contact-section { padding: 48px 16px; }
    .up-leader { grid-template-columns: 1fr !important; }
    .up-leader .wp-block-media-text__content { padding: 25px 0 0 !important; }
    .up-team-grid { grid-template-columns: 1fr !important; }
    .up-donation-grid { display: block !important; }
    .up-donation-grid > * { margin-bottom: 30px; }
    .up-form-row, .up-footer-inner { grid-template-columns: 1fr; }
    .up-secretaria { min-height: 500px; padding: 55px 16px; }
    .up-whatsapp { right: 12px; bottom: 12px; width: 54px; height: 54px; }
}
