/* ============================================================
   ParishRecords.in — Main Stylesheet
   Design: Refined & Trustworthy — Navy + Gold + Cream
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

/* ── Animation safety net ──
   Elements with data-animate are styled by JS after load.
   This ensures nothing is permanently invisible if JS is slow. */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Variables ── */
:root {
  --navy:        #1a3c5e;
  --navy-dark:   #0f2540;
  --navy-light:  #2a527e;
  --gold:        #d4a853;
  --gold-light:  #e8c47a;
  --gold-pale:   #faf4e6;
  --cream:       #fdf9f3;
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f1f3f5;
  --gray-200:    #e9ecef;
  --gray-400:    #adb5bd;
  --gray-600:    #6c757d;
  --gray-800:    #343a40;
  --text-main:   #1c2b3a;
  --text-muted:  #5a6a7a;
  --success:     #1a8a5a;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 4px rgba(26,60,94,.08);
  --shadow-md:  0 4px 20px rgba(26,60,94,.10);
  --shadow-lg:  0 12px 40px rgba(26,60,94,.14);

  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

a { color: var(--navy); transition: color var(--transition); }
a:hover { color: var(--navy-light); }

img { max-width: 100%; height: auto; }

/* ── Bootstrap Overrides ── */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,83,.4);
}
.btn-outline-primary {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn-outline-nav {
  border-color: var(--gray-200);
  color: var(--text-main);
  background: transparent;
}
.btn-outline-nav:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── Navigation ── */
.site-nav {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
  transition: box-shadow var(--transition);
  z-index: 1040;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand-accent { color: var(--navy); }
.brand-tld { color: var(--gold); font-size: 1rem; }

.navbar-nav .nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .4rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--navy);
  background: var(--gray-100);
}

.dropdown-menu-wide { min-width: 380px; }
.dropdown-menu { border-radius: var(--radius-md) !important; }
.dropdown-item { font-size: .88rem; color: var(--text-muted); transition: all var(--transition); }
.dropdown-item:hover { color: var(--navy); background: var(--gray-50); }

/* ── Section Utilities ── */
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Hero Section ── */
.hero-section {
  background: linear-gradient(160deg, var(--cream) 0%, var(--white) 55%, #eef4fb 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,83,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,60,94,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(26,138,90,.08);
  border: 1px solid rgba(26,138,90,.2);
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-trust {
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: center; gap: .4rem; }
.hero-trust-item i { color: var(--success); }

/* Dashboard mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dashboard-mockup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26,60,94,.04);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}
.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(0deg);
}
.mockup-bar {
  background: var(--navy);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-body { padding: 1.25rem; background: var(--gray-50); }
.mockup-stat-row { display: flex; gap: .75rem; margin-bottom: .75rem; }
.mockup-stat {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .75rem;
  border: 1px solid var(--gray-200);
}
.mockup-stat-num { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.mockup-stat-label { font-size: .7rem; color: var(--gray-600); margin-top: 2px; }
.mockup-table { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--gray-200); overflow: hidden; }
.mockup-row { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-bottom: 1px solid var(--gray-100); font-size: .72rem; }
.mockup-row:last-child { border-bottom: none; }
.mockup-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 600; flex-shrink: 0; }
.mockup-badge { font-size: .6rem; padding: .15rem .45rem; border-radius: 100px; font-weight: 500; }
.mockup-badge.green { background: rgba(26,138,90,.12); color: var(--success); }
.mockup-badge.gold { background: rgba(212,168,83,.15); color: #8a6320; }

/* ── Features ── */
.features-section { padding: 5rem 0; background: var(--white); }
.features-grid { display: grid; gap: 1.5rem; }
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.feature-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.feature-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }
.feature-free-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(26,138,90,.08);
  padding: .2rem .6rem;
  border-radius: 100px;
  margin-top: .75rem;
}

/* ── How It Works ── */
.how-section { padding: 5rem 0; background: var(--cream); }
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.step-desc { font-size: .9rem; color: var(--text-muted); }
.step-connector {
  position: absolute;
  top: 52px; right: -20%;
  width: 40%;
  height: 2px;
  border-top: 2px dashed var(--gray-200);
}

/* ── Testimonials ── */
.testimonials-section { padding: 5rem 0; background: var(--white); }
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-100); }
.testimonial-featured {
  background: var(--navy);
  border-color: var(--navy);
}
.testimonial-featured .testimonial-text,
.testimonial-featured .author-name,
.testimonial-featured .author-parish { color: white !important; }
.testimonial-featured .stars i { color: var(--gold) !important; }
.stars i { color: var(--gold); font-size: .9rem; }
.testimonial-text { font-size: .95rem; color: var(--text-main); line-height: 1.7; font-style: italic; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-featured .author-avatar { background: rgba(255,255,255,.2); }
.author-name { font-weight: 600; font-size: .9rem; }
.author-parish { font-size: .78rem; color: var(--text-muted); }
.testimonial-featured .author-parish { color: rgba(255,255,255,.65) !important; }

/* Stats */
.stats-row { border-top: 1px solid var(--gray-200); padding-top: 3rem; margin-top: 2rem; }
.stat-item { padding: 1.5rem; }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }

/* ── Pricing ── */
.pricing-section { padding: 5rem 0; background: var(--gray-50); }
.pricing-toggle .pricing-switch { width: 3em; cursor: pointer; }
.toggle-label { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-3px); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-icon {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.pricing-featured .plan-name { color: white; }
.plan-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-featured .plan-tagline { color: rgba(255,255,255,.65); }
.plan-price { margin-bottom: .25rem; }
.price-amount { font-family: var(--font-heading); font-size: 2.75rem; font-weight: 700; color: var(--navy); }
.pricing-featured .price-amount { color: var(--gold); }
.price-period { font-size: .9rem; color: var(--text-muted); }
.pricing-featured .price-period { color: rgba(255,255,255,.55); }
.price-note { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-featured .price-note { color: rgba(255,255,255,.5); }
.plan-features { list-style: none; padding: 0; margin: 0; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-main);
}
.pricing-featured .plan-features li { border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.plan-features li:last-child { border-bottom: none; }
.plan-features i { font-size: .9rem; flex-shrink: 0; margin-top: .15rem; }
.plan-features .bi-check-circle-fill { color: var(--success); }
.pricing-featured .plan-features .bi-check-circle-fill { color: var(--gold); }
.feature-excluded { opacity: .45; }
.feature-excluded .bi-x-circle { color: var(--gray-400) !important; }

/* ── Blog ── */
.blog-section { padding: 5rem 0; }
.post-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.post-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--gold);
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: .2rem .6rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: .75rem;
}
.post-card-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; line-height: 1.35; }
.post-card-title a { text-decoration: none; color: inherit; }
.post-card-title a:hover { color: var(--navy-light); }
.post-card-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.post-card-meta { font-size: .78rem; color: var(--text-muted); margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--gray-100); }
.post-card-meta a { color: var(--navy); text-decoration: none; font-weight: 500; }

/* Blog Post Page */
.post-hero { background: var(--cream); border-bottom: 1px solid var(--gray-200); }
.post-title { font-family: var(--font-heading); color: var(--navy); }
.badge-category {
  background: var(--gold-pale);
  color: #8a6320;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 100px;
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}
.post-body h2, .post-body h3 { color: var(--navy); margin-top: 2.5rem; margin-bottom: 1rem; }
.post-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  font-style: italic;
}
.tag-badge { background: var(--gray-100); color: var(--text-muted); font-weight: 500; font-size: .78rem; padding: .3rem .7rem; }
.post-cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
}
.post-cta-box h3 { color: white; }

/* ── CTA Section ── */
.cta-section {}
.cta-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,168,83,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-badge span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212,168,83,.12);
  border: 1px solid rgba(212,168,83,.3);
  padding: .3rem .9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-gold { color: var(--gold); }

/* ── Logos / Trust ── */
.trust-section { padding: 3rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.trust-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--gray-400); }
.logo-grid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem 3rem; }
.logo-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-400);
  opacity: .55;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.logo-item:hover { opacity: .85; }

/* ── FAQ ── */
.faq-section { padding: 5rem 0; }
.accordion-button { font-family: var(--font-body); font-weight: 500; color: var(--navy); background: transparent; }
.accordion-button:not(.collapsed) { color: var(--navy); background: var(--gold-pale); box-shadow: none; }
.accordion-button::after { filter: none; }
.accordion-item { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm) !important; margin-bottom: .75rem; overflow: hidden; }

/* ── Footer ── */
.footer-cta-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.footer-main { background: var(--gray-800); }
.footer-brand-text { font-family: var(--font-heading); color: var(--white); font-size: 1.1rem; }
.text-footer-muted { color: rgba(255,255,255,.5); }
.text-footer-muted:hover { color: rgba(255,255,255,.8); }
.footer-heading { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,.18); color: white; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-trust-badge { color: rgba(255,255,255,.5); }

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-section { padding: 4rem 0; }
  .dashboard-mockup { transform: none; max-width: 420px; }
  .pricing-featured { transform: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .step-connector { display: none; }
  .stats-row .stat-number { font-size: 2rem; }
  .pricing-card { padding: 2rem 1.5rem; }
}
@media (max-width: 576px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-inner { padding: 3rem 1.5rem !important; }
}
