/* ESV Performance Inc. - Modern Flat Design Stylesheet */

/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* ============================================
   Layout & Container
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   Industries Section
   ============================================ */

.industries {
    background-color: var(--bg-light);
}

.industries-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: var(--text-medium);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    transition: var(--transition);
}

.industry-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-col a {
    color: var(--secondary-color);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ============================================
   Content Section
   ============================================ */

.content-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   Legal Content (Privacy & Terms)
   ============================================ */

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.legal-content strong {
    color: var(--text-dark);
}

.contact-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

/* ============================================
   About Page
   ============================================ */

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.mv-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.mv-card h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.8;
}

.values-section {
    margin: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expertise-section {
    margin: 5rem 0;
}

.expertise-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.expertise-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.expertise-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.approach-section {
    margin: 5rem 0;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.step-item {
    position: relative;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.step-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.step-item p {
    position: relative;
    z-index: 1;
}

.why-choose {
    margin: 5rem 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.reason-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.reason-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.reason-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ============================================
   Services Page
   ============================================ */

.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.service-detail {
    margin-bottom: 4rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.service-icon-large {
    font-size: 4rem;
    flex-shrink: 0;
}

.service-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-tagline {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

.service-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-left: 0;
}

.service-content li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.industries-served {
    margin-top: 5rem;
    text-align: center;
}

.industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.industry-tag {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.industry-tag:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   Contact Page
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

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

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    margin-bottom: 0.25rem;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.business-hours {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.business-hours h3 {
    margin-bottom: 1.5rem;
}

.hours-list {
    margin-bottom: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form-section h2 {
    margin-bottom: 2rem;
}

.contact-form {
    background-color: var(--bg-white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.why-contact {
    margin: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.next-steps {
    margin: 5rem 0;
}

.steps-timeline {
    margin-top: 3rem;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 4rem;
    bottom: -3rem;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-medium);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    section {
        padding: 3rem 0;
    }

    .features-grid,
    .values-grid,
    .approach-steps,
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .service-content ul {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-item::before {
        left: 1.5rem;
    }

    .timeline-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .value-item,
    .service-detail {
        padding: 1.5rem;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.value-item,
.reason-card,
.benefit-item {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
