/*
Theme Name: Orchards Bookkeeping
Theme URI: https://orchardsbookkeeping.com/
Author: Orchards Bookkeeping
Author URI: https://orchardsbookkeeping.com/
Description: Custom WordPress theme matching the Orchards Bookkeeping main site. Palette strictly limited to colors that actually render on orchardsbookkeeping.com (audited via per-element CSS rule tracing).
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: orchards
*/

/* ===== Design tokens — every value verified to actually render on orchardsbookkeeping.com ===== */
:root {
    --orchards-tan:         #ca987d;  /* primary action — her Schedule button color */
    --orchards-olive-dark:  #36402b;  /* body text — her <p> color */
    --orchards-sage:        #6b705d;  /* secondary text, nav */
    --orchards-sage-pale:   #dadfd4;  /* hero accent text */
    --orchards-sage-muted:  #b7b7a4;  /* subtle section bg */
    --orchards-cream:       #ebe5d0;  /* warm bg — her header */
    --orchards-ink:         #1a1a1a;  /* headings + dark surfaces */
    --orchards-link:        #635c5c;  /* link gray */
    --orchards-bg:          #ffffff;  /* page bg */
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Hind", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--orchards-olive-dark);
    background: var(--orchards-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orchards-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orchards-tan); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Shippori Mincho", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: var(--orchards-ink);
    line-height: 1.25;
    margin: 1.4em 0 .6em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.2em; }
blockquote {
    border-left: 4px solid var(--orchards-tan);
    padding: .8em 1.2em;
    background: var(--orchards-cream);
    margin: 1.5em 0;
    font-style: italic;
    color: var(--orchards-olive-dark);
}
code, pre {
    font-family: "SF Mono", Consolas, Monaco, monospace;
    background: var(--orchards-cream);
    border-radius: 4px;
    padding: .15em .4em;
    font-size: .92em;
}
pre { padding: 1em; overflow-x: auto; }
pre code { padding: 0; background: none; }
hr { border: none; border-top: 1px solid var(--orchards-cream); margin: 2em 0; }

/* ===== Layout containers ===== */
.orchards-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.orchards-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
    background: var(--orchards-bg);
    border-bottom: 1px solid var(--orchards-cream);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-logo img { height: 44px; width: auto; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--orchards-sage);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.site-nav a:hover { color: var(--orchards-tan); text-decoration: none; }
.site-nav a.current { color: var(--orchards-tan); }
.cta-button, .btn-primary, button[type="submit"], input[type="submit"] {
    display: inline-block;
    background: var(--orchards-tan);
    color: var(--orchards-bg) !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: 0 2px 8px rgba(202,152,125,.3);
}
.cta-button:hover, .btn-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: var(--orchards-olive-dark);
    color: var(--orchards-bg) !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(54,64,43,.35);
    transform: translateY(-1px);
}

/* ===== Page hero ===== */
.page-hero {
    background: var(--orchards-cream);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--orchards-sage-muted);
}
.page-hero h1 { margin: 0 0 .2em; color: var(--orchards-ink); }
.page-hero .tagline { color: var(--orchards-sage); font-size: 1.1rem; margin: 0; }
.page-hero .accent-bar {
    width: 60px; height: 4px;
    background: var(--orchards-tan);
    margin: 18px 0 0; border-radius: 2px;
}

/* ===== Main content ===== */
.site-main { padding: 50px 0 70px; min-height: 50vh; }

/* ===== Post card (archive) ===== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.post-card {
    background: var(--orchards-bg);
    border: 1px solid var(--orchards-cream);
    border-radius: 8px;
    overflow: hidden;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: var(--orchards-tan);
}
.post-card .post-thumb {
    aspect-ratio: 16/9;
    background: var(--orchards-cream);
    overflow: hidden;
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 .5em; }
.post-card h2 a { color: var(--orchards-ink); }
.post-card h2 a:hover { color: var(--orchards-tan); text-decoration: none; }
.post-card .post-excerpt { color: var(--orchards-sage); font-size: .95rem; flex: 1; }
.post-card .post-meta {
    color: var(--orchards-link);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}
.post-card .read-more {
    margin-top: 14px;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--orchards-tan);
}

/* ===== Single post ===== */
.single-post-article {
    max-width: 780px;
    margin: 0 auto;
}
.single-post-article .post-meta {
    color: var(--orchards-link);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.single-post-article > h1 {
    font-size: 2.6rem;
    margin: 0 0 .3em;
}
.single-post-article .featured-image {
    margin: 30px -10px 40px;
    border-radius: 8px;
    overflow: hidden;
}
.single-post-article .featured-image img { width: 100%; }
.post-content { font-size: 1.08rem; }
.post-content > * + * { margin-top: 1em; }
.post-content figure { margin: 2em 0; }
.post-content figcaption { font-size: .9rem; color: var(--orchards-sage); text-align: center; margin-top: 8px; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 1em 0; }
.post-content li { margin: .4em 0; }

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--orchards-cream);
}
.post-tags a {
    display: inline-block;
    background: var(--orchards-cream);
    color: var(--orchards-sage);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .85rem;
    margin: 0 6px 6px 0;
}
.post-tags a:hover { background: var(--orchards-tan); color: var(--orchards-bg); text-decoration: none; }

/* ===== Pagination ===== */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination .current {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--orchards-cream);
    border-radius: 6px;
    color: var(--orchards-olive-dark);
    background: var(--orchards-bg);
}
.pagination .current { background: var(--orchards-tan); color: var(--orchards-bg); border-color: var(--orchards-tan); }
.pagination a:hover { background: var(--orchards-cream); text-decoration: none; }

/* ===== CTA strip ===== */
.cta-strip {
    background: var(--orchards-sage);
    color: var(--orchards-bg);
    padding: 50px 0;
    text-align: center;
    margin-top: 70px;
}
.cta-strip h2 { color: var(--orchards-bg); margin-top: 0; }
.cta-strip p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 24px; }
.cta-strip .cta-button {
    background: var(--orchards-tan);
    color: var(--orchards-bg) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.cta-strip .cta-button:hover {
    background: var(--orchards-cream);
    color: var(--orchards-olive-dark) !important;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--orchards-cream);
    color: var(--orchards-olive-dark);
    padding: 50px 0 25px;
    font-size: .95rem;
}
.site-footer a { color: var(--orchards-link); }
.site-footer a:hover { color: var(--orchards-tan); }
.site-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.site-footer h3 {
    color: var(--orchards-ink);
    font-family: "Hind", sans-serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 14px;
    font-weight: 600;
}
.site-footer h3.footer-brand {
    font-family: "Shippori Mincho", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--orchards-ink);
    font-weight: 600;
    margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer-bottom {
    border-top: 1px solid var(--orchards-sage-muted);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .85rem;
    color: var(--orchards-sage);
}

/* ===== Comments ===== */
.comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--orchards-cream); }
.comments-area h2 { font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 18px; background: var(--orchards-cream); border-radius: 6px; margin-bottom: 14px; }

/* ===== Forms ===== */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--orchards-cream);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--orchards-olive-dark);
    background: var(--orchards-bg);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--orchards-tan);
    box-shadow: 0 0 0 3px rgba(202,152,125,.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .single-post-article > h1 { font-size: 2rem; }
    .site-header-inner { justify-content: center; }
    .site-nav { gap: 16px; font-size: 14px; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .cta-button { padding: 10px 18px; font-size: 12.5px; }
    body { font-size: 16px; }
}

/* WP core classes */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--orchards-sage); text-align: center; margin-top: 8px; }
.screen-reader-text { position: absolute; left: -9999px; }
.sticky { background: var(--orchards-cream); border-left: 4px solid var(--orchards-tan); padding: 10px 16px; }
