/*
Theme Name: Piedmont Web Co 2
Theme URI: https://piedmontwebco.com
Author: Piedmont Web Co
Description: Custom theme for Piedmont Web Co — hand-built websites for Piedmont NC trades. "Shop Sign × Clay & Denim" design.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: piedmont-webco
*/

/* =============================================
   TOKENS
   ============================================= */
:root {
    --paper: #FAF6F0;
    --tan: #E8D9C4;
    --clay: #B34A2E;
    --clay-tint: #E8A48F;
    --denim: #2B3A55;
    --ink: #1C1A17;
    --muted: #5C544A;
    --rule: 2px solid var(--ink);
    --font-display: 'Young Serif', Georgia, serif;
    --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Spline Sans Mono', 'Courier New', monospace;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    color: var(--ink);
}

h1 { font-size: clamp(38px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

p { color: var(--muted); }

::selection { background: var(--clay); color: var(--paper); }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* =============================================
   LAYOUT & SHARED
   ============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }

.kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clay);
    display: block;
    margin-bottom: 10px;
}

.kicker--light { color: var(--clay-tint); }

.section-head { max-width: 560px; margin-bottom: 36px; }
.section-head .lead { font-size: 14.5px; line-height: 1.65; margin-top: 10px; }

/* =============================================
   BUTTONS — hard offset shadows, "press" hover
   ============================================= */
.btn-main {
    display: inline-block;
    background: var(--denim);
    color: var(--paper);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 26px;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--clay);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-main:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--clay); }

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 2px solid var(--clay);
    padding-bottom: 2px;
}

.btn-ghost:hover { color: var(--clay); }

/* =============================================
   DUOTONE PHOTO RECIPE
   ============================================= */
.duo {
    background: linear-gradient(150deg, var(--denim) 0%, var(--clay) 100%);
    overflow: hidden;
}

.duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    mix-blend-mode: multiply;
    opacity: 0.92;
}

/* =============================================
   SCROLL FADE-UPS (JS adds .in-view; html.js gate
   keeps content visible without JS)
   ============================================= */
html.js .fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .fade-up.in-view { opacity: 1; transform: none; }

/* =============================================
   UTILITY STRIP & NAVIGATION
   ============================================= */
.util-strip {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.util-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.util-inner a { color: var(--clay-tint); }
.util-inner a:hover { color: var(--paper); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: var(--rule);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; position: relative; }

.site-logo { font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.site-logo span { color: var(--clay); }

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-menu a:hover { color: var(--clay); }

.nav-menu .nav-cta {
    background: var(--clay);
    color: var(--paper);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0;
    text-transform: none;
    padding: 9px 18px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-menu .nav-cta:hover { color: var(--paper); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* =============================================
   HERO
   ============================================= */
.hero { padding: 24px; }

.hero-frame {
    border: var(--rule);
    position: relative;
    padding: 56px 48px 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-frame::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid var(--ink);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--clay);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: var(--clay); }

.hero-sub { font-size: 15.5px; line-height: 1.65; max-width: 430px; margin-top: 18px; }

.hero-ctas { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }

.hero-est {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}

.hero-est::before, .hero-est::after { content: ''; height: 1px; background: var(--ink); flex: 0 0 48px; }

.hero-photo { position: relative; }

.hero-photo .duo {
    aspect-ratio: 7 / 8;
    border: var(--rule);
    box-shadow: 10px 10px 0 rgba(43, 58, 85, 0.28);
}

.hero-caption {
    position: absolute;
    bottom: -12px;
    left: -10px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    color: var(--ink);
}

/* =============================================
   FACTS STRIP
   ============================================= */
.facts {
    background: var(--denim);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 24px 16px;
    text-align: center;
    border-right: 1px solid rgba(250, 246, 240, 0.18);
}

.fact:last-child { border-right: none; }

.fact-num {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--clay-tint);
    display: block;
    line-height: 1.1;
}

.fact-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.75);
}

/* =============================================
   HOW IT WORKS — one ruled box
   ============================================= */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: var(--rule);
    background: var(--paper);
}

.step { padding: 28px 24px; border-right: var(--rule); }
.step:last-child { border-right: none; }

.step-num { font-family: var(--font-display); font-size: 40px; color: var(--clay); line-height: 1; }

.step h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    margin: 12px 0 6px;
}

.step p { font-size: 13.5px; line-height: 1.6; }

/* =============================================
   THE WORK — tan band, browser-framed shots
   ============================================= */
.showcase { background: var(--tan); border-top: var(--rule); border-bottom: var(--rule); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.shot {
    background: #fff;
    border: var(--rule);
    box-shadow: 6px 6px 0 rgba(28, 26, 23, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shot:nth-child(2) { transform: rotate(0.6deg); }
.shot:nth-child(4) { transform: rotate(-0.5deg); }
.shot:nth-child(6) { transform: rotate(0.4deg); }

.shot:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(28, 26, 23, 0.85); }

.shot-bar {
    background: var(--ink);
    padding: 6px 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); opacity: 0.5; }

.shot-bar span {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--paper);
    opacity: 0.8;
    margin-left: 6px;
}

.shot img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.shot-label {
    border-top: var(--rule);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
}

.shot-label b { color: var(--clay); font-weight: 600; }

/* =============================================
   WHO WE SERVE — ledger rows
   ============================================= */
.trades { border-top: var(--rule); }

.trade {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    align-items: baseline;
    padding: 18px 4px;
    border-bottom: 1px solid #d8cdbb;
}

.trade-no { font-family: var(--font-mono); font-size: 11px; color: var(--clay); }
.trade-name { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 26px); color: var(--ink); }

.trade-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

/* =============================================
   PRICING — handbill cards
   ============================================= */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 760px; }

.plan { background: #fff; border: var(--rule); padding: 30px 28px; position: relative; }

.plan--feat { box-shadow: 8px 8px 0 var(--clay); }

.plan-stamp {
    position: absolute;
    top: -14px;
    right: 18px;
    background: var(--clay);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    transform: rotate(2deg);
}

.plan-name {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.plan-price { font-family: var(--font-display); font-size: 54px; color: var(--ink); line-height: 1; margin: 10px 0 4px; }
.plan-price small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.plan-features { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 9px; }

.plan-features li { font-size: 13.5px; color: var(--ink); padding-left: 22px; position: relative; }
.plan-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

.plan-btn {
    display: block;
    text-align: center;
    border: var(--rule);
    padding: 12px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-btn:hover { color: var(--clay); }

.plan--feat .plan-btn {
    background: var(--denim);
    color: var(--paper);
    border-color: var(--denim);
    box-shadow: 3px 3px 0 var(--ink);
}

.plan--feat .plan-btn:hover { color: var(--paper); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* =============================================
   PROOF
   ============================================= */
.proof-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; }

.quote-card { background: #fff; border: var(--rule); padding: 30px; }

.stars { color: var(--clay); letter-spacing: 4px; margin-bottom: 14px; font-size: 14px; }

.quote-card blockquote { font-family: var(--font-display); font-size: 19px; line-height: 1.5; color: var(--ink); }

.quote-who { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.quote-who b { color: var(--ink); }

.local-card {
    border: var(--rule);
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.local-photo { position: absolute; inset: 0; }

.local-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(43, 58, 85, 0.85), rgba(179, 74, 46, 0.55));
}

.local-body { position: relative; z-index: 1; padding: 30px; }
.local-body h3 { color: var(--paper); }
.local-body p { color: rgba(250, 246, 240, 0.88); font-size: 13.5px; line-height: 1.65; margin-top: 8px; }

/* =============================================
   CONTACT — denim section, paper form card
   ============================================= */
.contact-section { background: var(--denim); border-top: var(--rule); }

.contact-section h2 { color: var(--paper); }
.contact-section .section-head .lead { color: rgba(250, 246, 240, 0.75); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }

.contact-details { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }

.contact-detail {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.85);
    border-left: 3px solid var(--clay);
    padding-left: 14px;
}

.contact-form-card {
    background: var(--paper);
    border: var(--rule);
    padding: 30px;
    box-shadow: 8px 8px 0 rgba(28, 26, 23, 0.6);
}

.contact-form-card h3 { margin-bottom: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 13px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(179, 74, 46, 0.2); }

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder { color: var(--muted); }

.contact-form-card textarea { resize: vertical; min-height: 90px; margin-bottom: 14px; line-height: 1.5; }

.form-submit {
    width: 100%;
    background: var(--clay);
    color: var(--paper);
    border: none;
    padding: 14px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-submit:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.form-submit:disabled { opacity: 0.7; cursor: default; }

#form-response { margin-top: 12px; font-size: 13px; }

/* =============================================
   FOOTER — ink colophon
   ============================================= */
.site-footer { background: var(--ink); color: rgba(250, 246, 240, 0.7); padding: 44px 0 26px; }

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(250, 246, 240, 0.15);
}

.site-footer .site-logo { color: var(--paper); }
.site-footer .site-logo span { color: var(--clay-tint); }

.footer-brand p { font-size: 13px; color: rgba(250, 246, 240, 0.6); max-width: 300px; margin-top: 10px; line-height: 1.7; }

.footer-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 2.1;
    text-align: right;
}

.footer-meta p { color: rgba(250, 246, 240, 0.7); }
.footer-meta a:hover { color: var(--clay-tint); }

.footer-bottom {
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-bottom p { color: rgba(250, 246, 240, 0.45); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .hero { padding: 16px; }
    .hero-frame { padding: 36px 24px 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-photo { max-width: 440px; }

    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2) { border-right: none; }

    .steps { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: var(--rule); }
    .step:last-child { border-bottom: none; }

    .shots {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 18px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .shot { flex: 0 0 78%; scroll-snap-align: start; }
    .shot:nth-child(2), .shot:nth-child(4), .shot:nth-child(6) { transform: none; }

    .trade { grid-template-columns: 52px 1fr; }
    .trade-desc { grid-column: 2; }

    .plans { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }

    .footer-grid { flex-direction: column; }
    .footer-meta { text-align: left; }

    /* Mobile nav */
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -24px;
        right: -24px;
        background: var(--paper);
        border-bottom: var(--rule);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 18px;
    }
    .nav-menu.open { display: flex; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .section { padding: 52px 0; }
    .form-row { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .util-inner a { display: none; }
    .plan--feat { box-shadow: 6px 6px 0 var(--clay); }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .fade-up { opacity: 1; transform: none; transition: none; }
    .btn-main, .nav-menu .nav-cta, .form-submit, .plan-btn, .shot { transition: none; }
}
