/* MetricDrive - Simplified CSS for Home Page */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfcf9;
    color: #292524;
}

h1, h2, h3, h4, .font-lora {
    font-family: 'Lora', serif;
}

/* Navigation */
.nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #57534e;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background-color: #fafaf9;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    display: inline-block;
}

.nav-link:hover {
    color: #1e3a8a;
    background-color: #f5f5f4;
    border-color: #d6d3d1;
}

.nav-link.active {
    color: white;
    font-weight: 600;
    background-color: #1e3a8a;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Profile Bullets */
.profile-bullet {
    display: flex;
    align-items: flex-start;
}

.profile-bullet-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #d97706;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Process Steps */
.process-step {
    flex: 1 1 0%;
    min-width: 200px;
    background-color: white;
    border: 1px solid #e7e5e4;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    text-align: center;
}

.process-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    color: #d6d3d1;
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (min-width: 768px) {
    .process-arrow {
        display: flex;
    }
}

/* Common Layout Utilities */
.container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section {
    margin-bottom: 2rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0c0a09;
    font-family: 'Lora', serif;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #57534e;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e7e5e4;
}

.card-blue {
    background-color: #eff6ff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 2px solid #93c5fd;
}

.card-stone {
    background-color: #fafaf9;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e7e5e4;
}

.card-nested {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e7e5e4;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #1e3a8a;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 2px solid #1e40af;
    transition: all 0.3s;
    font-size: 1.125rem;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    display: inline-block;
    background-color: white;
    color: #1e3a8a;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 2px solid #1e40af;
    transition: all 0.3s;
    font-size: 1.125rem;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

.btn-stone {
    display: inline-block;
    background-color: #44403c;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s;
    text-align: center;
}

.btn-stone:hover {
    background-color: #292524;
}

.btn-amber {
    display: inline-block;
    background-color: #f59e0b;
    color: #0c0a09;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s;
    font-size: 1.25rem;
    font-family: 'Lora', serif;
}

.btn-amber:hover {
    background-color: #fbbf24;
}

/* Text Utilities */
.text-body {
    font-size: 1.125rem;
    color: #44403c;
}

.heading-1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0c0a09;
    line-height: 1.25;
    font-family: 'Lora', serif;
}

@media (min-width: 768px) {
    .heading-1 {
        font-size: 3.75rem;
    }
}

.heading-2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #292524;
    font-family: 'Lora', serif;
}

.heading-3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Lora', serif;
}

/* Thesis Cards */
.thesis-card {
    background-color: white;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 1.5rem;
    transition: all 0.2s;
}

.thesis-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: #d6d3d1;
}

.thesis-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e7e5e4;
}

.thesis-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: #1e3a8a;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    font-family: 'Lora', serif;
}

.thesis-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Lora', serif;
    margin: 0;
}

.thesis-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.thesis-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thesis-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.thesis-icon {
    color: #1d4ed8;
    flex-shrink: 0;
}

.thesis-item-label {
    font-weight: 600;
    color: #292524;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thesis-item-text {
    color: #44403c;
    line-height: 1.625;
    padding-left: 1.75rem;
}

/* Header & Navigation */
.header-fixed {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e7e5e4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Lora', serif;
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
    background-color: rgba(250, 250, 249, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e7e5e4;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid #e7e5e4;
    background-color: rgba(255, 251, 235, 0.3);
}

@media (min-width: 768px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #57534e;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-2-col-md {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2-col-md {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lists */
.list-spaced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Text Utilities */
.text-stone {
    color: #44403c;
}

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

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-16 {
    margin-top: 4rem;
}

.flex-grow {
    flex-grow: 1;
}

/* Centered Containers */
.centered-box {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    text-align: center;
}

.highlight-box {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(255, 251, 235, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
    margin-top: 1.5rem;
}

/* Process Container */
.process-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .process-container {
        flex-direction: row;
        gap: 0;
    }
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #e7e5e4;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-header {
    text-align: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Resource Cards */
.resource-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e7e5e4;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: #d6d3d1;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c0a09;
    margin-bottom: 0.5rem;
    font-family: 'Lora', serif;
}

.resource-author {
    font-size: 0.875rem;
    color: #57534e;
    margin-bottom: 1rem;
    display: block;
}

.resource-desc {
    color: #44403c;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.625;
}

/* Section Headings */
.section-heading {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0c0a09;
    font-family: 'Lora', serif;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 3rem;
    }
}

.section-subheading {
    font-size: 1.125rem;
    color: #57534e;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    line-height: 1.75;
}

/* Stat Cards for Buy-Box */
.stat-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: 2px solid #e7e5e4;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.15), 0 4px 6px -2px rgb(0 0 0 / 0.1);
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

.stat-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #57534e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Lora', serif;
    margin: 0;
    line-height: 1.2;
}

.track-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: #1e3a8a;
    background-color: #eff6ff;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

/* Profile List Items for Buy-Box */
.profile-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-list-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #1e3a8a;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Section Dividers for Buy-Box */
.section-divider {
    position: relative;
    padding-top: 1rem;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e7e5e4, transparent);
}

/* Industry Cards for Buy-Box */
.industry-card {
    transition: all 0.2s ease;
}

.industry-card:hover {
    box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Print Styles for Buy-Box - Optimize for One-Page PDF */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }
    
    header,
    footer,
    #download-section {
        display: none !important;
    }
    
    main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }
    
    /* Professional print layout - compact fonts for 1-2 pages */
    .max-w-6xl {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.4in 0.5in !important;
    }
    
    html, body {
        height: auto !important;
        overflow: visible !important;
    }
    
    body {
        overflow: visible !important;
    }
    
    main {
        overflow: visible !important;
    }
    
    /* Ensure all content is visible in print */
    #buyer-profile,
    #deal-reality {
        display: block !important;
        visibility: visible !important;
    }
    
    .page-title {
        padding-top: 0 !important;
        padding-bottom: 0.35rem !important;
        margin-bottom: 0.5rem !important;
        page-break-after: avoid;
    }
    
    .page-title h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }
    
    .page-title p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    
    .print-contact {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    .print-contact p {
        margin-bottom: 0.15rem !important;
    }
    
    .print-contact a {
        color: #1e3a8a !important;
        text-decoration: none !important;
    }
    
    /* Reduced spacing between sections for print */
    .space-y-5 > * + * {
        margin-top: 0.6rem !important;
    }
    
    .section-divider {
        page-break-inside: avoid;
        margin-bottom: 0.5rem !important;
        padding-top: 0.35rem !important;
    }
    
    .section-divider::before {
        display: none;
    }
    
    .section-divider h2 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.25 !important;
        page-break-after: avoid;
    }
    
    .section-divider .w-1 {
        height: 0.875rem !important;
    }
    
    /* Card styling for print - reduced padding */
    .stat-card,
    .card,
    .industry-card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e7e5e4 !important;
        padding: 0.5rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .stat-card:hover,
    .industry-card:hover {
        transform: none !important;
    }
    
    /* Smaller font sizes for print */
    .stat-value {
        font-size: 1.15rem !important;
        line-height: 1.15 !important;
    }
    
    .stat-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .track-icon {
        width: 1.75rem !important;
        height: 1.75rem !important;
        margin-bottom: 0.3rem !important;
        padding: 0.4rem !important;
    }
    
    /* Reduced grid gaps */
    .gap-3 {
        gap: 0.5rem !important;
    }
    
    .gap-4 {
        gap: 0.5rem !important;
    }
    
    /* Industry cards - smaller fonts */
    .industry-card h3 {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
    }
    
    .industry-card .w-9 {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .industry-card h4 {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .industry-card p,
    .industry-card li {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    /* Industry card spacing */
    .space-y-2\.5 > * + * {
        margin-top: 0.4rem !important;
    }
    
    .mb-2\.5,
    .pb-2\.5 {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    
    /* Geography section */
    .bg-gradient-to-br {
        padding: 0.5rem !important;
    }
    
    .bg-gradient-to-br p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .bg-gradient-to-br span {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Buyer profile */
    #buyer-profile {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    #buyer-profile .bg-white.p-4 {
        display: block !important;
        visibility: visible !important;
        padding: 0.5rem !important;
    }
    
    #buyer-profile .border-l-4 {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid;
    }
    
    .border-l-4 h4 {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.25 !important;
    }
    
    .border-l-4 p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    #buyer-profile .grid {
        display: grid !important;
        visibility: visible !important;
        gap: 0.5rem !important;
    }
    
    /* Profile item spacing */
    .py-2 {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    
    .pl-3 {
        padding-left: 0.6rem !important;
    }
    
    .mb-1\.5 {
        margin-bottom: 0.3rem !important;
    }
    
    /* Deal structure */
    .bg-gradient-to-br.from-blue-50 h4,
    .bg-white.border-2 h4 {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.25 !important;
    }
    
    .bg-gradient-to-br.from-blue-50 p,
    .bg-white.border-2 p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .bg-white.border-2 span {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .bg-white.border-2 .space-y-2 > * + * {
        margin-top: 0.4rem !important;
    }
    
    .bg-white.border-2 .pt-2 {
        padding-top: 0.4rem !important;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    /* Professional page setup - tighter margins for print */
    @page {
        size: letter;
        margin: 0.35in;
    }
    
    /* Smart page breaks - keep related content together */
    .section-divider {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .stat-card,
    .card,
    .industry-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Allow page breaks between major sections if needed */
    #financial-criteria,
    #target-theses,
    #geography {
        page-break-after: auto;
    }
    
    /* Keep buyer profile and deal structure together if possible */
    #buyer-profile {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    #deal-reality {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Ensure all sections print */
    #financial-criteria,
    #target-theses,
    #geography,
    #buyer-profile,
    #deal-reality {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

