/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: #627086;
    background-color: #F7F6F2;
}

/* Animations */
@keyframes rise-in {
    from { 
        opacity: 0; 
        transform: translateY(18px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes image-settle {
    from { 
        transform: scale(1.07); 
    }
    to { 
        transform: scale(1.015); 
    }
}

.about-section, 
.member-card, 
.cv-row, 
.project-card {
    animation: rise-in 0.6s ease-out forwards;
}

/* Header */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 2px solid #15263F;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.site-logo {
    flex-shrink: 0;
    padding: 0 1.5rem;
}

.site-logo img {
    height: 100px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 3.5rem;
    flex: 1;
}

.site-nav-left {
    justify-content: flex-end;
}

.site-nav-right {
    justify-content: flex-start;
}

.site-nav a {
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    font-weight: 700;
    color: #15263F;
    font-size: 18px;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C77645;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: bottom left;
}

.site-nav a:hover {
    color: #A85E34;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #627086;
    font-size: 0.9rem;
}

/* Hero / group photo */
.hero-wrapper {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
}

.group-photo {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 3px solid #E4E7EB;
    border-radius: 1rem;
    animation: image-settle 1.2s ease-out forwards;
}

.image-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: #CCD4DF;
    margin: 0 0 1rem 0;
}

/* About section */
.about-section {
    text-align: center;
    padding: 3rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #15263F;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #627086;
    line-height: 1.7;
}

.about-text + .about-text {
    margin-top: 1rem;
}

/* Medlemmer page */
.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #15263F;
    font-size: 2.5rem;
    text-align: center;
    padding: 3rem 0 2rem 0;
}

.member-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 2rem;
    background-color: #FFFFFF;
    border: 1px solid #E4E7EB;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-card:hover {
    box-shadow: 0 18px 50px rgba(21, 38, 63, .09);
    transform: translateY(-4px);
}

.member-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.member-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.member-info {
    flex: 1;
}

.member-name {
    font-family: 'Playfair Display', Georgia, serif;
    color: #15263F;
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.member-role {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    color: #C77645;
    margin: 0 0 1rem 0;
}

.member-bio {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #627086;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: block;
    background-color: transparent;
    object-fit: contain;
}

.social-links a {
    display: inline-block;
    transition: opacity 0.2s;
    line-height: 0;
}

.social-links a:hover {
    opacity: 0.7;
}

.cv-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #E4E7EB;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cv-row:hover {
    background-color: #F9EDE6;
    box-shadow: 0 18px 50px rgba(21, 38, 63, .09);
    transform: translateY(-4px);
}

.cv-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: #15263F;
}

.cv-download {
    text-decoration: none;
    color: #C77645;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-download:hover {
    color: #A85E34;
}

.download-icon {
    font-size: 1.2rem;
}

.project-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem 2rem;
}

.project-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #15263F;
    font-size: 1.6rem;
    text-align: center;
    border-bottom: 2px solid #C77645;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin: 0 0 2rem 0;
}

.project-section-title-wrapper {
    text-align: center;
}

.project-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #E4E7EB;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 150px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    box-shadow: 0 18px 50px rgba(21, 38, 63, .09);
    transform: translateY(-4px);
}

.project-image-placeholder {
    width: 180px;
    height: 130px;
    background-color: #E4E7EB;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-name {
    font-family: 'Playfair Display', Georgia, serif;
    color: #15263F;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.project-description {
    font-family: 'DM Sans', sans-serif;
    color: #627086;
}
