/**
 * CYSY - Comunidade Yisraelita Sementes de Yisra'el
 * Arquivo principal de estilos CSS
 * Versão: 1.0
 */

/* ============================================
   VARIÁVEIS GLOBAIS
   ============================================ */

:root {
    --primary-dark: #5D4037;
    --primary: #795548;
    --primary-light: #8D6E63;
    --secondary: #A1887F;
    --gold: #C8A97E;
    --text-dark: #3E2723;
    --text-light: #5D4037;
    --background: #F5F5F5;
    --white: #FFFFFF;
    --light-bg: #EFEBE9;
    --border: #D7CCC8;
    --shadow: rgba(93, 64, 55, 0.1);
    --danger: #e74c3c;
    --success: #2e7d32;
    --whatsapp: #25D366;
    --telegram: #0088cc;
    --youtube: #ff0000;
    --instagram: #e4405f;
    --meet: #00897B;
}

/* ============================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

h1, h2, h3, h4, h5 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: var(--gold);
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */

.header-main {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.logo-text {
    margin-left: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   BOTÕES DE AÇÃO DO HEADER
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 200px;
    font-family: 'Open Sans', sans-serif;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.login-btn, .donate-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.login-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.login-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.donate-btn {
    background-color: var(--primary);
    color: var(--white);
}

.donate-btn:hover {
    background-color: var(--primary-dark);
    cursor: pointer;
}

/* ============================================
   NAVEGAÇÃO PRINCIPAL
   ============================================ */

.main-nav {
    background-color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.main-menu > li > a:hover {
    background-color: var(--primary-dark);
}

.main-menu .has-dropdown > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    list-style: none;
    padding: 0;
}

.main-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   BOTÕES GLOBAIS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #b8945a;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--text-dark);  /* ALTERADO: texto escuro para melhor contraste */
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-whatsapp {
    display: inline-block;
    background-color: var(--whatsapp);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* ============================================
   SEÇÕES E TÍTULOS
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto 0;
}

.section-title p {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-light);
}

.content-section {
    padding: 60px 0;
}

/* ============================================
   PAGE HEADER (HERO INTERNO)
   ============================================ */

.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?q=80&w=2069');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
}

/* ============================================
   CARDS E GRIDS
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

.feature-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   ÁREA DE MEMBROS (INDEX)
   ============================================ */

.member-area-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.member-area-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.member-info h2 {
    color: var(--primary-dark);
}

.member-benefits {
    list-style: none;
    margin: 25px 0;
}

.member-benefits li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.member-benefits li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
    top: 2px;
}

.login-form-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow);
}

.login-form-container h3 {
    text-align: center;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTATO (contato.html)
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary-dark);
}

.contact-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.whatsapp-icon { color: var(--whatsapp); }
.telegram-icon { color: var(--telegram); }
.youtube-icon { color: var(--youtube); }
.instagram-icon { color: var(--instagram); }
.email-icon { color: var(--primary); }

.leader-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 35px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
}

/* ============================================
   DIRETRIZES (diretrizes.html)
   ============================================ */

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.intro-item {
    text-align: center;
    padding: 20px;
}

.intro-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.guideline-card {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
}

.guideline-header {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.guideline-header:hover {
    background-color: var(--light-bg);
}

.guideline-number {
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.guideline-title {
    flex: 1;
}

.guideline-title h3 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.guideline-toggle {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.guideline-header.active .guideline-toggle {
    transform: rotate(180deg);
}

.guideline-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-top: 1px solid var(--border);
}

.guideline-content.active {
    padding: 30px;
    max-height: 800px;
}

.prohibition-box {
    background-color: #fef3f2;
    border-left: 4px solid var(--danger);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.guideline-box {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.scripture-ref {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ============================================
   ESTUDOS (estudos.html)
   ============================================ */

.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.study-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.study-card:hover {
    transform: translateY(-5px);
}

.study-image {
    height: 200px;
    overflow: hidden;
}

.study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.study-card:hover .study-image img {
    transform: scale(1.05);
}

.study-content {
    padding: 25px;
}

.study-content h3 {
    color: var(--primary-dark);
}

.study-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.invite-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 5px 15px var(--shadow);
}

/* ============================================
   PRECEITOS (preceitos.html)
   ============================================ */

.precept-card {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
}

.precept-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.precept-header:hover {
    background-color: var(--primary-dark);
}

.precept-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--white);
}

.precept-header i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.precept-header.active i {
    transform: rotate(180deg);
}

.precept-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.precept-content.active {
    padding: 30px;
    max-height: 2000px;
}

.scripture-refs {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ============================================
   REUNIÕES (reunioes.html)
   ============================================ */

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.schedule-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.schedule-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.schedule-day {
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.schedule-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 10px 0;
}

.meet-badge {
    display: inline-block;
    background-color: var(--meet);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* ============================================
   REDE SOCIAL (redesocial.html) e TSEDAKA (tsedaka.html)
   ============================================ */

.social-grid, .tsedaka-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.social-card, .tsedaka-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
}

.feature-list {
    list-style: none;
    margin: 25px 0;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.feature-list li:before {
    content: '\f086';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 2px;
}

.info-list {
    list-style: none;
    margin: 25px 0;
}

.info-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.info-list li:before {
    content: '\f0a9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 2px;
}

.transparency-box {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid var(--gold);
}

/* ============================================
   SOBRE (sobre.html)
   ============================================ */

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.quote-box {
    background-color: var(--light-bg);
    border-left: 4px solid var(--gold);
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.leader-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.leader-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ============================================
   MEMBROS (membros.html)
   ============================================ */

.members-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin: 25px 0;
}

.benefits-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.benefits-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
    top: 2px;
}

.members-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
}

.login-preview {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.btn-access {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-access:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-main {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--text-dark);
}

.footer-links h3, .footer-contact h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 992px) {
    .member-area-container,
    .social-grid,
    .tsedaka-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }
    .search-box input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .top-bar-links {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        z-index: 1000;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        background-color: var(--primary-dark);
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding-left: 40px;
    }
    
    .main-menu li.active .dropdown-menu {
        display: block;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .precept-header h2 {
        font-size: 1.2rem;
    }
    
    .guideline-header {
        flex-wrap: wrap;
    }
}