/* ==========================================================================
   TOPISO OY - HEVOSTALLI & TRAILERIVUOKRAUS
   Täysin hevoskeskeinen moderni arkkitehtuuri ja 3 hevosvisuaalisuutta
   ========================================================================== */

/* Itse isännöidyt fontit (ei yhteyttä Googleen) – SIL Open Font License */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/playfair-display-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/playfair-display-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/playfair-display-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/playfair-display-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/playfair-display-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/playfair-display-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. PERUSMUUTTUJAT JA TEEMA 1: KARTANOTALLI (MANOR / RACING GREEN & GOLD) */
:root,
[data-theme="manor"] {
  --color-primary: #1b4332;         /* Brittiläinen Racing Green */
  --color-primary-dark: #122e22;
  --color-primary-light: #e8f3ee;
  --color-accent: #c28e2b;          /* Satulakulta / Meripihka */
  --color-accent-light: #fef7ea;
  
  --color-bg-base: #fdfbf7;         /* Kermanvalkoinen kartanotausta */
  --color-bg-surface: #ffffff;
  --color-bg-alt: #f5f2ea;
  --color-border: #e8e2d5;
  
  --color-text-title: #1a1918;      /* Syvä mustanruskea */
  --color-text-body: #44403c;
  --color-text-muted: #57534e;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 1px 3px rgba(30, 25, 20, 0.05);
  --shadow-md: 0 4px 10px rgba(30, 25, 20, 0.07);
  --shadow-lg: 0 12px 24px rgba(30, 25, 20, 0.09);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* TEEMA 2: MAALAISIDYLLI (PASTORAL SAGE & LINEN) */
[data-theme="pastoral"] {
  --color-primary: #2d5a43;         /* Pehmeä havumetsä / salvianvihreä */
  --color-primary-dark: #1e3d2d;
  --color-primary-light: #ebf3ee;
  --color-accent: #b45309;          /* Lämmin terrakotta */
  --color-accent-light: #fef3c7;
  
  --color-bg-base: #f7f5f0;         /* Lämmin pellava/oat */
  --color-bg-surface: #ffffff;
  --color-bg-alt: #edeae2;
  --color-border: #e2ddd4;
  
  --color-text-title: #1c1917;
  --color-text-body: #57534e;
  --color-text-muted: #8c857b;
  
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* TEEMA 3: YÖLAIDUN (MIDNIGHT DARK LUXURY - KRISTALLINKIRKAS KONTRASTI) */
[data-theme="midnight"] {
  --color-primary: #fbbf24;         /* Hohtava kulta/meripihka */
  --color-primary-dark: #f59e0b;
  --color-primary-light: rgba(251, 191, 36, 0.15);
  --color-accent: #34d399;          /* Yölaidun emerald */
  --color-accent-light: rgba(52, 211, 153, 0.15);
  
  --color-bg-base: #0a0f0d;         /* Syvä yönmusta */
  --color-bg-surface: #131c17;      /* Tumma obsidian */
  --color-bg-alt: #0e1511;
  --color-border: rgba(255, 255, 255, 0.12);
  
  --color-text-title: #ffffff;      /* 100% PUHDAS VALKOINEN - Täydellinen kontrasti */
  --color-text-body: #f1f5f9;       /* Erittäin vaalea ja selkeä */
  --color-text-muted: #94a3b8;
  
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* 2. RESET JA PERUSTYYLIT */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--color-bg-base);
  color: var(--color-text-body);
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

h1, h2, h3, h4 {
  color: var(--color-text-title);
  font-family: var(--font-heading);
  line-height: 1.25;
}

/* 3. LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: 5.5rem 0;
}

.bg-light {
  background-color: var(--color-bg-alt);
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="midnight"] .section-tag {
  border-color: rgba(251, 191, 36, 0.25);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* PAINIKKEET */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.975rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

[data-theme="midnight"] .btn-primary {
  color: #0a0f0d;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="midnight"] .btn-primary:hover {
  color: #0a0f0d;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-title);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.full-width {
  width: 100%;
}

/* 4. TEEMAVALITSIN (BANNERI YLHÄÄLLÄ) */
.theme-switcher-banner {
  background: #111827;
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.switcher-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.switcher-label {
  color: #94a3b8;
}

.switcher-label strong {
  color: #ffffff;
}

.switcher-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.theme-pill.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pill-dot.green { background-color: #1b4332; }
.pill-dot.sage { background-color: #52b788; }
.pill-dot.midnight { background-color: #fbbf24; }

/* 5. YLÄPALKKI (HEADER) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

[data-theme="midnight"] .brand-logo {
  filter: brightness(0) invert(1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-title);
  padding: 0.5rem 0.25rem;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.nav-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
}

[data-theme="midnight"] .nav-link.nav-btn {
  color: #0a0f0d;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-text-title);
}

/* 6. HERO-OSIO (AINA TÄYDELLINEN KONTRASTI) */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5.5rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-background .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 15, 13, 0.92) 0%, rgba(27, 67, 50, 0.85) 60%, rgba(194, 142, 43, 0.6) 100%);
  z-index: 2;
}

[data-theme="midnight"] .hero-overlay {
  background: linear-gradient(135deg, rgba(5, 8, 7, 0.96) 0%, rgba(15, 25, 20, 0.92) 60%, rgba(251, 191, 36, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
}

/* Varmistetaan että otsikko ja johdanto näkyvät 100% kirkkaana */
.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 7. PÄÄPALVELUKORTIT (CORE GRID) */
.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.core-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.core-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.core-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.core-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.core-card:hover .core-img {
  transform: scale(1.05);
}

.core-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #122e22;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.core-badge.status-busy {
  background-color: #991b1b;
  color: #ffffff;
}

.core-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.core-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.core-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.core-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

.core-price small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.core-status-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.core-desc {
  font-size: 0.95rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

.core-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 2rem;
}

.core-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.core-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.core-action {
  margin-top: auto;
}

/* 8. TRAILERIOSIO & LASKURI */
.detail-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.spec-item {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.spec-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.spec-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.info-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-block {
  background-color: var(--color-bg-surface);
  border-left: 3px solid var(--color-primary);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.info-block h3,
.info-block h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.info-block p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin: 0;
}

.urgent-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #78350f;
}

[data-theme="midnight"] .urgent-notice {
  color: #fbbf24;
}

.urgent-notice a {
  color: inherit;
  text-decoration: underline;
}

/* LASKURIKORTTI */
.calculator-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-header {
  background: var(--color-primary);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
}

[data-theme="midnight"] .calc-header {
  background: #141d18;
  border-bottom: 1px solid var(--color-border);
}

.calc-header h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.calc-header p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.calc-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-title);
  margin-bottom: 0.4rem;
}

.stepper-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stepper-btn {
  width: 48px;
  height: 44px;
  background-color: var(--color-bg-alt);
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text-title);
}

.stepper-input input {
  flex: 1;
  text-align: center;
  border: none;
  background-color: var(--color-bg-surface);
  color: var(--color-text-title);
  font-size: 1.2rem;
  font-weight: 800;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-body);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.calc-summary {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.total-price {
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 800;
}

/* 9. HEVOSTALLIN ARKI & OMINAISUUDET */
.stable-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.stable-feat-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.stable-feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.feat-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.stable-feat-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stable-feat-card p {
  font-size: 0.925rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* KUVAGALLERIA */
.photo-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  padding: 1.5rem 1rem 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.stable-status-banner {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.status-badge-big {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ef4444;
}

.stable-status-banner p {
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

/* 10. MEISTÄ & TIIMI */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-img-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

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

.team-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.team-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.925rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* 11. YHTEYSTIEDOT & LOMAKE */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--color-text-body);
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card-link,
.contact-card-static {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
}

.contact-card-link:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.contact-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-circle svg {
  width: 22px;
  height: 22px;
}

.card-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.card-val {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text-title);
  font-weight: 700;
}

.company-legal-info {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.legal-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: var(--color-text-body);
}

.legal-row strong {
  color: var(--color-text-title);
}

.legal-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

/* LOMAKE */
.contact-form-panel {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.form-panel-header {
  margin-bottom: 1.75rem;
}

.form-panel-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.form-panel-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-base);
  color: var(--color-text-title);
  transition: all 0.15s ease;
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

[data-theme="midnight"] .site-form input:focus,
[data-theme="midnight"] .site-form select:focus,
[data-theme="midnight"] .site-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.special-fields {
  background-color: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.privacy-check {
  margin: 1.25rem 0 1.5rem 0;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* 12. ALATUNNISTE */
.site-footer {
  background-color: #0d1310;
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 4px solid var(--color-primary);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-about {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.social-links a:hover {
  color: #ffffff;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links li,
.footer-contact-list li {
  margin-bottom: 0.65rem;
  font-size: 0.925rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-list a {
  color: #e2e8f0;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tagline {
  color: #94a3b8;
}

/* 13. RESPONSIIVISUUS */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.65rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-split,
  .contact-grid,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .gallery-item {
    height: 220px;
  }

  .gallery-item.large {
    grid-row: auto;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .nav-link.nav-btn {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .specs-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Honeypot-kenttien moderni häivitys (näkymätön käyttäjille, botit lankeavat) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
