/* ============================================================
   Igreja Síria Ortodoxa — Estilo institucional solene
   Paleta inspirada na arte e arquitetura cristã oriental
   ============================================================ */

:root {
    /* Cores principais */
    --c-preto: #0B0A09;
    --c-marrom-escuro: #17110D;
    --c-vinho: #3A171C;
    --c-vermelho-escuro: #641F24;
    --c-dourado: #B08A45;
    --c-dourado-claro: #D2B36A;
    --c-creme: #E8DCC4;
    --c-branco-quente: #F4EFE4;

    /* Tipografia */
    --font-titulo: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
    --font-texto: "Inter", "Source Sans", system-ui, sans-serif;

    /* Espaçamentos */
    --max-largura: 1200px;
    --section-padding-y: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--c-preto);
    color: var(--c-creme);
    font-family: var(--font-texto);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.home-root {
    background-color: var(--c-preto);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Textura sutil de pergaminho sobre o fundo escuro */
.home-root::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 30%, var(--c-dourado) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--c-dourado) 0, transparent 40%);
}

/* ============================================================
   Tipografia
   ============================================================ */

h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    font-weight: 500;
    line-height: 1.25;
    color: var(--c-branco-quente);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { color: var(--c-creme); }

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    font-weight: 500;
}

/* Ornamento dourado — separador */
.ornamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--c-dourado);
    margin: 1.5rem auto;
    opacity: 0.85;
}
.ornamento::before,
.ornamento::after {
    content: "";
    height: 1px;
    width: clamp(40px, 12vw, 90px);
    background: linear-gradient(to right, transparent, var(--c-dourado), transparent);
}
.ornamento svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ============================================================
   Container
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--max-largura);
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 2.5rem);
    position: relative;
    z-index: 1;
}

section { position: relative; z-index: 1; }

/* ============================================================
   Header / Navegação
   ============================================================ */

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}
.home-header.scrolled {
    background-color: rgba(11, 10, 9, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(176, 138, 69, 0.22);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.home-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
    max-width: var(--max-largura);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--c-branco-quente);
}
.brand__mark {
    width: 30px;
    height: 30px;
    color: var(--c-dourado-claro);
    flex-shrink: 0;
}
.brand__name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-branco-quente);
}
.brand__name small {
    display: block;
    font-family: var(--font-texto);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    color: var(--c-dourado-claro);
    margin-top: 2px;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__link {
    font-family: var(--font-texto);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-creme);
    text-decoration: none;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.25s ease;
    opacity: 0.85;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--c-dourado-claro);
    transition: width 0.3s ease;
}
.nav__link:hover { color: var(--c-branco-quente); opacity: 1; }
.nav__link:hover::after { width: 100%; }

.nav__cta {
    font-family: var(--font-texto);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    border: 1px solid rgba(210, 179, 106, 0.5);
    background: transparent;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nav__cta:hover {
    background: rgba(176, 138, 69, 0.12);
    border-color: var(--c-dourado-claro);
    color: var(--c-branco-quente);
}

/* Link de acesso à área restrita — discreto */
.nav__link--login {
    color: var(--c-dourado-claro);
    opacity: 0.7;
    font-size: 0.78rem;
    border-left: 1px solid rgba(176, 138, 69, 0.25);
    padding-left: 1.4rem;
    margin-left: 0.4rem;
}
.nav__link--login:hover { opacity: 1; color: var(--c-dourado-claro); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(210, 179, 106, 0.4);
    color: var(--c-creme);
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Menu mobile */
.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: rgba(11, 10, 9, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(176, 138, 69, 0.2);
    padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
    gap: 0.3rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav__link {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(176, 138, 69, 0.1);
    font-size: 0.85rem;
}
.nav-mobile .nav__link--login {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    opacity: 0.85;
}
.nav-mobile .nav__cta {
    margin-top: 1rem;
    text-align: center;
    display: inline-block;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--c-preto);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("/image/saojorgemsfcores.jpg");
    background-size: cover;
    background-position: center;
    filter: grayscale(0.25) brightness(0.45) contrast(1.05);
    transform: scale(1.05);
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(11,10,9,0.78) 0%, rgba(11,10,9,0.45) 40%, rgba(11,10,9,0.85) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(11,10,9,0.7) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 7rem 1.5rem 4rem;
}
.hero__eyebrow {
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.2s forwards;
}
.hero__title {
    font-family: var(--font-titulo);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 600;
    color: var(--c-branco-quente);
    margin: 0 auto;
    max-width: 16ch;
    line-height: 1.18;
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}
.hero__title em {
    font-style: italic;
    color: var(--c-dourado-claro);
    font-weight: 500;
}
.hero__desc {
    margin: 1.8rem auto 0;
    max-width: 56ch;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--c-creme);
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}
.hero__actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

.btn {
    font-family: var(--font-texto);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
}
.btn--primary {
    background: transparent;
    border-color: var(--c-dourado);
    color: var(--c-branco-quente);
}
.btn--primary:hover {
    background: rgba(176, 138, 69, 0.14);
    border-color: var(--c-dourado-claro);
    color: var(--c-branco-quente);
}
.btn--ghost {
    background: transparent;
    border-color: rgba(232, 220, 196, 0.3);
    color: var(--c-creme);
}
.btn--ghost:hover {
    border-color: var(--c-creme);
    color: var(--c-branco-quente);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--c-dourado-claro);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: fadeUp 1s ease 1.2s forwards;
    opacity: 0;
}
.hero__scroll svg { width: 18px; height: 18px; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Seções genéricas
   ============================================================ */

.section {
    padding: var(--section-padding-y) 0;
}
.section--vinho { background-color: var(--c-vinho); }
.section--marrom { background-color: var(--c-marrom-escuro); }
.section--preto { background-color: var(--c-preto); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}
.section__head h2 { margin-top: 0.8rem; }
.section__head p {
    margin-top: 1.2rem;
    color: var(--c-creme);
    opacity: 0.85;
}

/* ============================================================
   AboutChurch — Nossa Igreja
   ============================================================ */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.about__text p {
    margin-bottom: 1.2rem;
    color: var(--c-creme);
    opacity: 0.9;
}
.about__text p:first-of-type::first-letter {
    font-family: var(--font-titulo);
    font-size: 3.2rem;
    float: left;
    line-height: 1;
    padding: 0.1em 0.15em 0 0;
    color: var(--c-dourado-claro);
    font-weight: 600;
}
.about__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(176, 138, 69, 0.3);
}
.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.85);
    transition: transform 0.8s ease, filter 0.8s ease;
}
.about__image:hover img { transform: scale(1.04); filter: grayscale(0.1) brightness(0.95); }
.about__image::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(210, 179, 106, 0.25);
    pointer-events: none;
}

/* ============================================================
   Tradition — Uma tradição milenar
   ============================================================ */

.tradition {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(176, 138, 69, 0.2);
    border-bottom: 1px solid rgba(176, 138, 69, 0.2);
}
.tradition__item {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(176, 138, 69, 0.18);
    position: relative;
}
.tradition__item:last-child { border-right: none; }
.tradition__icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 1.2rem;
    color: var(--c-dourado-claro);
    opacity: 0.9;
}
.tradition__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.tradition__item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-branco-quente);
    margin-bottom: 0.8rem;
}
.tradition__item p {
    font-size: 0.92rem;
    opacity: 0.8;
    line-height: 1.65;
}

/* ============================================================
   RandomVerse — Versículo do dia
   ============================================================ */

.verse {
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background:
        linear-gradient(to bottom, rgba(23,17,13,0.6), rgba(58,23,28,0.55)),
        radial-gradient(ellipse at center, rgba(176,138,69,0.08), transparent 70%);
    border-top: 1px solid rgba(176, 138, 69, 0.18);
    border-bottom: 1px solid rgba(176, 138, 69, 0.18);
}
.verse__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.verse__ornament {
    color: var(--c-dourado-claro);
    margin-bottom: 1.8rem;
    opacity: 0.85;
}
.verse__text {
    font-family: var(--font-titulo);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.45;
    color: var(--c-branco-quente);
    font-weight: 400;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.verse__text.fade { opacity: 0; transform: translateY(8px); }
.verse__ref {
    margin-top: 1.4rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    transition: opacity 0.6s ease 0.05s, transform 0.6s ease 0.05s;
}
.verse__ref.fade { opacity: 0; transform: translateY(8px); }
.verse__divider {
    width: 60px;
    height: 1px;
    margin: 1.8rem auto 0;
    background: linear-gradient(to right, transparent, var(--c-dourado), transparent);
}

/* ============================================================
   ChurchLife — Vida da Igreja
   ============================================================ */

.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.life-card {
    border: 1px solid rgba(176, 138, 69, 0.2);
    padding: 2.2rem 1.8rem;
    background: rgba(23, 17, 13, 0.4);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.life-card:hover {
    border-color: rgba(210, 179, 106, 0.5);
    background: rgba(23, 17, 13, 0.7);
    transform: translateY(-3px);
}
.life-card__date {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    margin-bottom: 0.8rem;
}
.life-card__title {
    font-family: var(--font-titulo);
    font-size: 1.35rem;
    color: var(--c-branco-quente);
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.life-card__desc {
    font-size: 0.9rem;
    opacity: 0.78;
    line-height: 1.6;
}
.life-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed rgba(176, 138, 69, 0.25);
    color: var(--c-creme);
    opacity: 0.7;
    font-style: italic;
    font-family: var(--font-titulo);
    font-size: 1.1rem;
}

/* ============================================================
   History — Conheça nossa história
   ============================================================ */

.history {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background-color: var(--c-marrom-escuro);
    overflow: hidden;
}
.history__bg {
    position: absolute;
    inset: 0;
    background-image: url("/image/igreja2.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: grayscale(0.4);
    z-index: 0;
}
.history__text { position: relative; z-index: 1; }
.history__text p {
    margin-top: 1.2rem;
    opacity: 0.88;
    max-width: 48ch;
}
.history__image {
    position: relative;
    z-index: 1;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    border: 1px solid rgba(176, 138, 69, 0.3);
}
.history__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.25) grayscale(0.3) brightness(0.85);
}
.history__image::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(210, 179, 106, 0.3);
    pointer-events: none;
}

/* ============================================================
   Community
   ============================================================ */

.community {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.community p {
    margin-top: 1.4rem;
    opacity: 0.88;
    font-size: 1.05rem;
}
.community__values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2rem;
    margin-top: 2.5rem;
}
.community__values span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    position: relative;
    padding: 0 0.4rem;
}
.community__values span:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -1.1rem;
    color: var(--c-dourado);
    opacity: 0.6;
}

/* ============================================================
   Footer
   ============================================================ */

.home-footer {
    background-color: var(--c-preto);
    border-top: 1px solid rgba(176, 138, 69, 0.25);
    padding: 4rem 0 2rem;
    position: relative;
}
.home-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-dourado), transparent);
}
.home-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.home-footer__brand h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-branco-quente);
    margin-bottom: 0.8rem;
}
.home-footer__brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 38ch;
    line-height: 1.65;
}
.home-footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-dourado-claro);
    margin-bottom: 1rem;
    font-weight: 500;
}
.home-footer__col ul { list-style: none; padding: 0; margin: 0; }
.home-footer__col li { margin-bottom: 0.6rem; }
.home-footer__col a {
    color: var(--c-creme);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.78;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.home-footer__col a:hover { color: var(--c-dourado-claro); opacity: 1; }
.home-footer__bottom {
    border-top: 1px solid rgba(176, 138, 69, 0.15);
    padding-top: 1.8rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--c-creme);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ============================================================
   Responsividade
   ============================================================ */

@media (max-width: 1024px) {
    .tradition { grid-template-columns: repeat(2, 1fr); }
    .tradition__item:nth-child(2) { border-right: none; }
    .tradition__item:nth-child(1),
    .tradition__item:nth-child(2) { border-bottom: 1px solid rgba(176, 138, 69, 0.18); }
    .life-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .about { grid-template-columns: 1fr; }
    .about__image { order: -1; max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 4; }
    .history { grid-template-columns: 1fr; }
    .history__image { max-width: 420px; margin: 0 auto; }
    .life-grid { grid-template-columns: 1fr; }
    .home-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: 88vh; }
    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 80%; max-width: 280px; text-align: center; }
}

@media (max-width: 480px) {
    .tradition { grid-template-columns: 1fr; }
    .tradition__item { border-right: none; border-bottom: 1px solid rgba(176, 138, 69, 0.18); }
    .tradition__item:last-child { border-bottom: none; }
    .brand__name { font-size: 0.82rem; }
    .brand__name small { font-size: 0.55rem; }
    .hero__title { font-size: 2rem; }
    .community__values { gap: 0.5rem 1.4rem; }
    .community__values span:not(:last-child)::after { right: -0.8rem; }
}

/* ============================================================
   Reveal — aparecimento gradual das seções
   ============================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Acessibilidade — foco visível */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--c-dourado-claro);
    outline-offset: 3px;
}

/* Respeitar preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
