/* ============================================
   JPP Website - Shared Design System
   Misión Bautista Jesús Príncipe de Paz
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Primary Palette */
    --color-primary: #2c3e50;
    --color-primary-light: #34495e;
    --color-primary-dark: #1a252f;
    --color-primary-rgb: 44, 62, 80;

    /* Accent Palette */
    --color-accent: #3498db;
    --color-accent-hover: #2980b9;
    --color-accent-light: #86a4c1;
    --color-accent-lighter: #a8c6df;
    --color-accent-rgb: 52, 152, 219;

    /* Warm Accent (for highlights) */
    --color-warm: #e67e22;
    --color-warm-light: #f39c12;

    /* Semantic Colors */
    --color-success: #27ae60;
    --color-info: #2980b9;
    --color-warning: #f39c12;

    /* Neutrals */
    --color-text: #2d3436;
    --color-text-secondary: #636e72;
    --color-text-muted: #95a5a6;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-elevated: #ffffff;
    --color-border: #e0e6ed;
    --color-border-light: #edf2f7;

    /* Shadows (Material-inspired elevation) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-width: 1200px;
    --header-height: 70px;
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* ---- Shared Header ---- */
.jpp-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.jpp-header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-xl);
    height: 100%;
}

.jpp-header .logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: white;
}

.jpp-header .logo-container:hover {
    opacity: 0.9;
}

.jpp-header .logo {
    height: 45px;
    width: auto;
}

.jpp-header .church-name h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.jpp-header .nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.jpp-header .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.jpp-header .nav-links a:hover,
.jpp-header .nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ---- Shared Footer ---- */
.jpp-footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.jpp-footer p {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

.jpp-footer p:first-child {
    font-size: var(--font-size-base);
    opacity: 1;
}

/* ---- Utility Classes ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---- Standard Page Hero / Banner ─────────────────────────────
   Apply this class to any sub-page's hero/title section to keep
   banner height consistent across the entire site.
   Reference: miembros/index.html .members-hero (padding: 4rem 0 3rem)

   Usage:
     <section class="page-hero">
       <div class="container hero-inner">
         <h1>Page Title</h1>
         <p>Subtitle text</p>
       </div>
     </section>
   ───────────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 50%, var(--color-primary-light) 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Decorative radial glow — top right */
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Decorative radial glow — bottom left */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(134, 164, 193, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero .hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    color: white;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-size-lg);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 4px rgba(var(--color-accent-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

/* ---- Cards (Material-inspired) ---- */
.card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    overflow: hidden;
}

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

/* ---- Responsive Breakpoints ---- */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-4xl: 2rem;
    }

    .jpp-header .nav-links {
        gap: var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .jpp-header .church-name h1 {
        font-size: var(--font-size-base);
    }

    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .jpp-header .church-name {
        display: none;
    }
}