/* Kiitalajit.fi — Scandinavian Minimalist Stylesheet */
:root {
    --navy: #1a2a4a;
    --navy-light: #2a3d5f;
    --white: #ffffff;
    --bg-light: #f0f4f8;
    --text: #1a2a4a;
    --text-muted: #4a5568;
    --text-light: #718096;
    --border: #e2e8f0;
    --warm-gray: #a0937d;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--warm-gray); }

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
    background: var(--navy);
    color: var(--white);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

nav a {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

nav a:hover { color: var(--white); }
nav a.active { color: var(--white); font-weight: 600; }

/* ===== HERO ===== */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 100px 32px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0.8;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.cta-btn:hover {
    background: var(--bg-light);
    color: var(--navy);
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== BREED GRID ===== */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.breed-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.breed-card:hover {
    transform: translateY(-3px);
}

.breed-card .card-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.breed-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breed-card .card-body {
    padding: 24px;
}

.breed-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.breed-card .breed-origin {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.breed-card .breed-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breed-card .card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--warm-gray);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.breed-card .card-link::after { content: " →"; }

/* ===== BREED DETAIL PAGE ===== */
.breed-detail {
    padding: 56px 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.breadcrumb a { color: var(--text-muted); }

.breed-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}

.breed-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
}

.breed-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breed-hero-info h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.breed-hero-info .breed-alt-name {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breed-hero-info .breed-origin-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.breed-hero-info .breed-desc {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
}

/* ===== CHARACTERISTICS ===== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.char-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.char-item .char-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.char-item .char-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}

/* ===== TEXT SECTIONS ===== */
.text-section {
    margin-bottom: 56px;
}

.text-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.3px;
}

.text-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 56px 32px 32px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.4rem; }
    .breed-hero { gap: 40px; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
    nav ul { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero { padding: 64px 24px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 56px 0; }
    .breed-hero { grid-template-columns: 1fr; }
    .breed-hero-info h1 { font-size: 1.8rem; }
    .breed-grid { grid-template-columns: repeat(2, 1fr); }
    .char-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .breed-grid { grid-template-columns: 1fr; }
    .char-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 20px; }
}
