/* ========================================
   Endast Tro — Premium Stylesheet
   ======================================== */

:root {
    --deep:        #0a0a1a;
    --navy:        #12122a;
    --slate:       #1c1c3a;
    --gold:        #c8a45e;
    --gold-light:  #e2c882;
    --cream:       #f5f0e8;
    --white:       #ffffff;
    --text:        #2c2c3c;
    --text-light:  #6b6b80;
    --bg-alt:      #f8f6f1;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg:   0 12px 48px rgba(0,0,0,0.10);
    --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--deep);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 164, 94, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* ========================================
   Navigation
   ======================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}
#header.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}
.logo-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--deep) 0%, #0f1b3d 40%, #1a2755 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 20% 50%, rgba(200, 164, 94, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 30%, rgba(200, 164, 94, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="none" width="100" height="100"/><circle fill="rgba(255,255,255,0.015)" cx="50" cy="50" r="1"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    animation: fadeUp 1s ease-out;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.hero-verse {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.hero-ref {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1.2s forwards;
}
.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   Info Bar
   ======================================== */

.info-bar {
    background: var(--white);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.info-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    border-right: 1px solid rgba(0,0,0,0.06);
}
.info-card:last-child {
    border-right: none;
}
.info-card:hover {
    background: var(--cream);
}

.info-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
.info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 6rem 0;
}
.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    margin-bottom: 1rem;
}
.section-line {
    width: 50px;
    height: 2.5px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   About
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-verse-card blockquote {
    background: linear-gradient(135deg, var(--navy), var(--slate));
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative;
}
.about-verse-card blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}
.about-verse-card blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-verse-card blockquote cite {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* ========================================
   Events / Kalender
   ======================================== */

.events-grid {
    display: grid;
    gap: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 3px solid var(--gold);
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.event-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 0.8rem;
    background: var(--cream);
    border-radius: 8px;
    text-align: center;
}
.day-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.day-num {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.event-info h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.event-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.event-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Sermons / Talearkiv
   ======================================== */

.sermons-grid {
    max-width: 700px;
    margin: 0 auto;
}

.sermon-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}
.sermon-meta {
    margin-bottom: 1rem;
}
.sermon-date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.sermon-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
}
.sermon-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Contact
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info .lead {
    margin-bottom: 2rem;
}

.contact-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}
.contact-item a {
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 500;
    transition: color var(--transition);
}
.contact-item a:hover {
    color: var(--gold);
}

.cta-card {
    background: linear-gradient(135deg, var(--navy), var(--slate));
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
}
.cta-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-card p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--deep);
    color: rgba(255,255,255,0.5);
    padding: 3rem 0 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.footer-brand .logo-icon {
    font-size: 1.2rem;
}
.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}
.footer-tagline {
    width: 100%;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(1.3); }
}

/* Scroll-triggered fade-in */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Info bar always visible */
.info-bar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}
.info-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--deep);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        font-size: 1rem;
    }

    .hero h1 { font-size: 2.8rem; }
    .hero { min-height: 90vh; }

    .info-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }
    .info-card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
    .info-card:last-child { border-bottom: none; }

    .about-content {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }
    .event-day {
        flex-direction: row;
        gap: 0.8rem;
        min-width: auto;
    }

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

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-tagline { text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; text-align: center; }
}
