/* =============================================
   JTL MedChem Consulting
   ============================================= */

:root {
    --green: #3B6D11;
    --green-dark: #2a5009;
    --green-light: #f0f5eb;
    --accent-blue: #185FA5;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border: #d1d5db;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #f9fafb;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem; }
p { color: var(--text-secondary); margin-top: 0; }
a { color: var(--accent-blue); }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--green);
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    height: 68px;
}

/* HTML/CSS logo mark */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: flex-end;
    line-height: 1;
    gap: 1px;
}

.logo-mark span {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 800;
    color: var(--green);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.logo-text {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.15rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover {
    color: var(--green);
    background: var(--green-light);
}

.nav-contact-btn {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
}

.nav-contact-btn:hover {
    background: var(--green-dark) !important;
    color: #fff !important;
}

/* Hamburger for mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-secondary);
}

.mobile-menu a:last-child {
    color: var(--green);
    font-weight: 600;
    border-bottom: none;
}

/* =============================================
   HERO
   ============================================= */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    padding-top: 68px;
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    border: 1px solid #c5dba8;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-style: italic;
    font-size: 1.05rem !important;
    color: var(--green-dark) !important;
    border-left: 3px solid var(--green);
    padding-left: 1rem;
    margin-top: 1.5rem;
}

/* =============================================
   DIVIDER
   ============================================= */
.section-divider {
    max-width: 1100px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--border);
}

/* =============================================
   ABOUT
   ============================================= */
#about {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-photo-wrapper { flex: 0 0 260px; }

.about-photo-wrapper img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: block;
}

.about-text-wrapper { flex: 1; }
.about-text-wrapper h2 { margin-top: 0; }

/* =============================================
   SERVICES
   ============================================= */
#services {
    background: var(--bg-secondary);
    padding: 7rem 2rem;
}

.services-inner {
    max-width: 780px;
    margin: 0 auto;
}

.services-text h2 { margin-top: 0; }

.services-subheading {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin: 1.75rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 0.5rem 0 0.5rem 1.2rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-primary);
    line-height: 1.5;
}

.services-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 0.85rem;
}

/* =============================================
   AWARDS / RÉSUMÉ
   ============================================= */
#awards {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

#awards h2 { text-align: center; margin-bottom: 3rem; }

.awards-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    max-width: 300px;
    box-shadow: var(--shadow);
}

.award-card img {
    max-height: 55px;
    width: auto;
    opacity: 0.85;
}

.award-card p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.resume-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-list > li.project-heading {
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.resume-list > li.project-heading:first-child { margin-top: 0; }

.resume-sublist {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}

.resume-sublist li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.35rem 1rem 0.35rem 1.5rem;
    border-left: 1px solid var(--border);
    margin-left: 1rem;
    line-height: 1.5;
}

/* =============================================
   APPS
   ============================================= */
#apps {
    background: var(--bg-secondary);
    padding: 7rem 2rem;
}

.apps-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.apps-inner h2 { margin-bottom: 0.75rem; }
.apps-inner > p { max-width: 600px; margin: 0 auto 3rem; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: left;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green);
}

.app-card-icon {
    width: 40px;
    height: 40px;
    background: var(--green-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.app-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; }
.app-card p { font-size: 0.85rem; margin: 0; }

.app-tag {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-light);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-inner { display: flex; gap: 60px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-info h2 { margin-top: 0; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--green-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-detail a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.contact-detail a:hover { color: var(--green); }

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #0A66C2;
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s;
}

.linkedin-btn:hover { background: #004182; color: white; }
.linkedin-btn img { height: 18px; width: auto; filter: brightness(0) invert(1); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--green);
    padding: 1.5rem 2rem;
    text-align: center;
}

footer p {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    h2 { font-size: 1.6rem; }

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    #hero {
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 3rem;
    }

    .hero-content h2 { font-size: 2rem; }

    .about-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .about-photo-wrapper {
        flex: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .contact-inner { flex-direction: column; gap: 2rem; }

    .awards-logos { flex-direction: column; align-items: center; }

    .logo-text { display: none; }
}

.apps-coming-soon {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.apps-coming-soon p {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}
