/* --- Global & Typography --- */
:root {
    --color-primary: #1A3E5C; /* Deep Navy Blue */
    --color-accent: #C79A5E; /* Bright Gold/Copper */
    --color-text: #333;
    --color-light: #FAFAFA; /* Light Paper Background */
    --color-dark: #222;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth; /* Crucial for smooth scrolling between sections */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: white;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lead-text {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2em;
}

/* --- Buttons & Links --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    margin: 5px;
}

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

.primary-btn:hover {
    background-color: #B58B51; /* Darker Gold */
    transform: translateY(-2px);
}

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

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

.centered-btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

/* --- Navbar & Header --- */
.navbar {
    position: fixed;
    top: 0;
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 25px;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.cta-link {
    background-color: var(--color-primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.cta-link:hover {
    background-color: var(--color-accent);
    color: white !important;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 62, 92, 0.95); /* Semi-transparent Primary Color */
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 0;
}

/* --- Sections & Layouts --- */
.content-section {
    padding: 80px 0;
    text-align: center;
}

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

.callout-bg {
    background-color: var(--color-primary);
    color: white;
    padding: 100px 0;
}

.callout-bg h2, .callout-bg h3 {
    color: white;
}

.callout-bg a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    background: url('http://quartopress.org/img/quartopress-hero-image.png') center/cover no-repeat; /* Replace with your image */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text legibility */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 0;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: white;
    margin-top: 10px;
}

.hero-ctas {
    margin-top: 30px;
}

/* --- About Section Grid --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.value-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Services Section Grid --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    color: var(--color-accent);
}

/* --- Portfolio/Books Grid --- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.book-cover {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden; /* Ensures image corners are contained by the border-radius */
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

/* New CSS to make the image fill the container and maintain aspect ratio */
.book-cover img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space beneath the image */
}

.book-cover:hover {
    /* Optional: Add a slight lift effect on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h2 {
    color: var(--color-accent);
}

.map-placeholder {
    height: 200px;
    background-color: #ddd;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    margin: 0 5px;
}

/* --- MEDIA QUERIES (Responsiveness) --- */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide desktop links */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

    .navbar {
        padding: 15px 20px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }

    h2 { font-size: 2rem; }
    
    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact form and info */
    }
}