@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #1e3a5f;
    --secondary: #2c5f8d;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #212529;
    --text-gray: #3a3838;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white;
}

html {
    scroll-padding-top: 72px;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.425);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a.active-page {
    position: relative;
}

.nav-links a.active-page::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #e06209;
    border-radius: 50%;
}

.nav-links a.cta-button {
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.nav-links a.cta-button:hover {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #c45307 0%, #e06209 100%);
    color: white;
    padding: 2.4rem 2rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.95;
}

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

.btn-primary {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* About (index.html) */
.about {
    padding: 5rem 2rem;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.credentials {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credential-icon {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Services (index.html) */
.services {
    padding: 0 0 5rem;
    background: var(--light);
}

.services-header {
    background: linear-gradient(135deg, #c45307 0%, #e06209 100%);
    color: white;
    text-align: center;
    padding: 2.4rem 2rem;
    margin-bottom: 4rem;
}

.services-header h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.services-header p {
    color: white;
    opacity: 0.95;
    font-size: 1.1rem;
}

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

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

.section-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* Value Proposition (index.html) */
.value-prop {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #c45307 0%, #e06209 100%);
    color: white;
    text-align: center;
}

.value-prop-container {
    max-width: 1200px;
    margin: 0 auto;
}

.value-prop h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.benefit-item {
    padding: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Portfolio / Articles */
.portfolio {
    padding: 5rem 2rem;
    background: var(--light);
}

/* Reduce top padding when portfolio section immediately follows a hero */
.hero + .portfolio {
    padding-top: 2rem;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.project-card .project-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-card .project-link:hover {
    color: var(--primary);
}

.project-card .project-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-card .project-credit {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.project-card .project-image {
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.project-card-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-card-grid .project-text {
    flex: 1;
}

.project-card-grid .project-text p:last-of-type {
    margin-bottom: 0;
}

.project-card-grid .project-image-inline {
    width: 300px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    align-self: center;
}

/* Research (rtpi-study.html) */
.research {
    padding: 2rem;
    background: white;
}

.research-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.research-container h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.research-container p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.research-cta {
    text-align: center;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
}

.research-cta-button {
    text-align: center;
}

/* Methodology (rtpi-study.html) */
.methodology {
    padding: 5rem 2rem;
    background: var(--light);
}

.methodology-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.method-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* Outcomes (rtpi-study.html) */
.outcomes {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #c45307 0%, #e06209 100%);
    color: white;
    text-align: center;
}

.outcomes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.outcomes h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.outcome-item {
    padding: 1.5rem;
}

.outcome-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.outcome-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Contact */
.contact {
    padding: 5rem 2rem;
    background: white;
}

/* rtpi-study.html: contact follows research, trim top padding */
.research ~ .contact {
    padding-top: 2rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--secondary);
    border-radius: 5px;
    transition: all 0.3s;
}

.contact-email:hover {
    background: var(--secondary);
    color: white;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1036px) {
    html {
        scroll-padding-top: 53px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        flex-direction: row;
        padding: 1rem 1.5rem;
    }

    .logo {
        height: 40px;
        margin-bottom: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 2rem;
    }

    .nav-links a.cta-button {
        margin: 0.5rem 1.5rem;
        text-align: center;
    }

    .hero {
        margin-top: 40px;
        padding: 1.56rem 1.5rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
        margin-bottom: -40px;
    }

    .credentials {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-header h2,
    .section-header h2,
    .about-content h2,
    .value-prop h2,
    .research-container h2,
    .outcomes h2,
    .contact h2 {
        font-size: 2rem;
    }

    .services-header {
        padding: 1.56rem 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card-grid {
        flex-direction: column;
    }

    .project-card-grid .project-image-inline {
        width: 100%;
    }

    .contact-email {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}
