/* Autokuntoon.fi – yhteinen tyylitiedosto kaikille sivuille */
:root {
  /* Brändivärit logosta: hiilenharmaa, vaalea lämmin harmaa ja punainen */
  --navy: #2a2b2a;
  --navy-2: #3a3b3a;
  --accent: #d13c32;
  --accent-dark: #a92e26;
  --text: #232423;
  --muted: #5e5c58;
  --bg: #ffffff;
  --bg-soft: #efece6;
  --border: #ddd8cf;
  --head-font: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); font-family: var(--head-font); font-weight: 600; letter-spacing: .3px; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Skip link saavutettavuutta varten */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Yläpalkki */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo span { color: var(--accent); font-family: var(--head-font); font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: #e6e1d8; text-decoration: none; padding: 8px 12px; border-radius: 8px; display: block; font-size: .95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-2); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 8px 20px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Painikkeet */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero {
  background: var(--navy);
  color: #fff; padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero-logo { width: 100%; max-width: 400px; justify-self: end; border-radius: var(--radius); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 260px; justify-self: center; margin-bottom: -12px; }
}
.hero h1 { color: #fff; max-width: 18em; }
.hero p { color: #e6e1d8; font-size: 1.2rem; max-width: 36em; margin: 0 0 28px; }
.hero .badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 0; list-style: none; color: #cfc8bb; font-size: .95rem; }
.page-hero { padding: 56px 0 44px; }

/* Kortit */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card p { margin: 0; color: var(--muted); }

/* Hintakortit */
.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .tag { font-size: .8rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .5px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { margin: 0; padding-left: 1.2em; color: var(--text); flex: 1; }
.price-card li { margin: 4px 0; }
.note { font-size: .95rem; color: var(--muted); }

/* Kuvagalleria */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pairs { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pair h3 { margin-bottom: 10px; }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; position: relative; }
.pair img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 10px; }
.pair figcaption {
  position: absolute; left: 8px; top: 8px; background: var(--navy); color: #fff;
  font-family: var(--head-font); text-transform: uppercase; font-size: .8rem; padding: 2px 8px; border-radius: 6px;
}
.pair figure.after figcaption { background: var(--accent); }
.wide-img { border-radius: var(--radius); width: 100%; }
.gallery figure { margin: 0; }
.gallery img, .placeholder {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 10px; background: var(--bg-soft);
}
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); border: 2px dashed var(--border); font-size: .9rem; padding: 12px;
}
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Asiakaspalautteet */
blockquote.card { margin: 0; }
blockquote.card p { color: var(--text); font-style: italic; }
blockquote.card footer { margin-top: 12px; font-weight: 700; color: var(--navy); }

/* UKK */
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Yhteystiedot */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { font-weight: 700; }

/* CTA-palkki */
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e6e1d8; }
.cta { border-top: 3px solid var(--accent); }
.cta .btn-row { justify-content: center; }

/* Alapalkki */
.site-footer { background: #1e1f1e; color: #b9b3a8; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #e6e1d8; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.copy { margin-top: 28px; border-top: 1px solid #3a3b3a; padding-top: 18px; }
