/* 
   Piedmont Tax & Advisory - Modern Data-Driven Design
   Aesthetic: Clean, Professional, Tech-Forward
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --white: #ffffff;
    --gray: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --green: #10b981;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 0.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'IBM Plex Sans', -apple-system, sans-serif; 
    color: var(--text); 
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 { 
    color: var(--dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
    background: var(--white);
    position: sticky;
    top: 60px;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-lg { padding: 1rem 2rem; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 115px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-bottom: 2px solid var(--primary);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--text);
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
}

.mobile-nav .mobile-phone {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray) 0%, var(--white) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'IBM Plex Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Data Card */
.data-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.data-title {
    font-weight: 600;
    color: var(--dark);
}

.data-badge {
    background: var(--green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.data-metric { margin-bottom: 1rem; }

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--green);
    font-family: 'IBM Plex Mono', monospace;
}

.data-bar {
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span:last-child { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }

/* Sections */
.section { padding: 5rem 0; }
.bg-dark { background: var(--dark); color: var(--white); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; }

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.bg-dark .section-tag { color: #60a5fa; }
.bg-dark h2 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.7); }

.features-list { margin-top: 2rem; }

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-item h4 { color: var(--white); margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; margin-bottom: 0; }

.why-image img {
    width: 100%;
    border-radius: var(--radius);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--gray);
    padding: 2rem;
    border-radius: var(--radius);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author strong { display: block; color: var(--dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-light); }

/* CTA */
.cta-section {
    background: var(--primary);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-phone { color: rgba(255,255,255,0.8); }
.cta-phone a { color: var(--white); font-weight: 600; }

/* Contact Page */
.page-hero {
    background: var(--gray);
    padding: 4rem 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
    margin-top: -2rem;
}

.contact-form-wrap {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.sidebar-card {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.sidebar-card h4 { margin-bottom: 0.75rem; }
.sidebar-card p { font-size: 0.9rem; margin-bottom: 0; }

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.footer-links h4, .footer-contact h4 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-contact p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact strong { color: var(--white); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    header { top: 50px; padding: 0.75rem 0; }
    .nav-links, header .btn-primary { display: none !important; }
    .mobile-toggle { display: flex !important; }
    
    /* UNIQUE HERO: DATA DASHBOARD STYLE */
    /* Clean white with prominent data cards */
    .hero { 
        padding: 1.5rem 0 0;
        background: linear-gradient(180deg, var(--gray) 0%, var(--white) 50%);
    }
    
    .hero-grid { gap: 1.5rem; }
    
    .hero-content { text-align: left; }
    
    .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.65rem;
        font-family: 'IBM Plex Mono', monospace;
        background: var(--primary);
        color: var(--white);
        padding: 0.4rem 0.75rem;
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 { 
        font-size: 1.65rem; 
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-content > p { 
        font-size: 0.9rem; 
        margin-bottom: 1.25rem;
        color: var(--text-light);
    }
    
    .hero-ctas { 
        flex-direction: column; 
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-ctas .btn-primary { 
        width: 100%; 
        justify-content: center;
        border-radius: 6px;
    }
    
    .hero-ctas .btn-outline { 
        width: 100%; 
        justify-content: center;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: 6px;
    }
    
    /* DATA STATS - Grid card style */
    .hero-stats { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 0 -1.5rem;
        padding: 1rem 1rem;
        background: var(--white);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    
    .stat-block { 
        text-align: center;
        padding: 0.75rem 0.5rem;
        background: var(--gray);
        border-radius: 6px;
        border: 1px solid var(--border);
    }
    
    .stat-number { 
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
        display: block;
        font-family: 'IBM Plex Mono', monospace;
    }
    
    .stat-label { 
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-light);
        line-height: 1.3;
    }
    
    /* Visual card */
    .hero-visual { display: none; }
    
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-card { padding: 1.5rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    
    .page-hero { padding: 2rem 0; }
    .page-hero h1 { font-size: 1.75rem; }
    
    .cta-full { padding: 3rem 0; }
    .cta-full h2 { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; gap: 0.75rem; }
    .cta-buttons a { width: 100%; justify-content: center; }
    
    .contact-form-wrap { padding: 1.5rem; }
    .contact-grid { gap: 1.5rem; }
    
    .footer { padding: 2.5rem 0 1.5rem; }
    .footer-grid { gap: 1.5rem; }
}

/* Extra small screens */
@media (max-width: 375px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 1.5rem; }
}
