/*
Theme Name: Twenty Twenty-Two Child
Template: twentytwentytwo
Description: Texas Tree Trails — child theme with site-wide design system.
Version: 1.1
Author: Texas Tree Trails
*/

/* ============================================================
   DESIGN TOKENS — central system used everywhere
   ============================================================ */
:root {
    /* Colors */
    --ttt-brand:           #1d4d2e;
    --ttt-brand-light:     #2c5530;
    --ttt-accent:          #00a651;
    --ttt-accent-hover:    #007a3b;
    --ttt-accent-soft:     #e8f5ec;
    --ttt-surface:         #ffffff;
    --ttt-surface-warm:    #f7f5ef;
    --ttt-surface-deeper:  #f0eee5;
    --ttt-border:          #e5e1d6;
    --ttt-border-strong:   #c4bfae;
    --ttt-text:            #1a1a1a;
    --ttt-text-muted:      #5a5a5a;
    --ttt-text-light:      #8a8a8a;
    --ttt-historic:        #8b6914;
    --ttt-historic-soft:   #f7f0dd;

    /* Typography */
    --ttt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --ttt-font-accent: 'Lora', Georgia, 'Times New Roman', serif;

    /* Spacing scale */
    --ttt-space-xs:   0.25rem;
    --ttt-space-sm:   0.5rem;
    --ttt-space-md:   1rem;
    --ttt-space-lg:   1.5rem;
    --ttt-space-xl:   2rem;
    --ttt-space-xxl:  3rem;
    --ttt-space-xxxl: 5rem;

    /* Border radius */
    --ttt-radius-sm:   4px;
    --ttt-radius-md:   8px;
    --ttt-radius-lg:   12px;
    --ttt-radius-pill: 999px;

    /* Shadow */
    --ttt-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --ttt-shadow-md: 0 4px 14px rgba(0,0,0,.08);
}

/* ============================================================
   GLOBAL TYPOGRAPHY — body baseline
   ============================================================ */
body {
    font-family: var(--ttt-font-body);
    color: var(--ttt-text);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--ttt-font-body);
    color: var(--ttt-brand);
    line-height: 1.2;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
h1, .wp-block-post-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

/* Italic accents (botanical names, captions) */
em { font-family: var(--ttt-font-accent); font-style: italic; }
.botanical, .scientific-name { font-family: var(--ttt-font-accent); font-style: italic; color: var(--ttt-text-muted); }

/* Links */
a { color: var(--ttt-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--ttt-accent-hover); text-decoration-thickness: 2px; }

/* Selection */
::selection { background: var(--ttt-accent); color: white; }

/* ============================================================
   BUTTONS — globally consistent
   ============================================================ */
.wp-block-button__link,
.wp-element-button,
button.btn-primary,
.btn-primary {
    background: var(--ttt-accent) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: var(--ttt-radius-md) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: background .15s, transform .15s !important;
    cursor: pointer;
    display: inline-block;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
button.btn-primary:hover,
.btn-primary:hover {
    background: var(--ttt-accent-hover) !important;
    transform: translateY(-1px);
}

/* Secondary button — outline style */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-secondary {
    background: transparent !important;
    color: var(--ttt-brand) !important;
    border: 2px solid var(--ttt-brand) !important;
    padding: 0.6rem 1.6rem !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-secondary:hover {
    background: var(--ttt-brand) !important;
    color: white !important;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.wp-block-site-title a,
.wp-block-site-title {
    color: var(--ttt-brand) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.wp-block-navigation .wp-block-navigation-item__content {
    font-weight: 500;
    color: var(--ttt-text);
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--ttt-accent);
}
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
    color: var(--ttt-accent);
}

/* ============================================================
   PAGE CONTENT — generic improvements
   ============================================================ */
.wp-block-post-content,
.entry-content {
    line-height: 1.7;
}
.wp-block-post-content p,
.entry-content p {
    margin-bottom: 1.25rem;
}

/* Lists */
.wp-block-post-content ul,
.wp-block-post-content ol,
.entry-content ul,
.entry-content ol {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.wp-block-post-content li,
.entry-content li {
    margin-bottom: 0.4rem;
}

/* Definition lists (e.g. Glossary page) */
.entry-content dl { line-height: 1.7; }
.entry-content dt { font-weight: 600; color: var(--ttt-brand); margin-top: 1rem; }
.entry-content dd { margin-left: 0; color: var(--ttt-text); }

/* Blockquotes */
blockquote, .wp-block-quote {
    border-left: 4px solid var(--ttt-accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--ttt-text-muted);
    font-style: italic;
}
blockquote em, .wp-block-quote em { font-style: italic; }

/* Tables */
.wp-block-table table,
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}
.wp-block-table th,
.entry-content th {
    background: var(--ttt-surface-warm);
    color: var(--ttt-brand);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--ttt-border-strong);
    font-weight: 600;
}
.wp-block-table td,
.entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ttt-border);
}
.wp-block-table tr:hover td,
.entry-content tr:hover td {
    background: var(--ttt-surface-warm);
}

/* Featured/highlight callout pattern */
.callout-card {
    background: var(--ttt-surface-warm);
    border-left: 4px solid var(--ttt-accent);
    padding: 1.25rem 1.5rem;
    border-radius: var(--ttt-radius-md);
    margin: 1.5rem 0;
}

/* ============================================================
   FORM CONTROLS — base styling
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
select,
textarea {
    font-family: var(--ttt-font-body);
    border: 1px solid var(--ttt-border-strong);
    border-radius: var(--ttt-radius-md);
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    background: white;
    color: var(--ttt-text);
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ttt-accent);
    box-shadow: 0 0 0 3px var(--ttt-accent-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.wp-block-template-part[data-area="footer"],
footer.wp-block-template-part,
.site-footer {
    background: var(--ttt-brand);
    color: white;
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}
.wp-block-template-part[data-area="footer"] a,
.site-footer a {
    color: white;
    opacity: 0.85;
}
.wp-block-template-part[data-area="footer"] a:hover,
.site-footer a:hover {
    color: white;
    opacity: 1;
}

/* ============================================================
   IMAGE BLOCKS — give them subtle polish
   ============================================================ */
.wp-block-image img {
    border-radius: var(--ttt-radius-md);
}

/* ============================================================
   PAGE HERO — for editorial hero sections (Home, About, etc.)
   ============================================================ */
.ttt-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0 0 3rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.ttt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(29,77,46,0.55) 100%);
}
.ttt-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 4rem 2rem;
}
.ttt-hero h1 {
    color: white !important;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.ttt-hero p.subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 0 1.75rem;
    color: rgba(255,255,255,0.95);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.ttt-hero .hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ttt-hero .hero-cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: var(--ttt-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform .15s, background .15s;
}
.ttt-hero .hero-cta.primary { background: var(--ttt-accent); color: white; }
.ttt-hero .hero-cta.primary:hover { background: var(--ttt-accent-hover); transform: translateY(-2px); }
.ttt-hero .hero-cta.secondary { background: rgba(255,255,255,0.15); color: white; border: 2px solid white; }
.ttt-hero .hero-cta.secondary:hover { background: white; color: var(--ttt-brand); transform: translateY(-2px); }

@media (max-width: 600px) {
    .ttt-hero { min-height: 360px; }
    .ttt-hero h1 { font-size: 2.25rem; }
    .ttt-hero p.subtitle { font-size: 1.05rem; }
}

/* ============================================================
   THREE-COLUMN FEATURE STRIP — for Home page "What we do"
   ============================================================ */
.ttt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}
.ttt-feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.ttt-feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--ttt-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--ttt-brand);
}
.ttt-feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--ttt-brand);
}
.ttt-feature-card p { margin: 0 0 0.75rem; color: var(--ttt-text-muted); }
.ttt-feature-card a { font-weight: 600; }

/* ============================================================
   CTA SECTION — for Home page "Get Involved"
   ============================================================ */
.ttt-cta-section {
    background: var(--ttt-surface-warm);
    padding: 3rem 1.5rem;
    border-radius: var(--ttt-radius-lg);
    text-align: center;
    margin: 3rem 0;
}
.ttt-cta-section h2 { margin: 0 0 1rem; }
.ttt-cta-section p { max-width: 600px; margin: 0 auto 1.5rem; color: var(--ttt-text-muted); font-size: 1.1rem; }

/* ============================================================
   MISC POLISH
   ============================================================ */
hr { border: none; border-top: 1px solid var(--ttt-border); margin: 2.5rem 0; }

/* Improve focus rings everywhere for accessibility */
:focus-visible {
    outline: 2px solid var(--ttt-accent);
    outline-offset: 2px;
}

/* ============================================================
   ROUND 2 — AF-INSPIRED COMPONENTS
   ============================================================ */

/* Section eyebrow + centered title pattern */
.ttt-section-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ttt-accent);
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
}
.ttt-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: var(--ttt-brand);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ttt-section-intro {
    text-align: center;
    color: var(--ttt-text-muted);
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Multi-column row containers */
.ttt-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin: 2.5rem 0; }
.ttt-row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.ttt-row-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }

/* Image content card (article grid, like AF "What's New") */
.ttt-content-card {
    background: white;
    border-radius: var(--ttt-radius-lg);
    overflow: hidden;
    box-shadow: var(--ttt-shadow-sm);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.ttt-content-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ttt-content-card .card-image {
    aspect-ratio: 4 / 3;
    background-color: var(--ttt-surface-deeper);
    background-size: cover;
    background-position: center;
    position: relative;
}
.ttt-content-card .card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--ttt-accent);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: var(--ttt-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ttt-content-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ttt-content-card .card-meta { font-size: 0.78rem; color: var(--ttt-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; font-weight: 600; }
.ttt-content-card h3 { margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.3; }
.ttt-content-card h3 a { color: var(--ttt-brand); text-decoration: none; }
.ttt-content-card h3 a:hover { color: var(--ttt-accent); }
.ttt-content-card .card-summary { color: var(--ttt-text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1rem; }
.ttt-content-card .card-cta { margin-top: auto; font-weight: 700; color: var(--ttt-accent); text-decoration: none; font-size: 0.95rem; }
.ttt-content-card .card-cta::after { content: " →"; transition: margin-left .15s; }
.ttt-content-card .card-cta:hover::after { margin-left: 0.25rem; }

/* Circular icon callout (like AF Tree Equity / Resilient Forests) */
.ttt-icon-callout { text-align: center; padding: 1.5rem 1rem; }
.ttt-icon-callout .icon-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    background: var(--ttt-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ttt-brand);
    font-size: 3.5rem;
    line-height: 1;
}
.ttt-icon-callout h3 { margin: 0 0 1rem; color: var(--ttt-brand); font-size: 1.5rem; }
.ttt-icon-callout p { color: var(--ttt-text-muted); line-height: 1.6; margin: 0 auto 1.25rem; max-width: 380px; }
.ttt-icon-callout .callout-cta { color: var(--ttt-accent); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.ttt-icon-callout .callout-cta::after { content: " →"; }

/* Photo credit (small overlay or block) */
.ttt-photo-credit {
    font-size: 0.75rem;
    color: var(--ttt-text-light);
    font-style: italic;
    font-family: var(--ttt-font-accent);
    margin-top: 0.35rem;
    text-align: right;
}
.ttt-hero .ttt-photo-credit {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    color: rgba(255,255,255,0.85);
    z-index: 2;
    margin: 0;
}

/* Newsletter signup section */
.ttt-newsletter {
    background: var(--ttt-brand);
    color: white;
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: var(--ttt-radius-lg);
}
.ttt-newsletter h2 { color: white !important; margin: 0 0 0.75rem !important; border: none !important; padding: 0 !important; font-size: 2rem !important; }
.ttt-newsletter p { color: rgba(255,255,255,0.9); margin: 0 auto 1.75rem; max-width: 540px; font-size: 1.05rem; }
.ttt-newsletter form { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.ttt-newsletter input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: var(--ttt-radius-md);
    font-size: 1rem;
    background: white;
    color: var(--ttt-text);
}
.ttt-newsletter button {
    background: var(--ttt-accent);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--ttt-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.ttt-newsletter button:hover { background: var(--ttt-accent-hover); transform: translateY(-1px); }

/* Stat/impact numbers */
.ttt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    background: var(--ttt-surface-warm);
    padding: 2.5rem 1.5rem;
    border-radius: var(--ttt-radius-lg);
    margin: 3rem 0;
    text-align: center;
}
.ttt-stat .stat-number { display: block; font-size: 3rem; font-weight: 800; color: var(--ttt-brand); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.ttt-stat .stat-label { font-size: 0.9rem; color: var(--ttt-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* Pull-quote / testimonial */
.ttt-quote {
    background: var(--ttt-surface-warm);
    padding: 2.5rem 2rem;
    border-radius: var(--ttt-radius-lg);
    margin: 2.5rem 0;
    text-align: center;
}
.ttt-quote .quote-text {
    font-size: 1.4rem;
    line-height: 1.5;
    font-family: var(--ttt-font-accent);
    font-style: italic;
    color: var(--ttt-brand);
    margin: 0 0 1.25rem;
}
.ttt-quote .quote-attribution { font-size: 0.95rem; color: var(--ttt-text-muted); }

/* Donate / support strip */
.ttt-donate-strip {
    background: var(--ttt-accent);
    color: white;
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: var(--ttt-radius-lg);
}
.ttt-donate-strip h2 { color: white !important; margin: 0 0 1rem !important; border: none !important; padding: 0 !important; font-size: 2rem !important; }
.ttt-donate-strip p { margin: 0 auto 1.5rem; color: rgba(255,255,255,0.95); max-width: 600px; font-size: 1.1rem; line-height: 1.5; }
.ttt-donate-strip .donate-button {
    display: inline-block;
    background: white;
    color: var(--ttt-brand) !important;
    padding: 0.9rem 2.25rem;
    border-radius: var(--ttt-radius-md);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform .15s, box-shadow .15s;
}
.ttt-donate-strip .donate-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); text-decoration: none; }

/* Multi-column footer */
.ttt-footer {
    background: var(--ttt-brand);
    color: white;
    padding: 4rem 1.5rem 2rem;
    margin-top: 5rem;
}
.ttt-footer-inner { max-width: 1200px; margin: 0 auto; }
.ttt-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.ttt-footer-brand h3 { color: white !important; margin: 0 0 1rem !important; font-size: 1.5rem !important; border: none !important; padding: 0 !important; font-weight: 700 !important; }
.ttt-footer-brand p { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1rem; }
.ttt-footer-grid h4 {
    color: white !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 1rem !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 700 !important;
}
.ttt-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.ttt-footer-grid li { margin: 0 0 0.6rem; }
.ttt-footer-grid li a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; }
.ttt-footer-grid li a:hover { color: white; text-decoration: underline; }
.ttt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
}
.ttt-footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: none; margin-left: 1.25rem; }
.ttt-footer-bottom a:hover { color: white; text-decoration: underline; }
.ttt-footer-bottom .ttt-social { display: inline-flex; gap: 0.75rem; }
.ttt-footer-bottom .ttt-social a { margin: 0; }

@media (max-width: 900px) {
    .ttt-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .ttt-footer-brand { grid-column: 1 / -1; }
    .ttt-section-title { font-size: 1.875rem; }
}
@media (max-width: 480px) {
    .ttt-footer-grid { grid-template-columns: 1fr; }
    .ttt-footer-bottom { flex-direction: column; text-align: center; }
    .ttt-footer-bottom a { margin: 0 0.5rem; }
    .ttt-stats { padding: 1.5rem 1rem; gap: 1.5rem; }
    .ttt-stat .stat-number { font-size: 2.25rem; }
}

/* ============================================================
   ROUND 3 — CLOSE THE AF GAP
   Bigger photos, more breathing room, real header
   ============================================================ */

/* === Site header (lives in parts/header.html) === */
.ttt-site-header {
    background: white;
    border-bottom: 1px solid var(--ttt-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.ttt-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.ttt-logo {
    text-decoration: none !important;
    color: var(--ttt-brand) !important;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
    letter-spacing: -0.01em;
    line-height: 1;
}
.ttt-logo:hover { color: var(--ttt-accent) !important; }
.ttt-logo-text { display: inline-block; }

.ttt-main-nav { flex: 1; }
.ttt-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}
.ttt-main-nav li { margin: 0; }
.ttt-main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--ttt-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--ttt-radius-md);
    transition: color .15s, background .15s;
}
.ttt-main-nav a:hover { color: var(--ttt-accent); background: var(--ttt-accent-soft); }
.ttt-main-nav a.active, .ttt-main-nav .current-menu-item > a { color: var(--ttt-accent); }

.ttt-nominate-cta {
    background: var(--ttt-accent);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: var(--ttt-radius-md);
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.ttt-nominate-cta:hover { background: var(--ttt-accent-hover); transform: translateY(-1px); color: white !important; }

.ttt-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ttt-brand);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 900px) {
    .ttt-mobile-toggle { display: block; }
    .ttt-main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--ttt-border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
    .ttt-main-nav.open { display: block; }
    .ttt-main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
    .ttt-main-nav a { display: block; padding: 0.85rem 1.5rem; border-radius: 0; font-size: 1rem; }
    .ttt-main-nav a:hover { background: var(--ttt-surface-warm); }
    .ttt-nominate-cta { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
    .ttt-header-inner { position: relative; }
}

/* === Hide WordPress's default header so ours takes over === */
.wp-block-template-part[data-area="header"]:not(.ttt-site-header *) {
    display: none !important;
}

/* === BIGGER HERO === */
.ttt-hero { min-height: 680px; }
.ttt-hero-inner { padding: 5rem 2rem; }
.ttt-hero h1 { font-size: 4rem; line-height: 1; }
.ttt-hero p.subtitle { font-size: 1.4rem; max-width: 720px; margin-bottom: 2.25rem; }

@media (max-width: 768px) {
    .ttt-hero { min-height: 480px; }
    .ttt-hero h1 { font-size: 2.5rem; }
    .ttt-hero p.subtitle { font-size: 1.1rem; }
    .ttt-hero-inner { padding: 3rem 1.5rem; }
}

/* === BIGGER CARDS — 16:9 image area === */
.ttt-content-card .card-image { aspect-ratio: 16 / 10; }
.ttt-content-card .card-body { padding: 1.75rem 1.75rem 1.5rem; }
.ttt-content-card h3 { font-size: 1.4rem; }
.ttt-content-card .card-summary { font-size: 1rem; }

/* === BIGGER ICON CIRCLES === */
.ttt-icon-callout .icon-circle {
    width: 200px;
    height: 200px;
    font-size: 5rem;
    margin-bottom: 1.75rem;
}
.ttt-icon-callout h3 { font-size: 1.625rem; }
.ttt-icon-callout p { font-size: 1.05rem; max-width: 420px; }

/* === MORE BREATHING ROOM BETWEEN SECTIONS === */
.ttt-section-eyebrow { margin-top: 5rem; }
.ttt-section-eyebrow:first-child { margin-top: 0; }
.ttt-stats, .ttt-newsletter, .ttt-donate-strip, .ttt-cta-section, .ttt-quote { margin: 5rem 0; padding: 3.5rem 1.5rem; }
.ttt-row-2, .ttt-row-3 { margin: 3rem 0 5rem; }

/* === SECTION TITLES — BIGGER === */
.ttt-section-title { font-size: 3rem; }
@media (max-width: 768px) {
    .ttt-section-title { font-size: 2rem; }
    .ttt-icon-callout .icon-circle { width: 140px; height: 140px; font-size: 3.5rem; }
    .ttt-section-eyebrow { margin-top: 3rem; }
    .ttt-stats, .ttt-newsletter, .ttt-donate-strip, .ttt-cta-section, .ttt-quote { margin: 3rem 0; padding: 2.5rem 1.5rem; }
}

/* === Constrain very wide elements so they don't sprawl === */
.ttt-row-2, .ttt-row-3, .ttt-stats, .ttt-quote, .ttt-newsletter, .ttt-cta-section, .ttt-donate-strip {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   ROUND 4 — UNBLOCK THE LAYOUT
   Full-bleed sections, hide page title, wider content
   ============================================================ */

/* === Hide page title on Home page ===
   WordPress shows a "Home" title above content; hero replaces it */
body.home .wp-block-post-title,
body.home .wp-block-separator,
body.home .entry-title,
body.home hr.wp-block-separator,
body.page-id-2 .wp-block-post-title,
body.page-id-2 .wp-block-separator { display: none !important; }

/* Pad full-bleed sections internally and constrain content inside them */
.ttt-stats {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.ttt-stats > .ttt-stat { max-width: none; }

/* For the others, wrap inner content in a constrained inner box via CSS */
.ttt-newsletter, .ttt-donate-strip, .ttt-cta-section, .ttt-quote {
    /* full-bleed background, constrained inner */
}

.ttt-newsletter form,
.ttt-newsletter p,
.ttt-newsletter h2 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ttt-cta-section h2,
.ttt-cta-section p,
.ttt-donate-strip h2,
.ttt-donate-strip p,
.ttt-quote .quote-text,
.ttt-quote .quote-attribution {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === Row grids: wider, not full-bleed ===
   These should use a wider content area, not viewport-wide */
.ttt-row-2, .ttt-row-3, .ttt-row-4 {
    max-width: 1280px;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

@media (min-width: 1320px) {
    .ttt-row-2, .ttt-row-3, .ttt-row-4 {
        width: 1280px;
        margin-left: calc(50% - 640px);
        margin-right: calc(50% - 640px);
        padding-left: 0;
        padding-right: 0;
    }
}

/* === Section eyebrow + title: also break out to wider center === */
.ttt-section-eyebrow, .ttt-section-title, .ttt-section-intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* === Smaller fix: icons need to be visually bigger relative to circles === */
.ttt-icon-callout .icon-circle {
    font-size: 5.5rem;
}
@media (max-width: 768px) {
    .ttt-icon-callout .icon-circle { font-size: 3.5rem; }
}

/* === Prevent body horizontal scroll from full-bleed elements === */
body, html { overflow-x: hidden; }

/* === Inner content padding: bleed background, constrain content ===
   For sections that need their inner content centered to a max width. */
.ttt-stats,
.ttt-newsletter,
.ttt-donate-strip,
.ttt-cta-section,
.ttt-quote {
    padding-left: max(1.5rem, calc((100vw - 1280px) / 2)) !important;
    padding-right: max(1.5rem, calc((100vw - 1280px) / 2)) !important;
}

/* === Stats: re-establish proper grid layout === */
.ttt-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 2rem !important;
    background: var(--ttt-surface-warm) !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    text-align: center !important;
}

/* === Footer: full-bleed background, constrained inner content === */
.ttt-footer {
    padding: 4rem max(1.5rem, calc((100vw - 1280px) / 2)) 2rem !important;
    background: var(--ttt-brand) !important;
}
.ttt-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Hero pads internally already, just ensure it bleeds at edges */
.ttt-hero {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (max-width: 768px) {
    .ttt-stats,
    .ttt-newsletter,
    .ttt-donate-strip,
    .ttt-cta-section,
    .ttt-quote,
    .ttt-footer {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ============================================================
   ROUND 5 — AF VISUAL LANGUAGE
   Story rows, eyebrows, section backgrounds, title flourishes
   ============================================================ */

/* === Eyebrow color: change from accent green to warm orange ===
   AF uses orange for "Our History", "Resilient Forests" etc. */
.ttt-section-eyebrow {
    color: var(--ttt-historic); /* warm brown #8b6914 */
}

/* === Section title flourish: small tree-themed SVG marks on either side === */
.ttt-section-title {
    position: relative;
    display: inline-block;
    padding: 0 3rem;
}
.ttt-section-title::before,
.ttt-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24' fill='none'><path d='M2 12c4-3 8-3 12 0M2 12c4 3 8 3 12 0M16 12c0-4 6-8 14-8M16 12c0 4 6 8 14 8' stroke='%2300a651' stroke-width='1.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}
.ttt-section-title::before { left: 0; }
.ttt-section-title::after { right: 0; transform: translateY(-50%) scaleX(-1); }

/* Centered wrapper for title — make sure the inline-block lays out right */
.ttt-section-title-wrap {
    text-align: center;
    margin: 0 0 1rem;
}
.ttt-section-title-wrap .ttt-section-title {
    margin: 0 auto;
}

@media (max-width: 600px) {
    .ttt-section-title { padding: 0 2rem; }
    .ttt-section-title::before,
    .ttt-section-title::after { width: 1.25rem; height: 1rem; }
}

/* === Story rows: big photo + text, alternating direction === */
.ttt-story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 5rem 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}
.ttt-story-row.reverse { direction: rtl; }
.ttt-story-row.reverse > * { direction: ltr; }

.ttt-story-row .story-image {
    aspect-ratio: 4 / 3;
    background-color: var(--ttt-surface-deeper);
    background-size: cover;
    background-position: center;
    border-radius: var(--ttt-radius-lg);
    box-shadow: var(--ttt-shadow-md);
    width: 100%;
    height: auto;
    min-height: 380px;
    position: relative;
}
.ttt-story-row .story-image .image-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--ttt-accent);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: var(--ttt-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ttt-story-row .story-text { padding: 1rem 0; }
.ttt-story-row .story-eyebrow {
    color: var(--ttt-historic);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.ttt-story-row h3 {
    font-size: 2rem;
    margin: 0 0 1.25rem;
    color: var(--ttt-brand);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ttt-story-row p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ttt-text);
    margin: 0 0 1.25rem;
}
.ttt-story-row .story-cta {
    display: inline-block;
    background: var(--ttt-accent);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: var(--ttt-radius-pill);
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: background .15s, transform .1s;
    margin-top: 0.5rem;
}
.ttt-story-row .story-cta:hover { background: var(--ttt-accent-hover); transform: translateY(-1px); }

@media (max-width: 800px) {
    .ttt-story-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
    }
    .ttt-story-row.reverse { direction: ltr; }
    .ttt-story-row h3 { font-size: 1.5rem; }
    .ttt-story-row .story-image { min-height: 280px; }
}

/* === Section backgrounds for visual rhythm === */
.ttt-section-dark {
    background: var(--ttt-brand);
    color: white;
    padding: 5rem 1.5rem;
    margin: 5rem 0;
}
.ttt-section-dark h2,
.ttt-section-dark .ttt-section-title { color: white !important; }
.ttt-section-dark p { color: rgba(255,255,255,0.9); }
.ttt-section-dark .ttt-section-eyebrow { color: var(--ttt-accent); }
.ttt-section-dark .ttt-section-title::before,
.ttt-section-dark .ttt-section-title::after { filter: brightness(0) invert(1); opacity: 0.6; }

.ttt-section-cream {
    background: var(--ttt-surface-warm);
    padding: 5rem 1.5rem;
    margin: 5rem 0;
}

/* Inner wrapper for content inside background-bleed sections */
.ttt-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* === Dark CTA banner with side photo (AF's "climate crisis can't wait" style) === */
.ttt-feature-banner {
    background: var(--ttt-brand);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 5rem 0;
    min-height: 360px;
}
.ttt-feature-banner .banner-image {
    background-size: cover;
    background-position: center;
    min-height: 360px;
    height: 100%;
}
.ttt-feature-banner .banner-text {
    padding: 3rem 3rem 3rem 4rem;
}
.ttt-feature-banner h2 {
    color: white !important;
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem !important;
    border: none !important;
    padding: 0 !important;
    max-width: 480px;
}
.ttt-feature-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    max-width: 480px;
}
.ttt-feature-banner .banner-cta {
    display: inline-block;
    background: white;
    color: var(--ttt-brand) !important;
    padding: 0.85rem 2rem;
    border-radius: var(--ttt-radius-pill);
    font-weight: 700;
    text-decoration: none !important;
    font-size: 1rem;
    transition: transform .15s;
}
.ttt-feature-banner .banner-cta:hover { transform: translateY(-2px); }

@media (max-width: 800px) {
    .ttt-feature-banner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .ttt-feature-banner .banner-image { min-height: 240px; }
    .ttt-feature-banner .banner-text { padding: 2.5rem 1.5rem; }
    .ttt-feature-banner h2 { font-size: 1.875rem !important; }
}

/* ============================================================
   ROUND 5.1 — Fix hero overlay leaking onto stats
   The hero needs position: relative so its absolute overlay
   and photo credit stay contained.
   ============================================================ */
.ttt-hero {
    position: relative !important;
    overflow: hidden;
}

/* ============================================================
   Position fixes for full-bleed elements.
   (The width/margin bleed itself lives in the FULL-BLEED SYSTEM
   block at the end of this file — single source of truth.)
   ============================================================ */

/* Hero needs position:relative so its absolute overlay/credit stay contained */
.ttt-hero {
    position: relative !important;
}

/* Sticky header */
.ttt-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

/* ============================================================
   ROUND 6 — Header logo image support
   ============================================================ */
.ttt-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.ttt-logo-img {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* If logo is missing/broken, fall back to wordmark only */
.ttt-logo-img[src=""],
.ttt-logo-img:not([src]),
.ttt-logo-img[src*="YOUR_LOGO_URL"] {
    display: none;
}

/* Optional: use .image-only class on .ttt-logo to hide the wordmark text */
.ttt-logo.image-only .ttt-logo-text {
    display: none;
}

@media (max-width: 768px) {
    .ttt-logo-img { height: 32px; }
}

/* ============================================================
   ROUND 7 — Tighten page title spacing, hide template separator
   Affects WordPress page template (Resources, About, etc.)
   Does NOT affect home, tree detail, or tree archive pages
   ============================================================ */

/* Hide the horizontal rule that the page template puts under the post title.
   Targets template separators (siblings of .wp-block-post-title) without
   affecting separators users add inside their page content. */
.wp-block-post-title + .wp-block-separator,
.wp-block-post-title ~ .wp-block-separator,
.wp-site-blocks > main > .wp-block-separator,
main > .wp-block-separator {
    display: none !important;
}

/* Re-show separators inside actual page content (if a user adds one) */
.entry-content .wp-block-separator,
.wp-block-post-content .wp-block-separator {
    display: block !important;
}

/* Tighten the gap between page title and content */
.wp-block-post-title {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0 !important;
}

/* Reduce excessive top margin on content that immediately follows the title */
.wp-block-post-title + .wp-block-post-content,
.wp-block-post-title + .entry-content,
.wp-block-post-title + .wp-block-spacer {
    margin-top: 0 !important;
}

/* Optional: kill any standalone spacer blocks the template puts before content */
.wp-site-blocks > main > .wp-block-spacer,
main > article > .wp-block-spacer:first-of-type {
    display: none !important;
}

/* ============================================================
   ROUND 8 — Hide Jetpack sharing buttons and likes site-wide
   ============================================================ */
#jp-post-flair,
.sharedaddy,
.sd-sharing,
.sd-block,
.jetpack-likes-widget-wrapper,
.jetpack-comment-likes-widget-wrapper,
.post-likes-widget,
.post-likes-widget-wrapper,
.sd-like,
div.sharedaddy.sd-like-enabled {
    display: none !important;
}

/* ============================================================
   FULL-BLEED SYSTEM — single source of truth.
   Consolidates the former Rounds 4 / 4.1 / 4.2 / 5.2 / 5.4 / 9,
   which were competing !important redefinitions of width + margin
   on the same elements. This block is last in the file, so it wins.

   Two cases, one goal (reach both viewport edges):

   1. Header + footer — context-independent 100vw + calc(50% - 50vw).
      Works whether the part is rendered by the block theme (homepage,
      wrapped in .wp-block-template-part) OR by the PHP templates
      (single-tree.php / archive-tree.php, raw markup, no wrapper).
      The old width:100%/margin:0 approach only worked when the parent
      padding was zeroed — true on the archive, false on the tree
      detail page — which is why the single-tree footer fell short.

   2. Homepage sections — these only render on the block-built home
      page, directly inside the padding-zeroed .wp-site-blocks, so
      width:100% already fills the viewport. Kept as-is to avoid
      changing the homepage layout.

   Root padding is zeroed (below) and body/html overflow-x:hidden
   absorbs the scrollbar-width overshoot from 100vw.
   ============================================================ */

/* Zero the root padding so the bleed math is predictable everywhere */
:root { --wp--custom--spacing--outer: 0 !important; }
.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }
body, html { overflow-x: hidden; }

/* 1. Header + footer — robust on every template */
.ttt-site-header,
.ttt-footer,
header.wp-block-template-part:has(.ttt-site-header),
footer.wp-block-template-part:has(.ttt-footer) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* 2. Homepage edge-to-edge sections */
.ttt-hero,
.ttt-stats,
.ttt-newsletter,
.ttt-donate-strip,
.ttt-cta-section,
.ttt-quote,
.ttt-feature-banner,
.ttt-section-dark,
.ttt-section-cream {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
}
