/*
Theme Name: Khodiyar Brass Blog
Theme URI: https://brasscomponents.eu
Author: Khodiyar Brass Industries
Description: Custom lightweight theme for the Khodiyar Brass Industries blog, replacing Elementor.
Version: 1.0
Text Domain: kbi-blog
*/

:root {
    --color-navy: #1a202c;
    --color-blue-btn: #5b8aa6;
    --color-bg-alt: #eef4fa;
    --color-muted: #718096;
    --color-border: #e2e8f0;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.site-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--color-navy);
}
.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
}
.primary-menu a {
    font-size: 1rem;
    color: var(--color-navy);
    padding-bottom: 4px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    border-bottom: 2px solid var(--color-navy);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .primary-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 32px;
        gap: 16px;
        display: none;
        border-bottom: 1px solid var(--color-border);
        z-index: 999;
    }
    .primary-menu.is-open { display: flex; }
    .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 24px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 28, 0.6);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}
.hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
}
.hero p {
    font-size: 1.15rem;
    margin: 0 0 30px 0;
    color: #f0f2f5;
}
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}
.btn-blue {
    background: var(--color-blue-btn);
    color: #fff;
}
.btn-blue:hover { background: #4c7690; }
.btn-outline-dark {
    background: #fff;
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);
}
.btn-outline-dark:hover { background: var(--color-navy); color: #fff; }

.hero-rating {
    margin-top: 34px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.hero-rating-text {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

/* ---------- Blog listing ---------- */
.section-padding { padding: 80px 0; }
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 50px 0;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
}
@media (max-width: 760px) {
    .post-grid { grid-template-columns: 1fr; }
}
.post-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px 0;
}
.post-card h2 a:hover { text-decoration: underline; }
.post-card p {
    color: var(--color-muted);
    font-size: 1rem;
    margin: 0 0 14px 0;
}
.post-card .post-date {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.pagination {
    margin-top: 60px;
    display: flex;
    gap: 14px;
    justify-content: center;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-navy);
    font-size: 0.9rem;
}
.pagination .current {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

/* ---------- CTA (Get Started) ---------- */
.cta-section {
    background: var(--color-bg-alt);
    padding: 90px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--color-navy);
}
.cta-section p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 30px 0;
}

/* ---------- Single Post ---------- */
.single-post-header {
    background: var(--color-bg-alt);
    padding: 70px 0 50px 0;
}
.single-post-header .post-meta {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.single-post-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    max-width: 820px;
}
.post-content-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 32px;
}
.post-content-wrap img {
    border-radius: 10px;
    margin: 24px 0;
}
.post-content-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px 0;
}
.post-content-wrap p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 20px 0;
    color: #2d3748;
}
.post-content-wrap a { color: var(--color-blue-btn); text-decoration: underline; }
.post-content-wrap ul, .post-content-wrap ol { font-size: 1.05rem; line-height: 1.85; color: #2d3748; }
.post-content-wrap hr { border: none; border-top: 1px solid var(--color-border); margin: 40px 0; }
.post-nav {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 32px 60px 32px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-navy);
    color: #cbd5e0;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.footer-menu, .footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li, .footer-contacts li { margin-bottom: 12px; }
.footer-menu a { font-size: 1rem; color: #cbd5e0; }
.footer-menu a:hover { text-decoration: underline; }
.footer-contacts a { color: #cbd5e0; text-decoration: underline; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.footer-socials a:hover { background: rgba(255,255,255,0.2); }

.newsletter-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #cbd5e0;
}
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: none;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.newsletter-form button {
    width: 100%;
    padding: 12px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.newsletter-form button:hover { background: #fff; color: var(--color-navy); }
.newsletter-note { font-size: 0.8rem; color: #a0aec0; margin-top: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 22px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #a0aec0;
}
