/* ================================================
   CALCEE — Design System
   Paleta: Azul profundo, Dourado, Bege, Off-white
   ================================================ */

:root {
  --navy-900: #0a1929;
  --navy-800: #0f2540;
  --navy-700: #1a3556;
  --navy-600: #25456e;
  --gold-500: #c9a961;
  --gold-400: #d4b878;
  --gold-300: #e2cd9c;
  --beige-100: #f5efe2;
  --beige-200: #ebe2cd;
  --cream: #faf7f0;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: rgba(201, 169, 97, 0.2);
  --shadow-lg: 0 30px 80px -20px rgba(10, 25, 41, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(10, 25, 41, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ====== Pattern Overlay (Arabic geometric) ====== */
.pattern-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23c9a961' stroke-width='0.5' opacity='0.4'><polygon points='30,2 36,18 54,18 40,28 46,46 30,36 14,46 20,28 6,18 24,18'/></g></svg>");
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* ====== Navbar ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream);
}
.brand-mark {
  font-family: var(--font-arabic);
  font-size: 32px;
  color: var(--gold-400);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; }
.brand-text small { font-size: 11px; color: var(--gold-300); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--gold-400);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--cream);
  transition: all 0.3s;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.15); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,25,41,0.85) 0%, rgba(10,25,41,0.6) 60%, rgba(10,25,41,0.85) 100%);
  z-index: 2;
}
.hero .pattern-overlay { z-index: 3; opacity: 0.08; }

.hero-content {
  position: relative; z-index: 4;
  max-width: 850px;
  padding-top: 100px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-arabic);
  font-size: 18px;
  color: var(--gold-400);
  margin-bottom: 24px;
  letter-spacing: 1px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}
.gold { color: var(--gold-400); font-style: italic; }
.hero-sub {
  font-size: 18px;
  max-width: 620px;
  color: rgba(245, 239, 226, 0.85);
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.6s forwards;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(201, 169, 97, 0.6);
}
.btn-outline {
  border: 1.5px solid var(--gold-400);
  color: var(--gold-300);
}
.btn-outline:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  width: 24px; height: 40px;
  border: 1.5px solid var(--gold-400);
  border-radius: 12px;
}
.hero-scroll span {
  display: block; width: 3px; height: 8px;
  background: var(--gold-400);
  margin: 6px auto;
  border-radius: 2px;
  animation: scroll 2s infinite;
}
@keyframes scroll { 0% { opacity:1; transform: translateY(0); } 100% { opacity:0; transform: translateY(14px); } }

/* ====== Sections ====== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-dark {
  background: var(--navy-900);
  color: var(--cream);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 18px;
  font-weight: 600;
}
.eyebrow.gold { color: var(--gold-400); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: var(--gold-500);
  margin: 24px auto 0;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
}
.section-dark .section-head p { color: rgba(245,239,226,0.7); }

/* ====== Grid ====== */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====== Features ====== */
.feature {
  padding: 40px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  transition: all 0.5s var(--ease);
  position: relative;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  font-size: 36px;
  color: var(--gold-500);
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.feature p { color: var(--muted); font-size: 15px; }

/* ====== Filters ====== */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245,239,226,0.7);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 30px;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-400); color: var(--gold-300); }
.filter-btn.active {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

/* ====== Cards ====== */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(201,169,97,0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.card.hide { display: none; }
.card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-500);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.5);
}
.card-img { height: 230px; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 28px; }
.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--cream);
}
.card-body > p {
  color: rgba(245,239,226,0.7);
  font-size: 14px;
  margin-bottom: 22px;
}
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(201,169,97,0.15);
  font-size: 13px;
  color: rgba(245,239,226,0.6);
}
.link-arrow {
  color: var(--gold-400);
  font-weight: 600;
  transition: gap 0.3s;
}
.link-arrow:hover { color: var(--gold-300); }

/* ====== Galeria Masonry ====== */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.masonry-item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.masonry-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.masonry-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,41,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.masonry-item:hover img { transform: scale(1.1); }
.masonry-item:hover::after { opacity: 1; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }

/* ====== Doação ====== */
.section-donate {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-donate .pattern-overlay { opacity: 0.07; }
.donate-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.donate-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 18px 0 24px;
}
.donate-info > p {
  font-size: 17px;
  color: rgba(245,239,226,0.8);
  margin-bottom: 36px;
}
.donate-benefits { display: flex; flex-direction: column; gap: 18px; }
.benefit {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px;
  background: rgba(245,239,226,0.05);
  border-left: 2px solid var(--gold-500);
  border-radius: 2px;
}
.benefit span { font-size: 28px; }
.benefit strong { display: block; color: var(--gold-300); margin-bottom: 4px; font-size: 16px; }
.benefit p { font-size: 13px; color: rgba(245,239,226,0.7); }

.donate-card {
  background: var(--cream);
  color: var(--navy-900);
  padding: 50px 40px;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-500);
}
.donate-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}
.donate-sub { color: var(--muted); margin-bottom: 28px; }
.qr-frame {
  width: 220px; height: 220px;
  margin: 0 auto 28px;
  padding: 14px;
  background: white;
  border: 2px solid var(--gold-500);
  border-radius: 8px;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.pix-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: left;
}
.pix-key {
  display: flex; gap: 8px;
  margin-bottom: 20px;
}
.pix-key input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--navy-800);
}
.btn-copy {
  padding: 14px 22px;
  background: var(--navy-800);
  color: var(--cream);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-copy:hover { background: var(--gold-500); color: var(--navy-900); }
.btn-copy.copied { background: #2d7a4f; color: white; }
.donate-secure {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ====== News Cards ====== */
.news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.news-img { height: 220px; overflow: hidden; }
.news-img img { width:100%; height:100%; object-fit: cover; transition: transform 0.7s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 28px; }
.news-date {
  font-size: 12px;
  color: var(--gold-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.news-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-800);
  margin: 12px 0 12px;
  line-height: 1.3;
}
.news-body p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ====== Footer ====== */
.footer {
  background: var(--navy-900);
  color: var(--cream);
  padding-top: 80px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand p {
  margin-top: 18px;
  color: rgba(245,239,226,0.6);
  font-size: 14px;
  max-width: 300px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--gold-400);
}
.footer-links { list-style: none; }
.footer-links li {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(245,239,226,0.7);
}
.footer-links a { transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-400); }
.socials {
  display: flex; gap: 10px;
  margin-top: 22px;
}
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.socials a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.newsletter {
  display: flex; gap: 8px;
  margin-top: 14px;
}
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(245,239,226,0.08);
  border: 1px solid rgba(201,169,97,0.2);
  border-radius: 3px;
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
}
.newsletter input::placeholder { color: rgba(245,239,226,0.4); }
.newsletter button {
  padding: 0 18px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 3px;
  font-weight: 700;
  transition: background 0.3s;
}
.newsletter button:hover { background: var(--gold-400); }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(201,169,97,0.15);
  text-align: center;
  font-size: 13px;
  color: rgba(245,239,226,0.5);
}

/* ====== Reveal Animation ====== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .donate-wrap { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .m-wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 30px;
    transition: right 0.4s var(--ease);
    z-index: 99;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 18px; }
  .menu-toggle { display: flex; z-index: 101; }
  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .m-wide, .m-tall { grid-column: auto; grid-row: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .donate-card { padding: 36px 24px; }
  .section-head { margin-bottom: 50px; }
}
