/* 
  Amor e Caridade 313 - Design System 2026
  Theme: Premium Masonic (Navy & Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Colors - Regal Identity (Luxury Overhaul) */
  --primary: #fdfaf5;         /* Warm Ivory/Cream */
  --primary-dark: #f5f1ea;     /* Slightly darker ivory for contrast */
  --accent: #d4af37;          /* Classic Gold */
  --accent-light: #f1dfa1;    /* Lighter Gold for highlights */
  --accent-secondary: #800000; /* Deep Royal Burgundy */
  --accent-secondary-light: #a52a2a; /* Lighter Burgundy */
  --text: #1a1a1a;            /* High contrast charcoal */
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --black: #0c1221;           /* Deep Midnight for footers/dark contrast */
  
  /* Glassmorphism 2.0 */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(212, 175, 55, 0.3);
  --glass-shadow: 0 15px 35px 0 rgba(128, 0, 0, 0.08);
  --glass-blur: blur(12px);

  /* Spacing & Borders */
  --section-padding: 120px 8%;
  --section-padding-mobile: 80px 5%;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('fundo.png');
  background-repeat: repeat;
  background-size: 350px;
  opacity: 0.02;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.text-outline {
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* --- Layout Components --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
}

@media (max-width: 768px) {
  section {
    padding: var(--section-padding-mobile);
  }
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* --- Featured Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  padding: 40px;
  text-align: center;
  transition: var(--transition-bounce);
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(128,0,0,0.1);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}

/* --- Parallax Section --- */
.parallax-section {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.4);
}

/* --- Typography Helpers --- */

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--accent), var(--accent-secondary), var(--accent), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

/* --- Navigation --- */

/* A navegação agora é controlada pelo header.php para evitar conflitos */
.navbar {
  z-index: 2000;
}

.navbar.scrolled {
  background: var(--white);
  padding: 15px 5%;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  display: block;
  transition: var(--transition-smooth);
}

.navbar.scrolled .logo img {
  height: 70px !important;
}

/* Estilos de links movidos para o header.php */

.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block !important;
  }
}

/* Intro & Splash */
.intro-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: dazzle-entrance 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  perspective: 1000px;
}

.intro-logo-container img {
  transition: transform 0.2s ease-out, filter 0.5s ease;
  transform-style: preserve-3d;
}

@keyframes dazzle-entrance {
  0% { 
    opacity: 0; 
    transform: scale(0.8); 
    filter: blur(20px) brightness(2);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.05); 
    filter: blur(0px) brightness(1.5);
  }
  100% { 
    opacity: 1; 
    transform: scale(1); 
    filter: blur(0px) brightness(1) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.3; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(5px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Section Dividers */
.divider-wave {
  position: absolute;
  width: 100%;
  left: 0;
  height: 60px;
  z-index: 10;
}

.divider-top { top: -30px; }
.divider-bottom { bottom: -30px; }

/* Custom Cursor Placeholder (implemented in JS) */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
  mix-blend-mode: difference;
}
