/* ===== Lar do Idoso Orvalho de Luz ===== */

:root {
  --verde: #03582f;
  --verde-claro: #eaf1eb;
  --fundo: #f8f7f2;
  --branco: #ffffff;
  --texto: #26332c;
  --linha: rgba(3, 88, 47, 0.16);
  --sombra: 0 10px 30px rgba(38, 51, 44, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde);
  font-weight: 600;
  margin: 0 0 14px;
}

.title-line {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--verde);
  margin-bottom: 22px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--texto);
  margin: 0 0 20px;
}

h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }

p { margin: 0 0 16px; }

.lead {
  font-size: 1.15rem;
  color: #46564c;
  max-width: 620px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--verde);
  color: var(--branco);
}
.btn-primary:hover { background: #02461f; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--verde);
  border-color: var(--linha);
}
.btn-outline:hover { background: var(--verde-claro); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(38, 51, 44, 0.06);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand img { height: 40px; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--verde);
}

nav.main-nav { display: flex; align-items: center; gap: 38px; }

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--verde);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

nav.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--verde);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfaf6 0%, var(--fundo) 100%);
}

.hero-organic {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
}
.hero-organic.one {
  width: 480px; height: 480px;
  background: var(--verde-claro);
  top: -180px; right: -140px;
}
.hero-organic.two {
  width: 260px; height: 260px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  bottom: -60px;
  left: -80px;
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo { width: 88px; height: 88px; margin: 0 auto 28px; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #46564c;
  margin: 18px 0 36px;
}

.hero .btn-row { justify-content: center; }

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 0;
  color: var(--verde);
  opacity: 0.7;
}
.leaf-divider::before, .leaf-divider::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--linha);
}

/* ---------- Sobre ---------- */

.sobre {
  background: var(--branco);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre-visual {
  position: relative;
  height: 380px;
  border-radius: 16px;
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sobre-visual::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid rgba(3, 88, 47, 0.25);
  border-radius: 50%;
}

.sobre-visual::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  background: rgba(3, 88, 47, 0.08);
  border-radius: 50%;
  bottom: 40px;
  right: 50px;
}

.sobre-visual .center-mark {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  opacity: 0.85;
}

.sobre-text .lead { max-width: 100%; }

/* ---------- Localização ---------- */

.localizacao {
  background: var(--fundo);
}

.local-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--branco);
  border-radius: 18px;
  box-shadow: var(--sombra);
  overflow: hidden;
  border: 1px solid var(--linha);
}

.local-info { padding: 56px; }

.local-plaque {
  background: var(--verde);
  color: var(--branco);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.local-plaque::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.local-plaque .plaque-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 14px;
}

.local-plaque .address {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.4;
}

address { font-style: normal; font-size: 1.05rem; color: #46564c; margin-bottom: 28px; }

/* ---------- Contato ---------- */

.contato { background: var(--branco); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contato-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contato-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contato-list .label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde);
  font-weight: 600;
}
.contato-list .value { font-size: 1.1rem; }

.contato-visual {
  background: var(--verde-claro);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contato-visual img { width: 72px; opacity: 0.85; }

/* ---------- Footer ---------- */

footer {
  background: var(--verde-claro);
  padding: 56px 0 32px;
  border-top: 1px solid var(--linha);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 40px; }
.footer-brand .name { font-family: var(--serif); font-size: 1.05rem; color: var(--verde); }

.footer-meta {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: #46564c;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
  font-size: 0.82rem;
  color: #6a776e;
}

/* ---------- Diário Oficial ---------- */

.page-header {
  padding: 190px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fbfaf6 0%, var(--fundo) 100%);
}

.diario-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.diario-item {
  background: var(--branco);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--sombra);
  border: 1px solid var(--linha);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.diario-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(38, 51, 44, 0.12);
}

.diario-item img { width: 100%; border-radius: 10px; }

.diario-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #6a776e;
  text-align: center;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ---------- Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .local-card { grid-template-columns: 1fr; }
  .local-plaque { order: -1; }
  nav.main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--branco);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 32px 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  nav.main-nav.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .hero { padding: 150px 0 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .btn { padding: 14px 22px; font-size: 0.9rem; }
  .local-info, .local-plaque { padding: 36px 28px; }
}
