/* ==========================================================================
   Padri Trinitari - Landing Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------- */
:root {
  --color-primary-dark: #3b181d;      /* Deep burgundy */
  --color-primary: #5c1822;           /* Rich maroon */
  --color-gold: #b88628;              /* Elegant gold */
  --color-gold-light: #dfb76c;        /* Soft gold */
  --color-gold-bg: rgba(184, 134, 40, 0.08);
  --color-gold-border: rgba(184, 134, 40, 0.28);
  --color-text-title: #1a1e24;        /* Dark slate */
  --color-text-body: #4b5563;         /* Neutral charcoal */
  --color-text-muted: #6b7280;        /* Subtle gray */
  --color-bg-page: #f8f6f0;           /* Warm alabaster */
  --color-card-bg: rgba(255, 255, 255, 0.92);
  --color-card-border: rgba(220, 215, 200, 0.7);
  --color-accent-blue: #1d4ed8;       /* Trinitarian cross blue */

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(59, 24, 29, 0.08);
  --shadow-lg: 0 20px 50px rgba(59, 24, 29, 0.12);
  --shadow-gold: 0 8px 24px rgba(184, 134, 40, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

/* --------------------------------------------------
   3. Ambient Decorative Background
   -------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.65;
  animation: floatAmbient 12s ease-in-out infinite alternate;
}

.glow-top {
  top: -15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(223, 183, 108, 0.35) 0%, rgba(92, 24, 34, 0.15) 60%, transparent 80%);
}

.glow-bottom {
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(92, 24, 34, 0.2) 0%, rgba(29, 78, 216, 0.08) 50%, transparent 80%);
  animation-delay: -6s;
}

.grid-pattern-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(rgba(184, 134, 40, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(59, 24, 29, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

/* --------------------------------------------------
   4. Page Container & Card
   -------------------------------------------------- */
.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.landing-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------
   5. Top Status Badge
   -------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-gold-border);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-gold);
  position: relative;
  box-shadow: 0 0 0 0 rgba(184, 134, 40, 0.7);
  animation: pulseDot 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 134, 40, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(184, 134, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(184, 134, 40, 0);
  }
}

/* --------------------------------------------------
   6. Header & Logo
   -------------------------------------------------- */
.header-section {
  margin-bottom: 2rem;
}

.logo-wrapper {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 134, 40, 0.18);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.site-logo {
  display: block;
  max-width: 100%;
  width: 440px;
  height: auto;
  object-fit: contain;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  opacity: 0.8;
}

.divider-line {
  height: 1px;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider-cross {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.6s ease;
}

.landing-card:hover .divider-cross {
  transform: rotate(180deg);
}

/* --------------------------------------------------
   7. Content & Headlines
   -------------------------------------------------- */
.content-section {
  margin-bottom: 2.75rem;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.15rem;
  position: relative;
}

.lead-text {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--color-text-body);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.lead-text strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* --------------------------------------------------
   8. Redirect CTA Box
   -------------------------------------------------- */
.redirect-box {
  background: linear-gradient(145deg, #ffffff, #faf7ef);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.redirect-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(184, 134, 40, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.redirect-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.redirect-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  flex-shrink: 0;
}

.redirect-message {
  font-size: 1.05rem;
  color: var(--color-text-body);
  line-height: 1.55;
  text-align: center;
  max-width: 520px;
}

.redirect-message strong {
  color: var(--color-primary-dark);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #c49635 0%, #a27218 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(184, 134, 40, 0.4);
  background: linear-gradient(135deg, #d3a43f 0%, #ab7a1d 100%);
}

.btn-cta:hover::before {
  left: 140%;
}

.btn-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-icon svg {
  display: block;
  transition: transform var(--transition-fast);
}

.btn-cta:hover .btn-icon svg {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------
   9. Contacts & Info Grid
   -------------------------------------------------- */
.contact-section {
  border-top: 1px solid rgba(220, 215, 200, 0.8);
  padding-top: 2.25rem;
  margin-bottom: 2rem;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(220, 215, 200, 0.7);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.contact-card:hover, .contact-card:focus-visible {
  background: #ffffff;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-bg);
  color: var(--color-gold);
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.contact-card:hover .card-icon {
  background: var(--color-gold);
  color: #ffffff;
}

.card-icon.fb-icon {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}

.contact-card:hover .card-icon.fb-icon {
  background: #1877f2;
  color: #ffffff;
}

.card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.card-label {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.card-value {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.copy-btn:hover {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------
   10. Footer Section
   -------------------------------------------------- */
.footer-section {
  border-top: 1px solid rgba(220, 215, 200, 0.5);
  padding-top: 1.5rem;
}

.copyright-text {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.copyright-text strong {
  color: var(--color-primary-dark);
}

/* --------------------------------------------------
   11. Toast Notification
   -------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 1rem;
  }

  .landing-card {
    padding: 2.25rem 1.5rem;
    border-radius: 20px;
  }

  .site-logo {
    width: 320px;
  }

  .redirect-box {
    padding: 1.4rem 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .btn-cta {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .redirect-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .landing-card {
    padding: 1.75rem 1rem;
  }

  .logo-wrapper {
    padding: 0.6rem 0.8rem;
  }

  .site-logo {
    width: 270px;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  .card-value {
    white-space: normal;
    word-break: break-word;
  }
}
