@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /*
   * TROQUE SOMENTE ESTA LINHA PARA MUDAR A IMAGEM DE FUNDO.
   * Exemplo:
   * --background-image: url("/assets/img/meu-fundo.jpg");
   */
  --background-image: url("/assets/img/bg-azul.jpg");

  --bg-deep: #06101d;
  --surface: rgba(8, 18, 31, 0.72);
  --surface-strong: rgba(10, 22, 38, 0.86);
  --surface-hover: rgba(15, 30, 49, 0.88);

  --text: #f7f8fb;
  --text-muted: #b7c0cd;
  --gold: #e7bf72;
  --gold-soft: rgba(231, 191, 114, 0.55);

  --border: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(231, 191, 114, 0.58);

  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-deep);
  background-image: var(--background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 9, 18, 0.46) 0%, rgba(3, 9, 18, 0.78) 48%, rgba(3, 9, 18, 0.96) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 8%, rgba(231, 191, 114, 0.18), transparent 30%),
    radial-gradient(circle at 20% 25%, rgba(33, 97, 146, 0.15), transparent 34%);
  pointer-events: none;
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(1px);
}

.app-shell {
  width: min(100% - 28px, 860px);
  margin: 0 auto;
  padding: 36px 0 28px;
}

.glass-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 24px 38px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.045), transparent 38%);
  pointer-events: none;
}

.logo-frame {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(4, 12, 23, 0.44);
  box-shadow:
    0 0 0 8px rgba(231, 191, 114, 0.025),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(82%) sepia(35%) saturate(648%) hue-rotate(352deg) brightness(96%) contrast(91%);
}

.subtitle {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 9vw, 5.4rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.title-divider {
  width: min(310px, 70%);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 17px;
}

.title-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.title-divider span:last-child {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.title-divider i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(231, 191, 114, 0.7);
}

.description {
  max-width: 590px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.65;
}

.links {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.link-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  opacity: 0.85;
  background: var(--accent, var(--gold));
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    var(--surface-hover);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  outline: none;
}

.link-card:active {
  transform: translateY(-1px) scale(0.995);
}

.link-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 19px;
  background: rgba(5, 13, 24, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent, var(--gold)) 62%, transparent);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.025);
}

.link-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.link-text {
  min-width: 0;
}

.link-title,
.link-desc {
  display: block;
}

.link-title {
  color: var(--text);
  font-size: clamp(1.04rem, 2.8vw, 1.25rem);
  line-height: 1.25;
  font-weight: 700;
}

.link-desc {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2.3vw, 1rem);
  line-height: 1.4;
}

.link-arrow {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translateX(4px);
}

.whatsapp-card {
  --accent: #28d77a;
}

.calendar-card {
  --accent: #4098ff;
}

.pdf-card {
  --accent: #ff4b55;
}

.sermon-card {
  --accent: #e7bf72;
}

.external-card {
  --accent: #35b8ee;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 6px 10px 0;
}

.footer span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26));
}

.footer span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent);
}

.footer p {
  margin: 0;
  color: rgba(204, 214, 227, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .app-shell {
    width: min(100% - 20px, 860px);
    padding-top: 18px;
  }

  .profile-card {
    padding: 28px 20px 31px;
    border-radius: 26px;
  }

  .logo-frame {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
  }

  .logo {
    width: 62px;
    height: 62px;
  }

  .links {
    gap: 13px;
    margin-top: 18px;
  }

  .link-card {
    min-height: 96px;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .link-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .link-icon img {
    width: 30px;
    height: 30px;
  }

  .link-arrow {
    font-size: 1.7rem;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 12px;
  }

  .footer span {
    display: none;
  }
}

@media (max-width: 390px) {
  .link-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .link-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
