/* 
   Cephas Publishing - Main Stylesheet 
   Theme: Deep Midnight Blue & Gold
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Colors */
    --primary-color: #0a192f;
    /* Deep Midnight Blue */
    --accent-color: #fbbf24;
    /* Gold/Amber */
    --secondary-color: #112240;
    /* Lighter Navy */
    --text-light: #e6f1ff;
    /* Off-white for dark backgrounds */
    --text-dark: #1f2937;
    /* Dark gray for light backgrounds */
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--accent-color);
}

.text-blue {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d97706;
    /* Darker amber */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Header & Nav */
.main-header {
    background-color: rgba(10, 25, 47, 0.95);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.main-header.scrolled {
    background-color: rgba(10, 25, 47, 0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.8)), url('images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
}

.hero .brand-title {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 400;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-200);
    font-style: italic;
}

/* Featured Books */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.book-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 100%;
    height: 400px;
    object-fit: contain;
    padding: 10px;
    background-color: #f8f9fa;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.book-author {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Mission / Verse Section */
.bg-light {
    background-color: var(--gray-100);
}

.verse-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.verse-text {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.verse-ref {
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--accent-color);
}

.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 0.5rem;
}

.links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 2rem;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .main-nav.active {
        clip-path: circle(150% at 100% 0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero .brand-title {
        font-size: 2.5rem;
    }
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.contact-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.text-center {
    text-align: center;
}

html {
    scroll-padding-top: var(--header-height);
    scroll-behavior: smooth;
}