/*
Theme Name: Williamson Media Starter
Theme URI: https://williamson.media
Author: Williamson Media
Author URI: https://williamson.media
Description: A lightweight, clean starter theme built for Elementor and fast client sites.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: williamson-media
*/

/* Defaults, will be overridden by the dynamic CSS vars output in functions.php */
:root{
    --wm-primary: #7a4fc2;
    --wm-header-bg: #ede9f3;
    --wm-footer-bg: #ede9f3;
    --wm-header-text: #333333;
    --wm-footer-text: #333333;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fb;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: var(--wm-primary);
    text-decoration: none;
}

header, footer {
    background-color: var(--wm-header-bg);
    padding: 20px 40px;
    text-align: center;
}

/* Buttons, use primary colour */
.wm-button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.blog .read-more a {
    background: var(--wm-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.wm-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.blog .read-more a:hover {
    opacity: 0.85;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

footer {
    font-size: 0.9rem;
    color: #666;
}

/* Page title bar for non-home pages */
.page-title-bar {
    background-color: var(--wm-header-bg);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-title-bar h2 {
    font-size: 2.2rem;
    color: #333;
    margin: 0;
}

/* Single blog post layout */
.single-post {
    padding: 60px 20px;
    background: none;
}

.single-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.single-post .featured-image img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.single-post .post-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: #222;
    text-align: center;
}

.single-post .post-meta {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.single-post .post-body {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #333;
}

.single-post .post-taxonomy {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #777;
}

.single-post .post-navigation {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
}

/* Post Navigation Buttons */
.single-post .post-navigation a {
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s ease;
}

.single-post .post-navigation a:hover {
    background-color: #e2e2e2;
}

/* Blog Archive Page Styling */
.blog .post {
    background: #fff;
    border: 1px solid #ddd;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

.blog .post img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog .post-title {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}

.blog .post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.blog .post-excerpt {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Archive bits */
.archive-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.archive-post {
    margin-bottom: 60px;
}

.archive-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.archive-post-title {
    margin-top: 20px;
    font-size: 1.6rem;
    color: var(--wm-primary);
}

.archive-post-title a {
    text-decoration: none;
    color: inherit;
}

.archive-post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.archive-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.read-more {
    color: var(--wm-primary);
    font-weight: 600;
    text-decoration: none;
}

.archive-excerpt a {
    font-weight: 500;
    text-decoration: underline;
}

.single-post-outer {
    padding: 60px 20px;
    background: #f8f9fb;
}

.single-post {
    background: none;
    padding: 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.footer-menu li {
    display: inline-block;
    margin-left: 15px;
}

.footer-menu li:first-child {
    margin-left: 0;
}

.footer-menu a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* Elementor template helper */
.wm-fullwidth {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post, .blog .post {
        padding: 20px;
    }

    .single-post .post-title {
        font-size: 2rem;
    }

    .page-title-bar h2 {
        font-size: 1.6rem;
    }
}
