/* 
 * Christ The Redeemer Ministries UK - Premium Design System
 * Copyright 2025
 */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Primary Colors */
    --primary-blue: #2C5F8D;
    --primary-dark: #1e4568;
    --primary-gold: #D4A373;
    --primary-gold-hover: #c49261;
    --accent-green: #4A7C59;

    /* Neutrals */
    --dark-navy: #1A2332;
    --text-body: #4B5563;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2C5F8D 0%, #4A7C59 100%);
    --gradient-hero: linear-gradient(rgba(26, 35, 50, 0.7), rgba(26, 35, 50, 0.6));

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: --font-body;
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary-blue);
}

.text-gold {
    color: var(--primary-gold);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--dark-navy);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-navy);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

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

/* Header & Navigation */
.utility-bar {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.utility-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-navy);
    font-size: 1.4rem;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 20px;
    /* Reduced gap to fit items */
    align-items: center;
}

.nav-link {
    color: var(--dark-navy);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-navy);
    cursor: pointer;
}

.cta-button {
    margin-left: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.feature-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.main-footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

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

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 15px;
    }

    .main-nav.active {
        display: flex;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .utility-bar {
        display: none;
    }

    /* Hide utility bar on small mobile for clean design */

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}