/* --- Variable Definitions --- */
:root {
    --royal-blue-dark: #0a2463;
    --royal-blue-medium: #1e56a0;
    --royal-blue-light: #3ab4f2;
    --accent-color: #f2e1ac; /* A soft gold for contrast */
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --bg-light-grey: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* --- General Styling --- */
body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden; /* --- Prevents horizontal scrolling --- */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

section {
    position: relative;
    padding: 80px 0;
}

/* --- Section Background Colors --- */
#church-planter,
#services,
#giving {
    background-color: var(--bg-light-grey) !important;
}


/* Make Bootstrap links smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Offset for fixed navbar */
}


/* --- Navigation Bar --- */
.navbar {
    transition: background-color 0.4s ease-out, padding 0.4s ease-out;
    background-color: transparent;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(10, 36, 99, 0.95); /* var(--royal-blue-dark) with opacity */
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand img {
    height: 80px; /* Initial logo height */
    transition: height 0.4s ease-out;
}

.navbar.scrolled .navbar-brand img {
    height: 40px; /* Scrolled logo height */
}

.nav-link {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    background-image: url('CastleHill.jpg'); /* Your local image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

#gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85; /* Adjust opacity to see background image */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-weight: 700;
}

/* --- Section Styling --- */
#pastors .pastor-card, 
#church-planter .pastor-card, 
#beliefs .belief-card {
    border: none;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pastors .pastor-card:hover, 
#church-planter .pastor-card:hover, 
#beliefs .belief-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#pastors .pastor-card .card-body,
#church-planter .pastor-card .card-body {
    padding: 2rem;
}


/* --- Service Times Section --- */
.service-card {
    border: none;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    border-top: 5px solid var(--royal-blue-medium);
}
.service-card .card-header {
    background-color: var(--royal-blue-medium);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1.2rem;
}
.service-card .bi {
    color: var(--royal-blue-medium);
}

/* --- Links Section --- */
.list-group-item {
    transition: all 0.3s ease;
    border-color: #e0e0e0;
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.list-group-item i {
    font-size: 1.5rem; /* Make icons a bit larger */
    color: var(--royal-blue-medium);
    transition: color 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--royal-blue-medium);
    color: var(--text-light);
    border-color: var(--royal-blue-medium);
    transform: translateX(5px);
}

.list-group-item:hover i {
    color: var(--text-light); /* Match icon color to text color on hover */
}

/* --- Online Giving Section --- */
#giving .list-group-item {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#giving .copy-text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}
#giving .btn-copy {
    border-radius: 0.25rem;
}


/* --- Contact Section --- */
#contact {
    background-color: var(--royal-blue-medium);
    color: var(--text-light);
}

#contact h2, #contact .lead {
    color: var(--text-light);
}

#contact .contact-link {
    font-family: var(--font-secondary);
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

#contact .contact-link:hover {
    color: var(--accent-color);
}

#contact .contact-link i {
    color: var(--text-light);
}

/* --- Footer --- */
footer {
    background-color: var(--royal-blue-dark);
}