/* Perus Autohuolto Oy – tumma, hillitty ja responsiivinen ilme */
:root {
  --bg: #151719;
  --bg-soft: #1d2022;
  --panel: #222629;
  --text: #f3f3f0;
  --muted: #b5b9b9;
  --line: rgba(255,255,255,.13);
  --red: #d9343b;
  --red-dark: #b9252d;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: white; color: black; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(19,21,23,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 7px; height: 38px; background: var(--red); transform: skew(-24deg); flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.3; }
.brand-name { font: 700 17px/1.3 "Manrope", sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.brand-tagline { color: var(--muted); font-size: 10px; letter-spacing: .015em; }
.primary-nav { display: flex; align-items: center; gap: clamp(15px, 2.2vw, 30px); font-size: 12px; font-weight: 600; }
.primary-nav a:not(.nav-call) { color: #d5d7d6; transition: color .2s; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: white; }
.nav-call { padding: 10px 15px; border: 1px solid rgba(217,52,59,.75); border-radius: 3px; color: white; }
.menu-toggle { display: none; }
.hero { min-height: 590px; position: relative; display: flex; align-items: center; overflow: hidden; background: #202426; }
.hero-photo { position: absolute; inset: 0; background-image: url("https://images.pexels.com/photos/8985510/pexels-photo-8985510.jpeg?auto=compress&cs=tinysrgb&w=2000"); background-size: cover; background-position: center 48%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,15,.96) 0%, rgba(12,14,15,.84) 33%, rgba(12,14,15,.28) 70%, rgba(12,14,15,.16) 100%), linear-gradient(0deg, rgba(10,12,13,.38), transparent 40%); }
.hero-content { position: relative; z-index: 1; padding-block: 88px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: #d7d9d8; font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 25px; height: 2px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -.045em; }
.hero h1 { max-width: 650px; margin: 0 0 20px; font-size: clamp(43px, 6.2vw, 76px); line-height: 1.04; font-weight: 700; }
h1 em, h2 em { color: #d6d8d7; font-style: normal; font-weight: 500; }
.hero-lead { margin: 0 0 9px; font: 600 clamp(17px, 2vw, 22px)/1.45 "Manrope", sans-serif; }
.hero-text { max-width: 460px; margin-bottom: 28px; color: #c4c8c7; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--red-dark); }
.button-ghost { border-color: rgba(255,255,255,.48); background: rgba(20,22,23,.22); color: white; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-note { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max))/2)); bottom: 26px; display: flex; align-items: center; gap: 12px; color: #d2d5d4; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.note-line { width: 32px; height: 1px; background: var(--red); }
.intro-strip { background: var(--red); }
.intro-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.intro-inner p { margin: 0; font: 600 14px "Manrope", sans-serif; }
.intro-inner a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.section { padding-block: 104px; }
.section-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.section h2, .why-section h2, .about-panel h2, .location-top h2 { margin: 0; font-size: clamp(34px, 4vw, 49px); line-height: 1.13; font-weight: 650; }
.section-intro { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 205px; padding: 28px 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.service-card:hover { background: #1c1f21; }
.service-number { position: absolute; top: 27px; right: 28px; color: #777e7e; font-size: 10px; letter-spacing: .1em; }
.service-icon { display: block; margin-bottom: 17px; color: var(--red); font-size: 28px; line-height: 1; }
.service-card h3 { margin: 0 0 8px; font: 650 16px "Manrope", sans-serif; }
.service-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; }
.why-section { padding-block: 92px; background: #202426; border-block: 1px solid var(--line); }
.why-layout { display: grid; grid-template-columns: .85fr 1fr; gap: 90px; }
.why-heading > p:last-child { max-width: 360px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.values-list { border-top: 1px solid var(--line); }
.value-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.value-item > span { color: var(--red); font-size: 11px; letter-spacing: .12em; }
.value-item h3 { margin: 0 0 4px; font: 650 15px "Manrope", sans-serif; }
.value-item p { margin: 0; color: var(--muted); font-size: 12px; }
.about-section { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.about-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(17,19,20,.98) 0%, rgba(17,19,20,.9) 42%, rgba(17,19,20,.22) 100%), url("https://images.pexels.com/photos/15489247/pexels-photo-15489247.jpeg?auto=compress&cs=tinysrgb&w=1800"); background-size: cover; background-position: center; }
.about-content { position: relative; z-index: 1; padding-block: 75px; }
.about-panel { max-width: 560px; }
.about-panel > p:not(.eyebrow) { color: #c4c8c7; font-size: 13px; }
.about-panel h2 { margin-bottom: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--red); font-size: 12px; font-weight: 700; }
.contact-section { background: #202426; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.1fr; gap: 85px; }
.contact-copy h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 48px); line-height: 1.12; }
.contact-intro { max-width: 380px; color: var(--muted); font-size: 13px; }
.contact-details { display: grid; gap: 17px; margin-top: 38px; }
.contact-details > a, .contact-details > div { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.detail-icon { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(217,52,59,.5); color: var(--red); font-size: 18px; }
.contact-details small { display: block; color: #9da3a2; font-size: 10px; }
.contact-form { padding: 28px; background: #181b1d; border: 1px solid var(--line); }
.form-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 23px; color: #e7e9e8; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.required-note { color: #8f9695; font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 13px; }
.form-grid label { display: grid; gap: 7px; color: #d7dad9; font-size: 11px; font-weight: 600; }
.form-grid input, .form-grid textarea { width: 100%; border: 1px solid #414749; border-radius: 2px; outline: none; background: #24292b; color: white; padding: 12px 13px; font-size: 12px; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(217,52,59,.14); }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #7f8786; }
.form-grid textarea { resize: vertical; min-height: 112px; }
.message-label { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: #aeb4b3; font-size: 10px; }
.consent input { accent-color: var(--red); margin-top: 3px; }
.submit-button { width: 100%; }
.form-footnote { margin: 12px 0 0; color: #818887; font-size: 9px; }
.honeypot { position: absolute; left: -5000px; }
.location-section { padding-top: 84px; }
.location-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 35px; }
.location-address { display: grid; grid-template-columns: 38px auto; gap: 0 13px; align-items: start; min-width: 255px; }
.location-address .detail-icon { grid-row: span 2; }
.location-address p { margin: 0; color: var(--muted); font-size: 12px; }
.location-address strong { color: white; }
.location-address .text-link { grid-column: 2; justify-self: start; margin-top: 8px; }
.map-wrap { height: 360px; background: #282d2f; border-block: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(.9) brightness(.85); }
.site-footer { padding-block: 30px; background: #101213; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 30px; }
.footer-brand { font: 700 13px "Manrope", sans-serif; }
.footer-brand span { display: block; margin-top: 4px; color: #8f9695; font: 400 10px "DM Sans", sans-serif; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #b9bfbe; font-size: 10px; }
.copyright { margin: 0; color: #818887; font-size: 9px; white-space: nowrap; }
@media (max-width: 900px) {
  .primary-nav { gap: 14px; font-size: 11px; }
  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 9px; }
  .section-heading { gap: 35px; }
  .why-layout { gap: 45px; }
  .contact-layout { gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .container { width: min(100% - 36px, var(--max)); }
  .header-inner { min-height: 70px; }
  .brand-mark { height: 31px; }
  .brand-name { font-size: 13px; }
  .brand-tagline { max-width: 230px; font-size: 8px; }
  .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border: 1px solid var(--line); background: transparent; }
  .menu-toggle span { width: 18px; height: 2px; background: white; }
  .primary-nav { position: absolute; top: 69px; left: 0; right: 0; display: none; padding: 18px 22px 22px; flex-direction: column; align-items: stretch; gap: 0; background: #171a1c; border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-call { margin-top: 12px; padding: 11px 14px; text-align: center; border: 1px solid var(--red); }
  .hero { min-height: 620px; align-items: end; }
  .hero-photo { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,13,14,.97) 0%, rgba(11,13,14,.82) 47%, rgba(11,13,14,.15) 100%); }
  .hero-content { padding-block: 90px 80px; }
  .hero h1 { font-size: clamp(42px, 12vw, 61px); }
  .hero-text { max-width: 390px; }
  .hero-note { right: 18px; bottom: 18px; font-size: 8px; }
  .intro-inner { min-height: 74px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; }
  .intro-inner p { font-size: 12px; }
  .intro-inner a { font-size: 11px; }
  .section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section h2, .why-section h2, .about-panel h2, .location-top h2 { font-size: 36px; }
  .section-intro { font-size: 13px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 190px; padding: 23px 18px; }
  .service-number { top: 21px; right: 17px; }
  .service-card h3 { font-size: 14px; }
  .service-card p { font-size: 11px; }
  .why-section { padding-block: 72px; }
  .why-layout { grid-template-columns: 1fr; gap: 35px; }
  .about-section { min-height: 570px; align-items: end; }
  .about-image { background-position: 60% center; }
  .about-content { padding-block: 55px; }
  .about-panel { padding: 24px; background: rgba(17,19,20,.88); border-left: 2px solid var(--red); }
  .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .contact-details { margin-top: 25px; }
  .contact-form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .message-label { grid-column: auto; }
  .form-heading { flex-direction: column; gap: 5px; }
  .location-section { padding-top: 68px; }
  .location-top { align-items: start; flex-direction: column; gap: 24px; }
  .map-wrap { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .copyright { grid-column: auto; }
}
@media (max-width: 390px) {
  .brand-tagline { max-width: 195px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 260px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
