/* Robalyst — Static Site Styles */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --accent: #2A2A2A;
    --accent-warm: #C45A28;
    --text-primary: #1A1A1A;
    --text-secondary: #555B64;
    --text-muted: #8E949D;
    --surface: #FFFFFF;
    --surface-alt: #FAFAFA;
    --border: #EAEDF0;
}

body {
    font-family: 'Inter', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-color: var(--surface);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.15; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text-secondary); font-weight: 400; line-height: 1.75; }
h4 { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-secondary); font-weight: 400; line-height: 1.7; }
h5 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.5rem; }

.text-accent { color: var(--accent-warm) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }
.small { font-size: 0.85rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-icon { height: 26px; width: 26px; }
.brand-wordmark { height: 14px; }

.navbar-brand:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 450;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Layout Areas */
.primary-area {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 5rem;
}

.secondary-area {
    display: flex;
    align-items: center;
    padding: 6rem 5rem;
}

.bg-bright {
    background-color: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.area-text {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.area-text.w-100 { width: 100%; }

.area-img {
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-img img {
    max-width: 100%;
    border-radius: 16px;
}

/* Sector Cards */
.sector-grid {
    display: flex;
    gap: 1.5rem;
    padding: 6rem 5rem;
}

.sector-card {
    flex: 1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: #D0D4D9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.sector-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.sector-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn-accent {
    display: inline-block;
    background: var(--text-primary);
    color: white !important;
    border: none;
    padding: 0.85rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-accent:hover {
    background: #3a3a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-outline-subtle {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline-subtle:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Thesis Blocks */
.thesis-content { max-width: 720px; margin: 0 auto; }

.thesis-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.thesis-block:last-child { border-bottom: none; }

.thesis-block h4 { color: var(--text-primary); font-size: 1.05rem; }
.thesis-block p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 0; }

/* Portfolio */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
    transition: all 0.25s ease;
}

.portfolio-item:hover {
    border-color: #D0D4D9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.portfolio-item h3 { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.portfolio-item p { font-size: 0.95rem; color: var(--text-muted); }

.portfolio-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.portfolio-link { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* Team Cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 6rem 5rem;
    background-color: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 260px;
    width: 100%;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.profile-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
}

.team-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.85rem; color: var(--accent-warm); font-weight: 450; margin-bottom: 0.75rem; }
.team-card a { color: var(--text-muted); text-decoration: none; font-size: 1.2rem; transition: color 0.2s; }
.team-card a:hover { color: var(--text-primary); }

/* Glass Panel / Article */
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    padding: 3rem;
}

.article-content { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.article-content h3 { color: var(--text-primary); font-weight: 600; font-size: 1.2rem; }
.article-content strong { color: var(--text-primary); }

/* Blog Card */
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    max-width: 560px;
    margin: 0 auto;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.blog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer p { margin-bottom: 0; }
.footer-links { display: flex; gap: 0.25rem; align-items: center; }
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text-primary); }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    padding: 1rem 1.5rem;
    z-index: 1050;
    max-width: 560px;
    width: 90%;
    font-size: 0.85rem;
    display: none;
}

.cookie-banner a { color: var(--text-primary); margin: 0 0.5rem; font-weight: 500; }

.cookie-banner button {
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.cookie-banner button:hover { background: #3a3a3a; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Utility */
.uppercase { text-transform: uppercase; letter-spacing: 2px; }

/* Responsive */
@media screen and (max-width: 1024px) {
    .navbar { padding: 0.9rem 1.5rem; }
    .primary-area, .secondary-area { flex-direction: column; padding: 4rem 1.5rem; }
    .primary-area { min-height: auto; padding-top: 5rem; }
    .area-text { width: 100%; text-align: center; }
    .area-img { width: 100%; margin-top: 2rem; }
    .sector-grid { flex-direction: column; padding: 4rem 1.5rem; gap: 1rem; }
    .sector-card { padding: 2rem; }
    .card-grid { padding: 4rem 1.5rem; }
    .footer { flex-direction: column; gap: 0.5rem; padding: 1.5rem; text-align: center; }
    .portfolio-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .glass-panel { padding: 2rem; }
}

@media screen and (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
    .sector-grid { flex-wrap: wrap; }
    .sector-card { flex: 1 1 calc(50% - 1rem); min-width: 140px; }
}
