/*
Theme Name: Cedar Madison
Theme URI: https://cedarmadison.com
Author: Cedar Madison
Author URI: https://cedarmadison.com
Description: A custom WordPress theme for Cedar Madison web design services
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cedar-madison
*/

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    background-color: #ffffff !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img,
.custom-logo-link img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover,
.custom-logo-link img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    margin-left: auto; /* Pushes nav links to the right */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #2c3e50 !important; /* Dark blue color */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: #b8945f !important; /* Gold hover color */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.site-main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    border-bottom: 2px solid #b8945f;
    margin-bottom: 2rem;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
}

/* Articles */
article {
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

article:last-of-type {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #b8945f;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    margin-top: 1.5rem;
    line-height: 1.8;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.entry-footer span {
    display: inline-block;
    margin-right: 1.5rem;
}

/* Read More Link */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #b8945f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2c3e50;
}

.read-more::after {
    content: " →";
}

/* No Content */
.no-content {
    padding: 3rem 0;
    text-align: center;
}

.no-content h1 {
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #b8945f;
    color: white;
    border-color: #b8945f;
}

.pagination .current {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #b8945f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #b8945f;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    /* Main Content */
    .site-main {
        padding: 0 1.5rem;
        margin: 1rem auto;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        padding: 1.5rem 1.5rem 0;
    }
}

/* ===========================
   UTILITIES
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ===========================
   WORDPRESS SPECIFIC
   =========================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.sticky {
    /* Styles for sticky posts */
}

.bypostauthor {
    /* Styles for post author */
}

/* WordPress Gallery */
.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}