/*
Theme Name: FaithcastStudio
Theme URI: https://faithcaststudio.com
Author: FaithcastStudio
Author URI: https://faithcaststudio.com
Description: Premium AI content repurposing studio theme for churches and ministries. Includes subscriber dashboard, deliverable management, and full landing page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faithcaststudio
Tags: church, ministry, subscription, members-only, landing-page
*/

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #08131e;
  --navy-2:  #0d1b2a;
  --navy-3:  #112030;
  --navy-4:  #1a2e44;
  --gold:    #c9a84c;
  --gold-lt: #dfc070;
  --gold-dim: rgba(201,168,76,0.13);
  --gold-bdr: rgba(201,168,76,0.18);
  --cream:   #f5eedd;
  --white:   #ffffff;
  --muted:   rgba(245,238,221,0.52);
  --muted2:  rgba(245,238,221,0.3);
  --r-pill:  100px;
  --r-card:  22px;
  --r-sm:    12px;
  --success: #4caf7d;
  --danger:  #e05252;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-lt); }

/* WordPress core alignment */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { text-align: center; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}
h1 { font-size: clamp(3rem,7.5vw,6rem); }
h2 { font-size: clamp(2.4rem,5vw,4rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { font-weight: 300; line-height: 1.78; color: var(--muted); }
strong { font-weight: 500; color: var(--cream); }
em { font-style: italic; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.88rem 2.2rem;
  border-radius: var(--r-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  line-height: 1;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 36px rgba(201,168,76,0.32);
}
.btn-gold:hover {
  background: var(--gold-lt);
  color: var(--navy);
  transform: scale(1.04);
  box-shadow: 0 0 52px rgba(201,168,76,0.5);
}
.btn-ghost {
  color: var(--cream);
  border: 1px solid rgba(245,238,221,0.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(245,238,221,0.45);
  background: rgba(245,238,221,0.06);
  color: var(--cream);
}
.btn-outline-gold {
  color: var(--cream);
  border: 1px solid rgba(201,168,76,0.3);
}
.btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.78rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── EYEBROW / LABELS ─────────────────────────────────────── */
.eyebrow {
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: block;
}
.display { font-family: 'Cormorant Garamond', serif; }
.display em { font-style: italic; color: var(--gold); }
.display strong { font-weight: 600; }
.lead { font-size: 1.05rem; font-weight: 300; color: var(--muted); line-height: 1.8; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--r-card);
  padding: 2rem;
}
.card-hover { transition: border-color 0.3s, transform 0.35s; }
.card-hover:hover { border-color: rgba(201,168,76,0.32); transform: translateY(-5px); }

/* ── PILL BADGE ───────────────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.24rem 0.72rem;
  border-radius: var(--r-pill);
}

/* ── FORM ELEMENTS ────────────────────────────────────────── */
.fcs-field {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--r-sm);
  padding: 0.85rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  display: block;
  margin-bottom: 1rem;
}
.fcs-field::placeholder { color: var(--muted2); }
.fcs-field:focus { border-color: rgba(201,168,76,0.5); background: rgba(255,255,255,0.09); }
.fcs-label { font-size: 0.8rem; font-weight: 400; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.fcs-error { color: var(--danger); font-size: 0.78rem; margin-top: -0.5rem; margin-bottom: 0.75rem; }
.fcs-success { color: var(--success); font-size: 0.85rem; padding: 0.75rem 1rem; background: rgba(76,175,125,0.1); border: 1px solid rgba(76,175,125,0.3); border-radius: var(--r-sm); margin-bottom: 1rem; }
.fcs-notice { color: var(--cream); font-size: 0.85rem; padding: 0.75rem 1rem; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25); border-radius: var(--r-sm); margin-bottom: 1rem; }

/* ── NAVIGATION ───────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
  background: rgba(8,19,30,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: background 0.4s;
}
#site-nav.scrolled { background: rgba(8,19,30,0.95); }

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo-sep { width: 1px; height: 30px; background: rgba(201,168,76,0.25); }
.nav-logo-words { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-top { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--gold); letter-spacing: 0.02em; }
.nav-logo-bot { font-family: 'Cormorant Garamond', serif; font-size: 0.57rem; font-style: italic; color: var(--cream); letter-spacing: 0.28em; opacity: 0.7; margin-top: 3px; }

.nav-menu { display: flex; gap: 2.2rem; list-style: none; }
.nav-menu a { color: var(--muted); text-decoration: none; font-size: 0.81rem; font-weight: 300; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-menu a:hover { color: var(--cream); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-login-link { color: var(--muted); font-size: 0.81rem; font-weight: 300; text-decoration: none; transition: color 0.2s; }
.nav-login-link:hover { color: var(--cream); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 2.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--muted2); font-size: 0.77rem; font-weight: 300; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.71rem; font-weight: 300; color: var(--muted2); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── DASHBOARD ────────────────────────────────────────────── */
.dashboard-wrap {
  min-height: 100vh;
  padding: 88px 0 4rem;
  background: var(--navy);
}
.dashboard-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy-2);
  border-right: 1px solid rgba(201,168,76,0.1);
  min-height: calc(100vh - 64px);
  padding: 2rem 0;
}
.dashboard-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}
.dashboard-main {
  flex: 1;
  padding: 2.5rem 3rem;
  min-width: 0;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border-left: 3px solid transparent;
}
.dash-nav-item:hover { color: var(--cream); background: rgba(255,255,255,0.03); }
.dash-nav-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,168,76,0.05); }
.dash-nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.dash-nav-section { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted2); padding: 1.5rem 1.5rem 0.5rem; }

.dash-header { margin-bottom: 2.5rem; }
.dash-header h1 { font-size: 2rem; font-weight: 600; color: var(--cream); }
.dash-header p { font-size: 0.88rem; font-weight: 300; color: var(--muted); margin-top: 0.35rem; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.dash-stat-card {
  background: var(--navy-2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--r-sm);
  padding: 1.5rem;
}
.dash-stat-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted2); margin-bottom: 0.5rem; display: block; }
.dash-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--gold); display: block; line-height: 1; }
.dash-stat-sub { font-size: 0.75rem; font-weight: 300; color: var(--muted); margin-top: 0.35rem; }

.dash-section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--cream); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(201,168,76,0.1); }

.deliverable-table { width: 100%; border-collapse: collapse; }
.deliverable-table th { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(201,168,76,0.1); }
.deliverable-table td { padding: 1rem; font-size: 0.83rem; font-weight: 300; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.deliverable-table tr:last-child td { border-bottom: none; }
.deliverable-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--cream); }

.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
}
.status-ready   { background: rgba(76,175,125,0.15); color: #4caf7d; border: 1px solid rgba(76,175,125,0.3); }
.status-pending { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.status-draft   { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.1); }

.plan-card {
  background: var(--navy-2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--r-card);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.plan-name-big { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.plan-price-big { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: var(--white); }
.plan-price-big sub { font-size: 0.9rem; color: var(--muted); }
.plan-detail { font-size: 0.8rem; font-weight: 300; color: var(--muted); line-height: 1.6; }
.plan-status-active { color: var(--success); font-size: 0.78rem; font-weight: 500; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.2rem; color: var(--cream); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.85rem; max-width: 360px; margin: 0 auto; }

/* ── LOGIN PAGE ───────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--navy);
  position: relative;
}
.login-bg {
  position: absolute; inset: 0;
  background: url('assets/images/img4_traditional.jpeg') center/cover;
  opacity: 0.08;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(13,27,42,0.9);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--r-card);
  padding: 2.5rem 2.25rem;
  backdrop-filter: blur(20px);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--cream); text-align: center; margin-bottom: 0.5rem; }
.login-sub { font-size: 0.82rem; font-weight: 300; color: var(--muted); text-align: center; margin-bottom: 2rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #site-nav { padding: 0 1.5rem; }
  .nav-menu { display: none; }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; min-height: auto; border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
  .dashboard-main { padding: 1.5rem; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { justify-content: center; }
  .section { padding: 5rem 0; }
}
