/* PhageLife Visual Style Guide Implementation */

/* 1. Color Palette */
:root {
    --primary-color: #2D2D2D;
    /* Deep Charcoal - Dark Mode Backgrounds / Text */
    --secondary-color: #C5D935;
    /* Lime - Primary Action / Highlight */
    --accent-color: #9DBA45;
    /* Success / Health - Secondary highlights */
    --neutral-color: #F5F5F5;
    /* Neutral - Background / Body Text */
    --white: #FFFFFF;
    --text-color: #2D2D2D;
    --text-light: #F5F5F5;
    --border-color: #E0E0E0;
    --warning-color: #D32F2F;
    /* For "Problem" section alerts */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    /* Offset for sticky navbar */
}

/* 2. Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--neutral-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2 {
    font-family: 'Montserrat', sans-serif;
    /* Geometric, sturdy */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* 3. Layout & Grid System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    /* "lab-precise" feel */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #B0C42E;
    /* Darken Lime by 10% */
    border-color: #B0C42E;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 5. Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.5px;
    opacity: 0.85;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* 6. Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subhead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #E0E0E0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 7. Social Proof */
.social-proof {
    background-color: #E0E0E0;
    padding: 2rem 0;
    text-align: center;
}

.social-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-item {
    font-weight: 700;
    color: #777;
    font-size: 1.2rem;
    /* Placeholder styles until logos are added */
}

/* 8. The Problem */
.problem {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    padding: 2rem;
    background-color: #FFF0F0;
    /* Light red visual cue for "Problem" */
    border-left: 4px solid var(--warning-color);
    border-radius: 4px;
}

.problem-card h3 {
    font-size: 1.3rem;
    color: var(--warning-color);
}

/* 9. The Solution (Technology) */
.solution {
    padding: 80px 0;
    background-color: var(--neutral-color);
}

.solution-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.solution-subhead {
    font-size: 1.2rem;
    color: #666;
}

.kill-chain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kill-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kill-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary-color);
}

/* Simple entry animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kill-step {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    /* Start invisible */
}

.kill-step:nth-child(1) {
    animation-delay: 0.2s;
}

.kill-step:nth-child(2) {
    animation-delay: 0.4s;
}

.kill-step:nth-child(3) {
    animation-delay: 0.6s;
}

.kill-step:nth-child(4) {
    animation-delay: 0.8s;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.2;
}

.kill-step h4 {
    color: var(--accent-color);
}

.solution-visual img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

/* 10. The Comparison */
.comparison {
    padding: 80px 0;
    background-color: var(--white);
}

.comparison h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.comparison-table th {
    background-color: #f9f9f9;
    font-weight: 700;
}

.phagelife-col {
    background-color: rgba(197, 217, 53, 0.1);
    /* Light Lime */
    border-top: 4px solid var(--secondary-color);
}

.highlight-good {
    color: #558B2F;
    /* Darker green for text readability */
    background-color: rgba(197, 217, 53, 0.05);
}

.highlight-bad {
    color: var(--warning-color);
}

.comparison-cta {
    text-align: center;
}

/* 11. Strategic Trigger */
.strategic-trigger {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.strategic-trigger h2 {
    color: var(--secondary-color);
}

.trigger-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
    margin-top: 2rem;
}

.trigger-list {
    list-style: none;
    padding: 0;
}

.trigger-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.trigger-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.trigger-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

/* 12. ROI Engine */
.roi-engine {
    padding: 80px 0;
    background-color: var(--neutral-color);
    text-align: center;
}

.roi-calculator {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--secondary-color);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.roi-microcopy {
    font-style: italic;
    color: #666;
}

/* 13. The Proof */
.proof {
    padding: 80px 0;
    background-color: var(--white);
}

.proof h2 {
    text-align: center;
}

.proof-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.proof-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 14. Converter (Form) */
.conversion {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.conversion-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--secondary-color);
}

.conversion-subhead {
    margin-bottom: 2rem;
    color: #555;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    /* Reduced from 12px to align with borders */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
    /* Ensures padding doesn't widen element */
}

/* 15. Footer */
.footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 1.5rem;
    color: #888;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Implementation */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity, or add burger menu */
    }

    .hero-content,
    .problem-grid,
    .kill-chain-grid,
    .trigger-content,
    .roi-calculator,
    .proof-content,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .calculator-results {
        margin-top: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }

    /* Responsive para nueva sección problema con producto */
    .problem .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Highlighted Nav Link */
.nav-highlight {
    background-color: rgba(46, 204, 113, 0.15);
    /* Light green background */
    border: 1px solid var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--secondary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-highlight:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

/* Research Button */
.research-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.research-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.research-btn i {
    font-size: 1.2rem;
}

/* 16. Team Section */
.team {
    padding: 80px 0;
    background-color: var(--neutral-color);
}

.team .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-subhead {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.member-photo-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.member-role {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.member-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Response for Team Section */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   LINKEDIN FEED SECTION
=================================== */
.linkedin-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.linkedin-section .section-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.linkedin-widget-wrapper {
    margin: 40px 0 32px;
    min-height: 320px;
}

.linkedin-cta {
    text-align: center;
    margin-top: 8px;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .linkedin-section {
        padding: 48px 0;
    }
}