/* ============================================
   CRISTO REDENTOR RIO DE JANEIRO
   Portal Independente - CSS Framework
   Colors: Deep Green, Gold, White, Graphite
   Mobile-First Responsive Design
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --green-dark: #0a3d2e;
  --green-primary: #1a5c45;
  --green-light: #2d7a5f;
  --green-pale: #e8f5f0;
  --gold-primary: #c9a227;
  --gold-light: #e8d47a;
  --gold-pale: #faf5e0;
  --graphite: #2c2c2c;
  --graphite-light: #4a4a4a;
  --white: #ffffff;
  --offwhite: #f8f9f7;
  --cream: #f5f3ee;
  --text-body: #333333;
  --text-muted: #666666;
  --border-light: #e0ddd5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height:1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--green-primary); text-decoration:none; transition: color 0.2s; }
a:hover { color: var(--gold-primary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height:1.3; font-weight:700; color: var(--green-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom:1rem; }
ul, ol { margin-left:1.5rem; margin-bottom:1rem; }
li { margin-bottom:0.4rem; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin:0 auto; padding:0 1.2rem; }
section { padding: 3rem 0; }
.section-title { text-align:center; margin-bottom:2.5rem; }
.section-title h2 { color: var(--green-dark); margin-bottom:0.5rem; }
.section-title p { color: var(--text-muted); max-width:600px; margin:0 auto; }
.section-green { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--gold-light); }
.section-cream { background: var(--cream); }
.section-gold { background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 100%); }

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position:absolute; top:-40px; left:0;
  background:var(--green-dark); color:var(--white);
  padding:8px 16px; z-index:9999; font-size:0.9rem;
}
.skip-link:focus { top:0; }

/* ---- Header ---- */
.site-header {
  background: var(--green-dark);
  position: sticky; top:0; z-index:1000;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  height: var(--header-height); max-width: var(--max-width);
  margin:0 auto; padding:0 1.2rem;
}
.logo { display:flex; align-items:center; gap:0.75rem; color:var(--white); font-weight:700; font-size:1.1rem; }
.logo img { height:48px; width:auto; border-radius:var(--radius-sm); }
.logo span { font-family:var(--font-heading); letter-spacing:0.5px; }

/* ---- Navigation ---- */
.main-nav { display:flex; align-items:center; gap:2rem; }
.main-nav a {
  color: rgba(255,255,255,0.9); font-size:0.9rem; font-weight:500;
  text-transform:uppercase; letter-spacing:0.5px; padding:0.4rem 0;
  border-bottom:2px solid transparent; transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold-primary); }
.nav-cta {
  background: var(--gold-primary); color: var(--green-dark) !important;
  padding: 0.5rem 1.2rem !important; border-radius: 50px;
  font-weight: 700 !important; font-size: 0.8rem !important;
  border-bottom: none !important; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-light); color: var(--green-dark) !important; }

/* ---- Mobile Menu ---- */
.mobile-toggle {
  display:none; background:none; border:none; cursor:pointer;
  padding:0.5rem; color: var(--white);
}
.mobile-toggle span {
  display:block; width:24px; height:2px; background:var(--white);
  margin:5px 0; transition:0.3s; border-radius:2px;
}
.mobile-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity:0; }
.mobile-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

@media (max-width: 1024px) {
  .mobile-toggle { display:block; }
  .main-nav {
    position:fixed; top:var(--header-height); left:0; right:0;
    background: var(--green-dark); flex-direction:column;
    padding:1.5rem; gap:0; transform:translateY(-150%);
    transition: transform 0.3s ease; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height)); overflow-y:auto;
  }
  .main-nav.open { transform:translateY(0); }
  .main-nav a { padding:0.8rem 0; border-bottom:1px solid rgba(255,255,255,0.1); width:100%; font-size:0.95rem; }
  .nav-cta { margin-top:0.8rem; text-align:center; }
}

/* ---- Hero Section ---- */
.hero {
  position:relative; min-height:85vh; display:flex; align-items:center;
  background-size:cover; background-position:center;
  overflow:hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(10,61,46,0.88) 0%, rgba(10,61,46,0.65) 50%, rgba(10,61,46,0.8) 100%);
}
.hero-content { position:relative; z-index:2; max-width: var(--max-width); margin:0 auto; padding:4rem 1.2rem; width:100%; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white);
  margin-bottom:1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height:1.15;
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.9);
  max-width:700px; margin-bottom:2rem; line-height:1.6;
}
.hero .tagline {
  font-style:italic; color: var(--gold-light); font-size:1.05rem;
  max-width:650px; margin-bottom:2rem; border-left:3px solid var(--gold-primary);
  padding-left:1rem;
}
.hero-buttons { display:flex; flex-wrap:wrap; gap:1rem; }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding: 0.85rem 1.8rem; border-radius:50px; font-weight:600;
  font-size:0.95rem; border:none; cursor:pointer; transition:all 0.25s;
  text-transform:uppercase; letter-spacing:0.5px;
}
.btn-primary { background: var(--gold-primary); color: var(--green-dark); }
.btn-primary:hover { background: var(--gold-light); transform:translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: var(--gold-primary); color: var(--gold-light); }
.btn-green { background: var(--green-primary); color: var(--white); }
.btn-green:hover { background: var(--green-light); transform:translateY(-2px); }
.btn-whatsapp { background: #25D366; color: var(--white) !important; }
.btn-whatsapp:hover { background: #128C7E; }

/* ---- Cards ---- */
.card-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:1.5rem; }
.card {
  background:var(--white); border-radius:var(--radius-md);
  box-shadow: var(--shadow-sm); overflow:hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border-light);
}
.card:hover { transform:translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width:100%; height:200px; object-fit:cover; }
.card-body { padding:1.5rem; }
.card-body h3 { margin-bottom:0.6rem; color: var(--green-dark); font-size:1.15rem; }
.card-body p { color: var(--text-muted); font-size:0.95rem; margin-bottom:1rem; }
.card-body a { font-weight:600; font-size:0.9rem; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  background: var(--cream); padding:0.7rem 0; font-size:0.85rem;
  border-bottom:1px solid var(--border-light);
}
.breadcrumbs a { color: var(--green-primary); }
.breadcrumbs a:hover { color: var(--gold-primary); }
.breadcrumbs span { color: var(--text-muted); }
.breadcrumbs .container { display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap; }

/* ---- WhatsApp Sticky ---- */
.whatsapp-sticky {
  position:fixed; bottom:24px; right:24px; z-index:999;
  background:#25D366; color:var(--white); width:60px; height:60px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s; animation: pulse-whatsapp 2s infinite;
}
.whatsapp-sticky:hover { transform:scale(1.08); }
.whatsapp-sticky svg { width:32px; height:32px; }
@keyframes pulse-whatsapp {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ---- FAQ Accordion ---- */
.faq-item { border-bottom:1px solid var(--border-light); }
.faq-question {
  width:100%; background:none; border:none; text-align:left;
  padding:1.2rem 0; font-size:1.05rem; font-weight:600;
  color: var(--green-dark); cursor:pointer; display:flex;
  justify-content:space-between; align-items:center;
  font-family: var(--font-heading);
}
.faq-question::after { content:'+'; font-size:1.4rem; color:var(--gold-primary); font-weight:400; }
.faq-question.active::after { content:'−'; }
.faq-answer {
  max-height:0; overflow:hidden; transition: max-height 0.3s ease;
  padding:0 0 0 0; color: var(--text-body);
}
.faq-answer.open { max-height:500px; padding-bottom:1.2rem; }

/* ---- Content Page Layout ---- */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 3rem 0; text-align:center; color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom:0.5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-header p { color: rgba(255,255,255,0.85); max-width:600px; margin:0 auto; font-size:1.05rem; }
.page-content { padding: 2.5rem 0; max-width:800px; margin:0 auto; }
.page-content-full { padding: 2.5rem 0; }
.page-content h2 { color: var(--green-dark); margin: 2rem 0 1rem; padding-bottom:0.5rem; border-bottom:2px solid var(--gold-primary); }
.page-content h3 { color: var(--green-primary); margin: 1.5rem 0 0.75rem; }
.page-content img { border-radius: var(--radius-md); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.page-content ul, .page-content ol { margin-bottom:1.2rem; }
.page-content li { margin-bottom:0.5rem; }
.page-content strong { color: var(--green-dark); }

/* ---- Tables ---- */
.data-table { width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem; }
.data-table th { background: var(--green-dark); color:var(--white); padding:0.9rem 1rem; text-align:left; font-weight:600; }
.data-table td { padding:0.8rem 1rem; border-bottom:1px solid var(--border-light); }
.data-table tr:nth-child(even) { background: var(--offwhite); }
.data-table tr:hover { background: var(--green-pale); }

/* ---- Disclaimer Box ---- */
.disclaimer {
  background: #fff8e1; border-left:4px solid var(--gold-primary);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0; font-size: 0.9rem; color: var(--graphite-light);
}
.disclaimer strong { color: #856404; }

/* ---- Info Boxes ---- */
.info-box {
  background: var(--green-pale); border-left:4px solid var(--green-primary);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.info-box.tip { background: #e3f2fd; border-left-color: #2196f3; }
.info-box.warning { background: #ffebee; border-left-color: #f44336; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 3.5rem 0; text-align:center; color:var(--white);
}
.cta-section h2 { color: var(--gold-light); margin-bottom:1rem; }
.cta-section p { color: rgba(255,255,255,0.9); max-width:600px; margin:0 auto 1.5rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--graphite); color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem; font-size:0.9rem;
}
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:2rem; margin-bottom:2rem; }
.footer-col h4 { color: var(--gold-light); margin-bottom:1rem; font-size:1rem; }
.footer-col a { color: rgba(255,255,255,0.75); display:block; padding:0.3rem 0; font-size:0.88rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-disclaimer {
  border-top:1px solid rgba(255,255,255,0.15); padding-top:1.5rem;
  text-align:center; font-size:0.82rem; color: rgba(255,255,255,0.6);
  max-width:900px; margin:0 auto;
}
.footer-credits {
  text-align:center; padding-top:1rem; font-size:0.8rem; color: rgba(255,255,255,0.5);
}
.footer-credits a { color: var(--gold-light); font-weight:600; }

/* ---- Internal Backlinks ---- */
.backlinks { background: var(--cream); padding: 2rem 0; }
.backlinks h3 { text-align:center; margin-bottom:1.5rem; color: var(--green-dark); }
.backlink-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:0.8rem; }
.backlink-grid a { display:block; padding:0.7rem 1rem; background:var(--white); border-radius:var(--radius-sm); border:1px solid var(--border-light); font-size:0.9rem; font-weight:500; transition:all 0.2s; }
.backlink-grid a:hover { background: var(--green-pale); border-color: var(--green-primary); transform:translateX(4px); }

/* ---- Lazy Load ---- */
img[loading="lazy"] { opacity:0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity:1; }

/* ---- Scroll Reveal ---- */
.reveal { opacity:0; transform:translateY(24px); transition: all 0.5s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ---- Microdata / Schema Helpers ---- */
.schema-org { display:none; }

/* ---- Two Column Layout ---- */
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap:2rem; align-items:center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Stats/Numbers ---- */
.stat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap:1.5rem; text-align:center; }
.stat-item h4 { font-size:2rem; color: var(--gold-primary); font-family: var(--font-heading); }
.stat-item p { font-size:0.9rem; color: var(--text-muted); }

/* ---- Gallery ---- */
.gallery-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:1rem; }
.gallery-grid img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* ---- Steps/Timeline ---- */
.steps { display:flex; flex-direction:column; gap:1.5rem; }
.step { display:flex; gap:1rem; align-items:flex-start; }
.step-num { min-width:40px; height:40px; background: var(--gold-primary); color: var(--green-dark); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; flex-shrink:0; }
.step-content h4 { margin-bottom:0.3rem; color: var(--green-dark); }

/* ---- Responsive Typography ---- */
@media (max-width: 768px) {
  section { padding: 2rem 0; }
  .hero { min-height:70vh; }
  .hero-content { padding:2.5rem 1rem; }
  .footer-grid { gap:1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .btn { padding:0.75rem 1.4rem; font-size:0.85rem; }
  .whatsapp-sticky { width:52px; height:52px; bottom:16px; right:16px; }
}

/* ---- Print Styles ---- */
@media print {
  .site-header, .whatsapp-sticky, .hero { display:none; }
  .site-footer { background:#fff; color:#333; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}
