/* ============================================
   SFWM — San Francisco Worship Ministry
   Theme Styles
   ============================================ */

:root {
  /* Color Palette — Royal, reverent, warm */
  --navy:        #1a2744;
  --navy-light:  #2a3f6e;
  --gold:        #c9a84c;
  --gold-light:  #e8d48b;
  --cream:       #faf8f2;
  --cream-dark:  #f0ecdd;
  --white:       #ffffff;
  --text:        #2c2c2c;
  --text-light:  #5a5a5a;
  --text-muted:  #8a8a8a;
  --border:      #e5e0d4;
  --shadow:      rgba(26, 39, 68, 0.08);
  --shadow-md:   rgba(26, 39, 68, 0.12);

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container:  1140px;
  --radius:     8px;
  --radius-lg:  12px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--gold); }

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

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .cross {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.site-logo h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

.site-logo h1 a { color: inherit; }
.site-logo h1 a:hover { color: var(--gold-light); }

/* ---- Navigation ---- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L30 55 M5 30 L55 30' stroke='rgba(201,168,76,0.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.hero .subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 24px;
  position: relative;
}

.hero .verse {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.hero .verse strong {
  color: var(--gold-light);
  font-weight: 500;
}

.hero .cta-btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.hero .cta-btn:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

/* ---- Section Shared ---- */
.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Sermon Cards ---- */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.sermon-card .card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.sermon-card .card-body {
  padding: 24px;
}

.sermon-card .card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sermon-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.sermon-card h3 a { color: inherit; }
.sermon-card h3 a:hover { color: var(--gold); }

.sermon-card .card-speaker {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sermon-card .card-speaker strong {
  color: var(--text-light);
  font-weight: 500;
}

.sermon-card .card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sermon-card .card-series {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ---- Sermon Full Page ---- */
.sermon-full {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.sermon-full .sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.sermon-full .meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sermon-full .meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.sermon-full .meta-value {
  font-size: 0.95rem;
  color: var(--text-light);
}

.sermon-full h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.sermon-full .sermon-scripture {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.sermon-full .sermon-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.sermon-full .sermon-content p {
  margin-bottom: 1.2em;
}

.sermon-full .sermon-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2em 0 0.6em;
}

.sermon-full .sermon-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1.5em 0 0.5em;
}

.sermon-full .sermon-content blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
}

/* ---- About / Contact Pages ---- */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-content .page-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 32px;
  border-radius: 2px;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2em 0 0.6em;
}

.page-content p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- Contact Info Box ---- */
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 2px 12px var(--shadow);
}

.contact-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-box p {
  margin-bottom: 8px;
}

.contact-box .service-times {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 32px;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-verse {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-info a:hover {
  color: var(--gold-light);
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 24px auto;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Back Link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h2 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .section { padding: 48px 16px; }
  .section-header h2 { font-size: 1.8rem; }
  .sermons-grid { grid-template-columns: 1fr; }
  .sermon-full h1, .page-content h1 { font-size: 2rem; }
  .header-inner { height: 60px; }
  .site-logo h1 { font-size: 1.2rem; }
  .main-nav a { padding: 6px 10px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 16px; }
  .hero h2 { font-size: 1.8rem; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 6px 8px; font-size: 0.75rem; }
}
