/*
Theme Name: Piedmont Web Co
Theme URI: https://piedmontwebco.com
Author: Piedmont Web Co
Description: Custom theme for Piedmont Web Co — local web services for Piedmont NC trades and service businesses.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: piedmont-webco
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #1a1a1a;
}

h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }

em {
    font-style: italic;
    color: #1D9E75;
}

p {
    color: #555;
    line-height: 1.75;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

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

.eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1D9E75;
    margin-bottom: 0.75rem;
    display: block;
}

.section-intro {
    max-width: 540px;
    margin-bottom: 3rem;
}

.section-intro h2 {
    margin-bottom: 0.5rem;
}

.section-intro p {
    font-size: 15px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1D9E75;
    color: #fff;
}

.btn-primary:hover {
    background: #0F6E56;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #ccc;
}

.btn-outline:hover {
    border-color: #1D9E75;
    color: #1D9E75;
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.btn-white {
    background: #fff;
    color: #085041;
}

.btn-white:hover {
    background: #f0fdf8;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

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

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

.site-logo span {
    color: #1D9E75;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #1D9E75;
}

.nav-cta {
    background: #1D9E75;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: #0F6E56;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s;
}

/* =============================================
   HERO — full bleed with overlay
   ============================================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 18, 28, 0.93) 0%,
        rgba(8, 18, 28, 0.82) 45%,
        rgba(8, 18, 28, 0.45) 75%,
        rgba(8, 18, 28, 0.25) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-left {
    max-width: 620px;
    padding: 5rem 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-tag svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    stroke: #1D9E75;
    fill: #1D9E75;
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(40px, 5.5vw, 68px);
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero h1 em {
    font-style: italic;
    color: #1D9E75;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: #0f1e2b;
    border: none;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 0;
    padding-bottom: 0;
}

.stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #1D9E75;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.step {
    padding: 2rem;
    border-right: 1px solid #eee;
    background: #fff;
}

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

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: #9FE1CB;
    line-height: 1;
    margin-bottom: 1rem;
}

.step h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 14px;
    line-height: 1.65;
}

/* =============================================
   VERTICALS
   ============================================= */
.verticals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vertical-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vertical-card:hover {
    transform: translateY(-4px);
}

.vertical-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vertical-card:hover img {
    transform: scale(1.05);
}

.vertical-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,52,44,0.88) 0%, rgba(4,52,44,0.1) 55%, transparent 100%);
}

.vertical-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
}

.vertical-label h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.vertical-label p {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* =============================================
   PRICING
   ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 720px;
}

.plan {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
}

.plan.featured {
    border: 2px solid #1D9E75;
}

.plan-badge {
    display: inline-block;
    background: #1D9E75;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.plan-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.25rem;
}

.plan-price {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.plan-price sup {
    font-size: 20px;
    vertical-align: super;
    line-height: 0;
}

.plan-price sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    vertical-align: baseline;
}

.plan-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.75rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.plan-features li::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: #E1F5EE;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231D9E75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}

.plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    border: 1px solid #ddd;
    background: transparent;
    color: #1a1a1a;
    transition: all 0.2s;
    text-decoration: none;
}

.plan-btn:hover {
    border-color: #1D9E75;
    color: #1D9E75;
}

.featured .plan-btn {
    background: #1D9E75;
    color: #fff;
    border-color: #1D9E75;
}

.featured .plan-btn:hover {
    background: #0F6E56;
    border-color: #0F6E56;
    color: #fff;
}

/* =============================================
   SOCIAL PROOF
   ============================================= */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial-card {
    background: #f8faf9;
    border: 1px solid #e8f5ee;
    border-radius: 12px;
    padding: 2rem;
}

.stars {
    color: #1D9E75;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
}

.testimonial-author span {
    font-size: 12px;
    color: #888;
}

.local-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 240px;
}

.local-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.local-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4,52,44,0.9), rgba(15,110,86,0.75));
}

.local-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.local-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 0.5rem;
}

.local-content p {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 15px;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 0.75rem;
}

.contact-detail svg {
    width: 18px;
    height: 18px;
    stroke: #1D9E75;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.contact-form {
    background: #f8faf9;
    border: 1px solid #e8f5ee;
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 0.35rem;
}

.contact-form > p {
    font-size: 13px;
    margin-bottom: 1.75rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-row input {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dde8e4;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-row input:focus {
    border-color: #1D9E75;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-submit {
    background: #1D9E75;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s;
    width: 100%;
}

.form-submit:hover {
    background: #0F6E56;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #0a2e25;
    color: rgba(255,255,255,0.8);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-logo {
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #1D9E75;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .hero {
        min-height: 70vh;
    }
    .hero-left {
        padding: 4rem 0;
    }
    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .step {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .step:last-child {
        border-bottom: none;
    }
    .verticals-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .social-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        gap: 1.25rem;
        align-items: flex-start;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .site-header {
        position: relative;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}
