/*
Theme Name: Monthly Budget 365 Child
Theme URI: https://monthlybudget365.com/
Author: Monthly Budget 365
Author URI: https://monthlybudget365.com/
Description: Child theme of Twenty Twenty-Five for Monthly Budget 365, a shop selling a monthly budget spreadsheet. Calm, trustworthy styling in cream, sage and deep pine with a gold accent — made for a two-income family checking the month before payday, not for a bank. Homepage, pricing and product-page sections are added through the child theme only; the parent theme is never edited. WooCommerce cart, checkout and account pages are untouched. Version 1.0.0 is the first release: FAQPage JSON-LD for single posts from the custom field monthlybudget365_faq_json is in from the start, and the licence line is printed on every product page. Product and BreadcrumbList schema on product pages come from WooCommerce itself — this theme does not print a second copy.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: monthlybudget365-child
Tags: budget, spreadsheet, planner, finance, money, ecommerce, woocommerce, clean, serif
*/

/* ============================================================
   Monthly Budget 365 — custom styles
   All colours and fonts are managed through the variables
   below and the palette in theme.json. Change a value here
   and in theme.json together so blocks and CSS stay in sync.
   No external fonts and no external JavaScript are loaded:
   headings use an elegant system serif stack (Georgia first),
   body text uses the system sans stack.
   ============================================================ */

:root {
    --mb365-cream: #faf7f1;
    --mb365-cream-deep: #f1eae0;
    --mb365-sage: #e7efe8;
    --mb365-sage-line: #d8e2d9;
    --mb365-pine: #1b4332;
    --mb365-pine-deep: #123524;
    --mb365-gold: #b98a1d;
    --mb365-gold-soft: #f3e9c8;
    --mb365-ink: #22302a;
    --mb365-ink-soft: #5f6f66;
    --mb365-white: #fffdf9;
    --mb365-placeholder: #eceae6;
    --mb365-radius: 16px;
    --mb365-radius-lg: 24px;
}

/* ---------- Base ---------- */

body {
    background-color: var(--mb365-cream);
    color: var(--mb365-ink);
}

h1,
h2,
h3,
.monthlybudget365-serif {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--mb365-ink);
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.25;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.35;
}

a {
    color: var(--mb365-pine);
}

a:hover,
a:focus-visible {
    color: var(--mb365-gold);
}

:focus-visible {
    outline: 3px solid var(--mb365-gold);
    outline-offset: 2px;
}

/* ---------- Buttons: soft, rounded, deep pine ---------- */

.wp-block-button__link,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: 999px;
    background-color: var(--mb365-pine);
    color: #fff;
    border: 2px solid var(--mb365-pine);
    padding: 0.7em 1.6em;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background-color: var(--mb365-pine-deep);
    border-color: var(--mb365-pine-deep);
    color: #fff;
}

.monthlybudget365-button--ghost .wp-block-button__link {
    background-color: transparent;
    color: var(--mb365-pine);
}

.monthlybudget365-button--ghost .wp-block-button__link:hover,
.monthlybudget365-button--ghost .wp-block-button__link:focus-visible {
    background-color: var(--mb365-sage);
    color: var(--mb365-pine);
}

/* ---------- Hero ---------- */

.monthlybudget365-hero {
    background: linear-gradient(160deg, var(--mb365-sage) 0%, var(--mb365-cream) 55%, var(--mb365-gold-soft) 100%);
    border-radius: var(--mb365-radius-lg);
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 2.5rem;
}

.monthlybudget365-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mb365-pine);
    margin-bottom: 0.75rem;
}

.monthlybudget365-hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--mb365-ink-soft);
    max-width: 640px;
    margin: 1rem auto 1.5rem;
}

.monthlybudget365-trust-line {
    font-size: 0.95rem;
    color: var(--mb365-ink-soft);
    margin-top: 1.25rem;
}

/* ---------- Image placeholders: grey box, number, ratio, brief ---------- */

.monthlybudget365-placeholder {
    background-color: var(--mb365-placeholder);
    border: 2px dashed #b9b0aa;
    border-radius: var(--mb365-radius);
    color: var(--mb365-ink-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
    margin: 1.5rem auto 0;
    max-width: 800px;
}

.monthlybudget365-placeholder--hero {
    aspect-ratio: 1200 / 800;
    max-width: 900px;
}

.monthlybudget365-placeholder--scene {
    aspect-ratio: 800 / 600;
}

.monthlybudget365-placeholder strong {
    color: var(--mb365-ink);
}

/* ---------- Sections ---------- */

.monthlybudget365-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.monthlybudget365-section--tint {
    background-color: var(--mb365-cream-deep);
    border-radius: var(--mb365-radius-lg);
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
}

.monthlybudget365-centre {
    text-align: center;
}

.monthlybudget365-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--mb365-ink-soft);
}

.monthlybudget365-sheet-list {
    columns: 2;
    column-gap: 2rem;
}

/* ---------- Pricing cards: never break words mid-word ---------- */

.monthlybudget365-price-card {
    background: var(--mb365-white);
    border: 2px solid var(--mb365-sage-line);
    border-radius: var(--mb365-radius);
    padding: 1.5rem;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.monthlybudget365-price-card--popular {
    border-color: var(--mb365-pine);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.16);
}

.monthlybudget365-badge {
    display: inline-block;
    background: var(--mb365-pine);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.25em 0.9em;
    margin-bottom: 0.5rem;
}

.monthlybudget365-price {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--mb365-ink);
    margin: 0.25rem 0;
}

.monthlybudget365-price-note {
    color: var(--mb365-ink-soft);
}

/* ---------- FAQ ---------- */

.monthlybudget365-faq details {
    background: var(--mb365-white);
    border: 1px solid var(--mb365-sage-line);
    border-radius: var(--mb365-radius);
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.75rem;
}

.monthlybudget365-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--mb365-ink);
}

.monthlybudget365-faq summary::marker {
    color: var(--mb365-pine);
}

.monthlybudget365-faq p {
    margin-top: 0.6rem;
    color: var(--mb365-ink-soft);
}

/* ---------- Product pages ---------- */

.monthlybudget365-compare,
.monthlybudget365-delivery {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mb365-sage-line);
}

.monthlybudget365-compare-wrap {
    overflow-x: auto;
}

.monthlybudget365-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.monthlybudget365-compare-table th,
.monthlybudget365-compare-table td {
    border: 1px solid var(--mb365-sage-line);
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
}

.monthlybudget365-compare-table thead th {
    background-color: var(--mb365-sage);
    font-weight: 700;
}

.monthlybudget365-license {
    font-size: 0.9rem;
    color: var(--mb365-ink-soft);
    margin-top: 1rem;
}

.monthlybudget365-note {
    font-size: 0.95rem;
    color: var(--mb365-ink-soft);
}

/* ---------- Closing + footer ---------- */

.monthlybudget365-closing {
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.monthlybudget365-footer {
    border-top: 1px solid var(--mb365-sage-line);
    margin-top: 2rem;
}

.monthlybudget365-footer-copy,
.monthlybudget365-footer-support {
    color: var(--mb365-ink-soft);
    font-size: 0.95rem;
}

/* ---------- Mobile: 640px breakpoint ---------- */

@media (max-width: 640px) {
    .monthlybudget365-sheet-list {
        columns: 1;
    }

    .monthlybudget365-compare-table {
        font-size: 0.9rem;
    }

    .monthlybudget365-compare-table th,
    .monthlybudget365-compare-table td {
        padding: 0.5rem 0.6rem;
    }

    .wp-block-navigation {
        flex-wrap: wrap;
    }

    .monthlybudget365-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .monthlybudget365-placeholder--hero,
    .monthlybudget365-placeholder--scene {
        aspect-ratio: auto;
        min-height: 180px;
    }
}
