/*
Theme Name: Lode Web
Theme URI: https://lodeweb.com/
Description: Custom child theme for Lode Web — clean, minimal, Gold Country.
Author: Mark Baldwin
Author URI: https://lodeweb.com/
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lodeweb
*/

/* ---- Design tokens ---- */
:root {
    --lw-gold: #B8860B;
    --lw-gold-hover: #8f6908;
    --lw-ink: #2C2C2C;
    --lw-ink-soft: #555555;
    --lw-muted: #777777;
    --lw-border: #e9e6df;
    --lw-bg: #ffffff;
    --lw-bg-soft: #fbf8f2;
    --lw-max: 760px;
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--lw-ink);
    background: var(--lw-bg);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--lw-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; margin-bottom: .6em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: .4em; }

p { margin: 0 0 1.1em; }

a {
    color: var(--lw-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
a:hover, a:focus {
    color: var(--lw-gold-hover);
    border-bottom-color: var(--lw-gold-hover);
}

/* ---- Layout ---- */
.site-content {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* Hide the default GP page-title header \u2014 each page's content controls its own h1. */
body.page .entry-header {
    display: none;
}

/* Hide the sidebar on all pages (GP default layout override). */
body.page .widget-area.sidebar {
    display: none;
}
body.page .site-content {
    display: block;
}
body.page .content-area {
    width: 100% !important;
    float: none !important;
}

.inside-article,
.entry-content,
.wp-block-group {
    max-width: var(--lw-max);
}

.entry-content > * {
    max-width: var(--lw-max);
    margin-left: auto;
    margin-right: auto;
}

/* Full-width groups (hero, feature blocks) */
.entry-content .alignwide,
.entry-content .wp-block-group.alignwide {
    max-width: 960px;
}

/* ---- Header / navigation ---- */
.site-header {
    background: var(--lw-bg);
    border-bottom: 1px solid var(--lw-border);
    padding: 1rem 0;
}

.main-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

.main-title a {
    color: var(--lw-ink) !important;
    border-bottom: none;
}

.site-description {
    color: var(--lw-muted);
    font-size: .85rem;
    letter-spacing: .02em;
}

.main-navigation {
    background: var(--lw-bg);
    border-bottom: 1px solid var(--lw-border);
}

.main-navigation .main-nav ul li a {
    color: var(--lw-ink);
    font-weight: 500;
    letter-spacing: .01em;
    border-bottom: none;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--lw-gold);
}

/* ---- Hero (home) ---- */
.lw-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: left;
}

.lw-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: .3em;
}

.lw-hero .lw-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--lw-gold);
    font-weight: 500;
    margin-bottom: 1.5em;
    letter-spacing: -.01em;
}

.lw-hero .lw-intro {
    font-size: 1.1rem;
    color: var(--lw-ink-soft);
    max-width: 620px;
}

/* Split layout: text on the left, image on the right */
.lw-hero-split {
    max-width: 1200px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.lw-hero-split .lw-hero-text {
    min-width: 0;
}

.lw-hero-split .lw-hero-image {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.lw-hero-split .lw-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@media (max-width: 860px) {
    .lw-hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---- Banner image (full-width variant, kept for flexibility) ---- */
.lw-banner {
    margin: 2.5rem auto;
    max-width: 1200px !important;
    padding: 0;
}
.lw-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ---- Feature blocks ---- */
.lw-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 960px !important;
}

.lw-feature {
    padding: 1.5rem 0 0;
    border-top: 3px solid var(--lw-gold);
}

.lw-feature h3 {
    margin: 0 0 .5em;
    font-size: 1.1rem;
    color: var(--lw-ink);
}

.lw-feature p {
    font-size: .98rem;
    color: var(--lw-ink-soft);
    margin: 0;
}

@media (max-width: 768px) {
    .lw-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ---- CTA block ---- */
.lw-cta {
    background: var(--lw-bg-soft);
    border: 1px solid var(--lw-border);
    padding: 2rem;
    margin: 3rem auto 2rem;
    border-radius: 4px;
    max-width: 720px !important;
}

.lw-cta h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.lw-cta p {
    margin-bottom: 0;
}

.lw-cta a {
    font-weight: 600;
}

.lw-who {
    font-size: .95rem;
    color: var(--lw-muted);
    font-style: italic;
    margin-top: 2rem;
    max-width: 720px !important;
    text-align: center;
}

/* ---- Service items ---- */
.lw-service {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--lw-border);
}

.lw-service:last-of-type {
    border-bottom: none;
}

.lw-service h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0;
    font-size: 1.25rem;
    flex-wrap: wrap;
}

.lw-service .lw-price {
    color: var(--lw-gold);
    font-weight: 700;
    white-space: nowrap;
}

.lw-service p {
    color: var(--lw-ink-soft);
    margin: 0;
}

.lw-fineprint {
    font-size: .9rem;
    color: var(--lw-muted);
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

/* ---- Contact ---- */
.lw-contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.lw-contact-list li {
    padding: .5rem 0;
    color: var(--lw-ink);
}

.lw-contact-list strong {
    display: inline-block;
    min-width: 80px;
    font-weight: 500;
    color: var(--lw-muted);
}

.lw-footer-note {
    font-size: .95rem;
    color: var(--lw-muted);
    margin-top: 2.5rem;
}

/* ---- WPForms overrides ---- */
.wpforms-container {
    max-width: 100% !important;
    margin-top: 1rem !important;
}

.wpforms-container .wpforms-field-label {
    font-weight: 500 !important;
    color: var(--lw-ink) !important;
    font-size: .95rem !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
    border: 1px solid var(--lw-border) !important;
    border-radius: 3px !important;
    padding: .7rem !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    background: var(--lw-bg) !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
    border-color: var(--lw-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15) !important;
}

.wpforms-container button[type="submit"] {
    background: var(--lw-gold) !important;
    color: #fff !important;
    border: none !important;
    padding: .85rem 1.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background .15s ease !important;
}

.wpforms-container button[type="submit"]:hover {
    background: var(--lw-gold-hover) !important;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--lw-bg);
    border-top: 1px solid var(--lw-border);
    padding: 2rem 0;
    color: var(--lw-muted);
    font-size: .9rem;
}

.site-footer .site-info {
    text-align: center;
}

.site-footer a {
    color: var(--lw-muted);
}

.site-footer a:hover {
    color: var(--lw-gold);
}

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
