/* UNBEAR-tyylimääritykset */

/* Vierityspalkki, jotta sivu ei "pompi" */
html {
    overflow-y: scroll;
}

/* Fontti 1 */
@font-face {
    font-family: 'Open Sauce One Regular';
    src: url('OpenSauceOne-Bold.ttf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Fontti 2 */
@font-face {
    font-family: 'Roboto Mono';
    src: url('RobotoMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-color: #2F2F2F;
    --highlight: #38b6ff;
    --bg-color: #F9F9F9;
    --font-header: 'Open Sauce One Regular', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-family: var(--font-body);
    line-height: 1.6;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

h1,
h2,
h3 {
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-title {
    text-align: center;
    margin-top: 40px;
}

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: white;
    border-bottom: 1px solid #eee;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    padding-bottom: 5px;
}

/* Hover-efekti */
nav a:hover {
    color: var(--highlight);
}

/* Aktiivisen sivun osoitin */
nav a.active {
    color: var(--highlight);
    border-bottom: 2px solid var(--highlight);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
}

/* Hero & Content */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 50px 10%;
    min-height: 70vh;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Value Propositions Section */
.value-propositions {
    display: flex;
    justify-content: space-around;
    padding: 50px 10%;
    background: #eeeeee;
    flex-wrap: wrap;
    gap: 20px;
}

.value-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--highlight);
    color: #2F2F2F;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.contact-link {
    color: var(--highlight);
    text-decoration: none;
    font-weight: bold;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 10%;
}

.bear-card {
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.bear-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bear-card img {
    width: 100%;
    height: 300px; 
    object-fit: contain; 
    margin-bottom: 15px;
    background-color: transparent; 
}


.bear-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    height: 100%; 
}

/* Contact form */
.contact-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    font-family: var(--font-body);
}

footer {
    text-align: center;
    padding: 30px 0; /* Sama ylä- ja alatäyte kaikille */
    background-color: white;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    width: 100%;
    margin-top: auto; /* Työntää footerin alas flex-laatikossa */
}

/* Varmistus, ettei p-tagit footerin sisällä lisää ylimääräistä tilaa */
footer p {
    margin: 5px 0;
    line-height: 1.2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }
}

main {
    flex: 1; 
}