﻿:root {
    --primary-color: #FF7700;
    /* Brighter orange for dark background contrast */
    --text-color: #1a1a1a;
    --text-light: #555555;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --accent-grey: #f9f9f9;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --container-width: 1600px;
    /* Maximized width */
    --black: #050505;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    font-size: 18px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-orange {
    color: var(--primary-color);
}

.italic {
    font-style: italic;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--black);
    margin: 4rem 0;
}

.spacer {
    height: 4rem;
}

/* Top Bar */
.top-bar {
    background: var(--black);
    color: #888;
    font-size: 0.75rem;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

/* Magazine Top Wrapper (Black Background - Header Only) */
.magazine-top-wrapper {
    background-color: var(--black);
    color: #fff;
    padding-bottom: 2rem;
    /* Reduced padding */
}

/* Header inside Black Wrapper */
.header {
    padding: 2rem 0 0;
    border-bottom: 1px solid #333;
    /* Darker border */
    position: relative;
    background: transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
    flex-grow: 1;
    color: #fff;
}

.header-actions {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-subscribe {
    border: 1px solid #fff;
    padding: 5px 15px;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    color: #fff;
}

.btn-subscribe:hover {
    background: #fff;
    color: var(--black);
}

.nav-container {
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-link {
    color: #ccc;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}



/* home page three links below category images */
.yritysnav-link {
    color: #000;
    position: relative;
}
.yritysnav-link:hover {
    color: #000;
}
.yritysnav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.yritysnav-link:hover::after {
    width: 100%;
}



.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 2rem;
    background-color: var(--bg-color);
    /* White background "around" the box */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--black);
    /* The Black Box */
    color: #fff;
    padding: 3rem;
    /* Inner spacing */
    border-radius: 4px;
    /* Slight polish */
}

.category-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 2px;
}

.hero-section h1 {
    color: #fff;
    /* White Text */
}

.hero-lede {
    font-size: 1.3rem;
    color: #ccc;
    /* Light Grey Text */
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.author-line {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.author-name {
    color: #fff;
    /* White Text */
    font-weight: 700;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #ff9933;
}

/* Featured Section (White Background starts here) */
.section-label {
    border-top: 2px solid #000;
    display: inline-block;
    padding-top: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.featured-grid-company-insurance {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.elegant-list {
    margin-top: 1.5rem;
    list-style: none;
    border-top: 1px solid #eee;
}

.elegant-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
}

.sidebar-item {
    background: var(--accent-grey);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--primary-color);
}

.sidebar-item h3 {
    font-size: 1.2rem;
}

/* Articles Grid */
.articles-section {
    padding-bottom: 2rem;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header-center h2 {
    display: inline-block;
    background: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
    z-index: 0;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid #000;
    padding-top: 2rem;
}

.article-card {
    display: flex;
    flex-direction: column;
}

.article-image-placeholder {
	overflow: hidden;
}

.article-image-placeholder img {
    width: 100%;
    height: 200px;
/*    background-color: #eee;*/
	object-fit: cover; /* täyttää 200px alueen säilyttäen kuvasuhteen */
/*    margin-bottom: 1rem;*/
    display: block;
    transition: transform 0.3s ease; /* kiva pieni animaatio */
}

.article-card:hover .article-image-placeholder img {
	transform: scale(1.05); /* kuva suurenee hieman */
}

.category-tag-small {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding-top: 1rem;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    border-bottom-color: var(--primary-color);
}

/* Text Section */
.text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: #fdfdfd;
    padding: 4rem;
    border: 1px solid #eee;
}

/* Stylish Footer */
.footer-stylish {
    background-color: #111;
    color: #fff;
    padding: 5rem 0 2rem;
    border-top: 1px solid #222;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #888;
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.newsletter-form input {
    background: transparent;
    border: 1px solid #444;
    padding: 10px 15px;
    color: #fff;
    flex-grow: 1;
    font-family: var(--font-sans);
}

.newsletter-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-divider {
    height: 1px;
    background: #222;
    margin-bottom: 3rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #888;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #555;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.8rem;
        /* Reduced from 2.5rem to fit long words */
        word-wrap: break-word;
        /* Ensure long words break if needed */
        hyphens: auto;
        /* Adds hyphens if browser supports */
    }

    .nav-container {
        display: none;
    }

    .nav-container.active {
        display: block;
        background: var(--black);
        width: 100%;
        padding: 20px;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo {
        font-size: 1.5rem;
        /* Much smaller for mobile */
        text-align: left;
    }

    .header-container {
        gap: 10px;
    }

    /* Switch to Flexbox for Mobile Hero to avoid Grid min-width issues */
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
        width: 100%;
    }

    .hero-image {
        order: -1;
        width: 100%;
        margin-bottom: 1.5rem;
        display: block;
        /* Reset flex display */
    }

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .featured-grid,
    .articles-grid,
    .text-section,
    .footer-top,
    .footer-links-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Responsive */
@media (max-width: 380px) {
	.btn-subscribe {
		font-size: 75%; /* for iPhone mini 380px screen width, the PYYDÄ TARJOUS on top to fit screen */
	}
}


/* Map Section */
.map-section {
    margin-top: 4rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 450px;
    background-color: #eee;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Black and White Filter */
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    -webkit-filter: grayscale(100%) contrast(1.2) brightness(0.9);
}

/* Profile Picture */
/* Profile Picture */
.profile-image {
    width: 100%;
    max-width: 100%;
    /* Ensure it never causes overflow */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-caption {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 768px) {

    /* Limit the image size on mobile so it doesn't take up full screen height */
    .profile-image {
        max-width: 300px;
    }
}

@media (max-width: 1150px) {
    .featured-grid-company-insurance {
        grid-template-columns: 1fr; /* collapse to single column */
    }
/*    .featured-grid-company-insurance > :nth-child(2) {*/
/*        display: none;*/ /* hide sidebar / second child */
/*    }*/
}


.bullet-points {
	padding-left: 30px;
}




