/* YritysReaktori - Finnish Company Database */
/* Design refresh: 2026-01-08 */

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

:root {
    /* Core palette - Energetic & Professional */
    --reactor-orange: #ff6b35;
    --reactor-orange-dark: #e55a2b;
    --reactor-orange-glow: #ff8c5a;
    --deep-navy: #2e2640;
    --navy-mid: #3a3050;
    --navy-light: #483d62;
    --arctic-white: #f8fafc;
    --frost: #e2e8f0;
    --steel: #94a3b8;
    --charcoal: #334155;
    --success-green: #10b981;
    --info-blue: #3b82f6;
    --warning-amber: #f59e0b;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--arctic-white);
    color: var(--charcoal);
    line-height: 1.7;
}

/* === SITE HEADER === */
.site-header {
    background: var(--deep-navy);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--reactor-orange) 0%, var(--reactor-orange-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.brand-logo span {
    color: var(--reactor-orange);
}

.main-nav {
    display: flex;
    gap: 36px;
    margin-left: auto;
}

.main-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--reactor-orange);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 12px;
    padding: 0;
    color: #ffffff;
}

.nav-toggle-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: background 0.3s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.3s, top 0.3s;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

.nav-toggle.active .nav-toggle-icon {
    background: transparent;
}

.nav-toggle.active .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* === HERO BANNER === */
.hero-banner {
    background: linear-gradient(145deg, var(--deep-navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--reactor-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-banner h1 .highlight {
    background: linear-gradient(135deg, var(--reactor-orange) 0%, var(--reactor-orange-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-banner .lead-text {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.75);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.metric-block {
    text-align: center;
}

.metric-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.metric-value.accent {
    color: var(--reactor-orange);
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SEARCH PANEL === */
.search-panel {
    padding: 48px 24px;
    background: var(--arctic-white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
    border: 1px solid var(--frost);
}

.search-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 20px;
    text-align: center;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--frost);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--reactor-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-input::placeholder {
    color: var(--steel);
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--reactor-orange) 0%, var(--reactor-orange-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 24px 24px 48px;
}

.content-section.alt-bg {
    background: var(--arctic-white);
}

.content-section.dark-bg {
    background: var(--deep-navy);
}

.section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    color: var(--reactor-orange);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-title.light {
    color: #ffffff;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--steel);
    max-width: 600px;
    margin: 0 auto;
}

.section-desc.light {
    color: rgba(255,255,255,0.7);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
    border: 1px solid var(--frost);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 8px;
}

.stat-card-value.highlight {
    color: var(--reactor-orange);
}

.stat-card-label {
    font-size: 0.95rem;
    color: var(--steel);
    line-height: 1.4;
}

/* === INFO BLOCKS === */
.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.info-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.info-text p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 24px;
    line-height: 1.9;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--frost);
    color: var(--charcoal);
    font-size: 1rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--reactor-orange);
}

.info-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.visual-card {
    background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.visual-card-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* === COMPANY GRID === */
.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.company-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.company-column {
    background: #ffffff;
    border: 1px solid var(--frost);
    border-radius: 16px;
    padding: 20px;
}

.company-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--frost);
    color: var(--charcoal);
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
}

.company-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.company-item:hover {
    background: rgba(255, 107, 53, 0.08);
    color: var(--reactor-orange);
    transform: translateX(4px);
}

/* === SITE FOOTER === */
.site-footer {
    background: var(--deep-navy);
    color: rgba(255,255,255,0.8);
    padding: 64px 24px 24px;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 48px;
}

.footer-brand-block {
    max-width: 400px;
    text-align: right;
}

.footer-brand-block .brand-logo {
    justify-content: flex-end;
}

.footer-brand-block p {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--reactor-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--reactor-orange);
}

/* === PAGE HEADERS === */
.page-header {
    background: linear-gradient(145deg, var(--deep-navy) 0%, var(--navy-mid) 100%);
    padding: 80px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.page-header h1 .highlight {
    color: var(--reactor-orange);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* === CONTACT SECTION === */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 20px;
}

.contact-content > p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    text-align: left;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--frost);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--charcoal);
    font-size: 1rem;
    transition: box-shadow 0.2s;
}

.contact-list li:hover {
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
}

.contact-list li svg {
    width: 24px;
    height: 24px;
    color: var(--reactor-orange);
    flex-shrink: 0;
}

/* === COMPANY DETAIL PAGE === */
.company-detail-section {
    padding: 60px 24px;
}

.company-detail-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: start;
}

.company-image-block img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
}

.company-info-block h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-top: 48px;
    margin-bottom: 20px;
}

.company-info-block h2:first-child {
    margin-top: 0;
}

.company-info-block > p {
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 28px;
}

.company-meta {
    list-style: none;
}

.company-meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--frost);
    color: var(--charcoal);
}

.company-meta li svg {
    width: 20px;
    height: 20px;
    color: var(--reactor-orange);
}

.company-overview {
    padding: 60px 24px;
    background: var(--arctic-white);
}

.overview-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 32px;
    text-align: center;
}

.overview-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.overview-columns p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.9;
}

/* === FINANCIAL TABLE === */
.financial-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 20px;
}

.financial-table th,
.financial-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--frost);
}

.financial-table th:first-child,
.financial-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--deep-navy);
}

.financial-table th {
    font-weight: 600;
    color: var(--steel);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.04);
}

.financial-table td {
    color: var(--charcoal);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .info-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--deep-navy);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        display: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav.open {
        display: flex;
    }
    
    .main-nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .hero-banner {
        padding: 60px 24px;
    }
    
    .hero-banner h1 {
        font-size: 2.25rem;
    }
    
    .hero-banner .lead-text {
        font-size: 1.1rem;
    }
    
    .hero-metrics {
        gap: 32px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom a {
        margin: 0 12px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .company-detail-layout,
    .overview-columns {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}
