/*
Theme Name: MinistryDesk
Theme URI: https://ministrydesk.example
Author: MinistryDesk
Description: Clean, modern theme designed for the MinistryDesk church management system. Works perfectly with the MinistryDesk plugin shortcodes and dashboards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: ministrydesk-theme
Tags: church, ministry, custom-menu, featured-images, theme-options, translation-ready
*/

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2d3748;
    background: #f7fafc;
}
a { color: #2b6cb0; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Header */
.mdt-header {
    background: #1a365d;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.mdt-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
}
.mdt-logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}
.mdt-logo span { color: #68d391; }
.mdt-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.mdt-nav a {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
}
.mdt-nav a:hover { color: #fff !important; }

/* Hero / Page title */
.mdt-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b4c7e 100%);
    color: #fff;
    padding: 2.5rem 1.25rem;
    text-align: center;
}
.mdt-hero h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}
.mdt-hero p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

/* Main content */
.mdt-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}
.mdt-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
}

/* Footer */
.mdt-footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 1.75rem 1rem;
    font-size: 0.9rem;
}
.mdt-footer a { color: #63b3ed; }

/* Utility */
.mdt-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Responsive */
@media (max-width: 768px) {
    .mdt-header-inner { flex-direction: column; gap: 0.75rem; }
    .mdt-nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .mdt-hero h1 { font-size: 1.6rem; }
    .mdt-content { padding: 1.25rem; }
}

/* Version bump styles for customizer / widgets / ads */
.mdt-text-banner {
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.mdt-header-image-banner img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}
.mdt-ad-bar {
    background: #edf2f7;
    padding: 0.75rem 0;
    text-align: center;
}
.mdt-ad-bar img { max-width: 100%; height: auto; }

.mdt-main.mdt-has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
.mdt-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}
.mdt-widget { margin-bottom: 1.25rem; }
.mdt-widget-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #1a365d;
}
.mdt-ad-sidebar { margin-bottom: 1rem; text-align: center; }

.mdt-footer-widgets {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.mdt-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.mdt-footer-col .mdt-widget-title { color: #e2e8f0; }
.mdt-footer-bottom { padding: 1.25rem 0; text-align: center; }
.mdt-footer-nav ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.mdt-home-promo { padding: 1.5rem 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
.mdt-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
@media (max-width: 900px) {
    .mdt-main.mdt-has-sidebar { grid-template-columns: 1fr; }
}

/* Full-width app pages (check-in, dashboards, login) */
.mdt-main.mdt-fullwidth {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}
.mdt-main.mdt-fullwidth .mdt-content {
    width: 100%;
}
.mdt-hero.mdt-hero-compact {
    padding: 1.5rem 1.25rem;
}
.mdt-hero.mdt-hero-compact h1 {
    font-size: 1.5rem;
}


/* Account / dashboard links in header */
.mdt-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.mdt-account-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.mdt-account-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
}
.mdt-account-link:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.mdt-account-dashboard {
    background: var(--mdt-accent, #2f855a);
    border-color: transparent;
}
.mdt-account-logout {
    background: transparent;
    font-weight: 500;
}
.mdt-menu-dashboard a {
    font-weight: 700 !important;
}
@media (max-width: 782px) {
    .mdt-account-nav {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}


/* ===== Sales / home landing ===== */
.mdt-hero-sales {
    padding: 3.5rem 1.25rem 4rem;
}
.mdt-hero-sales .mdt-container {
    max-width: 800px;
    margin: 0 auto;
}
.mdt-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    margin: 0 0 0.75rem;
}
.mdt-hero-sales h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.mdt-hero-lead {
    max-width: 36em;
    margin: 0 auto 1.75rem;
    font-size: 1.15rem;
    opacity: 0.95;
}
.mdt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: 0;
}
.mdt-btn-outline {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}
.mdt-btn-outline:hover {
    background: rgba(255,255,255,0.12) !important;
    text-decoration: none !important;
}
.mdt-sales {
    padding-bottom: 3rem;
}
.mdt-sales .mdt-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.mdt-sales-section {
    margin: 3rem 0;
}
.mdt-sales-section h2 {
    text-align: center;
    font-size: 1.75rem;
    color: #1a365d;
    margin: 0 0 0.75rem;
}
.mdt-sales-intro {
    text-align: center;
    max-width: 40em;
    margin: 0 auto 2rem;
    color: #4a5568;
}
.mdt-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.mdt-benefit-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.mdt-benefit-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
}
.mdt-benefit-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #1a365d;
}
.mdt-benefit-card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.98rem;
}
.mdt-feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.mdt-feature-col {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mdt-feature-col h3 {
    margin: 0 0 1rem;
    color: #2b6cb0;
    font-size: 1.2rem;
}
.mdt-feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #2d3748;
}
.mdt-feature-list li {
    margin-bottom: 0.45rem;
}
.mdt-feature-note {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    color: #718096;
}
.mdt-sales-cta {
    text-align: center;
    background: linear-gradient(135deg, #1a365d 0%, #2b4c7e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    margin: 3rem 0 1rem;
}
.mdt-sales-cta h2 {
    color: #fff;
    margin: 0 0 0.75rem;
}
.mdt-sales-cta p {
    max-width: 36em;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
}
.mdt-sales-cta .md-btn {
    margin: 0.25rem;
}
.mdt-sales-cta .md-btn:not(.md-btn-primary) {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
@media (max-width: 600px) {
    .mdt-hero-sales { padding: 2.5rem 1rem 3rem; }
    .mdt-hero-actions { flex-direction: column; align-items: stretch; }
    .mdt-hero-actions .md-btn { text-align: center; }
}


/* Feature rows with screenshots */
.mdt-sales-trust {
    margin: 2rem 0 0.5rem;
    text-align: center;
}
.mdt-trust-line {
    color: #718096;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin: 0;
}
.mdt-feature-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
    margin: 3.5rem 0;
}
.mdt-feature-row-reverse {
    direction: rtl;
}
.mdt-feature-row-reverse > * {
    direction: ltr;
}
.mdt-feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2b6cb0;
    margin-bottom: 0.5rem;
}
.mdt-feature-copy h2 {
    text-align: left;
    font-size: 1.65rem;
    color: #1a365d;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}
.mdt-feature-copy p {
    color: #4a5568;
    margin: 0 0 1rem;
}
.mdt-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mdt-check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    color: #2d3748;
}
.mdt-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: 700;
}
.mdt-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(26, 54, 93, 0.08),
        0 20px 40px -12px rgba(26, 54, 93, 0.25);
    background: #fff;
}
.mdt-shot img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}
.mdt-sales-more h2 {
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .mdt-feature-row,
    .mdt-feature-row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 1.5rem;
        margin: 2.5rem 0;
    }
    .mdt-feature-copy h2 {
        font-size: 1.4rem;
    }
}
