/*
Theme Name: DMI Marketing Case Study Theme
Theme URI: https://digetalmarketinginstitute.com
Author: Auto-generated by ChatGPT
Author URI: https://digetalmarketinginstitute.com
Description: A clean, corporate WordPress theme designed for digital marketing case studies and strategy insights. Blue & white business styling, with a homepage hero, case study grid, and optimized blog layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dmi-marketing
Tags: blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu

*/

:root {
    --primary-color: #003366;
    --primary-color-light: #00509e;
    --accent-color: #ffb347;
    --text-color: #222222;
    --muted-text: #667182;
    --bg-color: #f4f7fb;
    --card-bg: #ffffff;
    --border-color: #e1e4ec;
    --heading-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-top: 0;
}

a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

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

/* Layout wrappers */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header,
.site-footer {
    background-color: #ffffff;
}

.site-main {
    flex: 1 0 auto;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
}

.site-description {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--muted-text);
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.95rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 4px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--primary-color-light);
}

.header-cta {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-cta:hover {
    background-color: var(--primary-color-light);
}

/* Mobile nav */

.menu-toggle {
    display: none;
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        border-radius: 10px;
        padding: 10px 0;
        margin-top: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-cta {
        display: none;
    }
}

/* Hero section for front page */

.hero {
    background: radial-gradient(circle at top left, #0058c1 0, #003366 50%, #002244 100%);
    color: #ffffff;
    padding: 70px 0 60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
}

.hero-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
}

.hero-metrics {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-metric {
    min-width: 120px;
}

.hero-metric strong {
    display: block;
    font-size: 1.4rem;
}

.hero-metric span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.hero-card {
    background-color: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.hero-card-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.hero-card-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.hero-card-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.hero-cta-group {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn,
.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #1c1c1c;
}

.btn-ghost {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Case study grid */

.section {
    padding: 50px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
    gap: 10px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.case-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary-color-light);
}

.case-title {
    font-size: 1.05rem;
    margin: 0;
}

.case-meta {
    font-size: 0.8rem;
    color: var(--muted-text);
}

.case-excerpt {
    font-size: 0.9rem;
    color: var(--text-color);
}

.case-link {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Content layout: blog listing + sidebar */

.content-area {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 30px;
    padding: 40px 0 60px;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .content-area {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Post list */

.post-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.04);
}

.post-card-title {
    font-size: 1.2rem;
    margin: 0 0 6px;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 10px;
}

.post-card-excerpt {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

/* Sidebar */

.sidebar {
    background-color: transparent;
}

.widget {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 10px;
}

/* Single post */

.single .entry-header {
    margin-bottom: 12px;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.entry-content {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 24px 26px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15,23,42,0.04);
    font-size: 0.98rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
}

/* Footer */

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

.footer-inner {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted-text);
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 14px;
}

/* Utility */

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: rgba(0,80,158,0.06);
    color: var(--primary-color-light);
    font-size: 0.75rem;
    font-weight: 500;
}
